/* ===================================================================
   Wuama · Landing pública (HOME-LANDING E5, 12-sep-2026: sistema editorial)
   Monocromo + un acento: blanco y crema cálido alternando por sección,
   texto casi negro, el azul de marca solo en píldoras, enlaces, estados
   de las maquetas y la banda final. Grotesk prieta (Satoshi) para títulos
   y UNA serif (Sentient) para tres cosas: el párrafo de entrada de cada
   sección, una palabra enfatizada en algunos H2 y la banda-frase.
   El hero de vídeo (.reel, f4c0f30) NO cambia: sus reglas van tal cual y
   las nuevas de .btn y de títulos se acotan fuera de él.
   Sin <style> ni JS en el HTML (CSP de la concha).
   =================================================================== */

:root {
  color-scheme: light;

  /* Marca (el hero y las burbujas del reel los siguen usando tal cual) */
  --brand: #2075FF;
  --brand-deep: #1441AA;
  --blue: #2261dd;            /* relleno de botón del reel: blanco encima 5,4:1 */
  --blue-hover: #1c53cf;
  --blue-ink: #2261dd;
  --blue-bright: #3d7eff;
  --blue-glow: rgba(34, 97, 221, .28);
  --accent-text: #1554cf;     /* texto azul sobre blanco 6,3:1 · sobre crema 5,9:1 */
  --accent-soft: #e8effd;
  --wapp: #25d366;

  /* Tinta: el botón primario del sistema */
  --ink: #16181a;
  --ink-text: #ffffff;
  --ink-hover: #2b2e33;

  /* Superficies: blanco y crema cálido */
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --bg-soft: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #16181a;
  --text-soft: #5b5e63;       /* sobre blanco 6,4:1 · sobre crema 5,9:1 */
  --border: #e6e2da;
  --border-strong: #d3cfc6;
  --chip: #ffffff;
  --warn-bg: #fdf1dc; --warn-text: #7a4f00;
  --ok-bg: #dcf7e6; --ok-text: #0b6531;
  --run-bg: #e8effd; --run-text: #1554cf;
  --shadow-sm: 0 1px 2px rgba(22, 24, 26, .05), 0 6px 16px -10px rgba(22, 24, 26, .16);
  --shadow: 0 1px 2px rgba(22, 24, 26, .04), 0 24px 48px -28px rgba(22, 24, 26, .28);
  --shadow-lg: 0 48px 96px -40px rgba(20, 44, 120, .42);
  --show-sun: inline-block;
  --show-moon: none;
  --figure-shadow: drop-shadow(0 26px 30px rgba(22, 24, 26, .22));

  /* Banda azul del CTA (igual en los dos temas): la única inundación de color */
  --band: #1a48bc;
  --band-deep: #133a9c;
  --band-text: #f8fafe;
  --band-soft: #c8d8f6;

  /* Tipografía */
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Sentient", Georgia, "Times New Roman", serif;
  --fs-display: clamp(2.75rem, 1.85rem + 4.2vw, 5.5rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.7vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-serif-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* Espacio (base 4) y ritmo de secciones: 86–112 en escritorio, 60–72 en móvil */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  /* 23-sep: el aire entre secciones baja de ~117 px a ~86 px en escritorio (11 secciones × 2 lados eran
     2,9 pantallas solo de padding, medido con la web compacta) */
  --section: clamp(60px, 2.6vw + 48px, 112px);
  --section-lg: clamp(68px, 5vw + 40px, 120px);
  --section-md: clamp(52px, 3.4vw + 32px, 96px);
  --section-sm: clamp(48px, 3vw + 32px, 72px);

  --radius-xl: 32px; --radius-lg: 24px; --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);      /* ease-out-quint */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms; --t-base: 260ms; --t-slow: 520ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --blue: #2867e4; --blue-hover: #3a76ee; --blue-ink: #2867e4; --blue-bright: #6c9bff;
    --blue-glow: rgba(40, 103, 228, .34);
    --accent-text: #91c0ff; --accent-soft: #142039;
    --ink: #f3f1ec; --ink-text: #111111; --ink-hover: #ffffff;
    --bg: #0f0f0e; --bg-alt: #161513; --bg-soft: #161513;
    --surface: #1a1917; --surface-2: #242320;
    --text: #f3f1ec; --text-soft: #aaa69e;
    --border: #2c2a26; --border-strong: #3d3a34;
    --chip: #f3f6fb;
    --warn-bg: #3a2a0c; --warn-text: #ffd48a;
    --ok-bg: #0e2e1c; --ok-text: #7ee2a4;
    --run-bg: #142039; --run-text: #91c0ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 24px -12px rgba(0, 0, 0, .7);
    --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 32px 64px -30px rgba(0, 0, 0, .8);
    --shadow-lg: 0 48px 100px -36px rgba(0, 0, 0, .9);
    --show-sun: none; --show-moon: inline-block;
    --figure-shadow: drop-shadow(0 24px 28px rgba(0, 0, 0, .55));
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #2867e4; --blue-hover: #3a76ee; --blue-ink: #2867e4; --blue-bright: #6c9bff;
  --blue-glow: rgba(40, 103, 228, .34);
  --accent-text: #91c0ff; --accent-soft: #142039;
  --ink: #f3f1ec; --ink-text: #111111; --ink-hover: #ffffff;
  --bg: #0f0f0e; --bg-alt: #161513; --bg-soft: #161513;
  --surface: #1a1917; --surface-2: #242320;
  --text: #f3f1ec; --text-soft: #aaa69e;
  --border: #2c2a26; --border-strong: #3d3a34;
  --chip: #f3f6fb;
  --warn-bg: #3a2a0c; --warn-text: #ffd48a;
  --ok-bg: #0e2e1c; --ok-text: #7ee2a4;
  --run-bg: #142039; --run-text: #91c0ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 24px -12px rgba(0, 0, 0, .7);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 32px 64px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 48px 100px -36px rgba(0, 0, 0, .9);
  --show-sun: none; --show-moon: inline-block;
  --figure-shadow: drop-shadow(0 24px 28px rgba(0, 0, 0, .55));
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--ink-text); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 8px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--ink); color: var(--ink-text); font-weight: 600; transition: top var(--t-fast); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--space-5); }
.accent { color: var(--accent-text); }

/* La serif: solo en tres sitios */
.serif, em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.serif-lead { font-family: var(--sans); font-size: var(--fs-serif-lead); line-height: 1.5; color: var(--text-soft); text-wrap: pretty; }

/* Cabecera de sección en dos columnas: H2 a la izquierda, párrafo serif a la derecha, alineado abajo */
.sec-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-5) clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { font-size: var(--fs-h2); max-width: 14ch; }
.sec-head p { font-family: var(--sans); font-size: var(--fs-serif-lead); line-height: 1.5; color: var(--text-soft); max-width: 52ch; }
.sec-head p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.sec-head--one { grid-template-columns: 1fr; }
.sec-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* Secciones: aire arriba y abajo, hairline entre ellas, blanco y crema alternando */
.sec { padding-block: var(--section); }
.sec + .sec { border-top: 1px solid var(--border); }
.sec--alt { background: var(--bg-alt); }

/* ===== Botones (sistema): tinta en píldora; secundario blanco con borde ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 650; font-size: var(--fs-body); line-height: 1; white-space: nowrap;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: var(--fs-sm); }
.btn--xs { min-height: 36px; padding: 8px 14px; font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--ink-text); }
.btn--primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-1px); border-color: var(--text); }
.btn--light { background: #ffffff; color: #16181a; }
.btn--light:hover { background: #f1efe9; }
.btn__ic { width: 20px; height: 20px; flex-shrink: 0; }
.btn .arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background-color var(--t-base);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--text); min-height: 44px; }
.brand__logo { width: 119px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 550; color: var(--text-soft); transition: color var(--t-fast), background-color var(--t-fast); }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
/* Entrar, idioma y CTA viven dentro del menú solo en móvil */
.nav__links .nav__links-login, .nav__links .nav__links-cta, .nav__links .nav__links-lang { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--text-soft); border: 1px solid var(--border); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .02em; transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.theme-toggle { width: 44px; padding: 0; }
.icon-sun { display: var(--show-sun); }
.icon-moon { display: var(--show-moon); }
.nav__login { flex-shrink: 0; }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-base); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Barra de novedades (oscura, bajo la nav; se cierra con × y lo recuerda la sesión) ===== */
.notice { background: #16181a; color: #f3f1ec; }
.notice__inner { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding-block: 6px; }
.notice__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: #2261dd; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.notice__text { font-size: var(--fs-sm); color: #e6e3dc; text-wrap: pretty; }
/* The tag and the text take you to «Empieza con el equipo de tu sector» (#equipos-por-sector); the × stays apart. */
.notice__link { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; border-radius: 6px; }
.notice__link:hover .notice__text, .notice__link:focus-visible .notice__text { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.notice__link:focus-visible { outline: 2px solid #91c0ff; outline-offset: 4px; }
.notice__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; color: #c9c5bc; transition: color var(--t-fast), background-color var(--t-fast); }
.notice__close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.notice__close svg { width: 16px; height: 16px; }
.notice[hidden] { display: none; }

/* ===================================================================
   HERO · la rotación: tarjeta a sangre (casi toda la pantalla) con cinco
   tomas de 4 s del equipo de Enzo. Texto compacto abajo a la izquierda y
   burbujas del chat en HTML. Sin índice ni pausa a la vista (la pausa
   queda para teclado). [f4c0f30 · tal cual]
   =================================================================== */
.hero { position: relative; padding-block: clamp(4px, .8vw, 12px) var(--section-sm); }
.reel {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100svh - 88px); min-height: 520px; max-height: 62vw;
  margin-inline: clamp(10px, 1.4vw, 20px);
  border-radius: var(--radius-xl); background: #0b1220; color: #fff;
  box-shadow: var(--shadow-lg);
}
.reel__media { position: absolute; inset: 0; }
.reel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.reel__slide.is-active { opacity: 1; z-index: 1; }
.reel__poster, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.reel__video { opacity: 0; transition: opacity 240ms linear; }
.reel__slide.has-video.is-playing .reel__video { opacity: 1; }
.reel__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 10, 22, .78) 0%, rgba(6, 10, 22, .36) 26%, transparent 48%),
    linear-gradient(to right, rgba(6, 10, 22, .40) 0%, transparent 42%);
}

.reel__copy {
  position: absolute; z-index: 3; left: clamp(20px, 3.2vw, 56px); bottom: clamp(24px, 3.2vw, 52px);
  max-width: min(860px, 64%); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5);
}
.reel .hero__kicker { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.reel .hero__title { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); color: #fff; max-width: none; text-shadow: 0 2px 28px rgba(0, 0, 0, .30); }
.reel .hero__title .accent { display: block; color: #a9c6ff; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .20); transform: translateY(-2px); }
/* Dentro del reel los botones conservan su aspecto de f4c0f30 (azul de marca, radio 14) */
.reel .btn { border-radius: 14px; border: 0; }
.reel .btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 28px -12px var(--blue-glow); }
.reel .btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 36px -14px var(--blue-glow); }
.reel .btn--glass { border: 1px solid rgba(255, 255, 255, .32); }

