/* ============================================================
   AxendaFlow — Landing oficial
   Sistema: claro, pastel y minimalista — verde del logo sobre blanco
   ============================================================ */

/* ============================================================
   Fuentes self-hosted (antes: Fontshare + Google Fonts CDN).
   Solo los pesos que la landing usa de verdad. Los .woff2 críticos
   se precargan desde el <head> con <link rel="preload">.
   ============================================================ */

/* Supreme — cuerpo. La API de Fontshare sirve 400/500/700 (no existe
   el 600: el navegador resuelve 600 → 700, igual que con el CDN). */
@font-face {
  font-family: 'Supreme';
  src: url('../fonts/supreme-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Supreme';
  src: url('../fonts/supreme-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Supreme';
  src: url('../fonts/supreme-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Bricolage Grotesque — display. Fuente variable (wght 500–800). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-500-800-latin-ext.woff2') format('woff2');
  font-weight: 500 800; font-stretch: 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-500-800-latin.woff2') format('woff2');
  font-weight: 500 800; font-stretch: 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Caveat — manuscrita de las ilustraciones SVG. Variable (wght 500–700). */
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-500-700-latin-ext.woff2') format('woff2');
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-500-700-latin.woff2') format('woff2');
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Verde del logo y su familia pastel */
  --olivo:      #5E7049;   /* verde del logo — acento primario */
  --olivo-2:    #6E8456;   /* hover */
  --olivo-deep: #3E4D32;   /* títulos / énfasis */
  --emerald:    #46583B;   /* sección de énfasis (CTA final) */
  --emerald-deep:#36452C;  /* footer */
  --sage:       #8CA577;   /* verde suave secundario */
  --sage-soft:  #B4C7A2;
  --fresh:      #7BA653;   /* confirmación (uso mínimo) */

  /* Acento dorado (contraste cálido, uso medido en zonas verdes) */
  --oro:        #C2A24E;
  --oro-soft:   #E0C57E;
  --oro-grad:   linear-gradient(135deg, #ECD58C 0%, #C8A451 48%, #A8842F 100%);

  /* Superficies claras / pastel */
  --mint:   #E7EFDE;       /* menta pastel */
  --mint-2: #DBE7CD;
  --cream:  #F4F6EF;       /* crema verdosa muy suave */
  --paper:  #FFFFFF;
  --bg:     #FBFCF9;

  /* Tinta sobre claro */
  --ink:       #243021;
  --ink-soft:  #495643;    /* más oscuro: menos "delgado" */
  --ink-faint: #5C6A52;    /* microcopy con más cuerpo */

  /* Sobre verde profundo (emerald) */
  --on-emerald:      #F2F5EC;
  --on-emerald-soft: rgba(242,245,236,0.80);
  --on-emerald-faint:rgba(242,245,236,0.62); /* antes 0.58 — subido para contraste AA 4.5:1 sobre --emerald-deep */

  /* Líneas */
  --line:        rgba(43,56,38,0.12);
  --line-strong: rgba(94,112,73,0.28);
  --line-emerald:rgba(242,245,236,0.18);

  /* Tipografía */
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans:    'Supreme', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --maxw: 1180px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 14px 38px -26px rgba(43,56,38,0.22);
  --shadow-soft: 0 26px 60px -32px rgba(43,56,38,0.22);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--olivo); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; color: var(--olivo-deep); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--paper   { background: var(--paper); color: var(--ink); }
.section--light   { background: var(--cream); color: var(--ink); }
.section--dark    { background: var(--mint);  color: var(--ink); }   /* repurposed: menta pastel */
.section--penca   { background: var(--paper); color: var(--ink); }   /* repurposed: blanco */
.section--emerald { background: var(--emerald); color: var(--on-emerald); }
.section--emerald h1, .section--emerald h2, .section--emerald h3 { color: var(--on-emerald); }

/* ---------- Etiqueta de sección ---------- */
.kicker {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.7rem; color: var(--olivo);
}
.section--emerald .kicker { color: var(--sage-soft); }
.kicker::before { content: attr(data-n); font-variant-numeric: tabular-nums; font-weight: 700; background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.kicker .tick { width: 26px; height: 2px; border-radius: 2px; background: var(--oro-grad); opacity: 0.9; }

.section-head { max-width: 46ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem); margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--ink-soft); }
.section--emerald .lead { color: var(--on-emerald-soft); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--olivo); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.92rem 1.5rem; background: var(--bg); color: var(--fg);
  border-radius: 100px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 12px 26px -14px rgba(94,112,73,0.55), inset 0 0 0 1px rgba(224,197,126,0.42); will-change: transform;
}
.btn:not(.btn--ghost)::after { content:''; position:absolute; inset:0; border-radius:inherit; background: linear-gradient(110deg, transparent 38%, rgba(236,213,140,0.38) 50%, transparent 62%); background-size: 220% 100%; animation: goldShimmer 5.5s linear infinite; pointer-events:none; }
.btn:hover { transform: translateY(-2px); background: var(--olivo-2); box-shadow: 0 16px 30px -14px rgba(94,112,73,0.55), inset 0 0 0 1px rgba(224,197,126,0.7), 0 8px 22px -10px rgba(194,162,78,0.5); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .35s var(--ease); color: var(--oro-soft); position: relative; z-index: 1; }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: rgba(94,112,73,0.06); border-color: var(--olivo); color: var(--olivo-deep); box-shadow: none; }
.section--emerald .btn--ghost { --fg: var(--on-emerald); border-color: var(--line-emerald); }
.section--emerald .btn--ghost:hover { background: rgba(242,245,236,0.1); border-color: var(--sage-soft); color: #fff; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251,252,249,0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -24px rgba(43,56,38,0.4);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav__brand .mark { width: 34px; height: 34px; }
.nav__brand .word { font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--olivo-deep); }
.nav__center { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color .25s; position: relative; }
.nav__links a:hover { color: var(--olivo-deep); }
.nav__links a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; border-radius:2px; background: var(--oro-grad); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__login { font-size: 0.92rem; font-weight: 600; color: var(--olivo-deep); display: inline-flex; align-items: center; gap: 0.4rem; transition: color .25s; }
.nav__login:hover { color: var(--olivo); }
.nav__login svg { width: 15px; height: 15px; }
.nav__burger { display: none; width: 42px; height: 42px; border:1px solid var(--line); border-radius: var(--radius-sm); align-items:center; justify-content:center; background: var(--paper); }
.nav__burger span { width:18px; height:1.5px; background: var(--ink); position: relative; }
.nav__burger span::before, .nav__burger span::after { content:''; position:absolute; left:0; width:18px; height:1.5px; background: var(--ink); }
.nav__burger span::before { top:-5px; } .nav__burger span::after { top:5px; }

