/* ==========================================================================
   KORVA TECH HARDWARE v5: base.css (estilo "Analogue")
   Una vitrina de galeria negra: los productos flotan en el vacio, los titulos van centrados en dos
   lineas y la unica accion rellena sobre oscuro es una pildora blanca. Contrato: CONTRACT.md.

   Reglas que este archivo hace cumplir (el build y tools/preflight.mjs las revisan):
   - SOLO 5 colores, cero color cromatico: #000000 lienzo y secciones oscuras, #ffffff texto principal,
     boton y tarjetas en secciones claras, #e5e7eb secciones claras, texto secundario y hairlines,
     #bfbfbf texto secundario sobre oscuro, #999999 texto terciario y notas. Con alfa solo en hairlines
     (rgba(229,231,235,.15) sobre oscuro), en el velo del header y en reglas sobre la banda clara.
     Sin degradados, glows ni sombras: las unicas sombras son las de los objetos fotografiados.
   - Una sola familia: Satoshi (variable, Fontshare, ITF FFL) servida desde el sitio; Inter var de respaldo.
     Pesos 400, 450 y 500; 450 en todos los titulos; nunca mas de 500.
   - Tracking siempre negativo y que crece con el tamano (tokens --tr-*). Cada regla que fija un tamano
     fija tambien su tracking (letter-spacing hereda en px, no en em).
   - Escala: 13, 15, 16, 18, 19, 21, 26, 35, 47 y 53 px (los titulos crecen un poco en pantallas muy grandes).
   - Formas: tarjetas y contenedores de 17.6 px; botones y etiquetas en pildora (9999 px). Ningun otro radio.
   - Todo centrado con un maximo de 1200 px, bandas a sangre que alternan #000 y #e5e7eb con cortes rectos,
     80 px entre secciones.

   Indice
   00 Fuentes              01 Tokens               02 Reset y base         03 Tipografia
   04 Layout y bandas      05 Utilidades           06 Iconos               07 Botones y enlaces
   08 Header fantasma      09 Menu movil           10 Hero y escenario     11 Tarjetas
   12 Tarjetas de producto 13 Exhibicion (capitulos)                       14 Filas y rieles
   15 Niveles, pasos y matriz                      16 Tablas               17 Pestanas
   18 Preguntas            19 Marcas               20 Notas, etiquetas y listas
   21 Formularios          22 Cuestionario         23 Footer               24 WhatsApp flotante
   25 Movimiento           26 Espacio
   ========================================================================== */

/* 00 FUENTES -------------------------------------------------------------- */
/* Satoshi variable (eje wght 300-900), archivo oficial de Fontshare SIN modificar ni subconjuntar
   (la licencia ITF FFL lo prohibe; ver /assets/fonts/Satoshi-LICENSE-FFL.txt). El build la precarga. */
@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Respaldo metrico (tools/font-metrics.mjs, 2026-09-30): mientras llega Satoshi, Arial ocupa el mismo
   ancho y alto, asi que no cambia el corte de lineas (CLS 0). */
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  font-weight: 100 449;
  size-adjust: 98.68%;
  ascent-override: 102.35%;
  descent-override: 24.32%;
  line-gap-override: 10.13%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  font-weight: 450 900;
  size-adjust: 99.2%;
  ascent-override: 101.82%;
  descent-override: 24.19%;
  line-gap-override: 10.08%;
}
/* Inter var: respaldo de la familia (no se precarga; solo se descarga si un glifo no estuviera en lo anterior) */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 01 TOKENS --------------------------------------------------------------- */
:root {
  /* Los 5 colores (no hay otros) */
  --black: #000000;   /* lienzo y secciones oscuras */
  --white: #ffffff;   /* texto principal, boton, tarjetas en secciones claras */
  --mist: #e5e7eb;    /* secciones claras alternas, texto secundario, hairlines */
  --ash: #bfbfbf;     /* texto secundario sobre oscuro (11.4:1 sobre negro) */
  --smoke: #999999;   /* texto terciario y notas (7.4:1 sobre negro; solo sobre oscuro) */
  --hair: rgba(229, 231, 235, .15);       /* borde de tarjeta y regla sobre oscuro */
  --hair-strong: rgba(229, 231, 235, .3); /* contorno de la pildora fantasma sobre oscuro */
  --hair-ink: rgba(0, 0, 0, .14);         /* regla sobre la banda clara */

  /* Una sola familia */
  --font-sans: "Satoshi", "Satoshi Fallback", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala (px) y tracking negativo que crece con el tamano */
  --fs-13: 13px; --tr-13: -.02em;
  --fs-15: 15px; --tr-15: -.02em;
  --fs-16: 16px; --tr-16: -.02em;
  --fs-18: 18px; --tr-18: -.021em;
  --fs-19: 19px; --tr-19: -.022em;
  --fs-21: 21px; --tr-21: -.025em;
  --fs-26: 26px; --tr-26: -.03em;
  --fs-35: 35px; --tr-35: -.033em;
  --fs-47: 47px; --tr-47: -.05em;
  --fs-53: 53px; --tr-53: -.06em;

  /* Espacio */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 26px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --section-y: 80px;
  --gutter: clamp(16px, 4px + 2.6vw, 40px);
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 64px;

  /* Forma: dos radios y nada mas */
  --r-card: 17.6px;
  --r-pill: 9999px;

  /* Movimiento (CONTRACT.md §8): calma de museo. expo.out para revelar, nada rebota */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-p4: cubic-bezier(.23, 1, .32, 1);
  --dur-1: .15s;
  --dur-2: .25s;
  --dur-3: .45s;

  /* Capas */
  --z-float: 80;
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 1000;

  /* Glifos (mascaras: toman el color del texto) */
  --glyph-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --glyph-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --glyph-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --glyph-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
  --glyph-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3Z'/%3E%3Cpath d='M12 10v5M12 18v.5'/%3E%3C/svg%3E");
}
@media (min-width: 1080px) { :root { --header-h: 76px; } }
@media (max-width: 639px) { :root { --section-y: 64px; } }
/* Pantallas muy grandes: mas aire entre secciones y los titulos un poco mas grandes (la jerarquia la dan el
   producto y el aire, no el tamano) */
@media (min-width: 1920px) { :root { --section-y: 104px; --fs-53: 58px; --fs-47: 51px; } }
@media (min-width: 2400px) { :root { --section-y: 120px; --fs-53: 64px; --fs-47: 51px; } }

/* 02 RESET Y BASE ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
  background: var(--black);
  color-scheme: dark;
}
body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: var(--tr-16);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img,
picture,
video,
svg,
canvas { display: block; max-width: 100%; }
img { height: auto; }
input,
button,
textarea,
select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
p,
h1, h2, h3, h4, h5, h6,
figure,
blockquote,
dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 450; }
:where(ul[class], ol[class], nav ul, nav ol) { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
hr { border: 0; height: 1px; background: var(--hair); margin: 0; }
table { border-collapse: collapse; }
th { font-weight: 500; }
strong, b { font-weight: 500; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
[hidden] { display: none !important; }
.site-main:focus { outline: none; }
.is-anchor-target:focus { outline: none; }
/* Lenis (scroll suave, solo con html.motion). Reglas de lenis.css 1.3 que aplican aqui */
html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--black);
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.skip-link:focus { opacity: 1; transform: none; }