/* Burbujas del chat: por toma, su sitio (--x/--y) y su segundo (--at, --out) */
.reel__chat {
  position: absolute; z-index: 3; left: var(--x, 60%); top: var(--y, 6%);
  width: min(380px, 30%); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.reel__msg {
  margin: 0; max-width: 100%; padding: 10px 14px 11px; border-radius: 16px;
  font-size: var(--fs-sm); line-height: 1.35; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px) scale(.97);
}
.reel__msg b { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 2px; opacity: .78; }
.reel__msg--me { align-self: flex-end; background: #fff; color: #101828; border-bottom-right-radius: 5px; }
.reel__msg--enzo { align-self: flex-start; background: var(--blue); color: #fff; border-bottom-left-radius: 5px; }
.reel__pill { display: inline-flex; margin-top: 8px; padding: 5px 14px; border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; font-size: var(--fs-xs); }
.reel__slide.is-playing .reel__msg { animation: reel-in 420ms var(--ease-expo) var(--at, .3s) both, reel-out 280ms ease var(--out, 99s) forwards; }
@keyframes reel-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes reel-out { to { opacity: 0; transform: translateY(-6px); } }

/* La pausa: invisible con ratón; al tabular hasta ella aparece (WCAG 2.2.2) */
.reel__toggle { position: absolute; z-index: 4; right: 16px; bottom: 16px; opacity: 0; pointer-events: none; }
.reel__toggle:focus-visible { opacity: 1; pointer-events: auto; }

/* Pausa (teclado, fuera de pantalla o pestaña oculta): las burbujas se congelan con el vídeo */
.reel.is-paused .reel__slide.is-playing .reel__msg { animation-play-state: paused; }
/* «Menos movimiento» (o sin JS): el póster quieto con sus burbujas a la vista */
.reel.is-static .reel__slide.is-active .reel__msg,
.reel:not(.is-ready) .reel__slide.is-active .reel__msg { animation: none; opacity: 1; transform: none; }

.hero__title { font-weight: 850; letter-spacing: -0.045em; line-height: .98; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Entrada del hero: transform/opacity, una sola vez; el h1 solo se asienta (LCP) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.reel__copy > * { animation: rise 700ms var(--ease-expo) both; }
.reel__copy > .hero__title { animation-name: settle; animation-delay: 40ms; }
.reel__copy > .hero__actions { animation-delay: 160ms; }

/* Botón de pausa de vídeos en bucle (WCAG 2.2.2) */
.media-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast); }
.media-toggle:hover { transform: scale(1.05); border-color: var(--text); }
.media-toggle--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #eef5f1; box-shadow: none; }
.i-play { display: none; }
[aria-pressed="true"] > .i-pause { display: none; }
[aria-pressed="true"] > .i-play { display: inline-block; }

/* ===================================================================
   MAQUETAS DE PRODUCTO (.mock): ventana con borde de 1 px, radio 16,
   cabecera con tres puntos y un título, una sombra suave, y badges de
   estado con el vocabulario literal del panel
   =================================================================== */
.mock {
  position: relative; overflow: hidden; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  font-size: var(--fs-sm); line-height: 1.4;
}
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 650; color: var(--text-soft); }
.mock__dots { display: inline-flex; gap: 5px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock__pill { margin-left: auto; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: .75rem; font-weight: 650; color: var(--text); }
.mock__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock__title { font-weight: 700; font-size: var(--fs-sm); }
.mock__meta { color: var(--text-soft); font-size: var(--fs-xs); }
.mock__foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-soft); }
.mock__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mock__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); font-weight: 650; font-size: var(--fs-xs); background: var(--ink); color: var(--ink-text); }
.mock__btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.mock__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: var(--surface-2); color: var(--text); }
.mock__ic svg { width: 18px; height: 18px; }
.mock__time { font-variant-numeric: tabular-nums; color: var(--text-soft); font-size: var(--fs-xs); font-weight: 600; }
.mock--dark { background: #121211; color: #f3f1ec; border-color: #2c2a26; }
.mock--dark .mock__bar { background: #1a1917; border-color: #2c2a26; color: #aaa69e; }
.mock--dark .mock__dots i { background: #3d3a34; }
.mock--dark .mock__pill { border-color: #3d3a34; color: #f3f1ec; }
.mock--dark .mock__foot { border-color: #2c2a26; color: #aaa69e; }

/* Badges de estado: un punto y la palabra del panel */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 650; line-height: 1.4; white-space: nowrap; background: var(--surface-2); color: var(--text-soft); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge--ok { background: var(--ok-bg); color: var(--ok-text); }
.badge--wait { background: var(--warn-bg); color: var(--warn-text); }
.badge--run { background: var(--run-bg); color: var(--run-text); }
.badge--auto { background: var(--run-bg); color: var(--run-text); }
/* Un cambio de badge una sola vez (JS marca .is-done al verse) */
.badge__b { display: none; }
.is-done .badge--live { background: var(--ok-bg); color: var(--ok-text); }
.is-done .badge--live .badge__a { display: none; }
.is-done .badge--live .badge__b { display: inline; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--wapp); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wapp) 22%, transparent); flex-shrink: 0; }
.is-done .pulse { background: var(--ok-text); box-shadow: none; }

/* Maqueta: chat de la Home */
.bub { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.4; }
.bub--me { align-self: flex-end; background: var(--ink); color: var(--ink-text); border-bottom-right-radius: 4px; }
.bub--enzo { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.filechip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 650; color: var(--text); }
.filechip svg { width: 16px; height: 16px; color: var(--accent-text); }
.filechip--pdf { color: #b42318; }
.filechip--xls { color: #0b6531; }
.filechip--ppt { color: #b54708; }
.filechip--more { color: var(--text-soft); font-weight: 600; }
:root[data-theme="dark"] .filechip--pdf { color: #ff9b8f; }
:root[data-theme="dark"] .filechip--xls { color: #7ee2a4; }
:root[data-theme="dark"] .filechip--ppt { color: #ffb86b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filechip--pdf { color: #ff9b8f; }
  :root:not([data-theme="light"]) .filechip--xls { color: #7ee2a4; }
  :root:not([data-theme="light"]) .filechip--ppt { color: #ffb86b; }
}
.work { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); font-weight: 650; font-size: var(--fs-xs); }
.work ul { display: flex; flex-direction: column; }
.work li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.work__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); box-shadow: 0 0 0 1px var(--border); flex-shrink: 0; color: #0c1226; }
.work__logo svg { width: 18px; height: 18px; }
.work__logo--agent { background: var(--surface-2); color: var(--text); box-shadow: none; }
.work__txt { flex: 1; min-width: 0; font-size: var(--fs-xs); }
.card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__head strong { font-size: var(--fs-sm); }
.card__lines { display: grid; gap: 7px; margin-top: 14px; }
.card__lines span { height: 7px; border-radius: 4px; background: var(--surface-2); }
.card__lines span:nth-child(1) { width: 92%; }
.card__lines span:nth-child(2) { width: 76%; }
.card__lines span:nth-child(3) { width: 58%; }

/* Maqueta: Tareas programadas */
.tasks { display: flex; flex-direction: column; }
.tasks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.tasks li:first-child { border-top: 0; }
.tasks__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tasks__txt strong { font-size: var(--fs-sm); }
.tasks__txt span { font-size: var(--fs-xs); color: var(--text-soft); }

/* Maqueta: Aprobación + los estados literales de un acto */
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-soft); }
.flow__arrow { color: var(--border-strong); }

/* Maqueta: Actividad */
.activity ul { display: flex; flex-direction: column; }
.activity li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: var(--fs-xs); }
.activity li:first-child { border-top: 0; }
.activity__with { display: inline-flex; align-items: center; gap: 8px; }
.activity__logo { width: 16px; height: 16px; flex-shrink: 0; }
.activity__files { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ===================================================================
   AGENTES Y PACKS · tarjetas de agente a la izquierda, chat a la derecha,
   los 7 sectores con sus 3 packs debajo
   =================================================================== */
.team__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.agents { display: flex; flex-direction: column; gap: 10px; }
.agent { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.agent__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--text); flex-shrink: 0; }
.agent__ic svg { width: 20px; height: 20px; }
.agent__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agent__body strong { font-size: var(--fs-body); font-weight: 700; }
.agent__job { font-size: var(--fs-xs); color: var(--text-soft); }
.roster { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.roster__chip { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: var(--fs-xs); color: var(--text-soft); }
.mock--chat .mock__body { gap: 12px; }

.packs { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "intro panels"; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.packs__intro { grid-area: intro; display: flex; flex-direction: column; gap: var(--space-3); }
.packs__title { font-size: var(--fs-h3); }
.packs__lead { color: var(--text-soft); font-size: var(--fs-sm); }
.packs__tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 8px; }
.packs.is-tabbed { grid-template-areas: "intro tabs" "intro panels"; grid-template-rows: auto 1fr; row-gap: var(--space-5); }
.packs__tabs[hidden] { display: none; }
.packs__tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); text-align: left; font-weight: 600; font-size: var(--fs-xs); color: var(--text-soft); transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.packs__tab:hover { color: var(--text); border-color: var(--text); }
.packs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.packs__panels { grid-area: panels; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); align-content: start; }
.pack { padding: var(--space-5); border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--border); }
.pack h4 { font-size: var(--fs-body); margin-bottom: 12px; }
.pack ul { display: flex; flex-direction: column; gap: 8px; }
.pack li { position: relative; padding-left: 30px; font-size: var(--fs-sm); color: var(--text); }
.pack li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232261dd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat; }
/* Con pestañas: un panel grande, las tareas como filas */
.packs.is-tabbed .packs__panels { display: block; }
.packs.is-tabbed .pack { background: var(--bg-alt); padding: clamp(20px, 3vw, 32px); animation: panel-in 420ms var(--ease-expo) both; }
.packs.is-tabbed .pack[hidden] { display: none; }
.packs.is-tabbed .pack h4 { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.packs.is-tabbed .pack ul { gap: 0; }
.packs.is-tabbed .pack li { padding: 14px 0 14px 38px; border-top: 1px solid var(--border); font-size: var(--fs-body); }
.packs.is-tabbed .pack li::before { top: 14px; width: 24px; height: 24px; background-size: 13px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================================================================
   CONECTORES · texto a un lado, cuadrícula estática de los 20 logos al otro
   =================================================================== */
.conn__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.conn__copy { display: flex; flex-direction: column; gap: var(--space-5); position: sticky; top: 104px; }
.conn__copy h2 { font-size: var(--fs-h2); max-width: 12ch; }
.conn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.logo {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; min-width: 0;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* El logo real de cada conector (sprite de <symbol> al final de index.html, copiado de la app).
   Chip CLARO en los dos temas: las marcas están dibujadas para fondo blanco. */
.logo__mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--chip); color: #0c1226;
  box-shadow: 0 0 0 1px var(--border);
}
.logo__mark svg { width: 20px; height: 20px; }

/* ===================================================================
   CADENCIA Y CONTROL · dos columnas con su maqueta y, debajo, los cuatro pasos
   =================================================================== */
.cad__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.cad__col { display: flex; flex-direction: column; gap: var(--space-3); }
.cad__col h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.cad__col > p { color: var(--text-soft); max-width: 50ch; }
.cad__col .mock { margin-top: var(--space-3); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--border); }
.steps__title { grid-column: 1 / -1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: -8px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps__num { font-size: var(--fs-xs); font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.steps h4 { font-size: 1.125rem; }
.steps p { color: var(--text-soft); font-size: var(--fs-sm); }

/* ===================================================================
   WHATSAPP · el canal del dueño con Enzo; la maqueta del teléfono, tal cual
   =================================================================== */
.wapp__inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px); align-items: center; }
.wapp__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.wapp__title { font-size: var(--fs-h2); max-width: 14ch; }
.wapp__accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wapp__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: var(--fs-body); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232261dd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat;
}

/* WhatsApp TAL CUAL en un iPhone (13-sep): marco de titanio con isla, barra de estado de iOS y la app de
   WhatsApp en claro — cabecera gris de iOS con los iconos en azul del sistema, fondo beis con garabatos,
   burbujas verde WhatsApp / blanco con su pico, hora gris y doble check azul, y la barra de escribir */