/* ---------- Menú móvil ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(251,252,249,0.98); backdrop-filter: blur(10px); display: flex; flex-direction: column; padding: 1.2rem; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: .2rem; margin-top: auto; margin-bottom: auto; }
.mobile-menu nav a { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 8vw, 2.6rem); color: var(--olivo-deep); padding: .4rem 0; }
.mobile-menu nav a.is-login { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--olivo); margin-top: .6rem; }
.mobile-menu .btn { margin-top: 1.4rem; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden;
  background:
    radial-gradient(120% 85% at 82% 18%, rgba(140,165,119,0.16), transparent 58%),
    radial-gradient(70% 55% at 12% 92%, rgba(224,197,126,0.16), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); }
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
#flujo { width: 100%; height: 100%; }
.hero__static { position: absolute; inset: 0; z-index: 0; opacity: .7;
  background:
    radial-gradient(120% 90% at 75% 28%, rgba(140,165,119,0.18), transparent 60%),
    radial-gradient(80% 70% at 12% 82%, rgba(123,166,83,0.10), transparent 60%); }
.hero.flujo-on .hero__static { opacity: .25; transition: opacity 1.2s var(--ease); }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 75% at 16% 50%, rgba(251,252,249,0.78), rgba(251,252,249,0.25) 52%, transparent 70%),
    linear-gradient(180deg, rgba(251,252,249,0.7) 0%, transparent 30%, rgba(251,252,249,0.4) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--olivo-deep); font-weight: 600;
  padding: 0.45rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--oro-soft); box-shadow: 0 0 10px rgba(224,197,126,0.8); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:.95 } 50%{ transform: scale(1.5); opacity:.45 } }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.3rem); font-weight: 800; max-width: 17ch; margin-top: 1.4rem; color: var(--ink); text-wrap: balance; }
.hero h1 .em { color: var(--olivo); font-style: normal; text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 3px; text-underline-offset: 9px; text-decoration-skip-ink: none; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.08rem, 1rem + 0.6vw, 1.32rem); max-width: 46ch; color: var(--ink-soft); }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__proof { margin-top: 2.4rem; display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero__proof .avatars { display: inline-flex; }
.hero__proof .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; background: var(--mint); display:inline-flex; align-items:center; justify-content:center; font-size: 0.68rem; font-weight: 700; color: var(--olivo-deep); }
.hero__proof .avatars span:first-child { margin-left: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-hint .rail { width: 1px; height: 38px; background: linear-gradient(var(--olivo), transparent); position: relative; overflow: hidden; }
.scroll-hint .rail::after { content:''; position:absolute; top:-40%; left:0; width:1px; height:40%; background: var(--fresh); animation: drop 2s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }

/* ============================================================
   PROBLEMA
   ============================================================ */
