/* ==========================================================================
   2trAIn · Landing (ES y EN comparten este archivo)
   Siempre en claro: la página declara `color-scheme: only light` para que ni
   el sistema ni el oscurecimiento automático de Chrome/Samsung la inviertan.
   Paleta y escala documentadas en DESIGN.md.
   ========================================================================== */

@font-face {
  font-family: 'TT Firs Neue';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/tt-firs-neue/tt-firs-neue-latin-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'TT Firs Neue';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/tt-firs-neue/tt-firs-neue-latin-italic.woff2') format('woff2');
}

:root {
  color-scheme: only light;

  /* Superficies: blanco de página, gris de banda y de tarjeta. Una tarjeta es
     siempre un tono distinto a su fondo, nunca un borde. */
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --surface: #F5F5F7;      /* tarjeta sobre blanco */
  --surface-2: #FFFFFF;    /* tarjeta sobre gris */
  --control: #E8E8ED;      /* fondo de controles segmentados y botones grises */

  /* Texto. --muted da 5,1:1 sobre blanco y 4,7:1 sobre gris: vale para texto pequeño. */
  --fg: #1D1D1F;
  --fg-2: #424245;
  --muted: #6E6E73;

  --line: #D2D2D7;
  --line-soft: rgba(0, 0, 0, 0.08);

  /* Un solo azul. El de relleno lleva texto blanco (4,8:1); para texto azul
     sobre claro se usa --accent-text (5,6:1 sobre blanco, 5,1:1 sobre gris). */
  --accent: #2A6FDB;
  --accent-hover: #1F5FC8;
  --accent-text: #2563D0;
  --accent-soft: rgba(42, 111, 219, 0.09);

  /* Semáforo: solo estados, nunca decoración. */
  --ok: #15803D;
  --ok-text: #166534;   /* verde sobre su propio velo: 6,4:1 */
  --warn: #A16207;
  --danger: #D70015;

  --glass: rgba(255, 255, 255, 0.72);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.22);
  --shadow-float: 0 50px 90px -40px rgba(0, 0, 0, 0.45), 0 24px 48px -28px rgba(0, 0, 0, 0.3);

  --r-tile: 28px;
  --r-card: 18px;
  --r-pill: 980px;

  --font: 'TT Firs Neue', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);

  --page-max: 1180px;
  --gut: 22px;
  --nav-h: 56px;
  --head-gap: clamp(24px, 2.6vw, 36px); /* del título de una sección a su contenido */
}
@media (min-width: 768px) { :root { --gut: 40px; } }

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font); }
body { font-size: 17px; line-height: 1.47; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
::selection { background: rgba(42, 111, 219, 0.2); color: var(--fg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; }
.hidden { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.max-w-page { max-width: var(--page-max); margin-left: auto; margin-right: auto; }
.pad-x { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* El aire entre secciones lo pone el hilo (.bridge), así que la sección es más corta. */
.sec { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.sec--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.band { background: var(--bg-2); }

/* ── Tipografía ───────────────────────────────────────────────────────────
   Frase normal y peso 600: el tamaño impone, no el grosor. El tracking
   negativo solo vive en display y se relaja al bajar de tamaño. */
.t-hero, .t-h2, .t-h3 { font-weight: 600; text-wrap: balance; margin: 0; }
.t-hero { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.03; letter-spacing: -0.034em; }
.t-h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.028em; }
.t-h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.16; letter-spacing: -0.018em; }
.t-lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.47; letter-spacing: -0.01em; color: var(--muted); max-width: 36em; text-wrap: pretty; margin: 0; }
.t-lead b, .t-lead strong { color: var(--fg); font-weight: 600; }
.eyebrow { display: block; font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; letter-spacing: -0.01em; color: var(--accent-text); margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }
.stat-num { font-variant-numeric: tabular-nums; }

.sec-head { display: grid; gap: 12px; max-width: 780px; margin-bottom: var(--head-gap); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ── Botones ──────────────────────────────────────────────────────────────
   Un solo botón primario y siempre con el mismo texto («Reservar plaza»).
   Lo secundario es un enlace azul terminado en «›». */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; padding: 15px 28px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: 14px; padding: 9px 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--control); color: var(--fg); }
.btn--ghost:hover { background: #DCDCE1; }
.btn[disabled] { cursor: default; }
.link { color: var(--accent-text); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.link::after { content: '\00a0\203A'; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Punto vivo (beta abierta) */
/* Inline (no flex): si la línea parte, el punto se queda pegado a la primera palabra. */
.live-dot { position: relative; display: inline-block; vertical-align: 0.12em; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
/* Fuera de pantalla, las animaciones en bucle se pausan (app.js pone .anim-off). */
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(42, 111, 219, 0.45); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0); opacity: .6; } 70% { transform: scale(3.2); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

/* ── Navegación ───────────────────────────────────────────────────────────
   Arranca como una píldora de cristal con el hexágono y se despliega en una
   barra translúcida al primer scroll. Todo el movimiento es transform/opacity. */
:root { --nav-pill-w: 148px; --nav-pill-pad: 14px; --nav-pad-x: var(--gut); }
@media (min-width: 1024px) { :root { --nav-pill-w: 64px; } }
:root { --nav-shift: calc(min(var(--page-max), 100vw) / 2 - var(--nav-pill-w) / 2 + var(--nav-pill-pad) - var(--nav-pad-x)); }

#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); transition: background-color .4s ease, border-color .4s ease; }
#nav.nav-compact { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
#nav.nav-open { background: #fff; }
#nav-inner { position: relative; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
#nav-inner > * { position: relative; z-index: 1; }
#nav-inner::before {
  content: ''; position: absolute; z-index: 0; top: 6px; left: 50%;
  width: var(--nav-pill-w); height: 44px; margin-left: calc(var(--nav-pill-w) / -2);
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px var(--line-soft), 0 10px 30px -14px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: scale(.92); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.4, 0, .2, 1);
}
#nav-inner > a, #nav-toggle { transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
#nav-links, #nav .nav-lang, #nav-cta { transition: opacity .3s ease .15s; }
#nav.nav-compact #nav-inner::before { opacity: 1; transform: none; }
#nav.nav-compact #nav-inner > a { transform: translateX(var(--nav-shift)); }
#nav.nav-compact #nav-toggle { transform: translateX(calc(-1 * var(--nav-shift))); }
#nav.nav-compact #nav-links, #nav.nav-compact .nav-lang, #nav.nav-compact #nav-cta { opacity: 0; pointer-events: none; }
.nav-hex { display: none; width: 26px; height: 26px; }
.nav-word { display: block; height: 16px; width: auto; }
#nav.nav-compact .nav-hex { display: block; }
#nav.nav-compact .nav-word { display: none; }
#nav.no-nav-anim, #nav.no-nav-anim *, #nav.no-nav-anim #nav-inner::before { transition: none !important; }

#nav-links { display: none; align-items: center; gap: 28px; font-size: 14px; color: var(--fg-2); }
#nav-links a:hover { color: var(--fg); }
#nav-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-lang { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; border-radius: var(--r-pill); color: var(--fg-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s; }
.nav-lang:hover { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
#nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-bar { display: block; width: 18px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
#nav.nav-open .nav-bar-1 { transform: translateY(6.5px) rotate(45deg); }
#nav.nav-open .nav-bar-2 { opacity: 0; transform: scaleX(0); }
#nav.nav-open .nav-bar-3 { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 1024px) {
  #nav-links { display: flex; }
  #nav-cta { display: inline-flex; }
  #nav-toggle { display: none; }
}

#mobile-menu { position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; z-index: 49; overflow-y: auto; background: #fff; padding: 8px 0 max(24px, env(safe-area-inset-bottom, 0px)); transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear .3s; }
#mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s; }
.mobile-nav-link { display: flex; align-items: center; min-height: 56px; margin: 0 var(--gut); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); border-bottom: 1px solid var(--line-soft); }
.mobile-nav-link:hover, .mobile-nav-link:focus-visible { color: var(--accent-text); outline: none; }
.mobile-nav-link--small { font-size: 16px; font-weight: 500; color: var(--muted); }
.mobile-menu-cta { padding: 24px var(--gut) 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────
   Texto quieto (es el LCP) y el móvil entero, visible desde que carga. En
   escritorio va a la derecha y se dimensiona para caber en la primera
   pantalla aunque el portátil sea bajo: el alto del móvil es el ancho de
   pantalla × 19,5/9 más el marco, así que el ancho sale del alto libre. */
.hero { position: relative; overflow-x: clip; overflow-y: visible; text-align: center; padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(36px, 5vw, 56px)); padding-bottom: clamp(64px, 8vw, 96px); background: var(--bg); }
.hero__grid { display: grid; justify-items: center; gap: clamp(48px, 7vw, 64px); }
.hero__copy { display: grid; justify-items: center; width: 100%; }
.hero__title { margin: 18px 0 0; max-width: 11ch; }
.hero__sub { margin: 22px 0 0; max-width: 32em; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.47; color: var(--muted); text-wrap: pretty; }
.hero__cta { margin-top: 34px; display: grid; justify-items: center; gap: 16px; width: 100%; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero__meta .link { font-size: 15px; }
.hero__device { display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .hero { text-align: left; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; justify-items: stretch; gap: 48px; }
  .hero__copy { justify-items: start; }
  .hero__title { max-width: 14ch; font-size: clamp(56px, 6vw, 84px); }
  .hero__cta { justify-items: start; }
  .hero .hero-form { margin: 0; }
  .hero__meta { justify-content: flex-start; }
  .hero .phone { width: clamp(240px, calc((100svh - 190px) * 0.4615 + 20px), 300px); }
}

/* Formulario en píldora (hero, demo) */
.hero-form { display: flex; align-items: center; gap: 6px; width: min(460px, 100%); margin: 0 auto; padding: 6px; background: var(--surface); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s ease, background-color .2s ease; }
.hero-form:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(42, 111, 219, 0.14); }
.hero-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px 0 20px; background: transparent; border: 0; outline: 0; color: var(--fg); font-family: inherit; font-size: 17px; letter-spacing: -0.01em; text-overflow: ellipsis; }
.hero-form input::placeholder { color: var(--muted); }
.hero-form button { flex-shrink: 0; height: 46px; padding: 0 22px; font-size: 16px; }
.hero-form button svg { display: none; }
@media (max-width: 480px) {
  .hero-form button { width: 46px; padding: 0; border-radius: 50%; }
  .hero-form .btn-label { display: none; }
  .hero-form button svg { display: block; width: 17px; height: 17px; }
}

