/* ADIA — sistema de diseño compartido
   Oscuro, verde esmeralda, tipografía editorial (serif) + técnica (Sora/Inter). */

/* Fuentes servidas desde el propio sitio (sin Google Fonts): variables, subconjunto latino.
   font-display: optional + precarga en el <head> = cero saltos de diseño (CLS) por cambio de fuente. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: optional; src: url('../assets/fonts/inter.woff2') format('woff2'); 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; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500 800; font-display: optional; src: url('../assets/fonts/sora.woff2') format('woff2'); 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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: optional; src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2'); 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; }

:root {
  --bg: #070908;
  --bg-2: #0b0e0c;
  --surface: #111513;
  --surface-2: #161b18;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef3ef;
  --muted: #a6b0a9;
  --faint: #7d877f;
  --accent: #3dff7a;
  --accent-2: #22d863;
  --accent-soft: rgba(61, 255, 122, .12);
  --accent-ink: #03140a;
  --warn: #ffcf5c;

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* grano sutil sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035;
  background: url("../assets/img/grain.png"); /* textura pre-renderizada: un filtro SVG aquí repinta en cada scroll */
}

/* ---------- tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- botones ---------- */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 .98rem/1 var(--f-display); letter-spacing: -.005em;
  border: 1px solid var(--b); background: transparent; color: var(--text);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px rgba(61, 255, 122, .55); }