/* 03 TIPOGRAFIA ----------------------------------------------------------- */
/* Superficie: cada banda define sus tonos (--fg texto, --fg-2 secundario, --fg-3 terciario, --label rotulo,
   --line regla). Sobre la banda clara todo el texto es negro: #999 y #bfbfbf no llegan a AA ahi. */
.surface-dark,
.section,
.hero,
.site-footer,
.mobile-menu {
  --fg: var(--white);
  --fg-2: var(--ash);
  --fg-3: var(--smoke);
  --label: var(--mist);
  --line: var(--hair);
  --card-line: var(--hair);
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  --ghost-line: var(--hair-strong);
  --focus: var(--white);
}
.section--light,
.card--white {
  --fg: var(--black);
  --fg-2: var(--black);
  --fg-3: var(--black);
  --label: var(--black);
  --line: var(--hair-ink);
  --card-line: var(--hair-ink);
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --ghost-line: rgba(0, 0, 0, .3);
  --focus: var(--black);
}
.card--white { --line: var(--mist); --card-line: var(--mist); }
.section--light :focus-visible,
.card--white :focus-visible { outline-color: var(--black); }

h1, h2, h3,
.title { color: var(--fg, var(--white)); text-wrap: balance; }
h1 { font-size: var(--fs-53); letter-spacing: var(--tr-53); line-height: 1.05; }
h2 { font-size: var(--fs-47); letter-spacing: var(--tr-47); line-height: 1.05; }
h3 { font-size: var(--fs-21); letter-spacing: var(--tr-21); line-height: 1.25; }
h4 { font-size: var(--fs-16); letter-spacing: var(--tr-16); line-height: 1.4; }
@media (max-width: 759px) {
  h1 { font-size: var(--fs-35); letter-spacing: var(--tr-35); line-height: 1.08; }
  h2 { font-size: var(--fs-35); letter-spacing: var(--tr-35); line-height: 1.08; }
  h3 { font-size: var(--fs-19); letter-spacing: var(--tr-19); line-height: 1.3; }
}
p { text-wrap: pretty; }
.lead {
  font-size: var(--fs-18);
  letter-spacing: var(--tr-18);
  line-height: 1.55;
  color: var(--fg-2, var(--ash));
  max-width: 36em;
}
small, .small { font-size: var(--fs-15); letter-spacing: var(--tr-15); }
.muted { color: var(--fg-3, var(--smoke)); }
.label {
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  line-height: 1.4;
  font-weight: 500;
  color: var(--fg-3, var(--smoke));
}
.tabular, [data-count] { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Bloque de titulo (la firma tipografica): dos lineas centradas, el rotulo chico de 21 px y la palabra
   grande de 47 a 53 px. Lo que acompana (lead, botones) va debajo, tambien centrado. */
.tb {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.tb__label {
  font-size: var(--fs-21);
  letter-spacing: var(--tr-21);
  line-height: 1.3;
  font-weight: 400;
  color: var(--label, var(--mist));
}
/* Ancho fijo (no el del contenido): al partir y unir las lineas del movimiento la caja no cambia (CLS 0) */
.tb__title { width: min(100%, 22em); }
.tb .lead { margin-top: var(--sp-3); margin-inline: auto; }
.tb__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.section-head { margin-bottom: clamp(40px, 24px + 3vw, 64px); }
@media (max-width: 759px) {
  .tb__label { font-size: var(--fs-18); letter-spacing: var(--tr-18); }
}

/* 04 LAYOUT Y BANDAS ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
/* Bandas a sangre con corte recto: negras por defecto, claras con .section--light (data-surface="light") */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--black);
  color: var(--fg);
}
.section--light { background: var(--mist); color: var(--fg); }
/* Dos bandas negras seguidas: el aire las separa (sin reglas ni cambios de tinte) */
/* Dos bandas negras seguidas (secciones o exhibiciones): el aire las separa una sola vez, sin reglas */
:is(.section, .chapter):not(.section--light) + :is(.section, .chapter):not(.section--light) { padding-top: 0; }
.stack > :not(:first-child) { margin-top: var(--stack, var(--sp-4)); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3) var(--sp-6); }