.wapp__phone { position: relative; display: flex; justify-content: center; }
.wapp__kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #25d366; letter-spacing: -0.01em; }
.wapp__badge {
  position: absolute; z-index: 4; top: -22px; left: calc(50% - 214px); width: 62px; height: 62px; border-radius: 17px;
  display: grid; place-items: center; transform: rotate(-9deg);
  background: linear-gradient(180deg, #5bf675 0%, #25d366 55%, #1ebe5b 100%);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.iph {
  position: relative; width: 320px; max-width: 86vw; aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #4a4d52, #1f2124 40%, #2c2e32 70%, #121315);
  box-shadow: 0 50px 100px -34px rgba(0, 0, 0, .75), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .6);
}
.iph__screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #efeae2;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111b21; -webkit-font-smoothing: antialiased;
}
.iph__island { position: absolute; z-index: 5; top: 10px; left: 50%; translate: -50% 0; width: 94px; height: 27px; border-radius: 20px; background: #000; }
.iph__status {
  display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 12px 24px 0 34px; flex-shrink: 0;
  background: #f6f6f6; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: #000;
}
.iph__icons { display: inline-flex; align-items: center; gap: 5px; }
.iph__home { position: absolute; z-index: 5; bottom: 7px; left: 50%; translate: -50% 0; width: 118px; height: 5px; border-radius: 3px; background: #000; }

.wa { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wa__head {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px 6px; flex-shrink: 0;
  background: #f6f6f6; border-bottom: .5px solid #d1d1d6;
}
.wa__back { display: inline-flex; align-items: center; gap: 3px; color: #007aff; }
.wa__back b { font-size: 15px; font-weight: 400; }
.wa__av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #dbe7ff; }
.wa__av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wa__id { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.2; }
.wa__id strong { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wa__status { font-size: 12px; color: #667781; }
.wa__typing { display: none; }
.wa.is-typing .wa__on { display: none; }
.wa.is-typing .wa__typing { display: inline; }
.wa__acts { display: inline-flex; align-items: center; gap: 18px; color: #007aff; padding-right: 2px; }

.wa__body {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 12px;
  background: #efeae2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23d9d0c4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><circle cx='20' cy='22' r='7'/><path d='M60 14l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6-4.5-4 6-1z'/><path d='M96 16h16v11h-11l-5 4z'/><path d='M16 70c0-5 7-5 7 0 0-5 7-5 7 0 0 6-7 9-7 11 0-2-7-5-7-11z'/><rect x='52' y='60' width='16' height='12' rx='3'/><path d='M92 64l8 8M100 64l-8 8'/><circle cx='70' cy='104' r='5'/><path d='M14 104h16M22 96v16'/><path d='M94 102c4-6 12-6 16 0'/><path d='M40 40c3 3 3 7 0 10'/><path d='M84 42l6-6 6 6'/></svg>") repeat;
  background-size: 120px;
}
.wa__day {
  align-self: center; margin: 2px 0 8px; padding: 4px 10px; border-radius: 8px; background: #fff;
  font-size: 12px; font-weight: 500; color: #54656f; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa-msg, .wa-msg__bub {
  position: relative; max-width: 80%; padding: 6px 8px 5px 9px; border-radius: 8px;
  font-size: 14.5px; line-height: 1.33; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa-msg--out { align-self: flex-end; background: #d9fdd3; }
.wa-msg--in { align-self: flex-start; background: #fff; }
.wa-msg--tail { margin-top: 6px; }
.wa-msg--out.wa-msg--tail { border-top-right-radius: 0; }
.wa-msg--in.wa-msg--tail { border-top-left-radius: 0; }
.wa-msg--tail::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-msg--out.wa-msg--tail::before { right: -8px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-msg--in.wa-msg--tail::before { left: -8px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -4px 10px; font-size: 11px; color: #667781; }
.wa-ticks { margin-top: 1px; }
/* El documento: el PDF dentro de su burbuja */
.wa-msg--doc { padding: 4px 4px 5px; min-width: 210px; }
.wa-doc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; background: #f5f6f6; }
.wa-doc__ic { width: 30px; height: 36px; flex-shrink: 0; display: grid; place-items: end center; padding-bottom: 5px; border-radius: 4px; background: #e2463c; color: #fff; font-size: 9px; font-weight: 800; }
.wa-doc__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wa-doc__txt b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-doc__txt span { font-size: 12px; color: #667781; }
.wa-msg--doc .wa-time { margin-right: 4px; }
/* Mensaje con botones de respuesta: la burbuja y, debajo, un botón blanco por respuesta */
.wa-msg--btns { padding: 0; background: none; box-shadow: none; display: flex; flex-direction: column; gap: 2px; }
.wa-msg--btns .wa-msg__bub { max-width: none; background: #fff; }
.wa-btns { display: grid; gap: 2px; }
.wa-btns > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 8px;
  background: #fff; color: #027eb5; font-size: 14.5px; font-weight: 500; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.wa__bar { display: flex; align-items: center; gap: 12px; padding: 6px 12px 24px; flex-shrink: 0; background: #f6f6f6; color: #007aff; }
.wa__input { flex: 1; display: flex; justify-content: flex-end; align-items: center; height: 32px; padding: 0 8px; border-radius: 18px; background: #fff; border: .5px solid #d1d1d6; color: #8e8e93; }
/* Con JS: las burbujas salen una a una */
.wa.is-live .wa-msg:not(.show) { opacity: 0; transform: translateY(8px) scale(.97); }
.wa.is-live .wa-msg { transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.wapp .iph { box-shadow: 0 50px 100px -34px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 70px -14px rgba(37, 211, 102, .45); }
@media (max-width: 760px) { .wapp__badge { display: none; } }

/* ===================================================================
   MEMORIA · un cerebro que puedes leer: la maqueta oscura en dos planos
   (el cielo con sus racimos y una ficha abierta), el aviso real al pie
   y los seis bloques en rejilla de tres columnas
   =================================================================== */
.mem__blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.mem__blocks li { display: flex; flex-direction: column; gap: 8px; padding-block: var(--space-5); border-top: 1px solid var(--border-strong); }
.mem__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.mem__ic svg { width: 20px; height: 20px; }
.mem__blocks h3 { font-size: 1.125rem; }
.mem__blocks p { color: var(--text-soft); font-size: var(--fs-sm); max-width: 42ch; }

/* La maqueta: el cielo a la izquierda, la ficha abierta a la derecha */
.brain { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
/* El cielo: --k escala las bolas en pantallas estrechas; la bola crece con los enlaces que recibe */
.sky { position: relative; --k: 1; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(circle at 22% 30%, rgba(145, 192, 255, .14), transparent 36%), radial-gradient(circle at 62% 54%, rgba(255, 255, 255, .07), transparent 42%); }
.sky__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky__lines path { fill: none; stroke: rgba(243, 241, 236, .24); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sky__lines .sky__edge--ghost { stroke: rgba(243, 241, 236, .34); stroke-dasharray: .07 .05; }
.sky__node { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * var(--k)); height: calc(var(--s) * var(--k)); transform: translate(-50%, -50%); border-radius: 50%; background: rgba(243, 241, 236, .14); border: 1px solid rgba(243, 241, 236, .3); }
.sky__node--hub { background: var(--blue); border-color: transparent; box-shadow: 0 0 0 6px rgba(40, 103, 228, .18); }
.sky__node--co { background: #f3f1ec; border-color: transparent; box-shadow: 0 0 0 8px rgba(243, 241, 236, .08); }
.sky__node--agent { background: #8f8a80; border-color: transparent; }
.sky__node--ghost { background: transparent; border: 1px dashed rgba(243, 241, 236, .6); }
.sky__label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(var(--dy, 18px) * var(--k))); font-size: var(--fs-xs); font-weight: 650; color: #f3f1ec; white-space: nowrap; }
.sky__label--soft { color: #aaa69e; font-weight: 600; }
/* Las aristas se dibujan UNA vez al entrar en pantalla (el JS solo pone .is-visible al .reveal); las bolas
   aparecen antes que su arista. Sin JS o con «menos movimiento», el cielo nace dibujado. */
@keyframes edge-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes edge-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes node-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.js .reveal.is-visible .sky__lines path { animation: edge-draw 720ms var(--ease) calc(.4s + var(--i, 0) * 70ms) both; }
.js .reveal.is-visible .sky__lines .sky__edge--ghost { animation-name: edge-fade; }
.js .reveal.is-visible .sky__node { animation: node-in 520ms var(--ease-expo) calc(.25s + var(--i, 0) * 70ms) both; }

/* La ficha abierta: el encabezado real (name · description · type) y los [[enlaces]] en azul */
.ficha { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-left: 1px solid #2c2a26; background: #1a1917; color: #f3f1ec; font-size: var(--fs-xs); line-height: 1.5; }
.ficha__fm { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c2a26; background: #121211; font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; font-size: .75rem; line-height: 1.5; color: #d9d5cc; overflow-wrap: anywhere; }
.ficha__rule { color: #6f6a61; }
.ficha__k { color: #aaa69e; }
.ficha__h { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ficha__hash { color: #6f6a61; font-weight: 600; margin-right: 6px; }
.ficha__p { color: #e6e3dc; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.wl { color: #91c0ff; font-weight: 600; }
.ficha__tags { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.badge--type { background: #142039; color: #91c0ff; }

/* El pie: el aviso real como burbuja de WhatsApp y el botón literal del panel */
.brain__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 14px 16px; }
.wabub { display: flex; align-items: flex-start; gap: 10px; max-width: 64ch; padding: 10px 14px; border-radius: 12px; border-top-left-radius: 4px; background: #202c33; color: #e9edef; font-size: var(--fs-xs); line-height: 1.45; }
.wabub__ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #25d366; }
.brain__review { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid #3d3a34; color: #f3f1ec; font-weight: 650; font-size: var(--fs-xs); white-space: nowrap; }
.brain__review svg { width: 16px; height: 16px; color: #91c0ff; }

/* ===================================================================
   MODELOS · logos de proveedores en fila y el selector con sus tres niveles
   =================================================================== */
.mdl__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mdl__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.providers li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 650; font-size: var(--fs-sm); }
.providers svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--text); }
.mdl__note { margin-top: 18px; color: var(--text-soft); font-size: var(--fs-sm); max-width: 44ch; }
.levels { display: flex; flex-direction: column; }
.level { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); }
.level:first-child { border-top: 0; }
.level__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.level__txt strong { font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 8px; }
.level__txt span { font-size: var(--fs-xs); color: var(--text-soft); }
.level--on { background: var(--surface-2); }
.level__check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--ink-text); }
.level__check svg { width: 10px; height: 10px; }
.meters { display: flex; flex-direction: column; gap: 6px; }
.meter { display: flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 650; color: var(--text-soft); }
.meter span { width: 62px; text-align: right; }
.meter i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.meter i.on { background: var(--text); }
.meter--cost i.on { background: var(--accent-text); }

/* ===================================================================
   APPS DE LA CASA · filas alternas, vídeo real con póster y pausa
   =================================================================== */
.app { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.app + .app { margin-top: clamp(56px, 7vw, 104px); }
.app--rev .app__media { order: 2; }
.app__media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0d1320; box-shadow: var(--shadow); border: 1px solid var(--border); }
/* El póster es un <img loading="lazy"> detrás del vídeo: no compite con la carga inicial */
.media-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app__media video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.app__toggle { position: absolute; right: 14px; bottom: 14px; }
.app__body { display: flex; flex-direction: column; gap: var(--space-3); max-width: 30rem; }
.app__tag { font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); letter-spacing: .08em; text-transform: uppercase; }
.app__body h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.app__body p { color: var(--text-soft); }
/* Las tres apps sin vídeo (CRM, Reservas, Control horario): fila de tres tarjetas, póster generado
   en casa arriba y tag, título y párrafo debajo; una columna en móvil (E7) */
.apps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(56px, 7vw, 104px); align-items: start; }
.appcard { display: flex; flex-direction: column; gap: var(--space-5); }
.app__media--still { background: var(--surface-2); }
.appcard .app__body { max-width: none; }
.appcard .app__body h3 { font-size: var(--fs-h3); }
.appcard .app__body p { font-size: var(--fs-sm); }

/* ===================================================================
   TUS DATOS · lista sin tarjetas + Enzo con la llave
   =================================================================== */
.trust { overflow: hidden; }
.trust__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.trust__copy h2 { font-size: var(--fs-h2); margin-bottom: var(--space-7); max-width: 14ch; }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.trust__list li { padding-block: var(--space-5); border-top: 1px solid var(--border-strong); }
.trust__list h3 { font-size: 1.125rem; margin-bottom: 6px; }
.trust__list p { color: var(--text-soft); font-size: var(--fs-sm); }
.trust__visual { display: flex; justify-content: center; }
.trust__visual img { width: min(300px, 100%); height: auto; filter: var(--figure-shadow); }

/* ===================================================================
   PLANES · tarjeta monocroma con botón tinta
   =================================================================== */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.plans__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.plans__copy h2 { font-size: var(--fs-h2); max-width: 14ch; }
.plans__copy p { font-family: var(--serif); font-size: var(--fs-serif-lead); line-height: 1.5; color: var(--text-soft); max-width: 34rem; }
.plan { position: relative; overflow: hidden; padding: clamp(28px, 3vw, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--space-5); }
.plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.plan__name { font-size: var(--fs-h3); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan__per { color: var(--text-soft); }
.plan__note { font-size: var(--fs-xs); color: var(--text-soft); }

/* ===================================================================
   BANDA-FRASE · crema, serif grande, una sola frase
   =================================================================== */
.band { padding-block: clamp(64px, 8vw, 128px); }
.band__text { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.625rem, 1.1rem + 2.4vw, 3rem); line-height: 1.22; letter-spacing: -0.015em; max-width: 24ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.band__text strong { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -0.03em; }

/* ===================================================================
   FAQ · dos columnas, agrupadas en tres bloques con rótulo
   =================================================================== */
.faq__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.faq__group + .faq__group { margin-top: var(--space-7); }
.faq__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px; }
.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--border-strong); }
.faq__item:last-child { border-bottom: 1px solid var(--border-strong); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; transition: color var(--t-fast); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__item summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181a' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>") center / 13px no-repeat; transition: transform var(--t-base) var(--ease), background-color var(--t-base); }
:root[data-theme="dark"] .faq__item summary::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f1ec' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq__item summary::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f1ec' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>"); }
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--surface-2); }
.faq__item p { padding: 0 46px 20px 0; color: var(--text-soft); max-width: 62ch; }

/* ===================================================================
   CTA FINAL · el azul de la marca carga la sección; la tarjeta es neutra
   =================================================================== */
.cta { position: relative; overflow: hidden; padding-block: calc(var(--section-lg) + 40px) var(--section-lg); background-color: var(--band); background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%); color: var(--band-text); }
.cta__card { position: relative; max-width: 720px; margin-inline: auto; text-align: center; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: clamp(56px, 7vw, 80px) clamp(24px, 5vw, 64px) clamp(40px, 5vw, 56px); box-shadow: 0 40px 80px -40px rgba(4, 12, 40, .6); }
.cta__peek { position: absolute; left: 50%; top: 0; width: clamp(160px, 18vw, 210px); height: auto; transform: translate(-50%, -80%); pointer-events: none; }
.cta__card h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-bottom: 12px; }
.cta__lead { font-family: var(--sans); color: var(--text-soft); font-size: var(--fs-serif-lead); line-height: 1.5; max-width: 34rem; margin: 0 auto var(--space-6); }
/* Lista de espera: un mailto honesto (no hay formulario que finja enviar nada) */
.cta__actions { display: flex; justify-content: center; }
.cta__note { margin: 16px auto 0; max-width: 34rem; font-size: var(--fs-sm); color: var(--text-soft); }
.cta__note a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===================================================================
   FOOTER · cinco columnas y el wordmark grande
   =================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-5); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-8); }
.footer__tag { color: var(--text-soft); margin-top: 12px; max-width: 280px; font-size: var(--fs-sm); }
.footer__cols { display: contents; }
.footer__cols h3, .footer__col h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin-bottom: 8px; font-weight: 700; }
.footer__cols a, .footer__col a { display: flex; align-items: center; min-height: 40px; color: var(--text-soft); font-size: var(--fs-sm); transition: color var(--t-fast); }
.footer__cols a:hover, .footer__col a:hover { color: var(--text); }
.footer__btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 550; text-align: left; transition: color var(--t-fast); }
.footer__btn:hover { color: var(--text); }
.footer__btn svg { width: 16px; height: 16px; }
.footer__wordmark { padding-block: var(--space-6) var(--space-5); border-top: 1px solid var(--border); color: var(--text); }
.footer__wordmark svg { width: 100%; height: auto; }
.footer__bottom { padding-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-soft); }

/* ===================================================================
   Aparición al hacer scroll: solo si el script ha marcado <html class="js">.
   Sin JS, todo se ve.
   =================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .msg { opacity: 1; transform: none; }
  .typing { display: none; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--space-5) 20px; box-shadow: var(--shadow);
  }
  .nav__links.is-open a { min-height: 48px; padding: 0 4px; font-size: 1.0625rem; }
  .nav__links.is-open .nav__links-login { display: flex; }
  .nav__links.is-open .nav__links-lang { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 1.0625rem; font-weight: 550; color: var(--text-soft); text-align: left; }
  .nav__links.is-open .nav__links-cta { display: inline-flex; margin-top: 10px; justify-content: center; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .sec-head, .team__body, .packs, .conn__inner, .cad__grid, .brain, .mdl__grid, .app, .apps__grid, .trust__inner, .plans, .faq__cols { grid-template-columns: 1fr; }
  .mem__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sky { --k: .85; aspect-ratio: 16 / 10; }
  .ficha { border-left: 0; border-top: 1px solid #2c2a26; }
  .sec-head { align-items: start; }
  .sec-head h2, .conn__copy h2, .trust__copy h2, .plans__copy h2 { max-width: none; }
  .conn__copy { position: static; }
  .app--rev .app__media { order: 0; }
  .packs { grid-template-areas: "intro" "panels"; grid-template-rows: auto; }
  .packs.is-tabbed { grid-template-areas: "intro" "tabs" "panels"; grid-template-rows: auto; }
  .packs__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .packs__tabs::-webkit-scrollbar { display: none; }
  .packs__tab { flex-shrink: 0; white-space: nowrap; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__visual img { width: min(220px, 60%); }
  .wapp__inner { grid-template-columns: 1fr; justify-items: center; }
  .wapp__copy { align-items: flex-start; }
  .faq__cols > .faq__col + .faq__col { margin-top: var(--space-7); }
}
@media (max-width: 680px) {
  .nav__inner { height: 64px; }
  .brand__logo { width: 103px; height: 26px; }
  .nav__login, #langToggle { display: none; }
  .notice__inner { flex-wrap: wrap; justify-content: flex-start; gap: 10px; padding-block: 10px; }
  .notice__text { flex: 1 1 100%; order: 3; }
  .notice__close { margin-left: auto; }
  .conn__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .providers { grid-template-columns: 1fr 1fr; }
  .level { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust__list { grid-template-columns: 1fr; }
  .trust__visual { display: none; }
  .mem__blocks { grid-template-columns: 1fr; }
  .sky { --k: .7; aspect-ratio: 4 / 3; }
  .brain__review { width: 100%; justify-content: center; }
  .plan__head { flex-wrap: wrap; }
  .cta { padding-block: calc(var(--section-md) + 56px) var(--section-md); }
  .cta__card { padding-top: 64px; }
  .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .phone { width: 300px; }
  .chat { height: 470px; }
  .tasks li, .level { padding-inline: 14px; }
  .agent { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .conn__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   HERO · móvil: la tarjeta a lo alto de la pantalla, cada toma encuadrada
   en su sujeto (--pos) y las burbujas arriba como un chat [f4c0f30 · tal cual]
   =================================================================== */
@media (max-width: 980px) {
  .reel__copy { max-width: 76%; }
  .reel__chat { width: min(360px, 42%); }
}
@media (max-width: 760px) {
  .hero { padding-top: 4px; }
  .reel { height: calc(100svh - 80px); min-height: 460px; max-height: 176vw; margin-inline: 10px; border-radius: var(--radius-lg); }
  .reel__poster, .reel__video { object-position: var(--pos, 50% 50%); }
  .reel__scrim { background: linear-gradient(to top, rgba(6, 10, 22, .86) 0%, rgba(6, 10, 22, .44) 34%, transparent 56%); }
  .reel__chat { left: 12px; right: 12px; top: 12px; width: auto; }
  .reel__msg { max-width: 88%; padding: 8px 12px 9px; font-size: var(--fs-xs); }
  .reel__copy { left: 16px; right: 16px; bottom: 20px; max-width: none; gap: var(--space-4); }
  .reel .btn--glass { display: none; }
  .reel .hero__title { font-size: clamp(1.9rem, 1.1rem + 4vw, 2.6rem); }
}

/* ===================================================================
   EL PROBLEMA · sobre el fondo de la página (fluye con el resto), en tinta y
   solo Satoshi. El azul de marca SOLO en la solución: el puente y el check.
   La frase a la izquierda, los problemas a la derecha.
   Base = todo visible y quieto (sin JS o con «menos movimiento»).
   Con .is-live (script.js) cada problema se enciende al llegar a él; el
   scroll es el normal de la página: nada se ancla ni lo frena. La frase
   acompaña, fija, en su columna mientras se recorren los problemas.
   Sigue el tema claro/oscuro por los tokens.
   =================================================================== */
.prob {
  --pb-soft: var(--text-soft);
  --pb-ghost: color-mix(in srgb, var(--text) 16%, transparent);
  --pb-rule: var(--border);
  position: relative; color: var(--text); background: var(--bg);
}
.prob__stage {
  position: relative; display: flex; align-items: center;
  padding-block: var(--section-md) var(--section);
}
.prob__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start; column-gap: clamp(32px, 6vw, 96px);
}
.prob__title {
  position: sticky; top: clamp(96px, 30vh, 280px);
  color: var(--text); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(2.25rem, 1rem + 3.7vw, 4.375rem);
  text-wrap: balance; max-width: 13ch;
}
.prob__lead {
  display: block; color: var(--pb-soft); font-weight: 700;
  font-size: .46em; letter-spacing: -0.025em; margin-bottom: .5em;
}
/* «fácil» subrayado con dos rayas azules, a mano alzada (eco del doble check del logo) */
.prob__easy { position: relative; display: inline-block; white-space: nowrap; }
.prob__easy::before, .prob__easy::after {
  content: ""; position: absolute; height: .07em; border-radius: 999px;
  background: var(--accent-text); transform-origin: left center;
  transition: transform 560ms var(--ease);
}
.prob__easy::before { left: -.02em; right: -.04em; bottom: -.12em; transform: rotate(-2deg); }
.prob__easy::after { left: .12em; right: .22em; bottom: -.26em; transform: rotate(-1deg); }
/* Con JS se dibujan de izquierda a derecha, una tras otra, al entrar la frase */
.prob.is-live .prob__easy::before { transform: rotate(-2deg) scaleX(0); }
.prob.is-live .prob__easy::after { transform: rotate(-1deg) scaleX(0); }
.prob.is-live .prob__title.is-on .prob__easy::before { transform: rotate(-2deg) scaleX(1); transition-delay: 250ms; }
.prob.is-live .prob__title.is-on .prob__easy::after { transform: rotate(-1deg) scaleX(1); transition-delay: 520ms; }

.prob__lines { position: relative; }
.pain, .pivot {
  font-size: clamp(1.375rem, .9rem + 1.6vw, 2.25rem);
  line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease), color 520ms var(--ease);
}
.pain {
  padding-block: clamp(28px, 6vh, 56px);
  border-top: 1px solid var(--pb-rule);
  color: var(--pb-soft); font-weight: 500;
}
.pain b { display: block; font-weight: 800; color: var(--text); transition: color 520ms var(--ease); }
/* El puente cierra la lista: su línea de arriba es la de debajo del tercer problema */
.pivot {
  padding-top: clamp(28px, 6vh, 56px);
  border-top: 1px solid var(--pb-rule);
  display: flex; flex-direction: column; gap: .15em;
  color: var(--pb-soft); font-weight: 500;
}
.pivot b {
  display: block;
  color: var(--accent-text); font-weight: 850; font-size: 1.25em; line-height: 1.05; letter-spacing: -0.04em;
}
/* El check va en línea con la última palabra, no en una fila suya */
.pivot svg { display: inline-block; width: 1.1em; height: auto; margin-left: .15em; vertical-align: -.02em; }
/* Con JS: cada problema (y el puente) se enciende al llegar a él, una vez */
.prob.is-live .pain, .prob.is-live .pain b { color: var(--pb-ghost); }
.prob.is-live .pain.is-on { color: var(--pb-soft); }
.prob.is-live .pain.is-on b { color: var(--text); }
.prob.is-live .pivot { opacity: 0; transform: translateY(.5em); }
.prob.is-live .pivot.is-on { opacity: 1; transform: none; }

/* Móvil: la frase arriba, los problemas debajo */
@media (max-width: 760px) {
  .prob__inner { grid-template-columns: 1fr; row-gap: 28px; }
  .prob__title { position: static; }
  .pain { padding-block: 22px; }
}

/* ===================================================================
   CÓMO FUNCIONA (v3, 13-sep · Javier: «que se vea todo el proceso…
   porque lo que es fácil es montarlo»). Pantalla partida a sangre: los
   tres pasos a la izquierda; la mitad derecha es la pantalla de Wuama
   como un vídeo en tres escenas (data-scene) con un cursor que hace los
   clics: 1 Equipos por sector → instala Hostelería · 2 sus agentes →
   entra en Reservas · 3 el chat: pregunta, «Cómo lo he hecho» y el OK.
   Base (sin JS o con «menos movimiento») = escena 3 completa y quieta.
   =================================================================== */
.how {
  --how-line: var(--border);
  --how-me: color-mix(in srgb, var(--text) 6%, var(--bg));
  --how-pad: max(24px, calc((100% - 620px) / 2));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---- La mitad de los pasos (alineada con el resto de la página) ---- */
.how__copy {
  align-self: center;
  padding-block: var(--section);
  padding-inline: max(var(--space-5), calc((100vw - var(--maxw)) / 2 + var(--space-5))) clamp(32px, 5vw, 80px);
}
.how__title { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; }
.how__lead { margin-top: var(--space-3); font-size: var(--fs-lead); color: var(--text-soft); max-width: 42ch; }
.how__steps { list-style: none; margin-top: clamp(28px, 4vw, 44px); display: grid; }
.how__step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4);
  padding-block: var(--space-5); border-top: 1px solid var(--border);
  transition: opacity 420ms var(--ease);
}
.how__step:last-child { border-bottom: 1px solid var(--border); }
.how__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--border-strong); color: var(--text);
  transition: background-color 420ms var(--ease), border-color 420ms var(--ease), color 420ms var(--ease);
}
.how__step--ok .how__num { border-color: var(--blue); color: var(--accent-text); }
.how__step h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.03em; }
.how__step p { margin-top: 4px; color: var(--text-soft); max-width: 44ch; }

/* ---- La mitad de la pantalla: Wuama, blanca y limpia ---- */
.how__screen {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  height: clamp(600px, calc(100svh - 96px), 780px);
  background: var(--bg); border-left: 1px solid var(--how-line);
}
.how__top { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px var(--how-pad); border-bottom: 1px solid var(--how-line); flex-shrink: 0; }
.how__logo { width: 72px; height: 19px; color: var(--text); flex-shrink: 0; }
.how__sep { color: var(--border-strong); font-weight: 300; font-size: 1.25rem; }
.how__where { display: none; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 750; }
.how__where small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-soft); }
.how__where > span { display: flex; flex-direction: column; line-height: 1.25; }
.how[data-scene="1"] .how__where--1, .how[data-scene="2"] .how__where--2, .how[data-scene="3"] .how__where--3 { display: inline-flex; }
.how__scenes { position: relative; flex: 1; min-height: 0; transition: opacity 420ms var(--ease); }
.how__scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px var(--how-pad);
  opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease), visibility 0s linear 420ms;
}
.how__scene--3 { padding: 0; }
.how[data-scene="1"] .how__scene--1, .how[data-scene="2"] .how__scene--2, .how[data-scene="3"] .how__scene--3 {
  opacity: 1; visibility: visible; transition: opacity 420ms var(--ease);
}
.how__avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: radial-gradient(circle at 50% 35%, #2f6bff, #123a8f);
}
.how__avatar img { width: 150%; height: 150%; max-width: none; margin-left: -25%; object-fit: cover; object-position: 50% 12%; }
.how__avatar--agent { background: #e8effd; }
.how__avatar--agent img { width: 160%; height: 160%; margin-left: -30%; object-position: 50% 6%; }

/* 1 · Equipos por sector */
.how__packs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how__pack {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--how-line); background: var(--surface);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.how__pack img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.how__pack b { display: block; padding: 8px 10px; font-size: .875rem; font-weight: 700; }
.how__pack.is-picked { box-shadow: 0 0 0 2px var(--blue); transform: translateY(-2px); }
.how__sheet {
  position: absolute; left: var(--how-pad); right: var(--how-pad); bottom: 18px; z-index: 2;
  display: grid; gap: 14px; padding: 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--how-line); box-shadow: 0 28px 60px -26px rgba(16, 24, 40, .5);
  transform: translateY(calc(100% + 40px)); transition: transform 520ms var(--ease);
}
.how.is-sheet .how__sheet { transform: none; }
.how__sheet-head { display: flex; align-items: center; gap: 12px; }
.how__sheet-head img { width: 64px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.how__sheet-head b { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.how__sheet-head span { font-size: .8125rem; color: var(--text-soft); }
.how__faces { display: flex; }
.how__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #e8effd; box-shadow: 0 0 0 2px var(--surface); margin-left: -8px; }
.how__faces img:first-child { margin-left: 0; }
.how__install {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 46px;
  border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: .9375rem; font-weight: 700;
  transition: background-color 300ms var(--ease);
}
.how__install > span { position: relative; z-index: 1; }
.how__install-b, .how__install-c { display: none; }
.how__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: #1747b8; }
.how.is-installing .how__install-a, .how.is-installed .how__install-a { display: none; }
.how.is-installing .how__install-b { display: inline; }
.how.is-installing .how__bar { width: 100%; transition: width 1500ms linear; }
.how.is-installed .how__install { background: #15803d; }
.how.is-installed .how__install-c { display: inline-flex; align-items: center; gap: 8px; }
.how.is-installed .how__install-c::before { content: "✓"; font-weight: 900; }

/* 2 · Tus agentes */
.how__agents { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how__agent {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px;
  border-radius: 16px; border: 1px solid var(--how-line); background: var(--surface);
  transition: box-shadow 300ms var(--ease);
}
.how__agent img { width: clamp(64px, 6vw, 84px); height: auto; filter: drop-shadow(0 8px 8px rgba(20, 44, 120, .14)); }
.how__agent b { font-size: .875rem; font-weight: 750; text-align: center; }
.how__agent span { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok-text); font-size: .75rem; font-weight: 700; }
.how__agent.is-picked { box-shadow: 0 0 0 2px var(--blue); }
.how.is-live[data-scene="2"] .how__agent { animation: how-pop 420ms var(--ease) both; animation-delay: calc(var(--i) * 140ms + 150ms); }

/* 3 · El chat con Reservas (hilo que crece desde abajo, como el chat de verdad) */
.how__thread {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  padding: 20px var(--how-pad);
}
.how__row { display: flex; gap: 12px; align-items: flex-start; }
.how__row--me { justify-content: flex-end; }
.how__row--card { padding-left: 44px; }
.how__msg { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.how__bub { max-width: 80%; font-size: .9375rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.how__bub--me { padding: 10px 16px; border-radius: 20px; background: var(--how-me); }
.how__bub--enzo { padding-top: 4px; }
.how__msg .how__bub { max-width: 100%; }
.how__name { display: block; margin-bottom: 2px; font-size: .8125rem; font-weight: 750; color: var(--text); }
.how__typing { display: none; }
.how__dots { display: inline-flex; gap: 5px; padding: 14px 0 0; }
.how__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); animation: how-dot 1s ease-in-out infinite; }
.how__dots i:nth-child(2) { animation-delay: .15s; }
.how__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes how-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.how__log { border: 1px solid var(--how-line); border-radius: 14px; background: var(--bg); font-size: .8125rem; }
.how__log-btn { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--text-soft); font-weight: 600; }
.how__chev { width: 14px; height: 14px; flex-shrink: 0; transition: transform 320ms var(--ease); }
.how__log.is-open .how__chev { transform: rotate(90deg); }
.how__log-n { margin-left: auto; font-weight: 500; }
.how__log-rows { list-style: none; display: none; position: relative; padding: 2px 14px 12px; }
.how__log.is-open .how__log-rows { display: block; }
.how__log-rows::before { content: ""; position: absolute; left: 25.5px; top: 16px; bottom: 22px; width: 1.5px; background: var(--how-line); }
.how__ev { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.how__ev-ic {
  position: relative; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: #ffffff; box-shadow: 0 0 0 1px var(--how-line), 0 0 0 4px var(--bg); color: #16181a;
}
.how__ev-ic svg { width: 14px; height: 14px; }
.how__ev-ic--agent { background: #e8effd; }
.how__ev-ic--agent img { width: 160%; height: 160%; max-width: none; object-fit: cover; object-position: 50% 8%; }
.how__ev-tit { flex: 1; min-width: 0; color: var(--text-soft); line-height: 1.4; }
.how__ev-tit b { color: var(--text); font-weight: 650; }
.how__card { width: 100%; max-width: 440px; border-radius: 16px; border: 1px solid var(--how-line); box-shadow: 0 10px 28px -16px rgba(16, 24, 40, .22); }
.how__st { background: var(--ok-bg); color: var(--ok-text); }
.how__b1 { display: none; }
.how__approve { background: var(--blue); color: #fff; transition: transform 200ms var(--ease), box-shadow 300ms var(--ease); }
.how__approve.is-pressed { transform: scale(.93); box-shadow: 0 0 0 6px var(--blue-glow); }
.how .mock__actions { transition: opacity 380ms var(--ease); }
.how:not(.is-live) .how__card .mock__actions,
.how__card.is-approved .mock__actions { opacity: .4; }
.how__composer { display: flex; align-items: center; padding: 12px var(--how-pad) 22px; flex-shrink: 0; }
.how__input {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: 54px; padding: 0 64px 0 20px;
  border-radius: 27px; background: var(--surface); border: 1px solid var(--how-line);
  box-shadow: 0 8px 24px -14px rgba(16, 24, 40, .25);
  font-size: .9375rem; color: var(--text); white-space: nowrap; overflow: hidden;
}
.how__ph { color: var(--text-soft); }
.how__caret { display: none; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--accent-text); animation: how-caret 1s steps(1) infinite; }
.how__composer.is-typing .how__ph { display: none; }
.how__composer.is-typing .how__caret { display: inline-block; }
@keyframes how-caret { 50% { opacity: 0; } }
.how__send { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -51px; border-radius: 50%; flex-shrink: 0; background: var(--blue); color: #fff; }
.how__send svg { width: 18px; height: 18px; }

/* El cursor que hace los clics */
.how__cursor {
  position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; opacity: 0;
  transform: translate(var(--cx, 50%), var(--cy, 90%));
  transition: transform 800ms var(--ease), opacity 300ms var(--ease);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
}
.how__cursor svg { display: block; }
.how__cursor.is-on { opacity: 1; }
.how__cursor.is-click::after {
  content: ""; position: absolute; left: -12px; top: -12px; width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 40%, transparent); animation: how-click 520ms var(--ease) both;
}
@keyframes how-click { from { scale: .3; opacity: 1; } to { scale: 1.5; opacity: 0; } }

/* ---- Con JS: el «vídeo» ---- */
.how.is-live .how__step { opacity: .38; }
.how.is-live[data-how-step="1"] .how__step[data-how="1"],
.how.is-live[data-how-step="2"] .how__step[data-how="2"],
.how.is-live[data-how-step="3"] .how__step[data-how="3"] { opacity: 1; }
.how.is-live[data-how-step="1"] .how__step[data-how="1"] .how__num,
.how.is-live[data-how-step="2"] .how__step[data-how="2"] .how__num { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.how.is-live[data-how-step="3"] .how__step[data-how="3"] .how__num { background: var(--blue); border-color: var(--blue); color: #fff; }
.how.is-live [data-f]:not(.is-shown),
.how.is-live [data-r]:not(.is-shown) { display: none; }
.how.is-live .how__typing.is-shown { display: flex; }
.how.is-live [data-f].is-shown,
.how.is-live [data-r].is-shown { animation: how-pop 360ms var(--ease) both; }
@keyframes how-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.how.is-live .how__card:not(.is-approved) .how__st { background: var(--warn-bg); color: var(--warn-text); }
.how.is-live .how__card:not(.is-approved) .how__b1 { display: inline; }
.how.is-live .how__card:not(.is-approved) .how__b2 { display: none; }
.how.is-live .how__scenes.is-rewind { opacity: 0; }

/* Móvil: los pasos arriba y la pantalla debajo, a lo ancho */
@media (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how__copy { padding-block: var(--section) var(--space-7); padding-inline: var(--space-5); }
  .how__screen { height: 660px; border-left: 0; border-top: 1px solid var(--how-line); }
  .how__row--card { padding-left: 0; }
  .how__packs, .how__agents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how__pack img { aspect-ratio: 16 / 9; }
}

/* ===================================================================
   TU EQUIPO · «un agente para cada trabajo»: un MURO de Enzos disfrazados
   que pasa sin parar (tres filas, sentidos alternos, CSS puro; cada fila
   lleva su juego dos veces para que el bucle no tenga costura), tres ideas
   cortas y los packs por sector con su escena (pestañas [data-tabs] en
   script.js). Debajo de cada Enzo va un OFICIO, no un producto.
   =================================================================== */
/* El muro va a sangre con 100vw: se recorta aquí para no invadir la barra de scroll (clip no crea
   contenedor de scroll, así que no rompe ningún sticky) */
.crew { overflow-x: clip; }
.crew__head { max-width: 820px; }
.crew__title { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; }
.crew__accent { color: var(--accent-text); }
.crew__lead { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--text-soft); max-width: 56ch; }

/* El muro, DENTRO de los márgenes de la página (Javier, 13-sep: el difuminado blanco va en el borde del
   contenido, no en el de la pantalla) */
.crew__wall {
  width: 100%; margin-top: clamp(32px, 5vw, 56px);
  display: grid; gap: clamp(10px, 1.6vw, 22px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.crew__row { display: flex; width: max-content; animation: crew-marquee var(--dur, 70s) linear infinite; }
.crew__row--rev { animation-direction: reverse; }
.crew__set { list-style: none; display: flex; gap: clamp(10px, 1.6vw, 24px); padding-right: clamp(10px, 1.6vw, 24px); }
.crew__who { width: clamp(104px, 10.5vw, 150px); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.crew__who img { width: 100%; height: auto; filter: drop-shadow(0 12px 12px rgba(20, 44, 120, .14)); }
.crew__who span { font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); text-align: center; white-space: nowrap; }
@keyframes crew-marquee { to { transform: translateX(-50%); } }

/* Los packs por sector */
.crew__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.crew__tasks { list-style: none; margin-top: var(--space-3); display: grid; gap: 8px; }
.crew__tasks li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface)); font-weight: 600; font-size: var(--fs-sm);
}
.crew__tasks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
/* El panel de packs: la mancha de azul de marca de la sección (el degradado del logo) */
.crew__packs {
  margin-top: clamp(64px, 9vw, 112px); padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl); color: #fff;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(10, 30, 90, .35) 0%, transparent 60%),
    linear-gradient(160deg, #2075FF 0%, #1a5ee6 45%, #1441AA 100%);
}
.crew__packs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: end; }
.crew__packs-title { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.875rem); font-weight: 850; letter-spacing: -0.045em; color: #fff; text-wrap: balance; }
.crew__packs-head p { color: rgba(255, 255, 255, .84); font-size: var(--fs-lead); max-width: 50ch; }
.crew__sectors { display: none; }
.crew__packs.is-tabbed .crew__sectors {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-6); padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.crew__sectors::-webkit-scrollbar { display: none; }
.crew__sector {
  flex-shrink: 0; padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .42); background: transparent; color: #fff;
  font: inherit; font-size: var(--fs-sm); font-weight: 650;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}
.crew__sector:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.crew__sector[aria-selected="true"] { background: #fff; color: #1441AA; border-color: #fff; }
.crew__sector:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.crew__pack {
  margin-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden; color: var(--text);
  background: var(--surface); box-shadow: 0 30px 60px -30px rgba(6, 20, 70, .6);
}
.crew__pack[hidden] { display: none; }
.crew__scene { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.crew__pack-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.crew__pack-body h4 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.03em; }
.crew__packs.is-tabbed .crew__pack { animation: crew-in 360ms var(--ease); }
@keyframes crew-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .crew__wall { --wall-cols: 4; }
  .crew__packs-head { grid-template-columns: minmax(0, 1fr); }
  .crew__packs.is-tabbed .crew__sectors { flex-wrap: nowrap; }
  .crew__pack { grid-template-columns: minmax(0, 1fr); }
}
/* Menos movimiento: el muro quieto, en rejilla, y sin el juego duplicado */
@media (prefers-reduced-motion: reduce) {
  /* Las 24 figuras en UNA rejilla (filas y juegos se disuelven): 3 filas exactas de 8, 6 de 4 en móvil */
  .crew__wall {
    width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none;
    grid-template-columns: repeat(var(--wall-cols, 8), minmax(0, 1fr)); justify-items: center;
  }
  .crew__row, .crew__set { display: contents; }
  .crew__row { animation: none; }
  .crew__set[aria-hidden="true"] { display: none; }
  .crew__who { width: 100%; max-width: 150px; }
  .crew__sector { transition: none; }
  .crew__packs.is-tabbed .crew__pack { animation: none; }
}

/* ===================================================================
   ORGANIZA · «Organízalos como una empresa. Y deja que trabajen solos.»
   Sobre el fondo de la página (blanco / oscuro por tokens) y a propósito
   distinta de «Cómo funciona»: titular centrado, el organigrama de Enzos
   A LO ANCHO sobre una retícula de puntos que se reordena en bucle
   (script.js: sueltos → departamento → CEO, con la ronda como puntos de
   luz), la CASILLA DE AUTONOMÍA (baja → alta) arriba del escenario y los
   tres niveles debajo. data-org-level manda en casilla, niveles y
   posiciones; base = nivel 3 quieto (sin JS o con «menos movimiento»).
   =================================================================== */
.org {
  --org-line: color-mix(in srgb, var(--blue) 32%, var(--border));
  padding-block: var(--section-md); overflow-x: clip;
}
.org__head { max-width: 900px; text-align: center; }
.org__title { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; text-wrap: balance; }
.org__accent { color: var(--accent-text); }
.org__lead { margin: var(--space-4) auto 0; font-size: var(--fs-lead); color: var(--text-soft); max-width: 50ch; }

/* El escenario, a lo ancho, sobre una retícula de puntos fundida por los bordes */
.org__stage {
  position: relative; height: clamp(400px, 35vw, 500px); margin-top: clamp(20px, 3vw, 36px);
  transition: opacity 400ms var(--ease);
}
.org__stage::before {
  content: ""; position: absolute; inset: -16px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 78%);
}
.org__stage.is-rewind { opacity: 0; }
.org__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 300ms var(--ease); }
.org__lines.is-fading { opacity: 0; }
.org__lines line { stroke: var(--org-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.org__node {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transform: translate(-50%, -50%);
  transition: left 720ms var(--ease), top 720ms var(--ease), opacity 420ms var(--ease);
}
.org.is-snap .org__node { transition: none; }
.org__node img { width: clamp(62px, 6.4vw, 90px); height: auto; filter: drop-shadow(0 10px 10px rgba(20, 44, 120, .16)); }
.org__node.is-off { opacity: 0; }
.org__label {
  padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--text); text-align: center;
}
.org__you {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--ink-text); box-shadow: 0 10px 22px -10px rgba(20, 44, 120, .5);
}
.org__you svg { width: 26px; height: 26px; }
.org__dot {
  position: absolute; z-index: 1; width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 5px var(--blue-glow);
  transform: translate(-50%, -50%); pointer-events: none;
  transition: left 850ms var(--ease), top 850ms var(--ease);
}
.org__ok {
  position: absolute; z-index: 3; left: 84%; top: calc(8% + 62px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: 240px;
  padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; color: var(--text);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.org__ok svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ok-text); }

/* La casilla de autonomía: tres rayas que se llenan y la palabra baja / media / alta */
.org__meter {
  position: absolute; top: 0; left: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft);
}
.org__bars { display: flex; gap: 4px; }
.org__bars i { width: 30px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); transition: background-color 420ms var(--ease); }
.org[data-org-level="1"] .org__bars i:nth-child(-n+1),
.org[data-org-level="2"] .org__bars i:nth-child(-n+2),
.org[data-org-level="3"] .org__bars i:nth-child(-n+3) { background: var(--blue); }
.org__mword { min-width: 3.2em; }
.org__mword b { display: none; color: var(--accent-text); font-weight: 800; }
.org[data-org-level="1"] .org__m1, .org[data-org-level="2"] .org__m2, .org[data-org-level="3"] .org__m3 { display: inline; }