.pain { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.pain__head { grid-column: 1 / -1; }
.pain__enemy { grid-column: 1 / -1; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem); line-height: 1.12; max-width: 22ch; color: var(--olivo-deep); margin-top: .5rem; }
.pain__enemy .strike { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--olivo); }
.pain__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 1rem; }
@media (max-width: 820px) { .pain__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pain__list { grid-template-columns: 1fr; } }
.pain-card { padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.pain-card::before { content:''; position:absolute; top:1.2rem; left:1.4rem; width: 10px; height: 10px; border-left: 1px solid var(--olivo); border-top: 1px solid var(--olivo); opacity:.55; }
.pain-card:hover { transform: translateY(-4px); border-color: var(--sage); box-shadow: var(--shadow-card); }
.pain-card h3 { font-size: 1.1rem; margin-bottom: .5rem; padding-top: 1.4rem; color: var(--olivo-deep); }
.pain-card p { font-size: .96rem; color: var(--ink-soft); }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--sage); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.step__n { counter-increment: step; font-family: var(--display); font-weight: 600; font-size: 2.6rem; color: var(--olivo); opacity: .3; line-height: 1; }
.step__n::before { content: '0' counter(step); }
.step__chip { font-variant-numeric: tabular-nums; font-size: .74rem; letter-spacing: .08em; font-weight: 600; color: var(--olivo-deep); border: 1px solid var(--line); border-radius: 9px; padding: .3rem .58rem; background: var(--mint); }
.step__chip--ok { border-color: var(--sage); background: var(--mint-2); }
.step h3 { font-size: 1.3rem; margin: .9rem 0 .6rem; color: var(--olivo-deep); }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step__line { position: absolute; top: 3.2rem; right: -0.5rem; width: 1rem; height: 1px; background: var(--olivo); opacity: .3; }
.steps .step:last-child .step__line { display: none; }

/* ============================================================
   FUNCIONES (bento)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(168px, auto); gap: var(--gap); }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; position: relative; overflow: hidden; background: var(--paper); transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.feat::after { content:''; position:absolute; top:1.4rem; right:1.4rem; width: 12px; height: 12px; border-top: 1px solid var(--olivo); border-right: 1px solid var(--olivo); opacity: 0; transition: opacity .4s, transform .4s var(--ease); transform: translate(-4px,4px); }
.feat:hover { border-color: var(--sage); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feat:hover::after { opacity: .6; transform: translate(0,0); }
.feat__ico { width: 42px; height: 42px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; border: 1px solid var(--line); color: var(--olivo); margin-bottom: 1.1rem; background: var(--mint); }
.feat__ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.18rem; margin-bottom: .5rem; color: var(--olivo-deep); }
.feat p { font-size: .95rem; color: var(--ink-soft); }
.feat--wide { grid-column: span 4; }
.feat--reg  { grid-column: span 3; }
.feat--tall { grid-column: span 2; }

/* ============================================================
   TRANSFORMACIÓN
   ============================================================ */
.transform { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.tf-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); transition: background .35s; }
.tf-row:last-child { border-bottom: none; }
.tf-row:hover { background: var(--mint); }
.tf-row .antes { color: var(--ink-faint); text-align: right; font-size: .98rem; }
.tf-row .antes .x { color: #c08a6a; margin-right:.4rem; }
.tf-row .despues { color: var(--ink); font-weight: 500; font-size: 1rem; }
.tf-row .despues .c { color: #A8842F; margin-right:.4rem; }
.tf-arrow { width: 30px; height: 30px; flex: none; display:flex; align-items:center; justify-content:center; border-radius: 50%; background: var(--olivo); color: #fff; }
.tf-arrow svg { width: 15px; height: 15px; }
.tf-head { display:grid; grid-template-columns: 1fr auto 1fr; gap:1rem; padding: 0 1.4rem 1rem; }
.tf-head span { font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-faint); }
.tf-head .a { text-align:right; }
.transform-close { margin-top: 1.6rem; font-family: var(--display); font-weight:500; font-size: clamp(1.2rem,.9rem+1.4vw,1.7rem); max-width: 30ch; color: var(--olivo-deep); }

/* ============================================================
   PARA QUIÉN
   ============================================================ */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--gap); }
.aud-card { padding: 1.6rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--sage); }
.aud-card .tag { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color: var(--olivo); font-weight:600; }
.aud-card h3 { font-size: 1.22rem; margin:.7rem 0 .5rem; color: var(--olivo-deep); }
.aud-card p { font-size:.95rem; color: var(--ink-soft); }

/* ============================================================
   PRUEBA SOCIAL
   ============================================================ */