/* ── Móvil (marco de dispositivo) ─────────────────────────────────────── */
.phone { position: relative; width: 300px; padding: 10px; border-radius: 56px; background: #111113; box-shadow: inset 0 0 0 1.5px #3A3A3C, 0 0 0 1px rgba(0, 0, 0, 0.06), var(--shadow-float); will-change: transform; }
.phone-screen { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 46px; overflow: hidden; background: #000; transform: translateZ(0); }
.phone-screen--light { background: #fff; }
.phone-screen--light::before { content: ''; position: absolute; z-index: 3; top: 11px; left: 50%; width: 31%; height: 27px; margin-left: -15.5%; border-radius: 20px; background: #000; }
@media (max-width: 767px) { .phone { width: 262px; padding: 9px; border-radius: 50px; } .phone-screen { border-radius: 41px; } }

/* Interfaz de la app dentro del móvil (HTML, no imagen: nítida y ligera) */
.app-ui { --px: 15px; --pb: 16px; position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 52px var(--px) var(--pb); text-align: left; font-size: 12px; line-height: 1.35; letter-spacing: -0.005em; color: var(--fg); }
.app-ui__status { position: absolute; top: 15px; left: 30px; right: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.app-ui__status svg { display: block; }
.app-ui__head { display: flex; align-items: center; gap: 10px; }
.app-ui__ava { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.app-ui__ava img { width: 20px; height: 20px; }
.app-ui__kicker { font-size: 11px; font-weight: 600; color: var(--muted); }
.app-ui__title { font-size: 19px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.15; }
.app-ui__large { display: grid; gap: 1px; }
.app-ui__h { font-size: 24px; font-weight: 700; letter-spacing: -0.032em; line-height: 1.1; }
.app-ui__why { background: var(--accent-soft); border-radius: 16px; padding: 10px 12px 11px; display: grid; gap: 3px; }
.app-ui__why b { font-size: 11px; font-weight: 700; color: var(--accent-text); }
.app-ui__why span { color: var(--fg-2); }
.app-ui__list { display: grid; gap: 7px; }
.app-ui__cta { margin-top: auto; flex-shrink: 0; display: block; padding: 11px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.app-ex { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 6px 10px 6px 6px; }
.app-ex img { width: 58px; height: 38px; flex-shrink: 0; object-fit: cover; border-radius: 9px; background: #fff; filter: brightness(1.025); }
.app-ex b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }
.app-ex span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.tabbar { flex-shrink: 0; margin: auto calc(-1 * var(--px)) calc(-1 * var(--pb)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px 16px; border-top: 1px solid var(--line-soft); background: rgba(250, 250, 252, 0.94); }
.tabbar span { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tabbar span.is-on { color: var(--accent-text); }
.tabbar svg { width: 20px; height: 20px; }
/* Móvil pequeño: las esquinas redondeadas de la pantalla no muerden las etiquetas */
@container (max-width: 262px) { .tabbar { padding: 7px 14px 20px; } .tabbar span { font-size: 10px; } .tabbar svg { width: 18px; height: 18px; } }
@media (max-width: 767px) { .app-ui { --px: 13px; --pb: 14px; padding-top: 48px; gap: 10px; } .app-ui__title { font-size: 17px; } .app-ex img, .app-ex .app-ex__day { width: 50px; height: 34px; } }
/* En pantallas estrechas (portátiles bajos, móviles) el texto parte en más
   líneas: se enseñan tres ejercicios para que el botón quepa entero. */
.phone-screen { container-type: inline-size; }
.app-ui__list { min-height: 0; overflow: hidden; }
@container (max-width: 262px) { .app-ui__list .app-ex:nth-child(n+4) { display: none; } }

/* Pantallas del móvil de «Por qué». Se cruzan al cambiar de paso; la visible
   reproduce su animación en bucle (GSAP, en app.js). Sin JS o con movimiento
   reducido se ven en su estado final. */
.scr { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.phone[data-screen="0"] .scr-0, .phone[data-screen="1"] .scr-1, .phone[data-screen="2"] .scr-2 { opacity: 1; transform: none; }
.decision { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); }
.ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring__bg { stroke: var(--control); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 5; }
.ring__n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.ring__n b { font-size: 21px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.decision__txt { display: grid; gap: 2px; min-width: 0; }
.decision__k { font-size: 11px; font-weight: 600; color: var(--muted); }
.decision__txt b { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.decision__txt span:last-child { color: var(--fg-2); }
.chgs { display: grid; gap: 6px; }
.chg { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); }
.chg span { color: var(--fg-2); }
.chg b { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.chg s { color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; }
.chg em { font-style: normal; color: var(--accent-text); }
.resp { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); }
.resp__k { font-size: 11px; font-weight: 700; color: var(--accent-text); }
.resp__n { font-size: 36px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.resp__n small { margin-left: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.resp__vs { color: var(--muted); }
.chart { position: relative; padding: 14px 10px 10px; border-radius: 18px; background: var(--surface); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: #E5E5EA; stroke-width: 1; }
.chart__area { fill: rgba(42, 111, 219, 0.12); }
.chart__avg { stroke: #AEAEB2; stroke-width: 2.5; stroke-dasharray: 5 6; stroke-linecap: round; }
.chart__you { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart__pulse { fill: rgba(42, 111, 219, 0.35); transform-box: fill-box; transform-origin: center; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(3); opacity: 0; } }
.chart__l { position: absolute; right: 12px; font-size: 11px; font-weight: 700; }
.chart__l--you { top: 4px; color: var(--accent-text); }
.chart__l--avg { top: 50%; color: var(--muted); }
.pill-ok { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(21, 128, 61, 0.1); color: var(--ok-text); font-size: 12px; font-weight: 600; }
.pill-ok svg { width: 13px; height: 13px; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; }
.qr span { padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--fg-2); transition: background-color .3s, color .3s; }
.qr span.is-on { background: var(--accent); color: #fff; }
.swaps { position: relative; height: 152px; }
.swap { position: absolute; inset: 0; display: grid; align-content: start; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.swap.is-on { opacity: 1; transform: none; }
.swap__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; background: var(--surface); }
.swap__row img { grid-row: span 2; width: 48px; height: 36px; object-fit: cover; border-radius: 9px; background: #fff; filter: brightness(1.025); }
.swap__row span { align-self: end; font-size: 11px; font-weight: 600; color: var(--muted); }
.swap__row b { align-self: start; font-size: 13px; font-weight: 600; line-height: 1.25; }
.swap__row:first-child b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.swap__row--to { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.swap__row--to b { color: var(--accent-text); }
.swap__arrow { justify-self: center; color: var(--accent); }
.swap__arrow svg { display: block; width: 18px; height: 18px; }
.next { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); }
.next__ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.next__ico svg { width: 20px; height: 20px; }
.next div { display: grid; gap: 1px; min-width: 0; }
.next__k { font-size: 11px; font-weight: 600; color: var(--muted); }
.next b { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.next em { font-style: normal; color: var(--fg-2); }
.saved { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); }
.saved__k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); }
.saved__k svg { width: 13px; height: 13px; }
.saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.saved li { padding: 8px 10px; border-radius: 10px; background: #fff; font-weight: 600; color: var(--fg-2); }

/* ── Hilo entre secciones: una línea que se dibuja al bajar y una frase que
   enlaza con lo siguiente, para que la página se lea de un tirón. */
.bridge { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gut); }
.bridge__line { width: 2px; height: clamp(56px, 8vw, 96px); border-radius: 2px; background: var(--accent); transform-origin: top; opacity: .55; }
.bridge__dot { width: 10px; height: 10px; margin-top: -1px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.bridge__t { margin: 22px 0 0; max-width: 22em; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--muted); text-wrap: balance; }
.bridge__t b { font-weight: 600; color: var(--fg); }

/* ── Foto ancha: una pausa de borde a borde, sin texto encima ── */
.band { height: clamp(280px, 44vw, 640px); margin-top: clamp(24px, 4vw, 48px); overflow: hidden; background: var(--surface); }
.band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 56%; transform-origin: 72% 60%; }

/* ── Objetivos: un selector claro y un panel grande con el plan y su gráfica ── */
#objetivos { scroll-margin-top: 72px; }
.goals { display: grid; justify-items: center; gap: 20px; }
.goals__tabs { --i: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(560px, 100%); padding: 4px; border-radius: var(--r-pill); background: var(--control); }
.goals__tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: var(--r-pill); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.2); transform: translateX(calc(var(--i) * 100%)); transition: transform .4s var(--ease); }
.goals__tabs .goal-opt { position: relative; z-index: 1; padding: 11px 6px; border: 0; border-radius: var(--r-pill); background: none; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #515154; cursor: pointer; transition: color .25s; }
.goals__tabs .goal-opt[aria-selected="true"] { color: var(--fg); }
.goals__panel { --pp: clamp(26px, 3vw, 40px); --pr: 32px; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo copy" "photo viz"; gap: 22px clamp(28px, 4vw, 52px); padding: var(--pp); border-radius: var(--pr); background: var(--surface); }
/* La foto de cada meta ocupa la mitad izquierda del panel, de borde a borde */
.goals__photo { grid-area: photo; position: relative; min-height: 340px; margin: calc(var(--pp) * -1) 0 calc(var(--pp) * -1) calc(var(--pp) * -1); border-radius: var(--pr) 0 0 var(--pr); overflow: hidden; background: var(--control); }
.goals__copy { grid-area: copy; align-self: end; }
@media (min-width: 861px) { .goals__panel { min-height: 460px; } }
.goals__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.goals__photo img[hidden] { display: none; }
.js .goals__panel:not(.is-in) .goals__photo img { opacity: 0; transform: scale(1.05); }
.goals__k { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.goals__t { margin: 10px 0 0; font-size: clamp(22px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.024em; line-height: 1.2; color: var(--fg); text-wrap: pretty; }
.goals__t strong { font-weight: 600; color: var(--accent-text); }
.goals__viz { grid-area: viz; align-self: start; display: grid; align-content: end; height: 200px; padding: 20px 24px; border-radius: 22px; background: #fff; }
.viz { display: grid; gap: 14px; }
.viz[hidden] { display: none; }
.viz__cap { font-size: 14px; color: var(--muted); }
/* Fuerza: carga por semana, con la descarga en tono claro */
.viz__bars { height: 120px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); }
.viz__bars i { flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: var(--accent); transform-origin: bottom; transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.viz__bars i.is-deload { background: #B7CFF3; }
/* Cardio: tiempo por zona, la base en Zona 2 */
.viz__zones { display: grid; gap: 10px; }
.viz__zones span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; }
.viz__zones b { font-size: 13px; font-weight: 600; color: var(--muted); }
.viz__zones i { display: block; width: var(--w); min-width: 8px; height: 18px; border-radius: 99px; background: var(--control); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.viz__zones .is-key b { color: var(--accent-text); }
.viz__zones .is-key i { background: var(--accent); }
/* Prueba: fases hasta la fecha */
.viz__plan { position: relative; display: grid; gap: 10px; padding-top: 38px; }
.viz__track { display: flex; gap: 5px; height: 18px; }
.viz__track i { display: block; width: var(--w); border-radius: 99px; background: var(--accent); transform-origin: left; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 250ms); }
.viz__track i:nth-child(1) { background: #B7CFF3; }
.viz__track i:nth-child(2) { background: #6E9DE6; }
.viz__phases { display: flex; gap: 5px; }
.viz__phases b { width: var(--w); font-size: 13px; font-weight: 600; color: var(--fg-2); }
@media (max-width: 420px) { .viz__phases b { font-size: 11.5px; letter-spacing: -0.01em; } .viz__phases b:last-child { text-align: right; } }
.viz__now { position: absolute; top: 0; left: 26%; transform: translateX(-50%); padding: 4px 10px; border-radius: var(--r-pill); background: var(--fg); color: #fff; font-size: 12px; font-weight: 600; transition: opacity .4s var(--ease) .9s; }
.viz__now::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 12px; margin-left: -.75px; background: var(--fg); }
.viz__flag { position: absolute; top: 4px; right: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.viz__flag svg { width: 16px; height: 16px; }
/* Mantener: constancia semana a semana */
.viz__dots { display: grid; gap: 9px; width: max-content; }
.viz__dots span { display: grid; grid-template-columns: repeat(7, 20px); gap: 8px; }
.dots__h b { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.viz__dots i { width: 20px; height: 20px; border-radius: 50%; background: var(--control); transition: transform .4s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.viz__dots i.on { background: var(--accent); }
/* Antes de entrar en pantalla, y al cambiar de objetivo, la gráfica se redibuja */
.js .goals__panel:not(.is-in) .viz__bars i { transform: scaleY(0); }
.js .goals__panel:not(.is-in) .viz__zones i, .js .goals__panel:not(.is-in) .viz__track i { transform: scaleX(0); }
.js .goals__panel:not(.is-in) .viz__dots i.on { transform: scale(0); }
.js .goals__panel:not(.is-in) .viz__now { opacity: 0; }
.goals__panel.is-reset * { transition: none !important; }
@media (max-width: 860px) {
  .goals__panel { --pr: 26px; grid-template-columns: 1fr; grid-template-areas: "photo" "copy" "viz"; }
  .goals__photo { min-height: 0; aspect-ratio: 16 / 10; margin: calc(var(--pp) * -1) calc(var(--pp) * -1) 0; border-radius: var(--pr) var(--pr) 0 0; }
  .goals__copy { align-self: start; }
  .goals__viz { height: auto; padding: 22px; }
  .viz__bars { gap: 7px; }
  .viz__dots span { grid-template-columns: repeat(7, 20px); gap: 8px; }
  .viz__dots i { width: 20px; height: 20px; }
}
@media (max-width: 420px) { .goals__tabs .goal-opt { font-size: 14px; padding: 10px 4px; } .goals__t { font-size: 22px; } }
@media (max-width: 374px) { .goals__tabs .goal-opt { font-size: 13px; padding: 10px 2px; letter-spacing: -0.02em; } }

/* ── Por qué: móvil fijo con pantallas de la app (escritorio) · galería (móvil) ── */
.reels__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.reels__phone-col { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; }
.reels__phone { width: clamp(250px, calc((100svh - 120px) * 0.4615 + 20px), 300px); }
.reels__steps { display: flex; flex-direction: column; }
.reels__step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 480px; }
.reels__step .t-lead { font-size: clamp(17px, 1.6vw, 19px); }
.reels.js-active .reels__step { opacity: .32; transition: opacity .5s var(--ease); }
.reels.js-active .reels__step.on { opacity: 1; }
.reels__nav { display: none; }
@media (min-width: 861px) and (max-width: 1024px) {
  .reels__grid { gap: 40px; grid-template-columns: .9fr 1.1fr; }
}
@media (max-width: 860px) {
  /* Un solo móvil, entero y centrado: nada de galería lateral con un móvil
     cortado asomando. Arriba el texto del paso; las pantallas se cruzan dentro
     del móvil (solas, deslizando o con los puntos). Los tres textos ocupan la
     misma celda, así la altura no salta al cambiar. */
  .reels__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .reels__steps { order: -1; display: grid; }
  .reels.js-active .reels__step { grid-area: 1 / 1; }
  .reels__step { min-height: 0; max-width: 560px; margin: 0 auto; justify-content: flex-start; align-items: center; gap: 10px; text-align: center; }
  .reels__step .t-h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .reels__step .t-lead { font-size: 16px; max-width: 34ch; }
  .reels.js-active .reels__step { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
  .reels.js-active .reels__step.on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  .reels__phone-col { position: static; height: auto; touch-action: pan-y; }
  .reels__phone { width: min(262px, 72vw); }
  .reels__nav { display: flex; justify-content: center; margin-top: 2px; }
  .reels__nav .cdots { margin-top: 0; }
}
@media (max-width: 860px) and (min-width: 768px) { .reels__phone { width: 280px; } }
.circ { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--control); color: var(--fg); cursor: pointer; transition: background-color .2s, opacity .2s; }
.circ:hover { background: #DCDCE1; }
.circ:disabled { opacity: .4; cursor: default; }
.circ svg { width: 18px; height: 18px; }

.why-cta { margin-top: clamp(56px, 8vw, 96px); padding: 30px 36px; border-radius: var(--r-tile); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; }
.why-cta__t { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.why-cta__s { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .why-cta { flex-direction: column; text-align: center; padding: 28px 22px; } }

/* ── Demo: «Míralo pensar» ────────────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.demo-head { max-width: 460px; display: grid; gap: 12px; justify-items: start; }
.demo-head .t-lead { margin-top: 4px; }
.demo-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.demo-note svg { color: var(--accent-text); flex-shrink: 0; }

/* Selector segmentado: la píldora blanca se desliza a la opción elegida */
.demo-tabs { --i: 0; position: relative; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; padding: 4px; border-radius: var(--r-pill); background: var(--control); }
.demo-tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: var(--r-pill); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.2); transform: translateX(calc(var(--i) * 100%)); transition: transform .4s var(--ease); }
.demo-tab { position: relative; z-index: 1; border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #515154; padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; transition: color .25s; }
.demo-tab[aria-selected="true"] { color: var(--fg); }
.demo-head__cta { margin-top: 18px; }

.demo-scenarios { min-width: 0; }
.demo-chat { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border-radius: var(--r-tile); background: var(--surface-2); box-shadow: var(--shadow-card); }
.demo-chat.demo-scenario { display: none !important; }
.demo-chat.demo-scenario.on { display: flex !important; }
/* Alto mínimo (no fijo): reserva el sitio mientras piensa para que no salte
   la página, y deja crecer el panel cuando aparece la sesión generada. */
.demo-chat--seq { min-height: 640px; overflow: hidden; }
.demo-chat--seq::-webkit-scrollbar { width: 6px; }
.demo-chat--seq::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.demo-pending { display: none !important; }
.demo-chat__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.demo-chat__ava { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.demo-chat__ava img { width: 22px; height: 22px; display: block; }
.demo-chat__name { font-size: 15px; font-weight: 600; }
.demo-chat__status { font-size: 12px; color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.demo-chat__status .live-dot { width: 6px; height: 6px; margin-right: 0; vertical-align: 0; }
.demo-chat__status-text { transition: opacity .25s ease; }
.demo-step { opacity: 1; }
.demo-bubble { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.demo-bubble strong { font-weight: 600; }
.demo-bubble--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.demo-bubble--ai { align-self: flex-start; background: var(--surface); color: var(--fg-2); border-bottom-left-radius: 6px; }
.demo-bubble--ai strong { color: var(--fg); }
.demo-reason { align-self: flex-start; max-width: 92%; background: var(--accent-soft); border-radius: 18px; border-bottom-left-radius: 6px; padding: 12px 14px; }
.demo-reason__toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; margin: 0; background: none; border: 0; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--accent-text); text-align: left; cursor: default; }
.demo-reason.is-interactive .demo-reason__toggle { cursor: pointer; }
.demo-reason__check { display: none; width: 15px; height: 15px; flex-shrink: 0; }
.demo-reason.is-interactive .demo-reason__dots { display: none; }
.demo-reason.is-interactive .demo-reason__check { display: inline-flex; }
.demo-reason__count { display: none; font-weight: 500; color: var(--muted); }
.demo-reason.is-interactive .demo-reason__count { display: inline; }
.demo-reason__chev { display: none; width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; transition: transform .3s ease; }
.demo-reason.is-interactive .demo-reason__chev { display: inline-flex; }
.demo-reason.is-interactive:not(.is-collapsed) .demo-reason__chev { transform: rotate(180deg); }
.demo-reason__body { overflow: hidden; }
.demo-reason__list { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.demo-reason__line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.demo-reason__line strong { color: var(--fg); font-weight: 600; }
.demo-reason__line .tick { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; color: var(--accent-text); }
.typing-dots { display: inline-flex; gap: 3px; align-items: center; flex-shrink: 0; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-text); animation: typingBlink 1.4s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.demo-gen { margin-top: 2px; min-width: 0; }
.demo-gen__head { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 12px; }
.demo-gen__head svg { flex-shrink: 0; }
.demo-carousel { min-width: 0; overflow: hidden; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.demo-carousel__track { display: flex; gap: 12px; width: max-content; padding-bottom: 6px; }
.demo-ex { flex-shrink: 0; width: 156px; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.demo-ex--warm { background: var(--accent-soft); }
.demo-ex__media { position: relative; height: 96px; flex-shrink: 0; background: #fff; }
.demo-ex__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.025); }
.demo-ex__body { padding: 10px 12px 13px; flex: 1; min-height: 0; }
.demo-ex__tag { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.demo-ex--warm .demo-ex__tag { color: var(--accent-text); }
.demo-ex__name { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.demo-ex__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.demo-go { margin-top: 16px; width: 100%; }

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: var(--head-gap); }
  .demo-head { max-width: none; }
  .demo-bubble, .demo-reason { max-width: 94%; }
  .demo-chat--seq { min-height: 0; }
  .demo-chat { padding: 16px; border-radius: 22px; }
  /* La tarjeta de la demo ya lleva su «Unirme a la beta»: aquí no se repite. */
  .demo-head__cta { display: none; }
}

/* ── Carrusel automático: puntos que marcan la tarjeta y sirven para saltar ── */
.cdots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.cdots button { position: relative; width: 22px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.cdots button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: #B0B0B5; transition: width .35s var(--ease), margin .35s var(--ease), background-color .35s; }
.cdots button[aria-current="true"]::before { width: 20px; margin-left: -10px; background: var(--accent); }
.cdots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Lo que la hace distinta: burbujas que flotan, con el catálogo alrededor ── */
.sec--nums { overflow-x: clip; overflow-y: visible; }
.bubbles { position: relative; height: clamp(520px, 46vw, 620px); max-width: 1000px; margin: 0 auto; }
.bb { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); transition: opacity .6s var(--ease), scale .8s cubic-bezier(.2, .8, .2, 1.15); transition-delay: calc(var(--i, 0) * 70ms); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.bb b { display: block; font-weight: 600; line-height: 1; }
.bb span { display: block; }
.bb--xl { z-index: 2; width: clamp(230px, 27vw, 300px); aspect-ratio: 1; padding: 28px; background: var(--accent); color: #fff; box-shadow: 0 34px 60px -28px rgba(42, 111, 219, 0.6); }
.bb--xl b { font-size: clamp(56px, 6.4vw, 78px); letter-spacing: -0.045em; }
.bb--xl span { margin-top: 10px; max-width: 11em; font-size: 15px; font-weight: 500; line-height: 1.3; }
.bb--md { z-index: 2; width: clamp(150px, 16vw, 190px); aspect-ratio: 1; padding: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-card); }
.bb--md b { font-size: clamp(46px, 4.6vw, 58px); letter-spacing: -0.04em; color: var(--accent-text); }
.bb--md span { margin-top: 6px; max-width: 9em; font-size: 14px; line-height: 1.3; color: var(--fg-2); }
.bb--soft { background: #EAF1FC; box-shadow: none; }
/* Diferenciales: una idea corta y su prueba debajo */
.bb--claim b { font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -0.025em; line-height: 1.08; color: var(--fg); }
.bb--claim span { margin-top: 8px; max-width: 10.5em; font-size: 14px; }
.bb--soft.bb--claim b { color: var(--accent-text); }
.bb--img { z-index: 1; width: var(--s); aspect-ratio: 1; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-soft), 0 16px 30px -18px rgba(0, 0, 0, 0.35); }
.bb--img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.025); }
.js .bubbles:not(.is-in) .bb { opacity: 0; scale: .6; }
@media (max-width: 640px) {
  .bubbles { height: 780px; }
  .bb { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .bb--img { width: var(--ms, var(--s)); }
  .bb--xl { width: 230px; }
  .bb--md { width: 148px; padding: 16px; }
  .bb--md span { font-size: 13px; }
  .bb--claim b { font-size: 19px; }
  .bb--claim span { margin-top: 6px; }
  .bb--wide { display: none; }
}

/* ── Páginas por prueba (/hyrox…): formato, cómo se prepara y semana tipo ── */
.race-format { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.race-format li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); }
.race-format__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 15px; font-weight: 700; color: var(--accent-text); }
.race-format b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.race-format small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.race-format__d { font-size: 15px; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.race-note { max-width: 920px; margin: 16px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.race-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.race-tile { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-tile); background: var(--surface); }
.race-tile h3 { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.race-tile p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.race-tile .viz { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: #fff; }
.race-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.race-week .demo-ex { width: auto; }
.race-week .demo-ex__media { height: auto; aspect-ratio: 16 / 9; }
.race-format--days .race-format__n { font-size: 11px; letter-spacing: 0.02em; }
.race-week__t { max-width: 920px; margin: clamp(36px, 5vw, 56px) auto 16px; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.015em; text-align: center; }
.race-format + .race-week { margin-top: 16px; }
.race-week { max-width: 920px; margin-inline: auto; }
.app-ex .app-ex__day { width: 58px; height: 38px; flex-shrink: 0; margin: 0; display: grid; place-items: center; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-text); }
.race-legal { max-width: 760px; margin: 0 auto; padding: 8px var(--gut) 40px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .race-format, .race-tiles { grid-template-columns: 1fr; }
  .race-week { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
/* La tarjeta con gráfica ocupa toda la fila (texto a un lado, gráfica al otro)
   y las demás van de tres en tres: ninguna se estira vacía para igualar alturas. */
@media (min-width: 761px) {
  .race-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .race-tile:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 16px 40px; }
  .race-tile:first-child .viz { margin-top: 0; grid-column: 2; grid-row: 1 / span 2; }
  .race-tile:first-child h3, .race-tile:first-child p { grid-column: 1; }
  .race-tile:first-child p { margin-top: 0; }
  .race-tile:first-child h3 { align-self: end; }
  .race-tile:first-child p { align-self: start; }
}

/* ── Semana real (páginas por objetivo) ──────────────────────────────────
   Zonas: una rampa del mismo azul, de suave (Z1) a fuerte (Z4/Z5); la fuerza en
   negro. La altura de cada tramo también sube con la zona, como en un reloj. */
.wk { --z1: #D3E0F6; --z2: #93B6EE; --z3: #5A90E6; --z4: #2A6FDB; --z5: #17489E; --gym: #1D1D1F; max-width: 920px; margin: 0 auto; }
.wk .z1 { background: var(--z1); --zh: 26%; } .wk .z2 { background: var(--z2); --zh: 46%; } .wk .z3 { background: var(--z3); --zh: 66%; }
.wk .z4 { background: var(--z4); --zh: 86%; } .wk .z5 { background: var(--z5); --zh: 100%; } .wk .gym { background: var(--gym); }
.wk-tabs { --i: 0; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(380px, 100%); margin: 0 auto 18px; padding: 4px; border-radius: var(--r-pill); background: var(--control); }
.wk-tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: var(--r-pill); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.2); transform: translateX(calc(var(--i) * 100%)); transition: transform .4s var(--ease); }
.wk-tabs button { position: relative; z-index: 1; padding: 10px 8px; border: 0; border-radius: var(--r-pill); background: none; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #515154; cursor: pointer; transition: color .25s; }
.wk-tabs button[aria-selected="true"] { color: var(--fg); }
.wk-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-who { margin: 0 auto 14px; max-width: 46em; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }

.wk-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "stats strip" "legend strip"; align-items: center; gap: 6px 32px; margin-bottom: 14px; padding: 22px 26px; border-radius: var(--r-tile); background: var(--surface); }
.wk-stats { grid-area: stats; margin: 0; align-self: end; font-size: 16px; color: var(--fg-2); }
.wk-stats b { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; color: var(--fg); }
.wk-legend { grid-area: legend; align-self: start; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 12px; color: var(--muted); }
.wk-legend span { display: inline-flex; align-items: center; gap: 4px; }
.wk-legend i { width: 10px; height: 10px; border-radius: 3px; }
.wk-strip { grid-area: strip; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 104px; }
.wk-strip__d { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; min-height: 0; }
.wk-strip__d i { align-self: end; width: min(100%, 34px); height: var(--h); border-radius: 8px 8px 3px 3px; transform-origin: bottom; transition: transform .7s var(--ease); }
.wk-strip__d.is-rest i { height: 4px; border-radius: 2px; background: var(--control); }
.wk-strip__d b { font-size: 12px; font-weight: 600; color: var(--muted); }

.wk-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wk-day { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface); }
.wk-day__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.wk-day__d { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-text); }
.wk-day__t { display: grid; gap: 3px; min-width: 0; }
.wk-day__t b { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.wk-chip { justify-self: start; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.wk-day--gym .wk-chip { color: var(--fg-2); }
.wk-day__min { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--fg); white-space: nowrap; }
.wk-day__min small { margin-left: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.wk-prof { display: flex; align-items: flex-end; gap: 2px; height: 74px; padding: 12px 12px 0; border-radius: 14px; background: #fff; overflow: hidden; }
.wk-prof i { flex: var(--g) 1 0; min-width: 3px; height: var(--zh); border-radius: 4px 4px 0 0; transform-origin: bottom; transition: transform .8s var(--ease) .15s; }
.wk-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wk-ex li { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 14px; background: #fff; }
.wk-ex img { display: block; width: 60px; height: 40px; object-fit: cover; border-radius: 9px; }
.wk-ex b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.wk-ex small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-more { margin: -4px 0 0; padding-left: 4px; font-size: 13px; color: var(--muted); }
.wk-day__sum { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.js .wk-panel:not(.is-in) .wk-strip i, .js .wk-panel:not(.is-in) .wk-prof i { transform: scaleY(0); }
.wk-strip__d:nth-child(2) i { transition-delay: .05s; } .wk-strip__d:nth-child(3) i { transition-delay: .1s; } .wk-strip__d:nth-child(4) i { transition-delay: .15s; }
.wk-strip__d:nth-child(5) i { transition-delay: .2s; } .wk-strip__d:nth-child(6) i { transition-delay: .25s; } .wk-strip__d:nth-child(7) i { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .wk-strip__d i, .wk-prof i { transition: none; } }
@media (max-width: 760px) {
  .wk-sum { grid-template-columns: 1fr; grid-template-areas: "stats" "strip" "legend"; gap: 14px; padding: 20px; }
  .wk-strip { height: 88px; }
  .wk-days { grid-template-columns: 1fr; gap: 10px; }
  .wk-day { padding: 16px; }
}

/* ── ¿Aún no convencido? ─────────────────────────────────────────────── */
.follow { display: grid; justify-items: center; gap: 12px; text-align: center; }
.follow__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 14px; }
.follow__actions .btn svg { width: 16px; height: 16px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq-head { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .faq-head .t-h2 { font-size: clamp(36px, 3.7vw, 52px); } }
@media (max-width: 1023px) { .faq-grid { grid-template-columns: 1fr; gap: var(--head-gap); } }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.faq-chip { font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-pill); border: 0; background: var(--surface); color: var(--fg-2); cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.faq-chip:hover { background: var(--control); }
.faq-chip.active { background: var(--fg); color: #fff; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item.hidden { display: none; }
.faq-q { width: 100%; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: none; border: 0; font-family: inherit; font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--fg); text-align: left; cursor: pointer; transition: color .2s; }
.faq-q:hover { color: var(--accent-text); }
.faq-q .ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); color: var(--accent-text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > .faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a > .faq-a-inner::after { content: ''; display: block; height: 24px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 46em; }
@media (max-width: 767px) { .faq-q { padding: 18px 0; } .faq-a > .faq-a-inner::after { height: 18px; } }

/* ── Bloque final de beta ────────────────────────────────────────────── */
#beta { padding-top: 0; }
#beta-block { position: relative; border-radius: 32px; background: var(--surface); padding: clamp(28px, 5.5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.beta-badge { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent-text); }
#beta-block .t-h2 { margin-top: 16px; }
.beta-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; max-width: 460px; }
.beta-steps li { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.35; color: var(--fg-2); }
.beta-steps b { color: var(--fg); font-weight: 600; }
.beta-steps__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; }
#beta-intro { margin-top: 24px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 30em; }
#beta-card { background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-card); display: grid; gap: 14px; }
.beta-card__k { font-size: 15px; font-weight: 600; color: var(--accent-text); }
.beta-card__t { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.beta-card__note { font-size: 13px; color: var(--muted); text-align: center; }
.field { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--surface); color: var(--fg); font-family: inherit; font-size: 17px; letter-spacing: -0.01em; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.field::placeholder { color: var(--muted); }
.field:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(42, 111, 219, 0.14); }
.stack { display: grid; gap: 10px; }
@media (max-width: 1023px) { #beta-block { grid-template-columns: 1fr; } }
@media (max-width: 767px) { #beta-block { border-radius: 26px; text-align: center; } .beta-steps, #beta-intro { margin-left: auto; margin-right: auto; } .beta-steps { text-align: left; } }

/* ── Pie ──────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-2); padding: 56px 0 max(40px, env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, max-content); gap: 32px clamp(40px, 5vw, 72px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 22px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 24em; line-height: 1.5; }
.footer-brand p + p { margin-top: 8px; }
.footer h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--fg); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :last-child { grid-column: 1 / -1; } }

/* ── Modal de alta ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; border-radius: 26px; background: #fff; color: var(--fg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.45); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); }
.modal-overlay.active .modal-card { transform: none; }
#modal-form-state { padding: 40px 32px 32px; }
.modal-head { margin-bottom: 22px; }
.modal-head h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.024em; line-height: 1.1; }
.modal-head p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.modal-note { font-size: 13px; color: var(--muted); text-align: center; padding-top: 2px; }
.modal-legal { margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: pretty; }
.modal-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg-2); cursor: pointer; transition: background-color .2s; }
.modal-close:hover { background: var(--control); }
#modal-error { color: var(--danger) !important; }
@media (max-width: 767px) { #modal-form-state { padding: 32px 22px 24px; } }

/* Modal de éxito: segundo mundo (tokens --ms-*). Beta abierta: confirmación y
   compartir; ya no hay puesto, waves ni plazas. */
#modal-success { --ms-card: var(--surface); --ms-mute: var(--muted); --ms-green: var(--ok); }
#modal-success .ms-hero { padding: 44px 24px 22px; text-align: center; }
#modal-success .ms-check { position: relative; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; animation: checkpop .55s cubic-bezier(.2, .7, .2, 1) both; }
#modal-success .ms-check svg { width: 24px; height: 24px; }
#modal-success .ms-check svg path { stroke-dasharray: 28; stroke-dashoffset: 28; animation: checkdash .4s cubic-bezier(.65, 0, .45, 1) .35s forwards; }
@keyframes checkpop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes checkdash { to { stroke-dashoffset: 0; } }
#modal-success .ms-status { margin: 0; font-weight: 600; font-size: 34px; letter-spacing: -0.026em; line-height: 1.05; }
#modal-success .ms-sub { margin: 10px auto 0; max-width: 22em; font-size: 16px; line-height: 1.45; color: var(--ms-mute); }
#modal-success .ms-share { margin: 0 14px 12px; padding: 18px 16px 16px; border-radius: 18px; background: var(--ms-card); }
#modal-success .ms-share .ms-k { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ms-mute); }
#modal-success .ms-share .ms-sh3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
#modal-success .ms-btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--ms-green); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .15s ease; }
#modal-success .ms-btn-wa:hover { filter: brightness(1.08); }
#modal-success .ms-btn-wa svg { width: 18px; height: 18px; }
#modal-success .ms-btn-row { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#modal-success .ms-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 14px; background: #fff; color: var(--fg); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
#modal-success .ms-btn:hover { background: var(--control); }
#modal-success .ms-btn.ms-x-btn { background: #000; color: #fff; }
#modal-success .ms-btn svg { width: 14px; height: 14px; }
#modal-success .ms-ref { margin: 0 14px 16px; padding: 10px 12px; border-radius: 12px; background: var(--ms-card); font-family: ui-monospace, monospace; font-size: 12px; color: var(--ms-mute); text-align: center; user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  #modal-success .ms-hero { padding: 36px 20px 18px; }
  #modal-success .ms-status { font-size: 28px; }
  #modal-success .ms-share { margin: 0 12px 10px; }
  #modal-success .ms-ref { margin: 0 12px 12px; }
}

/* ── Aviso de cookies ────────────────────────────────────────────────── */
.cookie { position: fixed; z-index: 500; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); max-width: 720px; margin: 0 auto; display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 14px 14px 14px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-card); }
.cookie p { margin: 0; max-width: 34em; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Entradas al hacer scroll ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto !important; }
}

/* ── Blog ────────────────────────────────────────────────────────────────
   Lectura a ~680px; la semana real sale más ancha (como en las páginas por
   objetivo). Todo lo demás reutiliza tipografía, botones y FAQ de la home. */
.post, .blog-head { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(28px, 4vw, 48px)); }
.post-crumbs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 680px; margin: 0 auto 20px; font-size: 14px; color: var(--muted); }
.post-crumbs a { color: var(--accent-text); }
.post-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-head { display: grid; gap: 14px; max-width: 680px; margin: 0 auto clamp(32px, 4vw, 44px); }
.post-title { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.07; letter-spacing: -0.03em; text-wrap: balance; }
.post-lead { margin: 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--fg-2); }
.prose h2 { margin: 1.9em 0 .55em; font-size: clamp(25px, 2.8vw, 30px); font-weight: 600; line-height: 1.18; letter-spacing: -0.022em; color: var(--fg); text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose strong { font-weight: 600; color: var(--fg); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .55em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.post-wide { margin: clamp(24px, 3vw, 36px) auto clamp(32px, 4vw, 48px); }
.post-cta { max-width: 680px; margin: clamp(36px, 5vw, 56px) auto 0; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-tile); background: var(--accent-soft); text-align: center; }
.post-cta__t { margin: 0; font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.post-cta__p { margin: 10px auto 0; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.post-cta__a { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.post-cta__a .btn { padding: 13px 22px; font-size: 16px; }
.post-faq { max-width: 680px; margin: clamp(48px, 6vw, 72px) auto 0; }
.post-h2 { margin: 0 0 18px; font-size: clamp(25px, 2.8vw, 32px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.post-h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--fg); }
.post-src { max-width: 680px; margin: 36px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.post-src ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.post-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.post-src a:hover { color: var(--accent-text); }
.post-more { padding-top: 0; }
.post-more .post-h2 { max-width: 920px; margin-inline: auto; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
.post-grid--index { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: #fff; }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__media { overflow: hidden; }
.post-cover { max-width: 920px; margin: 0 auto clamp(32px, 4vw, 48px); border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.post-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-by { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.post-card__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.post-card__cat { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.post-card__t { font-size: 20px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.22; text-wrap: balance; }
.post-card__d { font-size: 15px; line-height: 1.5; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__m { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .post-grid--index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .post-grid, .post-grid--index { grid-template-columns: 1fr; }
  .prose { font-size: 17px; line-height: 1.65; }
}
.wk-link { max-width: 920px; margin: 22px auto 0; text-align: center; }