/* Los tres niveles: la raya de arriba se enciende hasta el nivel en curso */
.org__track { margin-top: clamp(20px, 3vw, 32px); }
.org__lvls { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
.org__lvl { padding-top: var(--space-4); border-top: 2px solid var(--border); transition: opacity 420ms var(--ease), border-color 420ms var(--ease); }
.org[data-org-level="1"] .org__lvl:nth-child(-n+1),
.org[data-org-level="2"] .org__lvl:nth-child(-n+2),
.org[data-org-level="3"] .org__lvl:nth-child(-n+3) { border-top-color: var(--blue); }
.org__lvl h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.03em; }
.org__lvl p { margin-top: 4px; color: var(--text-soft); font-size: var(--fs-sm); max-width: 36ch; }

/* Con JS: el nivel en curso a tope, los demás esperan; el OK aparece al final de la ronda */
.org.is-live .org__lvl { opacity: .42; }
.org.is-live[data-org-level="1"] .org__lvl[data-lvl="1"],
.org.is-live[data-org-level="2"] .org__lvl[data-lvl="2"],
.org.is-live[data-org-level="3"] .org__lvl[data-lvl="3"] { opacity: 1; }
.org.is-live .org__ok:not(.is-on) { opacity: 0; transform: translateY(-30%); }