/* 05 UTILIDADES ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }

/* 06 ICONOS ------------------------------------------------------------------ */
/* Sprite propio (trazo fino, monocromo, puntas redondas). Toman el color del texto: nunca hay color. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon[data-icon="whatsapp"] { fill: currentColor; stroke: none; }

/* 07 BOTONES Y ENLACES ----------------------------------------------------- */
/* La pildora: 15 px, peso 500, padding 16/32, radio 9999. Sobre oscuro es blanca con texto negro (la UNICA
   accion rellena); sobre la banda clara o una tarjeta blanca se invierte (negra con texto blanco).
   Accion secundaria: pildora fantasma con contorno fino. Un solo texto por intencion; no se parte. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--btn-bg, var(--white)); color: var(--btn-fg, var(--black)); border-color: var(--btn-bg, var(--white)); }
.btn--secondary,
.btn--ghost { background: transparent; color: var(--fg, var(--white)); border-color: var(--ghost-line, var(--hair-strong)); }
.btn--ghost { border-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; padding-inline: 8px; }
.btn--sm { min-height: 44px; padding: 12px 22px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"],
.btn:disabled { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--mist); border-color: var(--mist); }
  .section--light .btn--primary:hover,
  .card--white .btn--primary:hover { background: var(--black); border-color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
  .btn--secondary:hover { border-color: var(--fg, var(--white)); }
}
.btn:active { transform: translateY(1px); }
.icon--arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon--arrow,
.link-arrow:hover .icon { transform: translateX(3px); }
@media (max-width: 479px) { .btn { white-space: normal; } }
.link {
  color: var(--fg, var(--white));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.link:hover { text-decoration-thickness: 2px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--fs-16);
  letter-spacing: var(--tr-16);
  font-weight: 500;
  color: var(--fg, var(--white));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease-out); }

/* 08 HEADER FANTASMA ---------------------------------------------------------- */
/* Transparente sobre el hero negro. Celdas de dos lineas: el rotulo arriba en #e5e7eb y los enlaces abajo
   en blanco. Al avanzar entra un velo negro; sobre una banda clara (main.js, IntersectionObserver) todo pasa
   a negro con un velo claro. Se esconde al bajar y vuelve al subir (motion.js). */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  color: var(--white);
  transition: transform .6s var(--ease-p4);
  --nav-label: var(--mist);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out);
}
.site-header::before {
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header::after {
  background: rgba(229, 231, 235, .86);
  border-bottom: 1px solid var(--hair-ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-on-light { color: var(--black); --nav-label: var(--black); }
.site-header.is-scrolled.is-on-light::before { opacity: 0; }
.site-header.is-scrolled.is-on-light::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header.is-hidden:focus-within { transform: none; }
/* El hero sube debajo del header transparente. Sin JS el header no cambia de tono al bajar, asi que sale del
   flujo y se va con el hero (no queda texto blanco sobre una banda clara). */
.site-header + .mobile-menu + .site-main > .hero:first-child { margin-top: calc(var(--header-h) * -1); }
.no-js .site-header { position: absolute; left: 0; right: 0; }
.no-js .site-header + .mobile-menu + .site-main > .hero:first-child { margin-top: 0; }
.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4px + 2vw, 40px);
  height: var(--header-h);
}
.site-header__logo { flex: none; display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { width: clamp(118px, 100px + 2.4vw, 144px); height: auto; }
.site-header.is-on-light .site-header__logo img { filter: brightness(0); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.site-header .site-header__wa { background: var(--white); color: var(--black); border-color: var(--white); }
.site-header.is-on-light .site-header__wa { background: var(--black); color: var(--white); border-color: var(--black); }
.site-header.is-on-light :focus-visible { outline-color: var(--black); }
@media (max-width: 767px) { .site-header__wa { display: none; } }
.menu-fallback { display: none; }
.no-js .menu-fallback { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 500; }
.no-js .menu-toggle { display: none; }

/* Navegacion: dos celdas (Para ti / Para empresas), rotulo arriba y enlaces abajo */
.site-nav { display: none; min-width: 0; }
@media (min-width: 1080px) {
  .site-nav { display: flex; gap: clamp(32px, 8px + 2.6vw, 64px); margin-inline: auto; }
  .site-nav + .site-header__actions { margin-left: 0; }
}
.site-nav__cell { display: grid; gap: 2px; }
.site-nav__label {
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  line-height: 1.3;
  font-weight: 400;
  color: var(--nav-label);
  white-space: nowrap;
}
.site-nav__list { display: flex; align-items: center; gap: clamp(16px, 4px + 1.1vw, 26px); }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Boton de menu (movil y tableta) */
.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1080px) { .menu-toggle { display: none; } }

/* 09 MENU MOVIL -------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-menu);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--hair);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.is-menu-open { overflow: hidden; }
.is-menu-open .site-header { color: var(--white); --nav-label: var(--mist); background: var(--black); transform: none; }
.is-menu-open .site-header .site-header__logo img { filter: none; }
.mobile-menu__inner { display: grid; gap: var(--sp-8); padding-block: var(--sp-6) var(--sp-10); }
.mobile-menu__block { display: grid; gap: var(--sp-3); }
.mobile-menu__title {
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 400;
  color: var(--mist);
}
.mobile-menu__list { display: grid; gap: var(--sp-2); }
.mobile-menu__seg {
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  min-height: 64px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
}
.mobile-menu__seg-name { font-size: var(--fs-26); letter-spacing: var(--tr-26); line-height: 1.15; font-weight: 450; }
.mobile-menu__seg-desc { font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--ash); }
.mobile-menu__seg[aria-current="page"] { border-color: var(--white); }
.mobile-menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: var(--fs-18); letter-spacing: var(--tr-18); border-bottom: 1px solid var(--hair); }
.mobile-menu__link .icon { width: 16px; height: 16px; }
.mobile-menu__actions { display: grid; gap: var(--sp-3); justify-items: start; }
@media (min-width: 1080px) { .mobile-menu { display: none; } }

/* 10 HERO Y ESCENARIO ------------------------------------------------------------ */
/* La firma: el producto central flota en el vacio negro (60 a 70% del alto de la ventana) rodeado de objetos
   afines, con giros de -20 a 20 grados y escalas distintas, sin cuadricula. Debajo, el bloque de titulo
   centrado y la pildora blanca. El escenario toma el alto que deja el texto: el boton siempre se ve sin scroll.
     .stage            caja del escenario (container query de tamano)
     .stage__art       caja del arte con proporcion fija (2:1 en escritorio, 1:1 en movil), contenida
     .stage__obj       un objeto: centro (--x, --y en % del arte), ancho (--w en %), giro (--r en grados)
     .stage__par       capa del parallax (raton y scroll; motion.js)
     .stage__drift     capa de la deriva lenta (seno en posicion y giro; CSS, solo con movimiento)
   Las variables vienen de src/assets/img/stages.json (tools/slots.mjs) y el build las escribe en el HTML. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: clip;
  background: var(--black);
  color: var(--white);
}
.stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
}
.stage__art {
  --art-ratio: 2;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100cqw, 100cqh * var(--art-ratio));
  aspect-ratio: var(--art-ratio);
  translate: -50% -50%;
}
.stage__obj {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  z-index: var(--z, 1);
  translate: -50% -50%;
  rotate: calc(var(--r) * 1deg);
}
.stage__obj--front { --z: 3; }
.stage__obj--main { --z: 2; }
.stage__par,
.stage__drift { width: 100%; }
.stage__obj img { width: 100%; height: auto; }
/* Las fotos finales sobre negro se mezclan con lighten: su fondo negro no tapa a los objetos de atras */
.stage__obj--lighten img { mix-blend-mode: lighten; }
@media (max-width: 959px) {
  .stage__art { --art-ratio: 1; }
  .stage__obj { left: calc(var(--xm, var(--x)) * 1%); top: calc(var(--ym, var(--y)) * 1%); width: calc(var(--wm, var(--w)) * 1%); rotate: calc(var(--rm, var(--r)) * 1deg); }
  .stage__obj--desk { display: none; }
}
.hero__content {
  position: relative;
  z-index: 4;
  flex: none;
  padding-block: clamp(12px, 4px + 1.2vh, 24px) clamp(28px, 10px + 3vh, 56px);
}
.hero__title { width: 100%; font-size: var(--fs-53); letter-spacing: var(--tr-53); line-height: 1.05; }
.hero__lead { margin-top: var(--sp-2); font-size: var(--fs-18); letter-spacing: var(--tr-18); line-height: 1.5; color: var(--ash); max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero .tb { gap: var(--sp-2); }
@media (max-width: 759px) {
  .hero { min-height: 100svh; }
  /* En movil el escenario tiene alto propio (no el que deja el texto): si la fuente cambia el corte de una linea,
     el texto crece hacia abajo y el escenario no se mueve (CLS 0); el boton sigue a la vista */
  .stage { flex: none; height: max(30svh, calc(100svh - var(--header-h) - 432px)); min-height: 0; }
  .hero__title { font-size: var(--fs-35); letter-spacing: var(--tr-35); line-height: 1.08; }
  .hero__lead { font-size: var(--fs-16); letter-spacing: var(--tr-16); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
}
/* Pantalla horizontal y baja (telefono acostado): el escenario a la izquierda y el texto a la derecha */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1079px) {
  .hero { flex-direction: row; align-items: stretch; min-height: 100svh; }
  .stage { flex: 1 1 0; min-width: 0; height: auto; }
  .stage__art { --art-ratio: 1; }
  .hero__content { flex: 0 0 56%; display: grid; align-content: center; padding-block: 8px 16px; }
  .hero__title { font-size: var(--fs-26); letter-spacing: var(--tr-26); }
  .hero__lead { font-size: var(--fs-15); letter-spacing: var(--tr-15); }
  .hero__actions { flex-direction: row; margin-top: var(--sp-3); }
  .hero .btn { min-height: 44px; padding: 10px 20px; }
}

/* 11 TARJETAS -------------------------------------------------------------------- */
/* Sobre oscuro: borde de 1 px rgba(229,231,235,.15), padding 26, radio 17.6 y SIN sombra. Sobre la banda
   clara: blancas (.card--white). Nunca tarjetas de resenas: este componente es para preguntas, "que incluye"
   y datos reales. */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--card-line, var(--hair));
  border-radius: var(--r-card);
  color: var(--fg, var(--white));
}
.card--white { background: var(--white); border-color: var(--white); color: var(--black); }
/* Pila de texto dentro de una tarjeta (las tarjetas que son listas o rejillas manejan su propio espacio) */
.card:not(dl, ul, ol, nav, .esc-qty, .ws-mejorar__aside) > * + * { margin-top: var(--sp-3); }
.card__title { font-size: var(--fs-21); letter-spacing: var(--tr-21); line-height: 1.25; font-weight: 450; }
.card__text { color: var(--fg-2, var(--ash)); }
.card__icon { width: 26px; height: 26px; margin-bottom: var(--sp-4); }
.card__foot { margin-top: var(--sp-5); font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-3, var(--smoke)); }
/* Rejillas de tarjetas: dos columnas (con tarjetas anchas que ocupan las dos) o el arreglo 7/5 */
.cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards > .card { margin-top: 0; }
@media (min-width: 760px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--2 > .card--wide { grid-column: 1 / -1; }
  .cards--75 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cards--75 > :nth-child(4n + 1),
  .cards--75 > :nth-child(4n + 4) { grid-column: span 7; }
  .cards--75 > :nth-child(4n + 2),
  .cards--75 > :nth-child(4n + 3) { grid-column: span 5; }
  .cards--75 > .card--wide { grid-column: 1 / -1; }
}
.cards--narrow { max-width: 860px; margin-inline: auto; }