.proof-band { text-align: center; }
.proof-logos { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem 2.4rem; max-width: 720px; margin: 2.6rem auto 0; }
.proof-logos .pl { display:flex; flex-direction:column; align-items:center; gap:.4rem; transition: transform .3s; padding: 1rem .6rem; border-radius: 14px; border: 1px solid transparent; }
.proof-logos .pl:hover { transform: translateY(-3px); border-color: var(--line); background: var(--paper); box-shadow: var(--shadow-card); }
.proof-logos .pl .name { font-family: var(--display); font-weight:700; font-size: 1.32rem; letter-spacing:.02em; color: var(--olivo-deep); text-align:center; }
.proof-logos .pl .cat { font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--olivo); text-align:center; }
@media (max-width: 620px) { .proof-logos { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; } }
.proof-note { margin-top: 2rem; font-size:.92rem; color: var(--ink-faint); }

/* ============================================================
   PRECIOS
   ============================================================ */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; padding-top: 1.4rem; }
.price-card { display:flex; flex-direction:column; padding: 1.7rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); position: relative; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--sage); }
.price-card--hot { background: var(--emerald); color: var(--on-emerald); border-color: var(--emerald); box-shadow: var(--shadow-soft); transform: scale(1.02); }
.price-card--hot::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--oro-grad); border-radius: var(--radius) var(--radius) 0 0; }
.price-card--hot:hover { transform: scale(1.02) translateY(-6px); }
.price-card--hot .pc-name { color: #fff; }
.price-card--hot .pc-tag { color: var(--sage-soft); }
.price-card--hot .pc-line { color: var(--on-emerald-soft); }
.price-card--hot .pc-feat { color: var(--on-emerald-soft); }
.price-card--hot .pc-feat .ck { color: var(--oro-soft); }
.pc-badge { position:absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--oro-grad); color: #3E2F0C; font-size:.7rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; padding:.4rem 1rem; border-radius: 100px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(168,132,47,0.7); overflow: hidden; }
.pc-badge::after { content:''; position:absolute; inset:0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.7) 50%, transparent 65%); background-size: 220% 100%; animation: goldShimmer 3.4s linear infinite; pointer-events:none; }
.pc-tag { font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color: var(--olivo); font-weight:600; }
.pc-name { font-family: var(--display); font-weight:600; font-size: 1.45rem; margin:.5rem 0 .2rem; color: var(--olivo-deep); }
.pc-line { font-size:.95rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.pc-price { display:flex; align-items:baseline; gap:.4rem; margin-top:.1rem; }
.price-card--hot .pc-price { border-color: var(--line-emerald); }
.pc-price .amt { font-family: var(--display); font-weight:600; font-size: 1.95rem; color: var(--olivo-deep); }
.price-card--hot .pc-price .amt { color: #fff; }
.pc-price .per { font-size:.9rem; color: var(--ink-faint); }
.price-card--hot .pc-price .per { color: var(--on-emerald-soft); }
.pc-feats { list-style:none; padding:0; display:grid; gap:.7rem; margin-bottom: 1.6rem; flex: 1; }
.pc-feat { display:flex; gap:.6rem; font-size:.94rem; color: var(--ink-soft); }
.pc-feat .ck { color: var(--olivo); flex:none; margin-top:.15rem; }
.price-card .btn { width: 100%; justify-content: center; }
.price-card:not(.price-card--hot) .btn { --bg: transparent; --fg: var(--olivo); border:1px solid var(--olivo); box-shadow:none; }
.price-card:not(.price-card--hot) .btn:hover { background: var(--olivo); --fg: #fff; }
.price-card--hot .btn { --bg: #fff; --fg: var(--olivo-deep); }
.price-card--hot .btn:hover { --bg: var(--mint); }
.price-beta { grid-column:1/-1; text-align:center; margin-bottom: 2.2rem; }
/* Línea anual ("1 mes gratis") */
.pc-annual { font-size:.82rem; color:var(--ink-faint); margin:.55rem 0 1.1rem; display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; min-height:1.5rem; }
.pc-annual strong { color:var(--olivo-deep); font-weight:700; }
.pc-annual__tag { background:var(--oro-grad); color:#3E2F0C; font-weight:700; font-size:.7rem; letter-spacing:.01em; padding:.16rem .5rem; border-radius:100px; white-space:nowrap; box-shadow:0 4px 12px -6px rgba(168,132,47,.85); }
.pc-annual__free { color:var(--ink-faint); }
.price-card--hot .pc-annual { color:var(--on-emerald-soft); }
.price-card--hot .pc-annual strong { color:#fff; }
/* Bloque de límites (arriba) */
.pc-limits { list-style:none; padding:1.05rem 0; margin:0 0 1.05rem; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; gap:.5rem; }
.pc-limits li { display:flex; justify-content:space-between; align-items:baseline; gap:.4rem; font-size:.84rem; }
.pc-limits .lim-k { color:var(--ink-faint); }
.pc-limits .lim-v { font-weight:700; color:var(--olivo-deep); font-variant-numeric:tabular-nums; text-align:right; }
.price-card--hot .pc-limits { border-color:var(--line-emerald); }
.price-card--hot .pc-limits .lim-k { color:var(--on-emerald-soft); }
.price-card--hot .pc-limits .lim-v { color:#fff; }
/* Módulos ✓/✗ (abajo) */
.pc-mods { list-style:none; padding:0; margin:0 0 1.4rem; display:grid; gap:.46rem; flex:1; }
.pc-mods li { display:flex; gap:.5rem; align-items:flex-start; font-size:.84rem; color:var(--ink-soft); }
.pc-mods li .ck { flex:none; font-weight:700; color:var(--olivo); margin-top:.02rem; }
.pc-mods li.off { color:var(--ink-faint); opacity:.55; }
.pc-mods li.off .ck { color:var(--ink-faint); }
.price-card--hot .pc-mods li { color:var(--on-emerald-soft); }
.price-card--hot .pc-mods li .ck { color:var(--oro-soft); }
.price-card--hot .pc-mods li.off { opacity:.5; }
.price-card--hot .pc-mods li.off .ck { color:var(--on-emerald-soft); }
/* Tarjeta Gratis */
.price-card--free { background:var(--mint); }
.price-guarantee { grid-column:1/-1; text-align:center; margin-top: 1.8rem; font-size:.92rem; color: var(--ink-soft); display:flex; gap:.5rem; align-items:center; justify-content:center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display:grid; gap: .8rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--olivo); box-shadow: var(--shadow-card); }
.faq-item summary { list-style:none; cursor:pointer; padding: 1.2rem 1.4rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; font-weight:600; font-size: 1.05rem; font-family: var(--display); color: var(--olivo-deep); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item .plus { flex:none; width: 22px; height: 22px; position: relative; transition: transform .35s var(--ease); }
.faq-item .plus::before, .faq-item .plus::after { content:''; position:absolute; background: var(--olivo); border-radius:2px; }
.faq-item .plus::before { top:50%; left:0; width:100%; height:2px; transform: translateY(-50%); }
.faq-item .plus::after { left:50%; top:0; height:100%; width:2px; transform: translateX(-50%); transition: opacity .3s; }
.faq-item[open] .plus { transform: rotate(90deg); }
.faq-item[open] .plus::after { opacity: 0; }
.faq-item .ans { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }

/* ============================================================
   CTA FINAL + FORM
   ============================================================ */
.final { position: relative; overflow: hidden; text-align: center; }
.final__glow { position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(242,245,236,0.05) 78px 79px),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(242,245,236,0.05) 78px 79px);
  mask: radial-gradient(70% 70% at 50% 35%, #000, transparent 75%); }
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); max-width: 18ch; margin-inline:auto; }
.final p { margin: 1.3rem auto 0; max-width: 44ch; color: var(--on-emerald-soft); font-size: 1.1rem; }
.final__cta { margin-top: 2.4rem; display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }
.final__re { margin-top: 1.5rem; font-size:.9rem; color: var(--on-emerald-faint); }

/* ---------- Formulario de acceso (tarjeta clara sobre verde) ---------- */
.access-form { max-width: 720px; margin: 2.6rem auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.access-form::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--oro-grad); }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.af-field { display: flex; flex-direction: column; gap: .45rem; text-align: left; }
.af-field span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olivo); font-weight: 600; }
.af-field input, .af-field select { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; transition: border-color .25s, background .25s; }
.af-field input::placeholder { color: var(--ink-faint); }
.af-field input:focus, .af-field select:focus { outline: none; border-color: var(--olivo); background: #fff; }
.af-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E7049' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.af-field select option { background: #fff; color: var(--ink); }
.af-submit { width: 100%; justify-content: center; margin-top: 1.4rem; }
.access-form .af-note { margin-top: 1rem; text-align: center; font-size: .88rem; color: var(--ink-soft); }
.access-form .af-consent { margin-top: .8rem; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.access-form .af-consent a { color: var(--olivo); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.access-form.sent { text-align: center; }
.access-form .af-thanks { display: none; }
.access-form.sent .af-grid, .access-form.sent .af-submit, .access-form.sent .af-note { display: none; }
.access-form.sent .af-thanks { display: block; }
.af-thanks h3 { font-family: var(--display); font-size: 1.6rem; color: var(--olivo-deep); margin-bottom: .6rem; }
.af-thanks p { color: var(--ink-soft); }
@media (max-width: 560px) { .af-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--emerald-deep); color: var(--on-emerald-soft); padding-block: 3.5rem 2.5rem; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--oro-grad); opacity: .9; }
.footer__top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem; align-items: flex-start; }
.footer__brand { display:flex; flex-direction:column; gap:.9rem; max-width: 30ch; }
.footer__brand .row { display:flex; align-items:center; gap:.6rem; }
.footer__brand .mark { width: 36px; height: 36px; }
.footer__brand .word { font-family: var(--display); font-weight:600; letter-spacing:.12em; color: #fff; }
.footer__brand p { font-size:.92rem; color: var(--on-emerald-soft); }
.footer__links { display:flex; gap: clamp(2rem,6vw,4rem); flex-wrap:wrap; }
/* h3 (antes h4, cambiado por jerarquía de encabezados a11y) — font-weight y line-height explícitos para conservar el render exacto del h4 */
.footer__col h3 { font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color: var(--sage-soft); margin-bottom: 1rem; font-family: var(--sans); font-weight: 700; line-height: 1.6; }
.footer__col a, .footer__col span { display:block; font-size:.92rem; margin-bottom:.6rem; color: var(--on-emerald-soft); transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-emerald); display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; font-size:.84rem; color: var(--on-emerald-faint); }

/* ============================================================
   MOCKUPS de producto (embebidos, hechos a la medida)
   ============================================================ */
/* layout 2-col para "Cómo funciona" */
.como-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.como-grid .steps { grid-template-columns: 1fr; gap: 1rem; }
.como-grid .step { padding: 1.4rem 1.5rem; }
.como-grid .step__line { display: none; }

/* Teléfono · página de reserva */
.mk-phone { width: 100%; max-width: 340px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 36px; padding: 14px; box-shadow: var(--shadow-soft); position: relative; }
.mk-scr { background: var(--cream); border-radius: 26px; overflow: hidden; }
.mk-top { background: var(--paper); padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.mk-biz { display: flex; align-items: center; gap: 9px; }
.mk-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--olivo); display: flex; align-items: center; justify-content: center; }
.mk-dot i { display: block; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 4px; }
.mk-biz b { font-family: var(--display); font-weight: 600; color: var(--olivo-deep); font-size: 15px; letter-spacing: .04em; }
.mk-biz span { display: block; font-size: 11px; color: var(--ink-faint); }
.mk-body { padding: 16px 18px 20px; }
.mk-step { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--olivo); font-weight: 600; }
.mk-h { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 18px; margin: 7px 0 14px; }
.mk-svc { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; margin-bottom: 9px; }
.mk-svc.sel { border-color: var(--olivo); background: var(--mint); box-shadow: 0 0 0 3px rgba(94,112,73,.12); }
.mk-svc .nm { font-weight: 600; font-size: 13.5px; color: var(--olivo-deep); }
.mk-svc .mt { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }
.mk-svc .pr { font-weight: 600; font-size: 13px; color: var(--olivo); }
.mk-ck { width: 20px; height: 20px; border-radius: 50%; background: var(--olivo); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.mk-slots { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mk-slot { font-size: 12.5px; font-weight: 600; color: var(--olivo-deep); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: var(--paper); }
.mk-slot.on { background: var(--olivo); color: #fff; border-color: var(--olivo); }
.mk-cta { margin-top: 16px; background: var(--olivo); color: #fff; text-align: center; font-weight: 600; font-size: 14px; padding: 13px; border-radius: 100px; }

/* Cursor que "reserva sola": se mueve y da clic en servicio → hora → confirmar */
.mk-cursor { position: absolute; z-index: 6; width: 24px; height: 24px; top: 90%; left: 78%; pointer-events: none; filter: drop-shadow(0 2px 5px rgba(43,56,38,.35)); animation: mkCursorMove 7.5s var(--ease) infinite; }
.mk-cursor svg { width: 100%; height: 100%; display: block; }
.mk-cursor::before { content: ''; position: absolute; top: 4px; left: 4px; width: 9px; height: 9px; border-radius: 50%; background: rgba(94,112,73,.4); transform: scale(0); animation: mkRipple 7.5s var(--ease) infinite; }
@keyframes mkCursorMove {
  0%   { top: 90%; left: 80%; opacity: 0; transform: scale(1); }
  6%   { opacity: 1; }
  20%  { top: 50%; left: 58%; transform: scale(1); }
  23%  { transform: scale(.8); }
  26%  { transform: scale(1); }
  42%  { top: 70%; left: 40%; transform: scale(1); }
  45%  { transform: scale(.8); }
  48%  { transform: scale(1); }
  64%  { top: 86%; left: 50%; transform: scale(1); }
  68%  { transform: scale(.8); }
  72%  { transform: scale(1); }
  86%  { top: 86%; left: 50%; opacity: 1; }
  100% { top: 90%; left: 80%; opacity: 0; }
}
@keyframes mkRipple {
  0%, 20%  { transform: scale(0); opacity: .55; }
  25%      { transform: scale(3.6); opacity: 0; }
  26%, 42% { transform: scale(0); opacity: .55; }
  47%      { transform: scale(3.6); opacity: 0; }
  48%, 64% { transform: scale(0); opacity: .55; }
  69%      { transform: scale(3.6); opacity: 0; }
  70%, 100%{ transform: scale(0); opacity: 0; }
}
/* las "fichas" reaccionan al clic */
.como-grid .mk-svc.sel { animation: mkTapA 7.5s var(--ease) infinite; }
@keyframes mkTapA { 0%,19%,28%,100% { transform: scale(1); } 23% { transform: scale(1.04); } }
.como-grid .mk-slot.on { animation: mkTapB 7.5s var(--ease) infinite; }
@keyframes mkTapB { 0%,41%,50%,100% { transform: scale(1); } 45% { transform: scale(1.12); } }
.como-grid .mk-cta { animation: mkTapC 7.5s var(--ease) infinite; }
@keyframes mkTapC { 0%,63%,74%,100% { transform: scale(1); } 68% { transform: scale(.95); } 71% { transform: scale(1.02); } }

/* WhatsApp · recordatorio (dentro del bento) */
.mk-wa { background: #E9EDE3; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 1.2rem; max-width: 430px; }
.mk-wa-top { background: var(--emerald); color: #fff; padding: 11px 14px; display: flex; align-items: center; gap: 10px; }
.mk-wa-av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 12px; color: #fff; }
.mk-wa-top b { font-size: 13px; font-weight: 600; }
.mk-wa-top span { display: block; font-size: 10.5px; color: var(--sage-soft); }
.mk-wa-body { padding: 13px 13px 15px; display: flex; flex-direction: column; gap: 9px; }
.mk-bub { background: var(--paper); border-radius: 13px; border-top-left-radius: 4px; padding: 11px 13px; font-size: 12.8px; line-height: 1.5; color: var(--ink); }
.mk-bub b { color: var(--olivo-deep); }
.mk-bub .tm { display: block; text-align: right; font-size: 10px; color: var(--ink-faint); margin-top: 4px; }
.mk-wa-act { display: flex; gap: 8px; }
.mk-wa-bn { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; padding: 10px; border-radius: 10px; background: var(--paper); color: var(--olivo); }
.mk-wa-bn.go { background: var(--olivo); color: #fff; }

/* "Tu día" · resumen (Para quién) */
.mk-day-wrap { display: flex; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.mk-day { width: 100%; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); }
.mk-day-h { display: flex; align-items: center; justify-content: space-between; }
.mk-day-h b { font-family: var(--display); font-weight: 600; color: var(--olivo-deep); font-size: 18px; }
.mk-day-h .pill { font-size: 11px; font-weight: 600; color: var(--olivo); background: var(--mint); padding: 5px 10px; border-radius: 100px; }
.mk-day-sub { font-size: 12.5px; color: var(--ink-faint); margin: 4px 0 14px; }
.mk-appt { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
.mk-appt .t { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; color: var(--olivo-deep); width: 46px; }
.mk-appt .who b { display: block; font-size: 13.5px; color: var(--ink); }
.mk-appt .who span { font-size: 11.5px; color: var(--ink-faint); }
.mk-appt .st { margin-left: auto; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 100px; }
.mk-appt .st.ok { background: linear-gradient(135deg, rgba(236,213,140,.5), rgba(200,164,81,.32)); color: #6e571a; }
.mk-appt .st.wait { background: #F1ECE0; color: #937A3E; }

@media (max-width: 880px) {
  .como-grid { grid-template-columns: 1fr; }
  .mk-phone { max-width: 300px; }
}

/* ---------- Ilustraciones ---------- */
.illus { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-card); }
.illus svg { display: block; width: 100%; height: auto; border-radius: 13px; background: var(--cream); }
.pain__top { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; margin-bottom: 1.6rem; }
.pain__art svg { display: block; width: 100%; height: auto; }
.pain__top .pain__head { grid-column: auto; }
.tf-intro { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tf-intro .section-head { margin-bottom: 0; }
.proof-art { max-width: 232px; margin: 0 auto 1.8rem; }
@media (max-width: 880px) {
  .pain__top, .tf-intro { grid-template-columns: 1fr; }
  .pain__top .illus, .tf-intro .illus, .pain__top .pain__art { max-width: 400px; margin: 0 auto; }
  .tf-intro .illus { order: -1; }
}

/* ============================================================
   AGENDA QUE SE LLENA (scroll-driven)
   ============================================================ */
.agenda-head { max-width: 50ch; }
.fill-counter { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 1.3rem; }
.fill-counter .fc-num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; background: var(--oro-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums; min-width: 1.4ch; line-height: 1; transition: transform .25s var(--ease); }
.fill-counter.bump .fc-num { transform: scale(1.14); }
.fill-counter .fc-lbl { font-size: .98rem; color: var(--ink-soft); }
.fill-cal { display: grid; grid-template-columns: 52px repeat(6, 1fr); gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.fc-day { text-align: center; font-size: 12px; font-weight: 600; color: var(--olivo-deep); padding-bottom: 4px; letter-spacing: .04em; }
.fc-time { font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.fc-cell { min-height: 50px; border-radius: 9px; background: var(--cream); }
.fc-pill { height: 100%; min-height: 50px; border-radius: 9px; padding: 7px 9px; background: var(--mint); border: 1px solid var(--sage-soft); display: flex; flex-direction: column; justify-content: center; gap: 2px; opacity: 0; transform: scale(.82) translateY(7px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fc-pill.ok { background: var(--mint-2); border-color: var(--sage); }
.fc-pill.on { opacity: 1; transform: none; }
.fc-pill .pt { font-size: 10.5px; font-weight: 600; color: var(--olivo-deep); font-variant-numeric: tabular-nums; }
.fc-pill .pn { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fill-foot { margin-top: 1.7rem; font-size: 1.05rem; color: var(--ink-soft); text-align: center; }
.fill-foot strong { color: var(--olivo-deep); }
@media (max-width: 640px) {
  .fill-cal { grid-template-columns: 30px repeat(6, 1fr); gap: 4px; padding: 10px; }
  .fc-pill { padding: 5px 3px; min-height: 42px; align-items: center; text-align: center; }
  .fc-pill .pn { display: none; }
  .fc-pill .pt { font-size: 9.5px; }
  .fc-cell { min-height: 42px; }
  .fc-day { font-size: 10px; }
  .fc-time { font-size: 8.5px; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .nav__center { display: none; }
  .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feat--wide, .feat--reg, .feat--tall { grid-column: span 2; }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .price-card--hot { transform: none; }
  .price-card--hot:hover { transform: translateY(-6px); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .feat--wide, .feat--reg, .feat--tall { grid-column: span 1; }
  .pricing { grid-template-columns: 1fr; }
  .tf-row { grid-template-columns: 1fr; text-align: left; gap:.4rem; }
  .tf-row .antes { text-align: left; }
  .tf-arrow { display: none; }
  .tf-head { display: none; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  /* Fix: en móvil el contenido del hero llegaba hasta el borde inferior y la
     línea de social proof se encimaba con el "Scroll" (position:absolute).
     El padding inferior reserva el espacio del scroll-hint. */
  .hero { padding-bottom: 7rem; }
}

/* ============================================================
   Dorado: destello + brillos
   ============================================================ */
@keyframes goldShimmer { 0% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
@keyframes goldTwinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* destellos dorados flotando en el hero */
.hero__sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spark { position: absolute; width: 14px; height: 14px; background: var(--oro-grad); animation: goldTwinkle 3.6s var(--ease) infinite;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%); }
.spark.s1 { top: 20%; left: 46%; width: 21px; height: 21px; animation-delay: .2s; }
.spark.s2 { top: 62%; left: 30%; width: 14px; height: 14px; animation-delay: 1.4s; }
.spark.s3 { top: 34%; right: 16%; width: 16px; height: 16px; animation-delay: 2.3s; }
.spark.s4 { top: 78%; right: 30%; width: 12px; height: 12px; animation-delay: .9s; }
.spark.s5 { top: 14%; right: 34%; width: 15px; height: 15px; animation-delay: 1.9s; }
.spark.s6 { top: 50%; right: 8%;  width: 18px; height: 18px; animation-delay: .6s; }
.spark.s7 { top: 86%; left: 52%;  width: 13px; height: 13px; animation-delay: 2.7s; }
.spark.s8 { top: 40%; left: 8%;   width: 15px; height: 15px; animation-delay: 1.1s; }

/* destellos en TODAS las secciones (se inyectan por JS, menos el hero) */
.section > .wrap { position: relative; z-index: 1; }
.sec-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sec-sparks .spark:nth-child(1) { top: 15%; left: 5%;   width: 15px; height: 15px; animation-delay: .4s; }
.sec-sparks .spark:nth-child(2) { top: 66%; right: 6%;  width: 13px; height: 13px; animation-delay: 1.7s; }
.sec-sparks .spark:nth-child(3) { bottom: 13%; left: 24%; width: 11px; height: 11px; animation-delay: 2.8s; }
.section--emerald .sec-sparks .spark { filter: brightness(1.15); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .fc-pill { opacity: 1 !important; transform: none !important; }
  .mk-cursor { display: none; }
  .spark { opacity: .55; }
  .scroll-hint .rail::after, .hero__eyebrow .dot { animation: none; }
}