@media (max-width: 900px) {
  .org__stage { height: 440px; margin-top: 64px; }
  .org__meter { top: -56px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .org__node { width: 84px; }
  .org__node img { width: 54px; }
  .org__label { font-size: .6875rem; }
  .org__ok { left: auto; right: 0; max-width: 150px; }
  .org__lvls { grid-template-columns: minmax(0, 1fr); }
}

/* ===================================================================
   TE CONOCE (#memoria) · EL CEREBRO: Enzo con la cabeza abierta en el
   centro; a los lados, sus fuentes (en su color) unidas por hilos que
   llevan pulsos hasta el cerebro. Fondo blanco. El escenario tiene la
   proporción del viewBox (1200×620) y cada ficha va en % (--x, --y):
   las del lado izquierdo se anclan por su borde derecho y viceversa,
   justo donde nace su hilo. El vídeo se funde con el fondo (multiply en
   claro, screen en oscuro), por eso el escenario aísla y pinta --bg.
   =================================================================== */
.know__head { max-width: 780px; margin-inline: auto; text-align: center; }
.know__title { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; text-wrap: balance; }
.know__accent { color: var(--accent-text); }
.know__lead { margin: var(--space-4) auto 0; font-size: var(--fs-lead); color: var(--text-soft); max-width: 60ch; text-wrap: pretty; }

.bm {
  --wire: rgba(34, 97, 221, .2); --pulse: #2261dd; --halo: rgba(34, 97, 221, .30);
  position: relative; isolation: isolate; background: var(--bg);
  aspect-ratio: 1200 / 620; margin-top: clamp(20px, 3vw, 40px);
}
.bm__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bm__wire { fill: none; stroke: var(--wire); stroke-width: 1.5; }
.bm__pulse {
  fill: none; stroke: var(--pulse); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 6 94; animation: bm-flow 3.6s linear infinite; animation-delay: calc(var(--i) * -.47s);
}
@keyframes bm-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Enzo: el vídeo de entrada con su póster; el halo, detrás, late */
.bm__enzo { position: absolute; left: 25%; top: 24.2%; width: 50%; aspect-ratio: 1760 / 990; }
.bm__glow {
  position: absolute; left: 50%; top: 24%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--halo), transparent); animation: bm-glow 3.6s ease-in-out infinite;
}
@keyframes bm-glow { 0%, 100% { opacity: .55; scale: .92; } 50% { opacity: 1; scale: 1.05; } }
.bm__video {
  position: relative; display: block; width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}