/* 12 TARJETAS DE PRODUCTO (selector de Inicio) --------------------------------------- */
/* Blancas sobre la banda #e5e7eb, en bento: la tarjeta grande y dos apiladas para "Para ti", y dos lado a
   lado para las empresas. La foto del producto va sobre blanco (slot P, punto blanco), sin caja. */
.picker { display: grid; gap: var(--sp-9); }
.picker__group { display: grid; gap: var(--sp-4); }
.picker__label { text-align: center; font-size: var(--fs-21); letter-spacing: var(--tr-21); line-height: 1.3; font-weight: 400; color: var(--label); }
.pcards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) {
  .pcards--three { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; }
  .pcards--three > :first-child { grid-row: span 2; }
  .pcards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pcard {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 280px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--black);
  overflow: clip;
}
.pcard__media { position: relative; display: grid; place-items: center; min-height: 0; margin: 0 0 var(--sp-5); }
.pcard__media img { width: auto; max-width: 78%; max-height: 300px; object-fit: contain; }
.pcards--three > :first-child .pcard__media img { max-height: 470px; max-width: 86%; }
.pcard__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; }
.pcard__name { font-size: var(--fs-26); letter-spacing: var(--tr-26); line-height: 1.15; font-weight: 450; }
.pcard__desc { grid-column: 1; min-height: 3em; font-size: var(--fs-16); letter-spacing: var(--tr-16); line-height: 1.5; color: var(--black); }
.pcard__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--black);
  color: var(--white);
}
.pcard__go .icon { width: 18px; height: 18px; }
.pcard__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.pcard__link:focus-visible { outline: none; }
.pcard:has(.pcard__link:focus-visible) { outline: 2px solid var(--black); outline-offset: 3px; }
@media (hover: hover) {
  .pcard:hover .pcard__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
}
@media (max-width: 759px) {
  .pcard { min-height: 0; padding: 20px; }
  .pcard__media img { max-height: 220px; }
  .pcards--three > :first-child .pcard__media img { max-height: 260px; }
  .pcard__name { font-size: var(--fs-21); letter-spacing: var(--tr-21); }
}

/* 13 EXHIBICION (capitulos C1 a C5) ------------------------------------------------- */
/* La foto oscura a 1200 px, enmarcada a 17.6 px como pieza de museo, y su cedula centrada debajo: titulo,
   parrafo y un enlace. Nada encima de la foto, asi que no hace falta capa de contraste. */
.chapter { position: relative; padding-block: var(--section-y); background: var(--black); color: var(--white); }
.chapter__media {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: clip;
  border-radius: var(--r-card);
  background: var(--black);
}
.chapter__media picture { position: absolute; inset: 0; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-pos, 50% 50%); }
.chapter__body { display: grid; justify-items: center; gap: var(--sp-3); max-width: 720px; margin: var(--sp-8) auto 0; text-align: center; }
.chapter__title { width: 100%; font-size: var(--fs-35); letter-spacing: var(--tr-35); line-height: 1.1; font-weight: 450; color: var(--white); }
.chapter__text { font-size: var(--fs-18); letter-spacing: var(--tr-18); line-height: 1.55; color: var(--ash); max-width: 34em; }
.chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}
.chapter__link:hover { text-decoration-thickness: 2px; }
.chapter__link .icon { width: 1em; height: 1em; }
@media (max-width: 759px) {
  .chapter__media { aspect-ratio: 4 / 5; }
  .chapter__title { font-size: var(--fs-26); letter-spacing: var(--tr-26); line-height: 1.15; }
  .chapter__text { font-size: var(--fs-16); letter-spacing: var(--tr-16); }
}

/* 14 FILAS Y RIELES ----------------------------------------------------------------- */
/* Listas dentro de una tarjeta: una regla fina entre filas. El dato grande arriba y su explicacion abajo. */
.rows { display: grid; margin: 0; padding: 0; list-style: none; }
.rows > li { padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
.rows > li > * + * { margin-top: var(--sp-2); }
.rows h3 { font-size: var(--fs-19); letter-spacing: var(--tr-19); line-height: 1.3; }
.rows p { color: var(--fg-2); }
.rows__aside { font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-3) !important; }
.rail { display: grid; margin: 0; padding: 0; list-style: none; }
.rail__row,
.rail > li > .rail__row {
  display: grid;
  gap: 6px;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.rail > :first-child,
.rail > li:first-child > .rail__row { border-top: 0; padding-top: 0; }
.rail > :last-child,
.rail > li:last-child > .rail__row { padding-bottom: 0; }
.rail__value {
  order: -1;
  margin: 0;
  font-size: var(--fs-35);
  letter-spacing: var(--tr-35);
  line-height: 1.1;
  font-weight: 450;
  color: var(--fg);
}
.rail__label { max-width: 34em; color: var(--fg-2); }
.rail__label b { font-weight: 500; color: var(--fg); }
/* Riel de enlaces (rangos de Escuelas, 404): cada fila es un enlace con flecha */
.rail--links .rail__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-5); align-items: center; }
.rail--links .rail__value,
.rail--links .rail__label { grid-column: 1; }
.rail--links .rail__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; transition: transform var(--dur-2) var(--ease-out); }
.rail--links .rail__row:hover .rail__go { transform: translateX(4px); }
.rail--links .rail__row:hover .rail__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.rail--links .rail__row:focus-visible { outline-offset: 4px; }
/* Una lista que es tarjeta (riel, filas, lista de revision) recupera el aire de la tarjeta */
.card:is(.rail, .rows, .checklist) { padding: 28px 32px; }
@media (max-width: 759px) { .card:is(.rail, .rows, .checklist) { padding: 22px; } }

