/* ── TOKENS (misma paleta que la app) ───────────── */
:root {
  --green-deep: #1a3a1e;
  --green-mid: #2d6a35;
  --green-light: #4a9955;
  --green-pale: #d4ecd7;
  --green-ghost: #eef6ef;
  --cream: #f7f4ee;
  --cream-dark: #ede9e1;
  --ink: #1a1a18;
  --ink-mid: #3d3d38;
  --ink-soft: #6e6e68;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--green-deep);
  position: sticky;
  top: 0;
  z-index: 20;
  animation: headerIn 0.6s ease both;
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.header-tag {
  font-size: 13px;
  color: var(--green-pale);
  opacity: 0.75;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── BOTONES ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .btn:hover {
    transform: none;
  }
}

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 58, 30, 0.22);
}

.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: 0 12px 32px rgba(26, 58, 30, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-mid);
  border: 1.5px solid var(--cream-dark);
}

.btn-secondary:hover {
  border-color: var(--green-light);
  color: var(--green-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--green-pale);
  border: 1.5px solid rgba(212, 236, 215, 0.35);
  padding: 8px 16px;
  font-size: 13px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 320px;
  height: 320px;
  background: var(--green-pale);
  top: -80px;
  right: 10%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 240px;
  height: 240px;
  background: #c8e6cc;
  bottom: 0;
  left: -60px;
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.06); }
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.05;
  color: var(--green-deep);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-line {
  display: block;
  opacity: 0;
  animation: heroLineIn 0.7s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-line:nth-child(2) { animation-delay: 0.3s; }

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.45s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hero-visual {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
  min-width: 0;
}

.hero-card {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(26, 58, 30, 0.1);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--green-ghost);
  color: var(--green-mid);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--green-mid);
}

.stat-whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  font-family: inherit;
}

.stat-icon--whatsapp {
  width: 26px;
  height: 26px;
  color: var(--green-mid);
}

.stat span {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hero-chip {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  box-shadow: 0 8px 24px rgba(26, 58, 30, 0.08);
  animation: chipBob 4s ease-in-out infinite;
}

.hero-chip--1 {
  top: -12px;
  right: -16px;
  animation-delay: 0s;
}

.hero-chip--2 {
  bottom: 24px;
  left: -24px;
  animation-delay: -2s;
}

@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── SECCIONES ──────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green-deep);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 58, 30, 0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-ghost);
  color: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  background: var(--green-ghost);
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.step:hover {
  border-color: var(--green-pale);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green-deep);
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── CTA FINAL ──────────────────────────────────── */
.cta-band {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.cta-inner {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(74, 153, 85, 0.25), transparent 55%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.cta-inner p {
  color: var(--green-pale);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 28px;
  opacity: 0.9;
  position: relative;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.cta-inner .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}

.cta-inner .btn-primary:hover {
  background: var(--green-pale);
}

.cta-inner .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-inner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--green-deep);
  color: var(--green-pale);
  font-size: 13px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.85;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 32px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .header-tag {
    display: none;
  }

  .hero-chip--1 {
    right: 0;
  }

  .hero-chip--2 {
    left: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  /* En mobile el header va compacto; CTAs completos quedan en el hero */
  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    padding: 32px 16px 36px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-chip {
    display: none;
  }

  .hero-card {
    padding: 22px 20px;
    animation: none;
  }

  .hero-card h2 {
    font-size: 22px;
  }

  .hero-orb--1 {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -60px;
  }

  .hero-orb--2 {
    width: 160px;
    height: 160px;
    left: -50px;
  }

  .section {
    padding: 40px 16px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head p {
    font-size: 15px;
  }

  .cta-band {
    padding: 0 16px;
    margin-bottom: 48px;
  }

  .cta-inner {
    padding: 32px 20px;
    border-radius: var(--radius-md);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat-icon--whatsapp {
    width: 22px;
    height: 22px;
  }

  .stat span {
    font-size: 10px;
  }

  .feature,
  .step {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