.bm__video--dark { display: none; mix-blend-mode: screen; }

/* Las fichas: el logo en su baldosa blanca (se ve igual en los dos temas) y el nombre */
.bm__chips, .bm__more { list-style: none; margin: 0; padding: 0; }
.bm__chip {
  position: absolute; top: calc(var(--y) * 1%); translate: 0 -50%;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 15px 5px 5px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: clamp(.8125rem, 1.05vw, .9375rem); font-weight: 650; color: var(--text); white-space: nowrap;
}
.bm__chip--l { right: calc(100% - var(--x) * 1%); }
.bm__chip--r { left: calc(var(--x) * 1%); }
.bm__logo {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff; box-shadow: 0 0 0 1px var(--border); color: #16181a;
}
.bm__logo svg { width: 17px; height: 17px; }
.bm__logo--ico { background: var(--accent-soft); box-shadow: none; color: var(--accent-text); }
.bm__more { position: absolute; left: 50%; top: 92.7%; translate: -50% -50%; display: flex; gap: 10px; }
.bm__more .bm__chip { position: static; translate: none; }
.bm__chip--more { padding: 0 16px; min-height: 42px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-color: transparent; box-shadow: none; }

/* Con JS: al llegar, los hilos se dibujan, las fichas entran una tras otra y luego corren los pulsos */
.bm.is-live .bm__chip { opacity: 0; scale: .86; }
.bm.is-live.is-in .bm__chip { opacity: 1; scale: 1; transition: opacity 500ms var(--ease) calc(var(--i) * 55ms + 250ms), scale 600ms var(--ease) calc(var(--i) * 55ms + 250ms); }
.bm.is-live .bm__wire { stroke-dasharray: 100; stroke-dashoffset: 100; }
.bm.is-live.is-in .bm__wire { stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms var(--ease) calc(var(--i) * 55ms + 450ms); }
.bm.is-live .bm__pulse { opacity: 0; }
.bm.is-live.is-in .bm__pulse { opacity: 1; transition: opacity 400ms linear calc(var(--i) * 55ms + 1400ms); }

:root[data-theme="dark"] .bm { --wire: rgba(122, 167, 255, .22); --pulse: #7aa7ff; --halo: rgba(80, 140, 255, .34); }
:root[data-theme="dark"] .bm__video--light { display: none; }
:root[data-theme="dark"] .bm__video--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bm { --wire: rgba(122, 167, 255, .22); --pulse: #7aa7ff; --halo: rgba(80, 140, 255, .34); }
  :root:not([data-theme="light"]) .bm__video--light { display: none; }
  :root:not([data-theme="light"]) .bm__video--dark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .bm__pulse { display: none; }
  .bm__glow { animation: none; }
}
/* Móvil: Enzo arriba, las fuentes debajo en racimo, sin hilos */
@media (max-width: 900px) {
  .bm { aspect-ratio: auto; }
  .bm__wires { display: none; }
  .bm__enzo { position: relative; left: auto; top: auto; width: min(100%, 560px); margin-inline: auto; }
  .bm__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .bm__chip { position: static; translate: none; }
  .bm__more { position: static; translate: none; margin-top: 8px; flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* ===================================================================
   WHATSAPP · con el fondo de la web antigua (wuama-web), a petición de
   Javier: el vídeo de Enzo saltando sobre el móvil a sangre y atenuado,
   el tinte verde y la marca de agua; el texto en claro, el verde de
   WhatsApp en el acento, las marcas y el botón. Igual en los dos temas.
   =================================================================== */
.sec.wapp { position: relative; overflow: hidden; isolation: isolate; background: #061310; color: #eef5f1; border-top: 0; }
.wapp + .sec { border-top: 0; }
.wapp__poster, .wapp__bgvideo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .34; }
.wapp__tint {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 80% at 82% 50%, rgba(37, 211, 102, .20), transparent 68%),
    linear-gradient(90deg, rgba(6, 19, 16, .92) 0%, rgba(6, 19, 16, .6) 55%, rgba(6, 19, 16, .35) 100%);
}
.wapp__watermark {
  position: absolute; left: -2%; bottom: -6%; z-index: -1; pointer-events: none; user-select: none;
  font-weight: 900; font-size: clamp(6rem, 19vw, 17rem); line-height: 1; letter-spacing: -.05em; white-space: nowrap;
  color: rgba(37, 211, 102, .06);
}
.wapp .wapp__title { color: #eef5f1; }
.wapp .wapp__accent { font-family: var(--sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--wapp); }
.wapp .serif-lead { font-family: var(--sans); color: #c8d3cf; }
.wapp .checks li { color: #c8d3cf; }
.wapp .checks li::before {
  background: rgba(37, 211, 102, .16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325d366' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat;
}
.wapp .btn--primary { background: var(--wapp); color: #04150d; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .45); }
.wapp .btn--primary:hover { background: #33df74; }
.wapp .phone { box-shadow: 0 50px 100px -34px rgba(0, 0, 0, .85), 0 0 0 2px rgba(255, 255, 255, .05), 0 0 70px -14px rgba(37, 211, 102, .45); }
@media (max-width: 760px) {
  .wapp__poster, .wapp__bgvideo { opacity: .18; }
}

/* ===================================================================
   TU EQUIPO · ARRIBA (23-sep): el titular y su párrafo y, debajo, los
   modelos en UNA línea discreta —rótulo, siete fichas de logo y la nota—
   (antes: dos tarjetas, modelos y conectores; los conectores ya viven en
   el cerebro de «Te conoce» y en «las tuyas» de Tus aplicaciones). Las
   fichas van claras en los dos temas y todos los logos en su color.
   =================================================================== */
.crew__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.crew__models { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.crew__models-h { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.crew__models-note { font-size: var(--fs-sm); color: var(--text-soft); }
.crew__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crew__logos li {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: #ffffff; box-shadow: 0 0 0 1px var(--border);
}
.crew__logos svg { width: 17px; height: 17px; }
/* Tinta fija en TODAS las fichas (son blancas en los dos temas): los logos que pintan con
   currentColor —OpenAI, xAI y Notion— desaparecían en oscuro */
.crew__logos li { color: #16181a; }

/* ===================================================================
   LA TESIS (tesis.html) · página aparte de lectura larga. El mismo
   sistema que la home: tokens, solo Satoshi, tinta y un acento. El azul
   va en el progreso, el capítulo activo, los detalles de las figuras y
   la banda final. Índice fijo a la izquierda que sigue la lectura.
   =================================================================== */
.ts-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.ts-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); transform: scaleX(0); transform-origin: 0 50%; }

.ts-eyebrow { font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* Portada */
.ts-hero { padding-block: clamp(56px, 7vw, 120px) clamp(48px, 6vw, 96px); }
.ts-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.ts-hero__title { margin-top: 20px; font-size: clamp(2.625rem, 1.4rem + 4.6vw, 5.75rem); line-height: .98; letter-spacing: -0.045em; max-width: 16ch; }
.ts-hero__title [lang] > span { color: var(--text-soft); }
.ts-hero__lead { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-soft); max-width: 58ch; }
.ts-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-soft); max-width: 58ch; }
.ts-hero__meta b { color: var(--text); font-weight: 650; }
.ts-hero__fig { width: clamp(180px, 19vw, 260px); height: auto; filter: var(--figure-shadow); }

/* La tesis en cinco frases */
.ts-five { padding-bottom: clamp(24px, 3vw, 48px); }
.ts-five__h { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.ts-five__item a { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 16px; align-items: baseline; padding-block: 22px; border-bottom: 1px solid var(--border); }
.ts-five__n { font-size: var(--fs-sm); font-weight: 700; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ts-five__t { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; transition: color var(--t-fast); }
.ts-five__a { justify-self: end; color: var(--text-soft); transition: transform var(--t-base) var(--ease), color var(--t-fast); }
.ts-five__item a:hover .ts-five__t, .ts-five__item a:hover .ts-five__a { color: var(--accent-text); }
.ts-five__item a:hover .ts-five__a { transform: translateX(4px); }

/* El ensayo: índice + capítulos */
.ts-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); }
.ts-toc { position: sticky; top: 104px; align-self: start; padding-top: clamp(72px, 8vw, 120px); }
.ts-toc p { margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.ts-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--border); }
.ts-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: var(--fs-sm); font-weight: 550; line-height: 1.35; color: var(--text-soft); transition: color var(--t-fast), border-color var(--t-fast); }
.ts-toc a span { font-variant-numeric: tabular-nums; }
.ts-toc a:hover { color: var(--text); }
.ts-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--brand); }

.ts-ch { padding-block: clamp(72px, 8vw, 120px); }
.ts-ch + .ts-ch { border-top: 1px solid var(--border); }
.ts-ch h2 { margin-top: 16px; font-size: var(--fs-h2); max-width: 18ch; }
.ts-prose { margin-top: 32px; max-width: 64ch; }
.ts-prose p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.7; }
.ts-prose p + p { margin-top: 1.1em; }
.ts-src { font-size: var(--fs-sm); color: var(--text-soft); }
.ts-quote { max-width: 26ch; margin-block: clamp(40px, 5vw, 64px); padding-left: clamp(20px, 3vw, 32px); border-left: 3px solid var(--brand); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; }
.ts-fig { margin-block: clamp(40px, 5vw, 64px); }
.ts-fig figcaption { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); max-width: 62ch; }

/* 01 · las cuatro piezas de un agente */
.ts-anat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ts-anat li { padding: 22px 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ts-anat svg { width: 26px; height: 26px; color: var(--accent-text); }
.ts-anat h3 { margin-top: 18px; font-size: 1.125rem; letter-spacing: -0.02em; }
.ts-anat p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); }

/* 02 · el organigrama: tú → Enzo → departamentos */
.ts-tree { display: grid; justify-items: center; padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--border); }
.ts-node { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 700; }
.ts-node small { font-size: var(--fs-xs); font-weight: 550; color: var(--text-soft); }
.ts-node--you { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.ts-node--you small { color: inherit; opacity: .7; }
.ts-node img { width: 28px; height: 28px; margin-left: -6px; }
.ts-tree__stem { width: 1px; height: 28px; background: var(--border-strong); }
.ts-tree__depts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; padding-top: 28px; }
.ts-tree__depts::before { content: ""; position: absolute; top: 0; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); height: 1px; background: var(--border-strong); }
.ts-dept { position: relative; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ts-dept::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--border-strong); }
.ts-dept h3 { font-size: 1rem; letter-spacing: -0.01em; }
.ts-dept p { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-soft); }
.ts-dept ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ts-dept li { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-size: var(--fs-xs); font-weight: 650; }

/* 03 · la ficha con su historia + el cerebro de Enzo, fundido con el fondo */
/* isolation + fondo explícito: sin el fondo, el grupo aislado funde contra transparente y el
   fotograma se ve con su caja (negra en oscuro) */
.ts-memfig { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 48px); align-items: center; isolation: isolate; background: var(--bg); }
.ts-memfig figcaption { grid-column: 1 / -1; margin-top: 0; }
.ts-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.ts-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.ts-tag { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok-text); letter-spacing: .02em; text-transform: none; }
.ts-card__body { padding: 20px; }
.ts-card__title { font-size: 1.375rem; letter-spacing: -0.02em; }
.ts-fact { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.ts-fact__dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--ok-text); }
.ts-fact--old .ts-fact__dot { background: var(--border-strong); }
.ts-fact__v { font-weight: 650; }
.ts-fact--old .ts-fact__v { color: var(--text-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ts-fact__m { margin-top: 2px; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-soft); }
.ts-card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: var(--fs-xs); color: var(--text-soft); }
.ts-card__links span { padding: 3px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; color: var(--text); }
.ts-brain { width: 100%; max-width: 300px; height: auto; justify-self: center; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.ts-brain--light { display: var(--show-sun); mix-blend-mode: multiply; }
.ts-brain--dark { display: var(--show-moon); mix-blend-mode: screen; }

.ts-princ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(24px, 3vw, 40px); }
.ts-princ li { padding-block: 24px; border-top: 1px solid var(--border); }
.ts-princ h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.02em; }
.ts-princ h3 span { font-size: var(--fs-xs); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ts-princ p { margin-top: 8px; line-height: 1.6; color: var(--text-soft); }

/* 03 · segunda mitad del capítulo: el cerebro no es la memoria del agente */
.ts-sub { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--border); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.ts-sub + .ts-prose { margin-top: 20px; }
.ts-track li.is-just { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* La tesis va en ES y EN en el mismo HTML (cada texto con su lang): se ve el del <html lang>
   que pone applyLang. !important porque varios nodos traen su propio display (flex, btn…). */
html:not([lang="en"]) .ts-i18n [lang="en"],
html[lang="en"] .ts-i18n [lang="es"] { display: none !important; }

/* 04 · una tarea a un agente frente a un objetivo a un equipo */
.ts-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ts-vs > div { padding: 24px 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ts-vs > .is-team { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ts-vs__k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.ts-vs > .is-team .ts-vs__k { color: var(--accent-text); }
.ts-vs__ask { margin-top: 14px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }
.ts-vs__out { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); }
.ts-vs ol { display: grid; gap: 8px; margin-top: 14px; counter-reset: paso; }
.ts-vs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); counter-increment: paso; }
.ts-vs li::before { content: counter(paso); font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ts-vs { grid-template-columns: minmax(0, 1fr); } }

/* 04 · la casilla de autonomía, en tres niveles */
.ts-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ts-track li { padding: 22px 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.ts-bars { display: flex; gap: 4px; }
.ts-bars i { width: 22px; height: 6px; border-radius: 3px; background: var(--border); }
.ts-bars i.on { background: var(--brand); }
.ts-track h3 { margin-top: 18px; font-size: 1.125rem; letter-spacing: -0.02em; }
.ts-track p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); }