.btn--primary:hover { background: #7bffa5; border-color: #7bffa5; color: var(--accent-ink); box-shadow: 0 16px 50px -10px rgba(61, 255, 122, .7); }
.btn--glass { background: rgba(255, 255, 255, .06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--f-display); color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- barra promo ---------- */
.promo {
  position: relative; z-index: 60; background: linear-gradient(90deg, #0d2415, #07140c 60%, #0d2415);
  border-bottom: 1px solid rgba(61, 255, 122, .25); font-size: .9rem;
}
.promo .container { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding-right: 48px; text-align: center; }
.promo b { color: var(--accent); font-weight: 600; }
.promo a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }
.promo a:hover { color: var(--accent); }
.promo__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; border-radius: 50%; }
.promo__close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.promo[hidden] { display: none; }
@media (max-width: 640px) { .promo .hide-sm { display: none; } .promo .container { font-size: .84rem; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1); /* el contenido pasa por debajo: hero a sangre */
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-solid, .header.is-open { background: rgba(7, 9, 8, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 1.35rem/1 var(--f-display); letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand small { display: block; font: 500 .62rem/1.2 var(--f-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; max-width: 190px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  font: 500 .95rem var(--f-body); color: var(--text); background: none; border: 0; transition: background .2s, color .2s;
}
.nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .06); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__btn svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }
@media (max-width: 1240px) { .nav__link, .nav__btn { padding: 0 10px; white-space: nowrap; } .brand small { display: none; } }
.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(720px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  background: rgba(13, 16, 14, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd__item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; transition: background .2s; }
.dd__item:hover { background: rgba(61, 255, 122, .08); }
.dd__item img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.dd__item b { display: block; font: 600 .95rem/1.3 var(--f-display); }
.dd__item span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger::before { top: 16px; } .burger span { top: 22px; } .burger::after { top: 28px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: rgba(7, 9, 8, .97); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto; padding: 16px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.drawer__title { font: 600 .74rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 6px 0 8px; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font: 600 1.15rem var(--f-display); }
.drawer a small { font: 400 .85rem var(--f-body); color: var(--muted); }
.drawer .btn { margin-top: 24px; justify-content: center; font-size: 1rem; }
body.no-scroll .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .brand small { display: none; }
}
body.no-scroll { overflow: hidden; }

/* ---------- HERO con scroll-video ---------- */
.scrolly { position: relative; height: 520vh; background: #000; }
.scrolly__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrolly__canvas, .scrolly__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrolly__poster { transition: opacity .6s; }
.scrolly.is-ready .scrolly__poster { opacity: 0; }
.scrolly__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(0,0,0,.0) 30%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.1) 60%, rgba(0,0,0,.85) 100%);
}
.beat {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px; pointer-events: none;
  opacity: 0; transform: translateY(calc((1 - var(--v, 0)) * 28px)); will-change: opacity, transform;
}
.beat.is-live { pointer-events: auto; }
/* velo detrás del texto: se desvanece junto con el beat, así el video respira entre fases */
.beat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.beat--center::before { background: radial-gradient(70% 55% at 50% 58%, rgba(0,0,0,.62), transparent 75%); }
.beat--bottom::before { background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 40%, transparent 65%); }
.beat { isolation: isolate; }
.beat__inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.beat--center .beat__inner { text-align: center; }
.beat--bottom { justify-content: flex-end; }
.beat h1, .beat h2 { text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.beat h1 { font-size: clamp(3rem, 9vw, 8.5rem); line-height: .95; margin-bottom: .25em; }
.beat .kicker { display: block; font: 600 clamp(.78rem, 1vw, .9rem)/1.4 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; text-shadow: none; }
.beat .big { font-size: clamp(2.4rem, 6.2vw, 6rem); line-height: 1; }
.beat .lead { color: #d6ddd8; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.beat--center .lead { margin-inline: auto; }
.beat--center .btn-row { justify-content: center; }
.pro-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 900px; }
.pro-list a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(61,255,122,.35); background: rgba(3, 20, 10, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 .95rem var(--f-display); transition: background .2s, color .2s, transform .25s var(--ease);
}
.pro-list a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.scrolly__hud { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; pointer-events: none; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 .72rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: #cfd6d1; transition: opacity .4s; }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.scrolly__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.08); }
.scrolly__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.scrolly__loader { position: absolute; right: var(--gutter); bottom: 22px; font: 500 .72rem var(--f-display); letter-spacing: .12em; color: var(--faint); transition: opacity .5s; }
.scrolly.is-loaded .scrolly__loader { opacity: 0; }
@media (max-width: 640px) {
  .scrolly { height: 440vh; }
  .beat { padding-bottom: 80px; }
  .beat--bottom { padding-bottom: 104px; }
  .beat .lead { font-size: 1.02rem; }
  .beat h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .beat .big { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .pro-list a { font-size: .86rem; padding: 9px 14px; }
}

/* ---------- marquee clientes ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__label { text-align: center; font: 600 .74rem var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 600 clamp(1.1rem, 2vw, 1.5rem) var(--f-display); color: #c9d1cb; white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tarjetas ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px); overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before { /* spotlight que sigue al mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 255, 122, .12), transparent 60%);
}
.card:hover { border-color: rgba(61, 255, 122, .35); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; border: 1px solid rgba(61,255,122,.25); }
.card__icon svg { width: 22px; height: 22px; }
.card__num { font: 700 .8rem var(--f-display); color: var(--accent); letter-spacing: .12em; margin-bottom: 14px; display: block; }

/* programa con imagen (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.pcard { grid-column: span 2; position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; background: var(--surface); }
.pcard--wide { grid-column: span 3; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9) brightness(.85); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,8,0) 20%, rgba(7,9,8,.7) 55%, rgba(7,9,8,.97) 100%); }
.pcard:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.pcard:hover { border-color: rgba(61,255,122,.45); }
.pcard__body { padding: clamp(22px, 2.4vw, 30px); }
.pcard__tag { font: 600 .72rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.pcard h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: .35em; }
.pcard p { color: #c3cbc5; font-size: .98rem; margin-bottom: 16px; max-width: 46ch; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pcard__meta span { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #dfe5e1; }
.pcard .stretched::before { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 960px) { .pcard, .pcard--wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .pcard, .pcard--wide { grid-column: auto; min-height: 400px; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); background: var(--surface); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(2.4rem, 4.4vw, 3.8rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--text); margin-bottom: 10px; }
.stat b em { font-style: normal; color: var(--accent); }
.stat > span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- manifiesto ---------- */
.manifesto { font: 400 clamp(1.8rem, 4.4vw, 3.6rem)/1.15 var(--f-display); letter-spacing: -.03em; max-width: 22ch; }
.manifesto .w { opacity: .18; transition: opacity .4s; }
.manifesto .w.on { opacity: 1; }

/* ---------- personas ---------- */
.person { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; }
.person img { width: 132px; height: 132px; border-radius: 16px; object-fit: cover; filter: grayscale(.2) contrast(1.05); border: 1px solid var(--line-strong); }
.person__role { font: 600 .74rem/1.5 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } }

/* ---------- precios ---------- */
.price { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); position: relative; }
.price--feat { border-color: rgba(61,255,122,.55); background: linear-gradient(180deg, rgba(61,255,122,.09), var(--surface) 40%); box-shadow: 0 30px 80px -40px rgba(61,255,122,.45); }
.price__badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font: 700 .72rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.price h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price__sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.price__amount { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 6px; }
.price__amount small { font: 500 .95rem var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price__note { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.price .btn { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; color: #d5dcd7; font-size: .98rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233dff7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid rgba(61,255,122,.3); }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .96rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 600 .78rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--text); }
.fine { font-size: .86rem; color: var(--faint); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s; }
.faq details[open] { border-color: rgba(61,255,122,.35); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font: 600 1.06rem/1.4 var(--f-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--accent), var(--accent)) center/10px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 10px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------- módulos / timeline ---------- */
.modules { counter-reset: m; display: grid; gap: 0; border-top: 1px solid var(--line); }
.module { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: m; transition: background .3s; }
.module::before { content: counter(m, decimal-leading-zero); font: 700 1.6rem/1 var(--f-display); color: var(--accent); letter-spacing: -.03em; }
.module h4 { font-size: 1.15rem; margin-bottom: 6px; }
.module p { color: var(--muted); margin: 0; }
@media (max-width: 520px) { .module { grid-template-columns: 52px 1fr; } .module::before { font-size: 1.25rem; } }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); font-size: .88rem; color: #e1e7e3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- hero de subpágina ---------- */
.page-hero { position: relative; min-height: min(92vh, 900px); min-height: min(92svh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 80px) 0 clamp(56px, 8vw, 110px); }
.page-hero__media { position: absolute; inset: -6% 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.08)) translateY(var(--y, 0)); will-change: transform; animation: kenburns 18s var(--ease) both; }
@keyframes kenburns { from { filter: brightness(.6) saturate(.8); } to { filter: brightness(1) saturate(1); } }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,9,8,.92) 0%, rgba(7,9,8,.7) 38%, rgba(7,9,8,.15) 75%), linear-gradient(180deg, rgba(7,9,8,.6) 0%, transparent 30%, transparent 60%, var(--bg) 100%); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 6vw, 5.2rem); }
.page-hero .lead { color: #d3dad5; }
@media (max-width: 760px) {
  .page-hero::after { background: linear-gradient(180deg, rgba(7,9,8,.3) 0%, rgba(7,9,8,.45) 30%, rgba(7,9,8,.9) 62%, var(--bg) 100%); }
  .page-hero__media img { filter: brightness(1.15); }
}
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- imagen con marco ---------- */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4/3; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateY(var(--y, 0)); transition: transform .1s linear; }
.frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -80px 80px -40px rgba(7,9,8,.6); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; isolation: isolate; padding: clamp(40px, 7vw, 96px); border: 1px solid rgba(61,255,122,.3); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4,14,8,.96) 10%, rgba(4,14,8,.8) 50%, rgba(4,14,8,.35)); }
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { color: #d0d8d2; }

/* ---------- libro ---------- */
.book { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.book__cover { position: relative; perspective: 1200px; min-width: 0; }
.book__cover img { width: 100%; height: auto; border-radius: 6px 14px 14px 6px; box-shadow: -18px 30px 60px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 80px -10px rgba(61,255,122,.35); transform: rotateY(-14deg) rotateX(4deg); transition: transform .8s var(--ease); }
.book__cover:hover img { transform: rotateY(-4deg) rotateX(1deg) translateY(-6px); }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book__cover { max-width: 220px; margin-inline: auto; } }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s; }
a.contact-item:hover { border-color: rgba(61,255,122,.4); }
.contact-item b { display: block; font: 600 .74rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.contact-item span { color: #dbe2dd; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.9); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 .82rem var(--f-display); color: #d8dfda; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: 400 1rem var(--f-body); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61,255,122,.15); }
.form__note { font-size: .82rem; color: var(--faint); }
.form__note a, .form__msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form__msg { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__msg[data-ok="1"] { color: var(--accent); }
.form__msg[data-ok="0"] { color: #ff9a8a; }
.form--inline { grid-template-columns: 1fr 1.3fr auto; align-items: end; }
.form--inline .form__msg, .form--inline .form__note { grid-column: 1 / -1; }
@media (max-width: 760px) { .form--inline { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #050605; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__partner { display: block; margin-top: 8px; font: 700 .78rem var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: #c4ccc6; }
.footer h4, .footer__h { font: 600 .74rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #c4ccc6; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__brand p { color: var(--muted); max-width: 36ch; margin-top: 16px; }
.footer__giant { font: 800 clamp(4rem, 19vw, 16rem)/.8 var(--f-display); letter-spacing: -.06em; text-align: center; margin: clamp(48px, 6vw, 80px) 0 24px; background: linear-gradient(180deg, rgba(61,255,122,.35), rgba(61,255,122,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #04210f; display: grid; place-items: center; box-shadow: 0 12px 34px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* utilidades */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.badge-soon { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 207, 92, .1); color: var(--warn); border: 1px solid rgba(255,207,92,.3); font: 600 .78rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   Compatibilidad con app.js (backend del sitio): modal del libro, ventana
   de aviso de los formularios, mensajes, recursos con muro de correo y
   el glow del cursor. app.js genera este marcado; aquí solo se le da estilo.
   ===================================================================== */
[hidden] { display: none !important; } /* hidden gana siempre: app.js oculta campos y recursos con él */

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7bffa5; border-color: #7bffa5; color: var(--accent-ink); }
.btn-ghost { background: rgba(255, 255, 255, .06); }
.small { font-size: .9rem; }
.ico-inline { display: inline-flex; align-items: center; vertical-align: -4px; color: var(--accent); margin-right: 8px; }
.ico-inline svg { width: 18px; height: 18px; stroke: currentColor; }

/* formularios de captura (mismo marcado que usa app.js) */
.lead-form { display: grid; gap: 14px; }
.lead-form.form--inline { grid-template-columns: 1fr 1.3fr auto; align-items: end; }
.lead-form.form--inline > p, .lead-form.form--inline .lead-msg { grid-column: 1 / -1; }
@media (max-width: 760px) { .lead-form.form--inline { grid-template-columns: 1fr; } }
.consent { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }
.consent strong { color: var(--text); }
.legal-note { font-size: .78rem; color: var(--faint); line-height: 1.6; margin: 0; }
.consent a, .legal-note a, .lead-msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lead-msg { margin: 0; font-size: .95rem; color: var(--warn); }
.lead-msg.ok { color: var(--accent); }
.gated { border-top: 1px dashed var(--line-strong); margin-top: 10px; padding-top: 18px; }

/* ventana modal (bienvenida con el libro y aviso «Revisa tu correo») */
.modal-backdrop { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 4, 3, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-backdrop.on { display: flex; animation: mfade .25s ease both; }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; width: min(780px, 100%); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 240px 1fr; background: var(--surface); border: 1px solid rgba(61, 255, 122, .3); border-radius: calc(var(--radius) + 4px); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(61, 255, 122, .4); animation: mrise .35s var(--ease) both; }
@keyframes mrise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-art { display: flex; align-items: center; justify-content: center; padding: 28px; background: radial-gradient(120% 130% at 20% 0%, rgba(61, 255, 122, .16), transparent 65%), var(--bg-2); border-right: 1px solid var(--line); }
.modal-art img { width: 100%; max-width: 172px; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.modal-body { padding: 36px 34px 30px; }
.modal-body h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 12px; }
.modal-body p.lead { font-size: 1rem; margin: 0 0 20px; }
.modal-body .field input { min-height: 48px; }
.modal .lead-form { grid-template-columns: 1fr; }
.modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .4); color: var(--muted); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-skip { background: none; border: 0; color: var(--faint); font-size: .85rem; text-decoration: underline; padding: 0; margin-top: 14px; }
.modal-skip:hover { color: var(--muted); }
.modal-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.modal-timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: mtimer 30s linear forwards; }
@keyframes mtimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.modal.modal-aviso { grid-template-columns: 1fr; width: min(460px, 100%); text-align: center; }
.modal-aviso .modal-body { padding: 42px 32px 32px; }
.modal-aviso .aviso-txt { color: var(--muted); font-size: .98rem; }
.modal-aviso .aviso-txt strong { color: var(--text); word-break: break-all; }
.modal-aviso .aviso-ok { margin-top: 12px; }
.aviso-ico { display: block; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid rgba(61, 255, 122, .35);
  background: var(--accent-soft) no-repeat center/26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233dff7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.modal-aviso.cargando .aviso-ico { background-image: none; border-color: rgba(61, 255, 122, .2); border-top-color: var(--accent); animation: avgiro .8s linear infinite; }
@keyframes avgiro { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .modal { grid-template-columns: 1fr; }
  .modal-art { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .modal-art img { max-width: 118px; }
  .modal-body { padding: 26px 22px 24px; }
}

/* glow que sigue al cursor (lo crea app.js) */
.cursor-glow { position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s ease; will-change: transform; background: radial-gradient(circle, rgba(61, 255, 122, .09), rgba(61, 255, 122, .025) 40%, transparent 62%); }
.cursor-glow.on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* menú 5.0: paneles chicos (ADIA Online, Recursos), fila de Educación y pie */
.dd__panel--sm { width: 320px; grid-template-columns: 1fr; }
.dd__item--text { padding: 12px 14px; }
.dd__sub { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px 14px 4px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.dd__sub a { color: var(--text); font-weight: 600; }
.dd__sub a:hover, .dd__sub a[aria-current="page"] { color: var(--accent); }
.dd__item[aria-current="page"] b { color: var(--accent); }
.drawer__edu { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.drawer .drawer__edu a { display: inline; padding: 0; font: 600 .95rem var(--f-body); color: var(--text); }
.drawer a[aria-current="page"] { color: var(--accent); }
.footer__contact { font-size: .9rem; line-height: 1.8; }
.stat b .u { color: var(--accent); } /* sufijo/prefijo de la cifra (+, h, %, $) */
/* partners (Mobiik, Expo Technology) con enlace a su sitio */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 10px; }
.partners__logo { display: inline-flex; align-items: center; opacity: .9; transition: opacity .2s, transform .25s var(--ease); }
.partners__logo:hover { opacity: 1; transform: translateY(-2px); }
.partners__logo img { height: 46px; width: auto; }
.partners--lg { gap: 48px; justify-content: center; }
.partners--lg .partners__logo img { height: 64px; }
.promo a { display: inline-block; padding: 10px 0; } /* área táctil ≥ 40 px en móvil */
/* franja de la serie de libros (Amazon), debajo de la del libro gratis */
.promo--serie { background: #0a0d0b; border-bottom: 1px solid var(--line); }
.promo--serie .container { min-height: 38px; font-size: .86rem; color: var(--muted); }
.promo--serie strong { color: var(--text); font-weight: 600; }
.promo strong { font-weight: 600; }
/* submenú de Educación con las descripciones de la 4.4 */
.dd__sub { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 8px 14px; align-items: start; }
.dd__sub-t { font: 600 .72rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.dd__sub a { display: grid; gap: 2px; padding: 4px 6px; border-radius: 8px; font-weight: 400; }
.dd__sub a:hover { background: rgba(61,255,122,.08); }
.dd__sub a b { font: 600 .86rem var(--f-display); color: var(--text); }
.dd__sub a span { font-size: .76rem; color: var(--muted); }
@media (max-width: 640px) { .promo--serie .container { font-size: .8rem; } }
/* móvil: el botón flotante de WhatsApp no debe tapar el texto del hero */
@media (max-width: 640px) {
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
  .page-hero { padding-bottom: 96px; }
  .page-hero .btn-row, .page-hero .chips { padding-right: 56px; }
}
@media (max-width: 640px) { body.en-hero .wa-float { opacity: 0; pointer-events: none; transform: scale(.8); } }

/* ===== Hero en celular (pantalla vertical): «Escenas» =====
   Cada deslizamiento lleva a la siguiente frase y su tramo del video (assets/video/hero-movil.mp4)
   se reproduce completo y fluido. Lo activa js/adia.js añadiendo .scrolly-m; en computadora no aplica. */
@media (max-aspect-ratio: 4/5) {
  .scrolly.scrolly-m { height: 400svh; }
  .scrolly-m .scrolly__canvas, .scrolly-m .scrolly__loader, .scrolly-m .scrolly__bar { display: none; }
  .hm-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease; }
  .hm-video.is-fade { opacity: .25; }
  .scrolly-m .beat { opacity: 0; transform: translateY(18px); pointer-events: none;
    transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .scrolly-m .beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
  /* todas las frases al centro y centradas, con la misma sombra detrás (legibles sobre el video) */
  .scrolly-m .beat, .scrolly-m .beat--bottom { justify-content: center; padding-top: calc(var(--header-h) + 28px); padding-bottom: 104px; }
  .scrolly-m .beat::before { background: radial-gradient(95% 60% at 50% 50%, rgba(0,0,0,.72), rgba(0,0,0,.3) 70%, rgba(0,0,0,.15)); }
  .scrolly-m .beat__inner { text-align: center; }
  .scrolly-m .beat .big, .scrolly-m .beat .lead { margin-inline: auto !important; }
  .scrolly-m .beat .lead { max-width: 34ch; }
  .scrolly-m .beat .btn-row { justify-content: center; }
  /* avance tipo «historias»: una barra por escena; la actual se llena con el video */
  .hm-dots { position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) + 10px); z-index: 3; display: flex; gap: 6px; }
  .hm-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
  .hm-dots i::after { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
  /* imán de escenas: un punto de parada por escena, solo mientras el hero está en pantalla */
  .hm-snap { position: absolute; left: 0; right: 0; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }
  html.hm-snapping { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  html.hm-snapping .promo { scroll-snap-align: start; }
  html.hm-snapping .marquee { scroll-snap-align: start; scroll-margin-top: var(--header-h); }
  /* al abrir, el hero empieza debajo de las franjas del libro: «Desliza» sube para verse sin scroll */
  .scrolly-m .scrolly__hud { transform: translateY(calc(-1 * var(--hm-off, 0px))); }
}