/* 15 NIVELES, PASOS Y MATRIZ ----------------------------------------------------------- */
/* Niveles: UNA tarjeta con tres columnas separadas por reglas (nunca tres tarjetas iguales en fila) */
.tiers { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--card-line); border-radius: var(--r-card); }
.section--light .tiers { background: var(--white); border-color: var(--white); --line: var(--mist); --fg: var(--black); --fg-2: var(--black); --fg-3: var(--black); }
.tier { display: flex; flex-direction: column; gap: var(--sp-4); padding: 26px; border-top: 1px solid var(--line); }
.tier:first-child { border-top: 0; }
.tier__metric { font-size: var(--fs-35); letter-spacing: var(--tr-35); line-height: 1.1; font-weight: 450; color: var(--fg); }
.tier__metric small { display: block; margin-top: 4px; font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-3); }
.tier h3 { font-size: var(--fs-21); letter-spacing: var(--tr-21); }
.tier__for { color: var(--fg-2); }
.tier__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tier__list > li { padding-block: 10px; border-top: 1px solid var(--line); font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-2); }
.tier__sheet { display: grid; margin: 0; }
.tier__sheet > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--sp-3); padding-block: 10px; border-top: 1px solid var(--line); font-size: var(--fs-15); letter-spacing: var(--tr-15); }
.tier__sheet dt { color: var(--fg-3); }
.tier__sheet dd { color: var(--fg); }
.tier .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(var(--tiers, 3), minmax(0, 1fr)); }
  .tier { border-top: 0; border-left: 1px solid var(--line); padding: 32px 26px; }
  .tier:first-child { border-left: 0; }
}
/* Pasos: UNA tarjeta blanca (banda clara) con las columnas separadas por reglas, con icono y sin numeros */
.steps { display: grid; margin: 0; padding: 0; list-style: none; border-radius: var(--r-card); border: 1px solid var(--card-line); }
.section--light .steps { background: var(--white); border-color: var(--white); --line: var(--mist); }
.step { display: grid; align-content: start; gap: var(--sp-3); padding: 26px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step__icon { width: 26px; height: 26px; margin-bottom: var(--sp-3); }
.step h3 { font-size: var(--fs-19); letter-spacing: var(--tr-19); line-height: 1.3; }
.step__text { color: var(--fg-2); font-size: var(--fs-15); letter-spacing: var(--tr-15); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
  .steps--5 { --steps: 5; }
  .step { border-top: 0; border-left: 1px solid var(--line); padding: 32px 26px; }
  .step:first-child { border-left: 0; }
}
/* Matriz: rejilla de tarjetas (bordeadas sobre oscuro, blancas sobre claro); la ancha ocupa la fila */
.matrix { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.matrix > * {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 26px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
}
.section--light .matrix > * { background: var(--white); border-color: var(--white); --line: var(--mist); }
.matrix h3 { font-size: var(--fs-21); letter-spacing: var(--tr-21); }
.matrix p { color: var(--fg-2); }
.matrix__icon { width: 26px; height: 26px; margin-bottom: var(--sp-2); }
.matrix__foot { margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-3) !important; }
@media (min-width: 760px) {
  .matrix--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix--2 > .matrix__wide { grid-column: 1 / -1; }
  /* Rejilla de 12: cada celda dice cuanto ocupa (7 y 5 alternados, la ancha toda la fila): nunca tres iguales */
  .matrix--3 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .matrix--3 > * { grid-column: span 6; }
  .matrix--3 > .m-7 { grid-column: span 7; }
  .matrix--3 > .m-5 { grid-column: span 5; }
  .matrix--3 > .matrix__wide { grid-column: 1 / -1; }
}

/* 16 TABLAS --------------------------------------------------------------------- */
/* La tabla vive en una tarjeta. Reglas finas entre filas; cabecera a 15 px. Debajo de 760 px se apila por
   fila (.compare--stack + data-label). Marcas en monocromo: forma + texto. */
.table-card { border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 6px 26px; }
.section--light .table-card { background: var(--white); border-color: var(--white); --line: var(--mist); --fg: var(--black); --fg-2: var(--black); --fg-3: var(--black); }
.table-scroll { position: relative; overflow-x: auto; scrollbar-width: thin; }
.compare,
.ledger { width: 100%; font-size: var(--fs-16); letter-spacing: var(--tr-16); text-align: left; }
.compare { min-width: var(--compare-min, 640px); }
.compare caption,
.ledger caption { padding: 20px 0 8px; text-align: left; caption-side: top; }
.compare th,
.compare td,
.ledger th,
.ledger td { padding: 18px 18px 18px 0; vertical-align: top; border-top: 1px solid var(--line); color: var(--fg-2); }
.compare thead th,
.ledger thead th { border-top: 0; }
.compare th:last-child,
.compare td:last-child,
.ledger th:last-child,
.ledger td:last-child { padding-right: 0; }
.compare thead th,
.ledger thead th {
  padding-block: 18px 14px;
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  color: var(--fg-3);
  vertical-align: bottom;
}
.compare thead th.is-featured,
.ledger thead th.is-featured { color: var(--fg); }
.compare tbody th,
.ledger tbody th { font-weight: 500; color: var(--fg); min-width: 9rem; }
.ledger th .icon { display: block; width: 22px; height: 22px; margin-bottom: var(--sp-3); }
.mark { display: inline-flex; align-items: baseline; gap: .55em; color: var(--fg); }
.mark::before {
  content: "";
  flex: none;
  width: .95em;
  height: .95em;
  transform: translateY(.14em);
  background: currentColor;
  -webkit-mask: var(--mark-glyph, var(--glyph-check)) center / contain no-repeat;
  mask: var(--mark-glyph, var(--glyph-check)) center / contain no-repeat;
}
.mark--partial { --mark-glyph: var(--glyph-minus); color: var(--fg-2); }
.mark--no { --mark-glyph: var(--glyph-x); color: var(--fg-3); }
@media (max-width: 759px) {
  .table-card { padding: 4px 20px; }
  .table-scroll:has(> .compare--stack) { overflow: visible; }
  .compare--stack { min-width: 0; }
  .compare--stack,
  .compare--stack caption,
  .compare--stack tbody,
  .compare--stack tr,
  .compare--stack th,
  .compare--stack td { display: block; }
  .compare--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare--stack tbody th { padding: 20px 0 8px; border-top: 1px solid var(--line); font-size: var(--fs-18); letter-spacing: var(--tr-18); }
  .compare--stack tbody tr:first-child th { border-top: 0; }
  .compare--stack tbody td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--sp-3); padding: 8px 0; border-top: 0; }
  .compare--stack tbody td::before {
    content: attr(data-label);
    font-size: var(--fs-13);
    letter-spacing: var(--tr-13);
    font-weight: 500;
    line-height: 1.7;
    color: var(--fg-3);
  }
  .compare--stack tbody tr { padding-bottom: 12px; }
}
/* Hoja de datos (suele resolverlo / revisamos / cuando no): tres celdas con reglas */
.sheet { display: grid; margin: 0; }
.sheet > div { padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.sheet > div:first-child { border-top: 0; padding-top: 0; }
.sheet dt { margin-bottom: var(--sp-2); }
.sheet dd { color: var(--fg-2); }
@media (min-width: 900px) {
  .sheet { grid-template-columns: repeat(var(--sheet, 3), minmax(0, 1fr)); }
  .sheet > div { padding: 0 26px; border-top: 0; border-left: 1px solid var(--line); }
  .sheet > div:first-child { padding-left: 0; border-left: 0; }
  .sheet > div:last-child { padding-right: 0; }
}

/* 17 PESTANAS ------------------------------------------------------------------ */
/* <div class="tabs" data-tabs> con role=tablist/tab/tabpanel. Pestanas en pildora: la elegida se rellena.
   Sin JS se ven todos los paneles; main.js deja uno y da flechas, Inicio/Fin y enlace por #id. */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--ghost-line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
}
.tabs__tab .icon { width: 18px; height: 18px; }
.tabs__tab:hover { border-color: var(--fg); }
.tabs__tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tabs__panel { margin-top: var(--sp-8); }
.tabs__panel:focus-visible { outline-offset: 8px; border-radius: var(--r-card); }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel + .tabs__panel { margin-top: var(--sp-10); }