/* 05 · la firma */
.ts-sign { max-width: 64ch; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--border); }
.ts-sign p { font-size: var(--fs-lead); font-weight: 550; line-height: 1.55; }
.ts-sign small { display: block; margin-top: 14px; font-size: var(--fs-sm); color: var(--text-soft); }

/* Cierre: la banda azul */
.ts-cta { padding-block: var(--section-md); background-color: var(--band); background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%); color: var(--band-text); text-align: center; }
.ts-cta h2 { max-width: 18ch; margin-inline: auto; font-size: var(--fs-h2); }
.ts-cta p { max-width: 48ch; margin: 18px auto 0; font-size: var(--fs-lead); color: var(--band-soft); }
.ts-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ts-cta__alt { color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.ts-cta__alt:hover { border-color: #ffffff; transform: translateY(-1px); }

@media (max-width: 1080px) {
  .ts-anat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ts-body { grid-template-columns: minmax(0, 1fr); }
  .ts-toc { display: none; }
  .ts-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ts-hero__fig { display: none; }
}
@media (max-width: 760px) {
  .ts-princ, .ts-track, .ts-memfig { grid-template-columns: minmax(0, 1fr); }
  .ts-tree__depts { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .ts-tree__depts::before, .ts-dept::before { display: none; }
  .ts-five__item a { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; }
  .ts-brain { max-width: 200px; }
}
@media (max-width: 480px) {
  .ts-anat { grid-template-columns: minmax(0, 1fr); }
}

/* «Ver todos los conectores +1.000 →» (→ /integraciones, la página con todos y su buscador): el mismo
   botón suave en azul en la tarjeta de «Tu equipo» y en la fila de abajo del cerebro */
.allconn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.allconn b { font-weight: 850; }
.allconn:hover { background: var(--blue); color: #fff; }
.allconn:hover .arrow { transform: translateX(3px); }
.allconn .arrow { transition: transform var(--t-base) var(--ease); }
.allconn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bm__chip.bm__chip--all { padding: 0; border: 0; background: none; box-shadow: none; }
.bm__chip--all .allconn { min-height: 42px; padding: 0 18px; }

/* Botón azul de la marca («Únete a la lista de espera» del menú y de Planes) */
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); }
/* En el menú móvil el enlace general (.nav__links a, texto gris) le ganaba al blanco del botón */
.nav__links a.btn--blue, .nav__links a.btn--blue:hover { color: #fff; }
.nav__links a.btn--blue:hover { background: var(--blue-hover); }

/* ===================================================================
   APPS DE LA CASA (#en-accion) · MOSAICO en blanco (13-sep, Javier). Cabecera
   (22-sep): «Además de agentes, apps propias.» y una frase (.suite__lead); las
   OTRAS aplicaciones van en #controla. Arriba Redes Sociales (ancha) y Facturas;
   abajo CRM, Reservas y Control horario. Cada tarjeta: la imagen/vídeo arriba y
   nombre + UNA frase. Sustituye a las filas alternas (.app/.appcard/.apps__grid
   quedan muertas).
   =================================================================== */
.suite__title { font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; line-height: 1.05; }
/* Dos líneas limpias: «Además de agentes,» / «apps propias.» */
.suite__title > span { display: block; }
.suite__accent { color: var(--accent-text); }
.suite__lead { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--text-soft); max-width: 52ch; }
.suite__grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px);
}
.suite__card {
  grid-column: span 4; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.suite__card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(16, 24, 40, .35); }
.suite__card:nth-child(1) { grid-column: span 7; }
.suite__card:nth-child(2) { grid-column: span 5; }
.suite__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1320; }
.suite__card:nth-child(-n+2) .suite__media { aspect-ratio: auto; height: clamp(260px, 30vw, 420px); }
.suite__media video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.suite__media--still { background: var(--surface-2); }
.suite__toggle { position: absolute; right: 14px; bottom: 14px; }
/* Sin botón de pausa a la vista (Javier, 13-sep), como en la portada: solo aparece al llegar con el
   TECLADO (:focus-visible), para no romper WCAG 2.2.2; con «menos movimiento» los vídeos ya nacen parados */
.suite__toggle { opacity: 0; pointer-events: none; }
.suite__toggle:focus-visible { opacity: 1; pointer-events: auto; }
.suite__txt { padding: 18px 22px 22px; }
.suite__txt h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.suite__txt p { margin-top: 4px; color: var(--text-soft); max-width: 46ch; }
@media (max-width: 900px) {
  .suite__card, .suite__card:nth-child(1), .suite__card:nth-child(2) { grid-column: 1 / -1; }
  .suite__card:nth-child(-n+2) .suite__media { height: auto; aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .suite__card:hover { transform: none; } }

/* ===================================================================
   Y LAS TUYAS (.yours, #controla · 23-sep): dentro de Tus aplicaciones,
   bajo el mosaico y una raya. A la izquierda las tres vías; a la derecha
   el NAVEGADOR DE ENZO (.brw): la web de un proveedor sin API, con su
   cursor rellenando un pedido (script.js). Sustituye a la sección
   #controla de tres tarjetas.
   =================================================================== */
.suite__card:nth-child(-n+2) .suite__media { height: clamp(220px, 24vw, 340px); }
.yours {
  margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.yours__title { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.1; }
.yours__accent { color: var(--accent-text); }
.yours__ways { list-style: none; margin-top: clamp(20px, 3vw, 32px); display: grid; gap: 4px; }
.yours__way { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 14px 14px 12px; border-radius: 16px; }
.yours__way--on { background: color-mix(in srgb, var(--blue) 6%, transparent); }
.yours__ico { display: flex; gap: 4px; padding-top: 1px; }
.yours__logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #ffffff; box-shadow: 0 0 0 1px var(--border); color: #16181a; }
.yours__logo svg { width: 16px; height: 16px; }
.yours__logo--ico { background: var(--accent-soft); box-shadow: none; color: var(--accent-text); }
.yours__logo--ico svg { width: 18px; height: 18px; }
.yours__way b { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.yours__way p { margin-top: 3px; font-size: var(--fs-sm); color: var(--text-soft); }
.yours .allconn { margin-top: 12px; margin-left: 12px; display: inline-flex; }

/* ---- El navegador de Enzo ---- */
.brw {
  position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 40px 90px -40px rgba(16, 24, 40, .35), 0 12px 30px -18px rgba(16, 24, 40, .18);
  overflow: hidden;
}
.brw__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.brw__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.brw__url { margin-left: 8px; padding: 4px 14px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--text) 5%, var(--bg)); font-size: .75rem; color: var(--text-soft); }
.brw__who { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-size: .75rem; font-weight: 600; }
.brw__who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #e8effd; }
.brw__who b { font-weight: 800; }
.brw__page { position: relative; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.brw__h { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.brw__sub { margin-top: -10px; font-size: .75rem; color: var(--text-soft); }
.brw__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brw__field {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.brw__field span { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.brw__val { display: block; min-height: 1.35em; font-style: normal; font-size: .9375rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brw__field.is-focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.brw__field.is-focus .brw__val::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--accent-text); animation: brw-caret 1s steps(1) infinite; }
@keyframes brw-caret { 50% { opacity: 0; } }
.brw__btn {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--blue); color: #fff; font-size: .875rem; font-weight: 700; transition: transform 160ms var(--ease);
}
.brw__btn.is-pressed { transform: scale(.96); }
.brw__toast {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok-text); font-size: .8125rem; font-weight: 800;
  box-shadow: var(--shadow-sm); transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}
.brw__toast svg { width: 14px; height: 14px; }
.brw.is-live:not(.is-saved) .brw__toast { opacity: 0; transform: translateY(8px); }
/* el cursor: el mismo de «Cómo funciona», medido contra el navegador */
.brw__cursor {
  position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; opacity: 0;
  transform: translate(var(--cx, 60%), var(--cy, 95%));
  transition: transform 760ms var(--ease), opacity 300ms var(--ease);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
}
.brw__cursor svg { display: block; }
.brw__cursor.is-on { opacity: 1; }
.brw__cursor.is-click::after {
  content: ""; position: absolute; left: -12px; top: -12px; width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 40%, transparent); animation: how-click 520ms var(--ease) both;
}
@media (max-width: 900px) { .yours { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .brw__toast, .brw__cursor { transition: none; } }

/* ===================================================================
   AGENCIAS (#agencias, 13-sep) · sustituye a «Tus datos». Titular
   centrado y, a lo ancho, la PANTALLA DEL PANEL DE AGENCIA: barra de
   ventana, menú lateral, cuatro números y la lista de empresas con su
   equipo de Enzos, lo hecho esta semana y su estado; encima, el aviso
   que le llega al cliente. Fondo blanco con un halo azul detrás.
   =================================================================== */
.agx-sec { position: relative; overflow: hidden; isolation: isolate; }
.agx-sec::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 120vw); aspect-ratio: 2 / 1;
  translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 16%, transparent), transparent);
}
.agx-head { max-width: 780px; margin-inline: auto; text-align: center; }
.agx-kicker { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.agx-title { margin-top: 8px; font-size: var(--fs-h2); font-weight: 850; letter-spacing: -0.045em; line-height: 1.05; text-wrap: balance; }
.agx-title > span { display: block; }
.agx-accent { color: var(--accent-text); }
.agx-lead { margin: var(--space-4) auto 0; font-size: var(--fs-lead); color: var(--text-soft); max-width: 58ch; text-wrap: pretty; }
.agx-cta { display: flex; justify-content: center; margin-top: clamp(96px, 8vw, 112px); }

/* La ventana */
.agx {
  position: relative; max-width: 1120px; margin: clamp(32px, 5vw, 56px) auto 0;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 40px 90px -40px rgba(16, 24, 40, .35), 0 12px 30px -18px rgba(16, 24, 40, .18);
}
.agx__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.agx__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.agx__url {
  margin-inline: auto; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--bg-alt);
  font-size: .75rem; color: var(--text-soft); transform: translateX(-20px);
}
.agx__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.agx__side { padding: 20px 14px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg-alt) 60%, var(--surface)); border-bottom-left-radius: 20px; }
.agx__logo { width: 88px; height: 22px; color: var(--text); margin: 2px 0 22px 8px; }
.agx__group { padding: 0 8px; margin-bottom: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.agx__side ul { list-style: none; display: grid; gap: 2px; }
.agx__nav { padding: 8px 10px; border-radius: 10px; font-size: .875rem; font-weight: 600; color: var(--text-soft); }
.agx__nav.is-on { background: var(--accent-soft); color: var(--accent-text); }
.agx__main { padding: 22px 26px 26px; min-width: 0; }
.agx__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.agx__hi { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.agx__sub { font-size: .8125rem; color: var(--text-soft); }
.agx__new { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.agx__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.agx__kpi { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); }
.agx__kpi b { display: block; font-size: 1.625rem; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.agx__kpi span { font-size: .8125rem; color: var(--text-soft); }
.agx__kpi--wait b { color: var(--warn-text); }

/* La lista de empresas */
.agx__thead, .agx__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 12px; }
.agx__thead { margin-top: 22px; padding: 0 12px 8px; font-size: .75rem; font-weight: 700; color: var(--text-soft); border-bottom: 1px solid var(--border); }
.agx__rows { list-style: none; }
.agx__row { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.agx__row:last-child { border-bottom: 0; }
.agx__co { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agx__co b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agx__ini { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); font-weight: 800; font-size: .875rem; }
.agx__team { display: flex; }
.agx__team img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  background: #e8effd; box-shadow: 0 0 0 2px var(--surface); margin-left: -8px;
}
.agx__team img:first-child { margin-left: 0; }
.agx__tasks { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.agx__tasks b { color: var(--text); font-weight: 750; }
.agx__st { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.agx__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.agx__st--ok { background: var(--ok-bg); color: var(--ok-text); }
.agx__st--wait { background: var(--warn-bg); color: var(--warn-text); }
.agx__st--wip { background: var(--accent-soft); color: var(--accent-text); display: none; }
.agx__row--new { background: color-mix(in srgb, var(--blue) 5%, transparent); border-radius: 12px; }

/* El aviso al cliente, flotando sobre la esquina */
.agx__toast {
  position: absolute; right: -28px; bottom: -64px; display: flex; gap: 12px; align-items: flex-start;
  width: min(360px, 80%); padding: 14px 16px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 24px 50px -22px rgba(16, 24, 40, .4);
  font-size: .875rem; line-height: 1.4;
}
.agx__toast p { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.agx__toast b { font-size: .8125rem; }
.agx__toast-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: radial-gradient(circle at 50% 35%, #2f6bff, #123a8f); }
.agx__toast-av img { width: 150%; height: 150%; max-width: none; margin-left: -25%; object-fit: cover; object-position: 50% 12%; }

/* Con JS: los números cuentan (script.js), las filas entran, la nueva se monta y salta el aviso */
.agx.is-live .agx__row { opacity: 0; translate: 0 10px; }
.agx.is-live.is-in .agx__row { opacity: 1; translate: 0 0; transition: opacity 500ms var(--ease) calc(var(--i) * 160ms + 300ms), translate 500ms var(--ease) calc(var(--i) * 160ms + 300ms); }
.agx.is-live:not(.is-done) .agx__row--new .agx__st--wip { display: inline-flex; }
.agx.is-live:not(.is-done) .agx__row--new .agx__st--later { display: none; }
.agx.is-live .agx__row--new .agx__st--later { animation: agx-pop 420ms var(--ease) both; }
.agx.is-live .agx__toast { opacity: 0; translate: 0 16px; scale: .96; }
.agx.is-live.is-done .agx__toast { opacity: 1; translate: 0 0; scale: 1; transition: opacity 500ms var(--ease) 500ms, translate 600ms var(--ease) 500ms, scale 600ms var(--ease) 500ms; }
@keyframes agx-pop { from { scale: .8; opacity: 0; } to { scale: 1; opacity: 1; } }

@media (max-width: 1180px) { .agx__toast { right: 16px; } }
@media (max-width: 900px) {
  .agx__body { grid-template-columns: minmax(0, 1fr); }
  .agx__side { display: none; }
  .agx__main { padding: 18px 16px 20px; }
  .agx__hi { font-size: 1.0625rem; }
  .agx-cta { margin-top: 28px; }
  .agx__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agx__thead { display: none; }
  .agx__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .agx__tasks { display: none; }
  .agx__team { grid-column: 1; grid-row: 2; }
  .agx__st { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .agx__toast { position: relative; right: auto; bottom: auto; width: auto; margin: 0 12px 12px; box-shadow: var(--shadow-sm); }
}

/* TE CONOCE · lo que hay que recalcar (13-sep): memoria PERSISTENTE y «cuanto más lo usas, más listo se
   vuelve» (autoskills). Dos etiquetas blancas bajo la frase, junto al titular (no fichas sueltas abajo) */
.know__marks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--space-5); }
.know__marks li {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text);
}
.know__marks svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent-text); }

/* ===================================================================
   Y APRENDE (.learn2, #aprende · 23-sep): la tira de las tres veces,
   dentro de «Te conoce» y debajo del cerebro. Tres tarjetas con su
   escena arriba (la conversación · la tarjeta que espera tu OK · hecho) y
   el paso abajo. Con JS (.is-live) se encienden por turnos con una barra
   de progreso, como las historias; la base es el estado final, quieto.
   Sustituye a la sección #aprende de tres tarjetas mudas.
   =================================================================== */
.bm { max-width: 1040px; margin-inline: auto; }
.learn2 { margin-top: clamp(40px, 5vw, 72px); }
.learn2__head { max-width: 760px; margin-inline: auto; text-align: center; }
.learn2__title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.learn2__accent { color: var(--accent-text); }
.learn2__steps {
  list-style: none; margin-top: clamp(24px, 3.5vw, 40px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px);
}
.learn2__step {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: opacity 500ms var(--ease);
}
.learn2__step::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--blue); z-index: 1; }
.learn2__scene { flex: 1; min-height: 176px; padding: 20px 18px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: var(--bg); }
.learn2__txt { padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.learn2__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
  font-size: .8125rem; font-weight: 800; vertical-align: -6px; border: 1.5px solid var(--border-strong); color: var(--text);
}
.learn2__step[data-step="3"] .learn2__n { border-color: var(--blue); color: var(--accent-text); }
.learn2__txt b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.learn2__txt p { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-soft); }
/* escena 1: la conversación */
.learn2__bub { max-width: 92%; padding: 8px 12px; border-radius: 14px; font-size: .875rem; line-height: 1.35; font-weight: 500; transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.learn2__bub--me { align-self: flex-end; background: var(--ink); color: var(--ink-text); border-bottom-right-radius: 4px; }
.learn2__bub--enzo { align-self: flex-start; display: flex; align-items: flex-start; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.learn2__av { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: #e8effd; }
.learn2__av img { width: 100%; height: 100%; object-fit: cover; }
.learn2__av--lg { width: 38px; height: 38px; }
/* escena 2: la tarjeta que espera tu OK */
.learn2__card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.learn2__card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9375rem; }
.learn2__card-m { font-size: .8125rem; color: var(--text-soft); }
.learn2__st { display: inline-flex; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--ok-bg); }
.learn2__st-a { color: var(--warn-text); display: none; }
.learn2__st-b { color: var(--ok-text); }
.learn2__ok { display: flex; gap: 8px; margin-top: 4px; }
.learn2__okbtn, .learn2__ghost { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700; }
.learn2__okbtn { background: var(--ink); color: var(--ink-text); transition: transform 160ms var(--ease), background-color 300ms var(--ease); }
.learn2__ghost { border: 1px solid var(--border-strong); color: var(--text); }
/* escena 3: hecho, sin preguntar */
.learn2__done { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.learn2__done-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .9375rem; }
.learn2__done-t small { font-size: .75rem; color: var(--text-soft); }
.learn2__badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: var(--radius-pill); background: var(--ok-bg); color: var(--ok-text); font-size: .75rem; font-weight: 800; white-space: nowrap; transition: opacity 320ms var(--ease), scale 420ms var(--ease); }
.learn2__badge svg { width: 12px; height: 12px; }
.learn2__wa { display: flex; align-items: center; gap: 7px; align-self: center; font-size: .8125rem; font-weight: 600; color: var(--text-soft); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.learn2__foot { margin-top: clamp(18px, 2.5vw, 28px); text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--text-soft); }
/* Con JS (.is-live): los pasos se encienden por turnos; lo que no ha llegado, apagado y sin escena */
.learn2.is-live .learn2__step { opacity: .45; }
.learn2.is-live .learn2__step.is-on, .learn2.is-live .learn2__step.is-done { opacity: 1; }
.learn2.is-live .learn2__step.is-on::before { width: 100%; transition: width var(--dur, 3200ms) linear; }
.learn2.is-live .learn2__step.is-done::before { width: 100%; }
.learn2.is-live .learn2__step:not(.is-on):not(.is-done) .learn2__bub,
.learn2.is-live .learn2__step:not(.is-on):not(.is-done) .learn2__card,
.learn2.is-live .learn2__step:not(.is-on):not(.is-done) .learn2__done,
.learn2.is-live .learn2__step:not(.is-on):not(.is-done) .learn2__wa { opacity: 0; transform: translateY(8px); }
.learn2.is-live .learn2__step.is-on [data-l="2"] { transition-delay: 900ms; }
.learn2.is-live .learn2__step.is-on [data-l="3"] { transition-delay: 1900ms; }
.learn2.is-live .learn2__step:not(.is-approved) .learn2__st { background: var(--warn-bg); }
.learn2.is-live .learn2__step:not(.is-approved) .learn2__st-a { display: inline; }
.learn2.is-live .learn2__step:not(.is-approved) .learn2__st-b { display: none; }
.learn2.is-live .learn2__step.is-approved .learn2__okbtn { transform: scale(.96); background: var(--ok-text); }
.learn2.is-live .learn2__step.is-on .learn2__badge { transition-delay: 700ms; }
.learn2.is-live .learn2__step.is-on .learn2__wa { transition-delay: 1300ms; }
.learn2.is-live .learn2__step:not(.is-on):not(.is-done) .learn2__badge { opacity: 0; scale: .6; }
@media (max-width: 900px) {
  .learn2__steps { grid-template-columns: 1fr; }
  .learn2__scene { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .learn2__step, .learn2__bub, .learn2__card, .learn2__done, .learn2__badge, .learn2__wa { transition: none; }
}

/* Organigrama en móvil: el aviso del OK, pegado a la derecha bajo «Tú» (en el centro tapaba al CEO) */
@media (max-width: 760px) {
  .org__ok { left: auto; right: 0; top: calc(8% + 44px); transform: none; max-width: 132px; padding: 6px 9px; font-size: .6875rem; }
}

/* ===================================================================
   LA COLA (web/lista.html, 21-sep) · la lista de espera pública de la
   beta. Todo con los tokens de la casa: claro y oscuro salen solos.
   Los huecos de vídeo (data-video-slot v1-v4) llevan hoy el fijo de sus
   protagonistas; cuando haya vídeo, entra en la misma caja.
   =================================================================== */
.cola-top { padding-block: clamp(56px, 7vw, 104px) clamp(28px, 4vw, 48px); }
.cola-kicker {
  display: inline-flex; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft); padding: 6px 13px; border-radius: var(--radius-pill);
}
.cola-top h1 {
  font-size: var(--fs-display); font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
  margin: 20px 0 0; max-width: 16ch; text-wrap: balance;
}
.cola-lead { font-size: var(--fs-lead); color: var(--text-soft); margin-top: 20px; max-width: 56ch; }

