:root {
  --color-crema: #FAF6EE;
  --color-verde: #0F3D3E;
  --color-ambar: #E8A33D;
  --color-terracota: #C4553B;
  --color-texto: #1C1C1C;
  --shadow-soft: 0 18px 45px rgba(15, 61, 62, 0.12);
  --shadow-card: 0 12px 32px rgba(28, 28, 28, 0.06);
  --radius-card: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--color-crema);
  color: var(--color-texto);
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, a {
  transition: all 0.2s ease;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(232, 163, 61, 0.85);
  outline-offset: 3px;
}

.section-shell {
  padding: 5rem 0;
}

.section-alternate {
  background: rgba(15, 61, 62, 0.04);
}

.section-heading {
  text-align: left;
}

.section-heading .eyebrow,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--color-verde);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading h2,
.newsletter-card h2 {
  font-family: "DM Serif Display", serif;
  color: var(--color-verde);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.card,
.info-card,
.newsletter-card,
.step-card {
  border: 1px solid rgba(15, 61, 62, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-card);
}

.card.bg-verde {
  background-color: var(--color-verde);
}

.card.bg-terracota {
  background-color: var(--color-terracota);
}

.info-card,
.card {
  padding: 1.4rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--color-verde);
}

.step-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.step-card p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(28, 28, 28, 0.72);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(15, 61, 62, 0.08);
  color: var(--color-verde);
  font-weight: 800;
}

.quipu-shell {
  position: relative;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(15, 61, 62, 0.08);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15, 61, 62, 0.06), rgba(15, 61, 62, 0.02));
  box-shadow: var(--shadow-soft);
}

.quipu-svg {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  overflow: visible;
}

.quipu-lines line {
  stroke: rgba(15, 61, 62, 0.38);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  animation: pulseLine 4.5s ease-in-out infinite alternate;
}

.quipu-knots circle {
  fill: var(--color-ambar);
  stroke: rgba(15, 61, 62, 0.2);
  stroke-width: 2;
}

.quipu-base {
  stroke: rgba(15, 61, 62, 0.5);
  stroke-width: 4;
  stroke-linecap: round;
}

@keyframes pulseLine {
  0% { stroke-opacity: 0.7; }
  100% { stroke-opacity: 1; }
}

.input-field {
  width: 100%;
  border: 1px solid rgba(15, 61, 62, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.8rem 1rem;
  color: var(--color-texto);
  font: inherit;
}

.input-field:focus {
  border-color: rgba(15, 61, 62, 0.44);
  box-shadow: 0 0 0 4px rgba(15, 61, 62, 0.08);
}

.newsletter-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(250,246,238,0.9));
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border: none;
  border-radius: 9999px;
  background: var(--color-verde);
  color: white;
  padding: 1rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 9999px;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tab {
  border: none;
  background: transparent;
  color: rgba(15, 61, 62, 0.78);
  font-weight: 800;
  padding: 0.8rem 1.2rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab.is-active {
  color: var(--color-verde);
  border-bottom-color: var(--color-verde);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.news-card,
.influencer-card {
  border: 1px solid rgba(15, 61, 62, 0.08);
  border-radius: 1.4rem;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.news-thumb {
  height: 10rem;
  background: linear-gradient(135deg, rgba(15,61,62,0.9), rgba(232,163,61,0.8));
}

.news-body,
.influencer-body {
  padding: 1.1rem;
}

.news-category {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(15, 61, 62, 0.08);
  color: var(--color-verde);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-title {
  margin-top: 0.8rem;
  color: var(--color-verde);
  font-size: 1.2rem;
  font-weight: 800;
}

.news-date {
  color: rgba(28,28,28,0.6);
  font-size: 0.75rem;
}

.news-excerpt {
  margin-top: 0.8rem;
  color: rgba(28,28,28,0.75);
}

.news-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--color-verde);
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(15, 61, 62, 0.1);
  color: var(--color-verde);
  font-weight: 800;
}

.influencer-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.influencer-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-verde);
}

.influencer-platform,
.influencer-topic {
  font-size: 0.78rem;
  color: rgba(28,28,28,0.7);
}

.profile-button {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 61, 62, 0.2);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-verde);
  text-decoration: none;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 61, 62, 0.04);
  color: var(--color-verde);
  font-weight: 700;
}

.check-item::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 9999px;
  background: rgba(15, 61, 62, 0.1);
  font-size: 0.9rem;
}

.counter-stat {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  color: white;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  color: white;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  transform: translate(-50%, calc(-50% + 12px));
  min-width: 240px;
  max-width: min(90vw, 360px);
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 61, 62, 0.96);
  color: white;
  box-shadow: var(--shadow-soft);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .section-shell {
    padding: 4rem 0;
  }

  .newsletter-card {
    padding: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