/* 18 PREGUNTAS ----------------------------------------------------------------- */
/* Cada pregunta es una tarjeta sobre oscuro (el componente de las resenas de Analogue, aqui con datos
   reales). Ninguna abre por defecto. schema: faq arma el JSON-LD. */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq__item { border: 1px solid var(--card-line); border-radius: var(--r-card); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 64px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-19);
  letter-spacing: var(--tr-19);
  font-weight: 450;
  line-height: 1.35;
  color: var(--fg);
  border-radius: var(--r-card);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform var(--dur-3) var(--ease-out);
}
.faq__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--glyph-plus) center / contain no-repeat;
  mask: var(--glyph-plus) center / contain no-repeat;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { max-width: 44em; padding: 0 26px 24px; color: var(--fg-2); }
.faq__a > * + * { margin-top: var(--sp-3); }
.faq-head .tb__actions { margin-top: var(--sp-4); }
.motion .faq__item[open] .faq__a { animation: faq-in .5s var(--ease-p4) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 19 MARCAS ---------------------------------------------------------------------- */
/* Banda clara, logos en negro (mascara CSS), sin cajas, sin etiquetas. Solo en Inicio. */
.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}
.brands > li { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 64px; }
@media (min-width: 960px) { .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-logo { display: block; font-size: var(--fs-16); letter-spacing: var(--tr-16); font-weight: 500; color: var(--fg); text-align: center; }
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .brand-logo {
    width: calc(var(--h, 30px) * var(--ar, 4));
    max-width: 100%;
    height: var(--h, 30px);
    font-size: 0;
    color: transparent;
    background-color: var(--fg);
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
  }
}
.brand-note { margin-top: var(--sp-9); text-align: center; font-size: var(--fs-13); letter-spacing: var(--tr-13); color: var(--fg-3); }

/* 20 NOTAS, ETIQUETAS Y LISTAS -------------------------------------------------------- */
/* Nota tipografica: 13 px en #999 sobre oscuro (en negro sobre la banda clara), bajo el boton, sin prometer tiempos */
.note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  line-height: 1.5;
  color: var(--fg-3);
  text-align: center;
}
.note--left { justify-content: flex-start; text-align: left; }
.note .icon { width: 15px; height: 15px; margin-top: 1px; }
/* Etiqueta "Ejemplo": pildora con contorno */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--ghost-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  white-space: nowrap;
}
/* Dato tecnico suelto (AM5, 12V-2x6, NVMe): etiqueta en pildora con contorno */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--ghost-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg);
  white-space: nowrap;
}
.checklist { display: grid; margin: 0; padding: 0; list-style: none; }
.checklist > li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line); color: var(--fg); }
.checklist > li:first-child { border-top: 0; padding-top: 0; }
.checklist > li:last-child { padding-bottom: 0; }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(16px + 3px);
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--glyph-check) center / contain no-repeat;
  mask: var(--glyph-check) center / contain no-repeat;
}
.checklist > li:first-child::before { top: 3px; }
.callout { padding: 20px 26px; border: 1px solid var(--card-line); border-radius: var(--r-card); text-align: left; }
.callout__title { font-weight: 500; color: var(--fg); }
.callout__body { margin-top: var(--sp-2); color: var(--fg-2); }

/* 21 FORMULARIOS ------------------------------------------------------------------ */
/* Campos en pildora (texto) o tarjeta (area de texto) con contorno de 1 px que pasa 3:1. Etiqueta arriba,
   ayuda y error debajo. Errores SIEMPRE por campo: .input-error + aria-invalid y el texto en
   .field-error[data-for="<name>"], con icono (el sistema no tiene rojo: forma + texto). */