.cola-counter { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 40px; }
.cola-counter div { display: flex; flex-direction: column; gap: 2px; }
.cola-counter b {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cola-counter span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.cola-counter .is-run b { color: var(--accent-text); }

.cola-join { margin-top: 36px; max-width: 580px; }
.cola-join__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cola-join input {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); padding: 14px 20px;
}
.cola-join input::placeholder { color: var(--text-soft); opacity: .75; }
.cola-join input:focus-visible { outline: 3px solid var(--blue-glow); border-color: var(--blue); }
.cola-join .btn[disabled] { opacity: .6; cursor: progress; }
.cola-join__note { font-size: var(--fs-xs); color: var(--text-soft); margin-top: 12px; max-width: 60ch; }
.cola-join__msg {
  margin-top: 14px; font-size: var(--fs-sm); font-weight: 600; border-radius: var(--radius-sm); padding: 11px 16px;
  background: var(--ok-bg); color: var(--ok-text);
}
.cola-join__msg.is-error { background: var(--warn-bg); color: var(--warn-text); }

/* Portada en dos columnas: texto a la izquierda, V1 en vertical (9:16) a la derecha */
.cola-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cola-v1 {
  position: relative; margin: 0; aspect-ratio: 9 / 16; max-height: 640px; max-width: 100%; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: radial-gradient(120% 70% at 50% 0%, var(--accent-soft), var(--bg-alt) 70%);
}
.cola-v1__video, .cola-scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cola-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 2; opacity: 0; pointer-events: none; }
.cola-toggle:focus-visible { opacity: 1; pointer-events: auto; }

/* Escena (V4): el vídeo del montaje */
.cola-scene {
  position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), var(--bg-alt) 70%);
}
/* La cola */
.cola-queue { background: var(--bg); padding-block: var(--section-sm) var(--section-md); }
.cola-head { max-width: 62ch; }
.cola-head h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.cola-head p { margin-top: 16px; font-size: var(--fs-lead); color: var(--text-soft); }


/* El escenario de la cola y el Enzo de los tickets (siempre sentado en la que se instala;
   al apuntarte se levanta, baja y te mete en tu sitio — el guion vive en script.js) */
.cola-stage { position: relative; margin-top: 36px; }
.cola-enzo { position: absolute; left: 0; top: 0; width: 128px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); will-change: transform; }
.cola-enzo.is-ready { opacity: 1; }
.cola-enzo__flip { transform-origin: 50% 100%; transition: transform .2s var(--ease); }
.cola-enzo__flip.is-flip { transform: scaleX(-1); }
.cola-enzo__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 8px rgba(22, 24, 26, .18)); transform-origin: 50% 100%; }
.cola-enzo.is-idle .cola-enzo__img { animation: cola-enzo-idle 3.4s ease-in-out infinite; }
.cola-enzo.is-walking .cola-enzo__img { animation: cola-enzo-step .34s ease-in-out infinite; }
@keyframes cola-enzo-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1.5deg); } }
@keyframes cola-enzo-step { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.cola-row { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cola-row.is-llegando { opacity: 0; transform: translateX(32px); }
/* Sitio para que Enzo se siente en la tarjeta sin taparle la fila de arriba */
.cola-stage .cola-live { margin-top: 64px; }

.cola-rail { position: relative; min-height: 120px; }
.cola-rail::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--border-strong); border-radius: 2px; }
.cola-empty { padding: 16px 0 16px 48px; color: var(--text-soft); font-size: var(--fs-sm); }

.cola-row {
  position: relative; display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto 86px;
  align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border);
}
.cola-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); z-index: 1; }
.cola-row.is-ok .cola-dot { background: var(--ok-text); border-color: var(--ok-text); }
.cola-n { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cola-mail { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9375rem; overflow-wrap: anywhere; }
.cola-row.is-wait .cola-mail { color: var(--text-soft); }
.cola-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs-xs); font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.cola-state.s-ok { background: var(--ok-bg); color: var(--ok-text); }
.cola-state.s-wait { color: var(--text-soft); font-weight: 600; }
.cola-when { font-size: var(--fs-xs); color: var(--text-soft); font-variant-numeric: tabular-nums; }

.cola-live {
  position: relative; margin: 20px 0 20px 48px; padding: 20px 22px; background: var(--surface);
  border: 1.5px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.cola-live::before {
  content: ""; position: absolute; left: -48px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 5px var(--blue-glow);
}
.cola-live__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cola-live .cola-n { color: var(--accent-text); }
.cola-live .cola-mail { font-weight: 600; }
.cola-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--run-bg); color: var(--run-text); font-size: var(--fs-xs); font-weight: 700; padding: 5px 13px; border-radius: var(--radius-pill); }
.cola-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: cola-pulse 1.6s infinite; }
.cola-bar { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 16px; overflow: hidden; position: relative; }
.cola-bar i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 4px; background: var(--blue); animation: cola-slide 2.4s var(--ease) infinite; }
@keyframes cola-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cola-slide { 0% { left: -34%; } 100% { left: 100%; } }

.cola-more { display: inline-flex; margin: 14px 0 0 48px; padding: 6px 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.cola-gap { padding: 20px 0 20px 48px; font-size: var(--fs-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }
/* Tu línea: resaltada dentro de la cola */
.cola-row.is-mine { background: var(--accent-soft); border-radius: var(--radius-sm); border-bottom-color: transparent; padding-right: 12px; }
.cola-row.is-mine .cola-dot { background: var(--blue); border-color: var(--blue); }
.cola-row.is-mine .cola-n, .cola-row.is-mine .cola-mail { color: var(--accent-text); font-weight: 700; }
.cola-state.s-mine { background: var(--blue); color: #fff; }

/* Cuando te toca */
.cola-turn { padding-block: var(--section-md); }
.cola-turn__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); margin-top: 42px; align-items: center; }
.cola-steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.cola-steps li { counter-increment: paso; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.cola-steps li:last-child { border-bottom: 1px solid var(--border); }
.cola-steps li::before { content: counter(paso, decimal-leading-zero); grid-row: 1 / 3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-xs); font-weight: 700; color: var(--accent-text); padding-top: 4px; }
.cola-steps h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.cola-steps p { margin: 6px 0 0; color: var(--text-soft); font-size: var(--fs-sm); }
.cola-scene--turn { aspect-ratio: 1280 / 716; }

@media (max-width: 900px) {
  .cola-top__grid { grid-template-columns: minmax(0, 1fr); }
  .cola-v1 { max-width: 340px; }
  .cola-turn__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .cola-enzo { width: 84px; }
  .cola-row { grid-template-columns: 30px minmax(0, 1fr); row-gap: 4px; }
  .cola-dot { grid-row: 1 / -1; align-self: start; margin-top: 3px; }
  .cola-n { grid-column: 2; grid-row: 1; }
  .cola-mail { grid-column: 2; grid-row: 2; }
  .cola-state { grid-column: 2; grid-row: 3; justify-self: start; }
  .cola-when { display: none; }
  .cola-live { margin-left: 30px; }
  .cola-live::before { left: -30px; }
  .cola-more, .cola-gap, .cola-empty { margin-left: 0; padding-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cola-enzo .cola-enzo__img { animation: none !important; }
  .cola-row.is-llegando { opacity: 1; transform: none; }
  .cola-chip i, .cola-bar i { animation: none; }
  .cola-bar i { left: 0; width: 60%; }
}