.form-grid { display: grid; gap: var(--sp-6) var(--sp-7); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label,
.field > legend { padding: 0; font-size: var(--fs-15); letter-spacing: var(--tr-15); font-weight: 500; color: var(--fg); }
.field__optional { font-weight: 400; color: var(--fg-3); }
.field__hint { font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--fg-2); }
.input,
.textarea,
.select {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--field-line, var(--smoke));
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font-size: var(--fs-16);
  letter-spacing: var(--tr-16);
  line-height: 1.5;
}
.textarea { min-height: 7.5rem; border-radius: var(--r-card); resize: vertical; padding: 16px 22px; }
.input::placeholder,
.textarea::placeholder { color: var(--fg-3); opacity: 1; }
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible { outline: 2px solid var(--focus, var(--white)); outline-offset: 3px; }
.input-error,
.input.input-error,
.textarea.input-error { border-style: dashed; border-color: var(--fg); border-width: 2px; }
.choice-grid.input-error,
.chip-list.input-error { outline: 1px dashed var(--fg); outline-offset: 8px; border-radius: var(--r-card); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  color: var(--fg);
}
.field-error:empty { display: none; }
.field-error::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  margin-top: .15em;
  background: currentColor;
  -webkit-mask: var(--glyph-alert) center / contain no-repeat;
  mask: var(--glyph-alert) center / contain no-repeat;
}
/* Opciones (radio y casilla): tarjetas con contorno; la elegida se rellena */
.choice-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--choice-min, 210px)), 1fr));
}
.choice { position: relative; display: flex; }
.choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: start;
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.choice__card::before {
  content: "";
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}
.choice__title { font-weight: 500; line-height: 1.35; }
.choice__text { font-size: var(--fs-15); letter-spacing: var(--tr-15); line-height: 1.45; color: var(--fg-2); }
.choice__icon { display: none; }
.choice__card:hover { border-color: var(--fg); }
.choice__input:checked + .choice__card { border-color: var(--fg); background: var(--fg); color: var(--btn-fg); }
.choice__input:checked + .choice__card .choice__text { color: var(--btn-fg); }
/* Elegida: el indicador se llena (la casilla lleva ademas la palomita) */
.choice__input:checked + .choice__card::before { background: var(--btn-fg); border-color: var(--btn-fg); }
.choice__input[type="checkbox"]:checked + .choice__card::after {
  content: "";
  position: absolute;
  left: calc(18px + 3px);
  top: calc(16px + 6px);
  width: 10px;
  height: 10px;
  background: var(--fg);
  -webkit-mask: var(--glyph-check) center / contain no-repeat;
  mask: var(--glyph-check) center / contain no-repeat;
}
.choice__input:focus-visible + .choice__card { outline: 2px solid var(--focus, var(--white)); outline-offset: 3px; }
/* Con icono: el icono sustituye al indicador */
.choice--icon .choice__card::before { display: none; }
.choice--icon .choice__icon { display: grid; place-items: center; grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 1px; }
.choice--icon .choice__icon .icon { width: 22px; height: 22px; }
.choice--icon .choice__input[type="checkbox"]:checked + .choice__card::after { display: none; }
/* Chips seleccionables: pildora; la elegida se rellena */
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-check span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  cursor: pointer;
}
.chip-check span:hover { border-color: var(--fg); }
.chip-check input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--btn-fg); }
.chip-check input:focus-visible + span { outline: 2px solid var(--focus, var(--white)); outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-top: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fg); flex: none; }

/* 22 CUESTIONARIO (quiz.js) --------------------------------------------------------- */
/* Panel blanco (tarjeta de 17.6 px) sobre la banda clara. Lo arma quiz.js desde <script type="application/json" data-quiz>. */
.quiz-wrap { display: grid; gap: var(--sp-8); }
.quiz {
  --quiz-pad: clamp(20px, 10px + 2.4vw, 44px);
  --field-line: var(--black);
  position: relative;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  text-align: left;
  --fg: var(--black);
  --fg-2: var(--black);
  --fg-3: var(--black);
  --card-line: var(--mist);
  --line: var(--mist);
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  --ghost-line: rgba(0, 0, 0, .3);
  --focus: var(--black);
}
.quiz :focus-visible { outline-color: var(--black); }
.quiz .choice__card,
.quiz .chip-check span { border-color: rgba(0, 0, 0, .18); }
.quiz__fallback { display: grid; gap: var(--sp-5); justify-items: start; padding: var(--quiz-pad); }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 18px var(--quiz-pad); border-bottom: 1px solid var(--mist); }
.quiz__status { font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--black); }
.quiz__status strong { font-weight: 500; }
.quiz__optional { margin-left: .5em; }
/* Avance real del cuestionario: una linea de 2px (dato, no adorno) */
.quiz__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.quiz__bar span { display: block; height: 100%; width: 100%; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.quiz__body { padding: var(--quiz-pad); }
.quiz__panel { display: grid; gap: var(--sp-7); }
.quiz__panel.is-entering { animation: quiz-in .34s var(--ease-out) both; }
.quiz__panel.is-entering.is-back { animation-name: quiz-in-back; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes quiz-in-back { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.quiz__title { font-size: var(--fs-26); letter-spacing: var(--tr-26); font-weight: 450; line-height: 1.15; color: var(--black); }
.quiz__title:focus { outline: none; }
.quiz__title:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; border-radius: var(--r-card); }
.quiz__help { margin-top: calc(var(--sp-5) * -1); color: var(--black); }
.quiz__q { display: grid; gap: var(--sp-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz__q > legend,
.quiz__q > .field__label { margin-bottom: 10px; font-size: var(--fs-15); letter-spacing: var(--tr-15); font-weight: 500; color: var(--black); }
.quiz__other { margin-top: var(--sp-3); max-width: 28rem; }
.quiz__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-9); padding-top: var(--sp-6); border-top: 1px solid var(--mist); }
.quiz__nav-spacer { flex: 1 1 auto; }
.quiz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px var(--quiz-pad); border-top: 1px solid var(--mist); font-size: var(--fs-15); letter-spacing: var(--tr-15); }
.quiz__privacy { display: inline-flex; align-items: center; gap: 8px; color: var(--black); font-size: var(--fs-13); letter-spacing: var(--tr-13); }
.quiz__privacy .icon { width: 1em; height: 1em; }
.quiz__talk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em; }
.quiz__talk .icon { width: 1.05em; height: 1.05em; }
.quiz__review { display: grid; gap: var(--sp-7); }
.quiz__summary { display: grid; margin: 0; }
.quiz__group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding-block: var(--sp-4); border-top: 1px solid var(--mist); }
.quiz__group:first-child { border-top: 0; padding-top: 0; }
.quiz__answers { display: grid; gap: 6px; min-width: 0; }
.quiz__answer { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 640px) { .quiz__answer { grid-template-columns: 11rem minmax(0, 1fr); } }
.quiz__answer dt { font-size: var(--fs-15); letter-spacing: var(--tr-15); color: var(--black); font-weight: 500; }
.quiz__answer dd { margin: 0; overflow-wrap: anywhere; }
.quiz__answer dd.is-empty { color: var(--black); }
.quiz__edit { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em; }
.quiz__message-wrap { display: grid; gap: var(--sp-2); }
.quiz__message-label { font-size: var(--fs-15); letter-spacing: var(--tr-15); font-weight: 500; }
.quiz__message {
  margin: 0;
  max-height: 22rem;
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.quiz__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.quiz__note { font-size: var(--fs-13); letter-spacing: var(--tr-13); color: var(--black); }
.quiz__done { display: grid; gap: var(--sp-5); justify-items: start; }
.quiz__done-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--black); color: var(--white); }
.quiz__done-icon .icon { width: 24px; height: 24px; }
@media (max-width: 519px) {
  .quiz__nav .btn--primary,
  .quiz__send .btn--primary { flex: 1 1 100%; }
  .quiz__nav-spacer { display: none; }
}

/* 23 FOOTER ------------------------------------------------------------ */
.site-footer { padding-block: clamp(56px, 40px + 3vw, 96px) var(--sp-7); background: var(--black); color: var(--white); border-top: 1px solid var(--hair); }
.site-footer__top { display: grid; gap: var(--sp-9) var(--sp-8); }
@media (min-width: 960px) { .site-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__logo img { width: 160px; height: auto; }
.site-footer__tagline { margin-top: var(--sp-5); font-size: var(--fs-21); letter-spacing: var(--tr-21); line-height: 1.3; color: var(--mist); }
.site-footer__promise { margin-top: var(--sp-2); max-width: 24em; color: var(--ash); }
.site-footer__nav { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .site-footer__nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); } }
.footer-col__title {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  font-weight: 450;
  line-height: 1.3;
  color: var(--smoke);
}
.footer-col ul { display: grid; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); }
.footer-link:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.footer-contact { display: grid; min-height: 56px; align-content: center; }
.footer-contact__label { font-size: var(--fs-13); letter-spacing: var(--tr-13); color: var(--smoke); }
.footer-contact__value { overflow-wrap: anywhere; color: var(--mist); }
a.footer-contact:hover .footer-contact__value { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 26px;
  margin-top: clamp(40px, 30px + 2vw, 64px);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hair);
  font-size: var(--fs-13);
  letter-spacing: var(--tr-13);
  color: var(--smoke);
}
.site-footer__bottom p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1em; }
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* 24 WHATSAPP FLOTANTE ----------------------------------------------------------- */
/* Uno solo por pagina: pildora blanca sobre oscuro; sobre una banda clara pasa a negra (main.js). */
.wa-float {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--white);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--black);
  font-size: var(--fs-15);
  letter-spacing: var(--tr-15);
  font-weight: 500;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.wa-float .icon { width: 24px; height: 24px; flex: none; }
.wa-float.is-on-light { background: var(--black); color: var(--white); border-color: var(--black); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.wa-float__label { display: none; white-space: nowrap; }
/* Con mouse: el boton ya mide lo que mide abierto y un clip-path lo deja en el circulo del icono; al pasar el
   mouse (o con el foco) el recorte se abre. Solo se anima clip-path: nada del layout se mueve. */
@media (hover: hover) and (pointer: fine) {
  .wa-float { flex-direction: row-reverse; gap: 20px; width: auto; padding: 0 15px 0 24px; clip-path: inset(0 0 0 calc(100% - 56px) round var(--r-pill)); transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2), clip-path .55s var(--ease-p4); }
  .wa-float__label { display: inline; }
  .wa-float:hover { clip-path: inset(0 0 0 0 round var(--r-pill)); }
  .wa-float:focus-visible { clip-path: inset(-6px round var(--r-pill)); }
}
.is-menu-open .wa-float { display: none; }

/* 25 MOVIMIENTO ---------------------------------------------------------------- */
/* CONTRACT.md §8. Todo estado inicial oculto vive SOLO bajo html.motion, que el script del <head> pone con JS
   y sin prefers-reduced-motion (y quita si motion.js no toma el control en 4 s). Sin JS o con movimiento
   reducido no hay nada oculto ni nada que derive: la vitrina queda completa y quieta.
   Solo se anima transform, opacity y clip-path (el build lo revisa: [diseno:css-anim]). */

/* Escenario: los objetos entran (motion.js) y despues derivan despacio, cada uno a su ritmo (seno en
   posicion y giro, con alternate y ease-in-out). La deriva se pausa fuera de pantalla (.is-paused). */
.motion .stage__obj img { opacity: 0; }
.motion .stage__drift {
  animation: drift-y var(--dur, 12s) ease-in-out var(--del, 0s) infinite alternate, drift-r var(--rdur, 15s) ease-in-out var(--del, 0s) infinite alternate;
}
.motion .stage.is-paused .stage__drift { animation-play-state: paused; }
@keyframes drift-y {
  from { translate: 0 calc(var(--amp, 8px) * -1); }
  to { translate: 0 var(--amp, 8px); }
}
@keyframes drift-r {
  from { rotate: calc(var(--rot, 1.2deg) * -1); }
  to { rotate: var(--rot, 1.2deg); }
}

/* Titulos h1 y h2: SplitText por lineas con mascara; ocultos hasta que motion.js los parte */
.motion main h1,
.motion main h2 { visibility: hidden; }
.motion main h1.is-split,
.motion main h2.is-split { visibility: visible; }
/* La mascara de cada linea recorta .16em mas afuera de su caja: caben los acentos y las colas sin tocar el layout */
.k-line-mask { overflow-clip-margin: .16em; }

/* Lo que acompana a un titulo (rotulo, lead, botones, notas) entra con el */
.motion :is(.tb, .chapter__body, .page-head > .container) > :not(h1, h2) { opacity: 0; }

/* Bloques: tarjetas, tablas, niveles, pasos, pestanas, marcas */
.motion [data-reveal] { opacity: 0; }

/* Fotos: revelado con clip-path (de abajo hacia arriba) y la imagen de 1.08 a 1. En las exhibiciones la foto
   sobra 7% arriba y abajo (picture) para el parallax suave sin que asomen los bordes. */
.motion .chapter__media { clip-path: inset(100% 0 0 0 round var(--r-card)); }
.motion .chapter__media picture { inset: -7% 0; }

/* Numeros tecnicos: el valor real queda para lectores de pantalla y el conteo va en una copia aria-hidden
   con el ancho final fijo: el conteo no mueve nada. */
.count__fx { display: inline-block; text-align: right; user-select: none; }

/* Flecha que se desliza: sale por la derecha y vuelve por la izquierda dentro de su ranura */
.arrow-slot { display: inline-flex; flex: none; overflow: clip; }
.rail--links .rail__row > .arrow-slot { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.motion :is(.btn, .link-arrow):hover .icon,
.motion .rail--links .rail__row:hover .rail__go { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .motion :is(.btn, .link-arrow, .chapter__link, .rail__row, .pcard):hover .arrow-slot > .icon { animation: arrow-through .64s var(--ease-p4); }
}
@keyframes arrow-through {
  0% { transform: none; }
  42% { transform: translateX(118%); }
  42.1% { transform: translateX(-118%); }
  100% { transform: none; }
}

/* Transiciones entre paginas (View Transitions entre documentos): el header y el logo persisten y el
   contenido hace un fundido corto. Mejora progresiva: sin soporte o con movimiento reducido no pasa nada. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.site-header__logo { view-transition-name: site-logo; }
::view-transition-old(root) { animation: vt-out .26s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) .05s both; }
::view-transition-group(site-header),
::view-transition-group(site-logo) { animation-duration: .45s; animation-timing-function: var(--ease-p4); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

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

/* 26 ESPACIO (al final: gana a los componentes) ----------------------------------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: var(--sp-4); }
.mt-m { margin-top: var(--sp-7); }
.mt-l { margin-top: var(--sp-9); }
.mt-xl { margin-top: 80px; }
.mb-0 { margin-bottom: 0; }
