/* ==========================================================================
   Harpe, the public site - the one stylesheet.

   Built from the web kit, version 4 (October 2026) and the bookmark cards
   of version 5 (November 2026; 5.4 took the folder cards out), in this order:
   tokens/tokens.css, tokens/fonts.css, reference/css/harpe.css and
   reference/css/cristal.css, each copied whole, then the pricing of Atalaya
   (Carlos's addition) and what harpe.live adds on its own at the end. The
   only edits inside the kit's parts are the paths: fonts from /assets/fonts
   and grain.png from /assets/img, which is where this site serves them.
   ========================================================================== */

/* ==== tokens/tokens.css ==== */
/* ==========================================================================
   Harpe · tokens de diseño para harpe.live
   Fuente única de color, tipografía, espacio, radios, sombras y movimiento.
   Copia este fichero y fonts.css en src/styles/ y usa las variables; no escribas hex sueltos.
   ========================================================================== */

:root {
  /* ---- Color de marca ---------------------------------------------------- */
  --color-azure: #00638E;          /* Dark Azure: acento, enlaces, líneas de marca, barras */
  --color-azure-deep: #004A6B;     /* Deep Azure: degradados y estado hover del acento */
  --color-azure-light: #BFD8E3;    /* Light Azure: fondos suaves y texto sobre oscuro */
  --color-mist: #8CB9CC;           /* Mist: kicker sobre oscuro, luz de los degradados */
  --color-navy: #003048;           /* Navy: secciones oscuras y botón oscuro */
  --color-night: #001E2E;          /* Noche: extremo oscuro de la rampa */
  --color-onyx: #141414;           /* Texto principal */
  --color-charcoal: #2B2B2B;       /* Texto de lectura */
  --color-paper: #FFFFFF;          /* Fondo de página */

  /* ---- Neutros de interfaz ----------------------------------------------- */
  --color-muted: #5E6A70;          /* Texto secundario sobre claro (5,6:1 sobre blanco) */
  --color-paper-2: #F4F7F8;        /* Fondo de sección alterna */
  --color-panel: #EEF2F4;          /* Cuerpo de tarjeta de pestaña */
  --color-tint: #EDF3F6;           /* Etiquetas, rellenos suaves */
  --color-line: #DCE6EB;           /* Separadores sobre claro */
  --color-line-strong: #D5DEE3;    /* Separador dentro de tarjeta */
  --color-field-border: #7E909A;   /* Borde de campo de formulario (3,3:1 sobre blanco) */
  --color-on-dark: #FFFFFF;        /* Texto principal sobre oscuro */
  --color-on-dark-2: #D6E8F0;      /* Texto de lectura sobre oscuro */
  --color-on-dark-3: #9FB3BE;      /* Texto del pie */
  --color-footer: #0A1621;         /* Fondo del pie */
  --color-line-dark: rgba(255, 255, 255, .18); /* Separadores sobre oscuro */

  /* ---- Acentos de luz: reservados a degradados y cifras gigantes --------- */
  --color-light-cyan: #8ED8FF;
  --color-cyan: #12A2EC;
  --color-blue: #0B63C8;
  --color-blue-deep: #0A3A96;

  /* ---- Color de datos: uno por producto ---------------------------------- */
  --color-data-atria: #00638E;
  --color-data-vision: #E8913A;
  --color-data-embarcado: #4E9FCB;
  --color-data-atalaya: #6B58B8;

  /* ---- Verdes de campaña: la familia de Atria (kit 5.7, libro de marca 7.13) ----
     En las insignias, que son imágenes, y en el material de campo; la web sigue
     en azul. Moss y Olive Leaf no llevan texto sobre Olivenite. */
  --color-campana-olivenite: #2E3511;
  --color-campana-olive-leaf: #4A4A33;
  --color-campana-acadia: #34302C;
  --color-campana-moss: #555B41;
  --color-campana-sage: #B9C2A0;

  /* ---- Estados ----------------------------------------------------------- */
  --color-focus: #0B63C8;          /* Anillo de foco sobre claro */
  --color-focus-on-dark: #8ED8FF;  /* Anillo de foco sobre oscuro */
  --color-error: #B3261E;
  --color-error-bg: #FCEDEC;
  --color-success: #1E7A4F;
  --color-success-bg: #E8F5EE;

  /* ---- Interfaz de producto (maquetas y demos) --------------------------- */
  /* ---- Cartas del equipo (guiño de juego de cartas; ver docs/COMPONENTES.md) ---- */
  --color-card-rim: #0A1621;         /* Borde exterior de la carta */
  --color-card-parchment: #F4F7F8;   /* Caja de texto de la carta */
  --color-card-azure-1: #00638E;
  --color-card-azure-2: #003048;
  --color-card-sky-1: #4E9FCB;
  --color-card-sky-2: #0B4F7A;
  --color-card-violet-1: #6B58B8;
  --color-card-violet-2: #2E2466;
  --color-card-amber-1: #E8913A;
  --color-card-amber-2: #7A3F10;
  --color-card-azure-3: #CFE3EC;     /* Círculos de coste: tinte claro con el símbolo en el tono oscuro */
  --color-card-sky-3: #D3EAF6;
  --color-card-violet-3: #DDD7F3;
  --color-card-amber-3: #F7DEC0;
  --color-card-glass: rgba(0, 30, 46, .58);          /* Barras translúcidas sobre la ilustración */
  --color-card-line: rgba(255, 255, 255, .72);        /* Marco fino interior */
  --gradient-card-shade: linear-gradient(180deg, rgba(0, 20, 32, .30) 0%, rgba(0, 20, 32, 0) 14%, rgba(0, 20, 32, 0) 38%, rgba(0, 20, 32, .74) 58%, rgba(0, 20, 32, .95) 80%, rgba(0, 20, 32, .98) 100%);
  --gradient-foil: linear-gradient(115deg, rgba(255, 255, 255, 0) 25%, rgba(142, 216, 255, .55) 40%, rgba(255, 255, 255, .45) 50%, rgba(107, 88, 184, .5) 60%, rgba(255, 255, 255, 0) 75%);

  --color-ui-bg: #0B0F11;
  --color-ui-panel: #11181C;
  --color-ui-alert: #E0564F;

  /* ---- Degradados -------------------------------------------------------- */
  --gradient-ramp: linear-gradient(90deg, #001E2E, #003048, #004A6B, #00638E, #8CB9CC, #BFD8E3);
  --gradient-story-sky: linear-gradient(180deg, #CFEAF8 0%, #9FD5F4 14%, #3AA7EA 30%, #0B5FB0 46%, #052A4E 62%, #030E1A 80%, #02070D 100%);
  --gradient-story-ghost: linear-gradient(180deg, #8ED8FF 0%, #19ABF2 35%, #0B63C8 70%, #0A3A96 100%);
  --gradient-stat-band: linear-gradient(100deg, #001E2E 0%, #003048 45%, #00507A 100%);

  /* ---- Tipografía -------------------------------------------------------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-enum: "Offside", "Inter", system-ui, sans-serif;   /* reservada a la enumeración: 01, 02, 03 */

  --text-display: clamp(2.75rem, 1.6rem + calc(3.2 * var(--vw)), 4.25rem);  /* 44 → 68 px, titular de portada */
  --text-h1: clamp(2.5rem, 1.7rem + calc(2.4 * var(--vw)), 3.5rem);         /* 40 → 56 px, titular de página */
  --text-h2: clamp(2rem, 1.4rem + calc(1.9 * var(--vw)), 2.75rem);          /* 32 → 44 px, titular de sección */
  --text-h3: clamp(1.25rem, 1.1rem + calc(.4 * var(--vw)), 1.375rem);       /* 20 → 22 px, título de tarjeta */
  --text-h4: 1.0625rem;                                     /* 17 px, título de lista */
  --text-lead: clamp(1.0625rem, 1rem + calc(.35 * var(--vw)), 1.25rem);     /* 17 → 20 px, entradilla */
  --text-body: 1rem;                                        /* 16 px */
  --text-small: .90625rem;                                  /* 14,5 px, texto de tarjeta */
  --text-caption: .8125rem;                                 /* 13 px, pies de imagen y notas */
  --text-kicker: .8125rem;                                  /* 13 px, en mayúsculas */
  --text-stat: clamp(1.625rem, 1.4rem + calc(.6 * var(--vw)), 1.875rem);    /* 26 → 30 px, cifra de tarjeta */
  --text-stat-xl: clamp(2.25rem, 1.8rem + calc(1.3 * var(--vw)), 2.875rem); /* 36 → 46 px, cifra de historia */
  --text-enum: 1.375rem;                                    /* 22 px, Offside en listas */
  --text-enum-xl: clamp(1.75rem, 1.5rem + calc(.8 * var(--vw)), 2.125rem);  /* 28 → 34 px, Offside en principios */

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-display: 1.02;
  --leading-heading: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.5;

  --tracking-display: -.03em;
  --tracking-heading: -.02em;
  --tracking-kicker: .18em;
  --tracking-enum: .02em;

  /* ---- Espacio (base 4 px) ----------------------------------------------- */
  --space-1: .25rem;   /* 4 */
  --space-2: .5rem;    /* 8 */
  --space-3: .75rem;   /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */
  --space-20: 5rem;    /* 80 */
  --section-y: clamp(4.375rem, 2.9rem + calc(4.2 * var(--vw)), 6.875rem);  /* 70 → 110 px de relleno vertical */
  --stack-title: clamp(2.25rem, 1.8rem + calc(1.3 * var(--vw)), 3.125rem); /* 36 → 50 px del titular al contenido */

  /* ---- Maquetación ------------------------------------------------------- */
  /* Ancho máximo con el margen incluido. Crece con la pantalla a partir de
     1.380 px: Carlos, 25 de octubre de 2026, «hay mucho espacio a los lados». */
  /* La pantalla, en vw y vh: 1, salvo con la escala de escritorio (al final de
     la hoja), que las sube a 1,25 para que el zoom no las encoja. */
  --vw: 1vw;
  --vh: 1vh;
  --container: clamp(1240px, calc(90 * var(--vw)), 1600px);
  --gutter: clamp(1.375rem, .9rem + calc(1.6 * var(--vw)), 2.5rem);      /* 22 → 40 px de margen lateral */
  --grid-gap: clamp(1rem, .8rem + calc(.6 * var(--vw)), 1.375rem);       /* 16 → 22 px entre tarjetas */
  --nav-h: 84px;
  --nav-h-mobile: 68px;

  /* ---- Radios ------------------------------------------------------------ */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;    /* botones, campos */
  --radius-lg: 18px;    /* capturas */
  --radius-xl: 22px;    /* tarjetas de pestaña, de pilar y de capacidad */
  --radius-2xl: 26px;   /* tarjeta de historia y banda */
  --radius-3xl: 28px;   /* tarjeta de foto y banda de contacto */
  --radius-pill: 999px; /* etiquetas */

  /* ---- El corte del símbolo --------------------------------------------- */
  /* Las tarjetas recortan la esquina superior derecha con el ángulo de las piezas
     del logotipo (30°): 44 × 25,4 px, con los dos vértices del corte redondeados a 6 px.
     Máscara de tres capas: la esquina, la franja superior y el resto de la tarjeta. */
  --cut-w: 44px;
  --cut-h: 25.4px;
  --cut-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 31.4'%3E%3Cpath d='M0 0Q6 0 11.2 3L44.8 22.4Q50 25.4 50 31.4H0Z'/%3E%3C/svg%3E") right top / 50px 31.4px no-repeat,
    linear-gradient(#000 0 0) left top / calc(100% - 49px) 31.4px no-repeat,
    linear-gradient(#000 0 0) left 30.4px / 100% calc(100% - 30.4px) no-repeat;

  /* ---- Silueta de la tarjeta marcapáginas (v5) ---------------------------- */
  /* marcapáginas: muesca arriba a la izquierda y abajo a la derecha, 16 px a 30° */
  --bookmark-clip: polygon(0.00px 38.00px, 0.42px 33.71px, 1.67px 29.58px, 3.71px 25.78px, 6.44px 22.44px, 9.78px 19.71px, 13.58px 17.67px, 17.71px 16.42px, 22.00px 16.00px, calc(24% + -1.61px) 16.00px, calc(24% + -1.22px) 15.99px, calc(24% + -0.82px) 15.95px, calc(24% + -0.44px) 15.88px, calc(24% + -0.05px) 15.80px, calc(24% + 0.32px) 15.68px, calc(24% + 0.69px) 15.54px, calc(24% + 1.05px) 15.38px, calc(24% + 1.39px) 15.20px, calc(24% + 26.32px) 0.80px, calc(24% + 26.67px) 0.62px, calc(24% + 27.02px) 0.46px, calc(24% + 27.39px) 0.32px, calc(24% + 27.77px) 0.20px, calc(24% + 28.15px) 0.12px, calc(24% + 28.54px) 0.05px, calc(24% + 28.93px) 0.01px, calc(24% + 29.32px) -0.00px, calc(100% + -22.00px) 0.00px, calc(100% + -17.71px) 0.42px, calc(100% + -13.58px) 1.67px, calc(100% + -9.78px) 3.71px, calc(100% + -6.44px) 6.44px, calc(100% + -3.71px) 9.78px, calc(100% + -1.67px) 13.58px, calc(100% + -0.42px) 17.71px, calc(100% + 0.00px) 22.00px, calc(100% + 0.00px) calc(100% + -38.00px), calc(100% + -0.42px) calc(100% + -33.71px), calc(100% + -1.67px) calc(100% + -29.58px), calc(100% + -3.71px) calc(100% + -25.78px), calc(100% + -6.44px) calc(100% + -22.44px), calc(100% + -9.78px) calc(100% + -19.71px), calc(100% + -13.58px) calc(100% + -17.67px), calc(100% + -17.71px) calc(100% + -16.42px), calc(100% + -22.00px) calc(100% + -16.00px), calc(66% + 1.61px) calc(100% + -16.00px), calc(66% + 1.22px) calc(100% + -15.99px), calc(66% + 0.82px) calc(100% + -15.95px), calc(66% + 0.44px) calc(100% + -15.88px), calc(66% + 0.05px) calc(100% + -15.80px), calc(66% + -0.32px) calc(100% + -15.68px), calc(66% + -0.69px) calc(100% + -15.54px), calc(66% + -1.05px) calc(100% + -15.38px), calc(66% + -1.39px) calc(100% + -15.20px), calc(66% + -26.32px) calc(100% + -0.80px), calc(66% + -26.67px) calc(100% + -0.62px), calc(66% + -27.02px) calc(100% + -0.46px), calc(66% + -27.39px) calc(100% + -0.32px), calc(66% + -27.77px) calc(100% + -0.20px), calc(66% + -28.15px) calc(100% + -0.12px), calc(66% + -28.54px) calc(100% + -0.05px), calc(66% + -28.93px) calc(100% + -0.01px), calc(66% + -29.32px) calc(100% + 0.00px), 22.00px calc(100% + 0.00px), 17.71px calc(100% + -0.42px), 13.58px calc(100% + -1.67px), 9.78px calc(100% + -3.71px), 6.44px calc(100% + -6.44px), 3.71px calc(100% + -9.78px), 1.67px calc(100% + -13.58px), 0.42px calc(100% + -17.71px), 0.00px calc(100% + -22.00px));

  /* ---- Sombras ----------------------------------------------------------- */
  --shadow-card: 0 12px 50px rgba(0, 48, 72, .14);
  --shadow-shot-light: 0 20px 60px rgba(0, 48, 72, .20);
  --shadow-shot-dark: 0 30px 80px rgba(0, 10, 20, .55);

  /* ---- Movimiento -------------------------------------------------------- */
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-spring: 560ms;                       /* tarjetas carpeta y marcapáginas */
  --ease-spring: cubic-bezier(.34, 1.45, .5, 1); /* muelle: se pasa un poco y vuelve */

  /* ---- Capas ------------------------------------------------------------- */
  --z-nav: 50;
  --z-notice: 55;     /* el aviso de cookies: sobre la barra, bajo el menú del móvil */
  --z-menu: 60;
  --z-skip: 100;

  /* ---- v5: cristal plano y cartel (sobre los degradados «movement») ---- */
  --font-cartel: "Unbounded", "Inter", system-ui, sans-serif;  /* 200 cifras de cartel, 300 líneas de cartel */
  --glass-bg: rgb(0 31 48 / .16);
  --glass-border: rgb(255 255 255 / .32);
  --glass-blur: 28px;
  --glass-radius: 24px;
  --glass-fallback: rgb(0 30 46 / .9);
}

/* Puntos de corte (no admiten variables en @media):
   sm  700px   una columna bajo este ancho
   md  1024px  menú completo desde este ancho; bajo él, botón de menú
   lg  1280px  escritorio amplio */

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}

/* ==== tokens/fonts.css ==== */
/* Harpe · fuentes web (subconjunto latino, WOFF2), servidas desde /assets/fonts. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Offside"; src: url("/assets/fonts/offside-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Símbolos de las cartas del equipo: una cara por peso. Con un rango de pesos (400 700), Chromium elige esta cara y deja el texto latino sin Inter. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-symbols-700.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0127, U+03A9, U+03BB, U+03C0, U+03C6, U+2075-2076, U+2202, U+2211, U+221E, U+222B, U+2295, U+25C7; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-symbols-700.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0127, U+03A9, U+03BB, U+03C0, U+03C6, U+2075-2076, U+2202, U+2211, U+221E, U+222B, U+2295, U+25C7; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-symbols-700.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0127, U+03A9, U+03BB, U+03C0, U+03C6, U+2075-2076, U+2202, U+2211, U+221E, U+222B, U+2295, U+25C7; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-symbols-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0127, U+03A9, U+03BB, U+03C0, U+03C6, U+2075-2076, U+2202, U+2211, U+221E, U+222B, U+2295, U+25C7; }
/* Tipografía de cartel (libro de marca v5): cifras gigantes y líneas de cartel. No se precarga. */
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

/* ==== reference/css/harpe.css ==== */
/* ==========================================================================
   Harpe · estilos de la referencia de harpe.live
   Usa las variables de tokens/tokens.css. Cada bloque es un componente de
   docs/COMPONENTES.md con el mismo nombre.
   ========================================================================== */

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-onyx);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";   /* a de un piso y 1 con base en Inter */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-azure); text-underline-offset: .18em; }
a:hover { color: var(--color-azure-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4, .h-display, .h1, .h2, .h3, .h4 { font-weight: var(--weight-bold); text-wrap: balance; }
p { text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .section--dark :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .mobile-menu :focus-visible, .cta-banner :focus-visible { outline-color: var(--color-focus-on-dark); }

.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;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-skip);
  background: var(--color-paper); color: var(--color-navy); font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---- Maquetación --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-paper-2); }
.section--dark { background: var(--color-navy); color: var(--color-on-dark); }
.section--flush-top { padding-top: 0; }
.stack-title { margin-top: var(--stack-title); }

/* Grano sobre degradados: tapa las bandas de compresión */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/assets/img/grain.png"); opacity: .09; mix-blend-mode: overlay;
}

/* ---- Tipografía ---------------------------------------------------------- */
.kicker {
  font-size: var(--text-kicker); font-weight: var(--weight-bold); letter-spacing: var(--tracking-kicker);
  text-transform: uppercase; color: var(--color-azure);
}
.on-dark .kicker, .section--dark .kicker, .hero .kicker, .page-hero .kicker, .mobile-menu .kicker { color: var(--color-mist); }
.h-display { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.h1 { font-size: var(--text-h1); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
.h2 { font-size: var(--text-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); max-width: 21em; }
.h3 { font-size: var(--text-h3); line-height: var(--leading-snug); letter-spacing: -.01em; }
.h4 { font-size: var(--text-h4); line-height: var(--leading-snug); }
.lead { font-size: var(--text-lead); line-height: var(--leading-body); color: var(--color-charcoal); max-width: 38em; }
.section--dark .lead, .on-dark .lead { color: var(--color-on-dark-2); }
.small { font-size: var(--text-small); line-height: var(--leading-body); color: var(--color-charcoal); }
.caption { font-size: var(--text-caption); line-height: 1.45; color: var(--color-muted); }
.on-dark .caption { color: var(--color-azure-light); }
.enum { font-family: var(--font-enum); font-weight: 400; letter-spacing: var(--tracking-enum); font-variant-numeric: tabular-nums; }

.section-head .kicker + .h2, .section-head .kicker + .h1 { margin-top: var(--space-4); }
.section-head .lead { margin-top: var(--space-4); }
.section-head--split { display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: end; }

/* ---- Botones y enlaces --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: .9375rem; font-weight: var(--weight-semibold); line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--light { background: var(--color-paper); color: var(--color-navy); }
.btn--light:hover { background: var(--color-azure-light); color: var(--color-navy); }
.btn--dark { background: var(--color-navy); color: var(--color-on-dark); }
.btn--dark:hover { background: var(--color-azure); color: var(--color-on-dark); }
.btn--glass {
  background: rgba(255, 255, 255, .12); color: var(--color-on-dark); border-color: rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: var(--color-on-dark); }
.btn--soft { background: var(--color-tint); color: var(--color-navy); border-color: #D5E3EA; }
.btn--soft:hover { background: var(--color-azure-light); color: var(--color-navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow { font-weight: var(--weight-bold); color: var(--color-onyx); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin var(--dur) var(--ease); }
.link-arrow:hover { color: var(--color-azure); }

/* ---- Etiquetas ----------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill); font-size: .875rem; font-weight: var(--weight-semibold); line-height: 1.2;
  background: var(--color-tint); border: 1px solid #D5E3EA; color: var(--color-onyx); text-decoration: none;
}
.chip--dark { background: transparent; border-color: rgba(255, 255, 255, .42); color: var(--color-on-dark); }
a.chip:hover { border-color: var(--color-azure); color: var(--color-azure); }
a.chip--dark:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---- Cabecera y navegación ----------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); color: var(--color-on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease; }
/* The bar goes with the reader. Carlos: «cuando hagas scroll hacia abajo la
   barra te acompañe con el fondo rollo cristal». Over the hero it stays clear;
   once the page moves, menu.js adds .is-scrolled and the bar turns to glass in
   the night blue, so the white links keep reading over white sections. */
.site-header.is-scrolled {
  background-color: rgb(0 22 36 / .72);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-bottom-color: rgb(255 255 255 / .12); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background-color: var(--glass-fallback); } }
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background-color: var(--glass-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* Anchors land below the fixed bar, not under it. */
html { scroll-padding-top: calc(var(--nav-h) + var(--space-4)); }
.site-header .container { display: flex; align-items: center; gap: var(--space-8); height: var(--nav-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 30px; width: auto; }
.site-nav { margin-left: auto; }
.nav-links { display: flex; gap: var(--space-8); padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: inline-block; padding: var(--space-2) 0; color: #DCEAF1;
  font-size: .9375rem; font-weight: var(--weight-medium); text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--color-mist); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--space-2); }
/* The pages under a product (Atria: Atria Visión, Atria Eco) drop from it on
   hover or keyboard focus. A small chevron says the item opens. */
.nav-has-drop { position: relative; }
.nav-has-drop > a { padding-right: 14px; }
.nav-has-drop > a::before {
  content: ""; position: absolute; right: 1px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.nav-drop {
  position: absolute; left: -14px; top: 100%; min-width: 256px; margin: 0; padding: 8px; list-style: none;
  border-radius: var(--radius-md, 14px); background: color-mix(in srgb, var(--color-night) 94%, transparent);
  box-shadow: 0 0 0 1px var(--color-line-dark), 0 18px 40px rgba(0, 20, 32, .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
/* The gap between the item and the panel stays hoverable. */
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-has-drop:hover > .nav-drop, .nav-has-drop:focus-within > .nav-drop {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav-has-drop:hover > a::before, .nav-has-drop:focus-within > a::before { transform: rotate(225deg); margin-top: -1px; }
/* Each module with its white icon and a line under its name (kit 5.7). */
.nav-drop a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--color-on-dark-2); }
.nav-drop__icon { flex: none; width: 20px; height: 20px; }
.nav-drop__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nav-drop__name { color: inherit; font-weight: 600; }
.nav-drop__line { margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--color-on-dark-3); }
.nav-drop a:hover .nav-drop__line, .nav-drop a:focus-visible .nav-drop__line, .nav-drop a[aria-current] .nav-drop__line { color: var(--color-on-dark-2); }
.nav-drop a::after { display: none; }
.nav-drop a:hover, .nav-drop a:focus-visible, .nav-drop a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
/* Escape closes it while the pointer or the focus is still on «Atria»
   (menu.js, guide HI-MAR-GW-001, apartado 07); after :hover and
   :focus-within, with the same weight, so it wins. */
.nav-has-drop.is-closed > .nav-drop { opacity: 0; visibility: hidden; transform: translateY(-4px); transition-delay: 0s, 0s, 0s; }
.nav-has-drop.is-closed > a::before { transform: rotate(45deg); margin-top: -5px; }
@media (prefers-reduced-motion: reduce) { .nav-drop, .nav-has-drop > a::before { transition: none; } }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--radius-md); cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column;
  color: var(--color-on-dark);
  background: radial-gradient(90% 45% at 105% -5%, rgba(0, 99, 142, .95), rgba(0, 99, 142, 0) 70%), var(--color-night);
  padding: 0 var(--gutter) var(--space-8); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h-mobile); flex: none; }
.mobile-menu__top img { height: 26px; width: auto; }
.mobile-menu__close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--radius-md); color: #fff; cursor: pointer; }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__label { margin-top: var(--space-8); }
.mobile-menu ul { list-style: none; padding: 0; margin-top: var(--space-3); border-top: 1px solid var(--color-line-dark); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line-dark);
  font-size: 1.625rem; font-weight: var(--weight-bold); letter-spacing: -.01em; color: #fff; text-decoration: none;
}
.mobile-menu li a .enum { font-size: 1rem; color: var(--color-mist); min-width: 2.2em; }
.mobile-menu li a[aria-current] { color: var(--color-mist); }
.mobile-menu__cta { margin-top: var(--space-8); }
.mobile-menu__cta .btn { width: 100%; }
.mobile-menu__foot { margin-top: auto; padding-top: var(--space-8); font-size: .875rem; color: var(--color-azure-light); }
body.menu-open { overflow: hidden; }

@media (max-width: 1023px) {
  .site-header .container { height: var(--nav-h-mobile); }
  .brand img { height: 26px; }
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---- Portada ------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--color-on-dark); background: var(--color-night);
  padding: calc(var(--nav-h) + clamp(3rem, 1rem + calc(5 * var(--vw)), 5.5rem)) 0 clamp(4.5rem, 3rem + calc(4 * var(--vw)), 7.5rem);
}
.hero__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg img { object-position: 18% 50%; }   /* en móvil se ve la zona oscura del degradado */
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: var(--space-12); align-items: center; }
.hero__copy { container-type: inline-size; }
.hero .h-display { margin-top: var(--space-5); font-size: clamp(2rem, calc(100cqw / 8.3), 4.25rem); }   /* «Superinteligencia» cabe en una línea */
.hero__lead { margin-top: var(--space-5); font-size: var(--text-lead); line-height: 1.45; color: #DCEAF1; max-width: 30em; }
.hero .btn-row { margin-top: var(--space-8); }
.hero .chips { margin-top: var(--space-8); }

/* ---- Captura de producto ------------------------------------------------- */
.shot { margin: 0; }
/* Las capturas del kit traen su propio marco azul noche, con la pantalla de
   esquinas redondas dentro. Carlos: «pon bien las esquinas de estas imágenes».
   El radio es el de la esquina de fuera de la imagen, concéntrico con el de la
   pantalla y en porcentaje para que valga a cualquier tamaño: 48 px de 3.200 en
   las de Atria y Visión, 65 en las de Atalaya. Sin borde claro, que el marco ya
   es el borde; sobre fondo oscuro, un anillo translúcido que sigue el radio. */
.shot__frame { border-radius: 1.5% / 2.667%; overflow: hidden; box-shadow: var(--shadow-shot-light); background: var(--color-night); }
.shot__frame--atalaya { border-radius: 2.03% / 3.61%; }
.shot--dark .shot__frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow-shot-dark); }
.shot__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-muted); }
.shot--dark figcaption { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(0, 20, 32, .55); color: #DCEAF1; }

/* ---- El corte del símbolo ----------------------------------------------- */
/* Pilares, capacidades, pasos y principios recortan la esquina superior derecha con el
   ángulo de las piezas del logotipo. Sin líneas laterales ni bordes de color. El fondo
   va en ::before con --cut-mask (tokens.css): el corte funciona sobre cualquier fondo y
   no recorta lo que sale de la tarjeta, como la flecha entre pasos. Cada tarjeta fija
   su color con --card-bg. Para otra tarjeta, añade la clase .cut. */
.cut, .pillar, .tile, .flow__step, .principle-card { position: relative; isolation: isolate; }
.cut::before, .pillar::before, .tile::before, .flow__step::before, .principle-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--card-bg, var(--color-tint));
  -webkit-mask: var(--cut-mask); mask: var(--cut-mask);
}

/* ---- Pilares: Ergonómico, Robusto, Actualizado --------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }
.pillar { --card-bg: var(--color-tint); border-radius: var(--radius-xl); padding: var(--space-8); }
.pillar__sub { display: block; margin-top: var(--space-1); font-size: .875rem; font-weight: var(--weight-semibold); color: var(--color-azure); }
.pillar p { margin-top: var(--space-3); font-size: var(--text-small); color: var(--color-charcoal); }
.icon-nn { width: 240px; }

/* ---- Tarjeta de historia ------------------------------------------------- */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }
.story {
  --glow-y: 60%;              /* altura del brillo lateral: cambia en cada tarjeta de la serie */
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  height: 520px; border-radius: var(--radius-2xl); color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .3) 100%),
    radial-gradient(ellipse 46% 24% at 102% var(--glow-y), rgba(18, 162, 236, .92) 0%, rgba(18, 162, 236, .55) 38%, rgba(18, 162, 236, 0) 72%),
    var(--gradient-story-sky);
}
.story:nth-child(4n + 2) { --glow-y: 52%; }
.story:nth-child(4n + 3) { --glow-y: 64%; }
.story:nth-child(4n + 4) { --glow-y: 56%; }
.story::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("/assets/img/grain.png"); opacity: .1; mix-blend-mode: overlay; }
.story__bar { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; display: flex; gap: 6px; }
.story__bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.story__bar i.on { background: #fff; }
.story__who { position: absolute; left: 18px; top: 30px; z-index: 2; display: flex; align-items: center; gap: var(--space-2); font-size: .875rem; font-weight: var(--weight-semibold); }
.story__who span { width: 30px; height: 30px; border-radius: 50%; background: var(--color-navy); display: flex; align-items: center; justify-content: center; }
.story__who img { height: 15px; width: auto; }
.story__ghost {
  position: absolute; z-index: 1; top: 13%; left: 50%; transform: translateX(-50%);
  font-size: 80cqw; font-weight: var(--weight-bold); line-height: .78; letter-spacing: -.045em; white-space: nowrap;
  background: var(--gradient-story-ghost); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .92; pointer-events: none; user-select: none;
}
.story__ghost[data-len="2"] { font-size: 72cqw; }
.story__ghost[data-len="3"] { left: -5%; transform: none; font-size: 60cqw; }
.story__body { position: absolute; left: 24px; right: 22px; top: 56%; z-index: 2; }   /* posición fija: las cifras de la serie quedan alineadas */
.story__value { display: block; font-size: var(--text-stat-xl); font-weight: var(--weight-bold); letter-spacing: -.02em; line-height: 1; }
.story__label { display: block; margin-top: var(--space-2); font-size: 1.1875rem; font-weight: var(--weight-medium); color: #E4EEF3; }
.story__text { margin-top: var(--space-4); font-size: .875rem; line-height: 1.5; color: var(--color-azure-light); }

/* ---- Principios ---------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 var(--space-6); padding: 0; list-style: none; border-top: 2px solid var(--color-azure); }
.principle { padding-top: var(--space-6); }
.principle .enum { display: block; font-size: var(--text-enum-xl); line-height: 1; color: var(--color-azure); }
.principle .h4 { margin: var(--space-4) 0 var(--space-2); }
.principle p { font-size: var(--text-small); color: var(--color-charcoal); }

/* ---- Tarjeta de pestaña (productos) -------------------------------------- */
.tabcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }
.tabcards--3 { grid-template-columns: repeat(3, 1fr); }
.tabcard {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 470px; overflow: hidden;
  background: var(--color-panel); border-radius: var(--radius-xl);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tabcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tabcard:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.tabcard__media { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 170px; }
.tabcard__media > * { grid-area: 1 / 1; }
.tabcard__media img { width: 100%; height: calc(100% - 6px); min-height: 0; object-fit: cover; }   /* deja una franja de 6 px del color del panel */
.tabcard__tag {
  align-self: start; justify-self: end; margin: 18px 18px 0; text-align: right; color: #fff;
  font-size: .6875rem; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase;
}
.tabcard__tab {               /* pestaña: esquina redondeada a la izquierda y bajada en diagonal a la derecha */
  align-self: end; justify-self: start; width: calc(80% + 58px); height: 48px; border-top-left-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 48'%3E%3Cpath d='M0 0H4C11 0 15 2 19 7L58 48H0Z' fill='%23EEF2F4'/%3E%3C/svg%3E") right bottom / 58px 48px no-repeat,
    linear-gradient(var(--color-panel), var(--color-panel)) left bottom / calc(100% - 54px) 100% no-repeat;
}   /* la parte lisa entra 4 px en el borde macizo del dibujo: con 1 px, al 125 % y al 150 % asomaba entre las dos una raya de la foto */
.tabcard__tab .h3 { padding: 14px 0 0 22px; font-size: 1.25rem; white-space: nowrap; }
.tabcard__tab a { color: var(--color-onyx); text-decoration: none; }
.tabcard__tab a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toda la tarjeta enlaza */
.tabcard__tab a:focus-visible { outline: none; }
.tabcard__body { padding: var(--space-3) var(--space-6) 0 22px; }
.tabcard__body p { font-size: var(--text-small); line-height: 1.5; color: var(--color-charcoal); }
.tabcard__body .tabcard__who { margin-top: var(--space-3); font-size: .8125rem; color: var(--color-muted); }
.tabcard__who b { color: var(--color-azure); }
.tabcard__foot {
  margin: auto 22px 22px; padding-top: var(--space-4); border-top: 1px solid var(--color-line-strong);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.tabcard__stat b { display: block; font-size: var(--text-stat); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.tabcard__stat small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--color-muted); }
.tabcard .link-arrow { font-size: 1rem; }

/* ---- Cadena: pasos en fila ----------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); padding: 0; list-style: none; }
.flow--3 { grid-template-columns: repeat(3, 1fr); }
.flow__step { --card-bg: var(--color-tint); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-6) var(--space-8); }
.flow__step:not(:last-child)::after {
  content: "›"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; line-height: 1; font-weight: var(--weight-bold); color: var(--color-azure);
}
.flow__step--accent { --card-bg: var(--color-navy); color: var(--color-on-dark); }
.flow__k { display: flex; gap: var(--space-2); align-items: baseline; font-size: .8125rem; font-weight: var(--weight-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--color-azure); }
.flow__k .enum { font-size: 1rem; letter-spacing: var(--tracking-enum); }
.flow__step--accent .flow__k { color: var(--color-mist); }
.flow__step .h3 { margin: var(--space-2) 0 var(--space-3); }
.flow__step p { font-size: var(--text-small); color: var(--color-charcoal); }
.flow__step--accent p { color: var(--color-on-dark-2); }
.note-band {
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-navy); color: var(--color-on-dark-2); font-size: 1.0625rem; line-height: 1.5;
}
.note-band b { color: #fff; }
.note-band--light { background: var(--color-tint); color: var(--color-charcoal); }
.note-band--light b { color: var(--color-onyx); }

/* ---- Banda de producto ---------------------------------------------------- */
.band {
  position: relative; isolation: isolate; overflow: hidden; min-height: 300px; border-radius: var(--radius-2xl);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-10) var(--space-12); color: #fff; background: var(--color-navy);
}
.band > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.band__title { font-size: clamp(2.25rem, 1.8rem + calc(1.4 * var(--vw)), 3rem); letter-spacing: var(--tracking-heading); line-height: 1.05; }
.band p { margin-top: var(--space-2); font-size: 1.125rem; color: var(--color-on-dark-2); }

/* ---- Lista numerada ------------------------------------------------------ */
.nlist { padding: 0; list-style: none; }
.nlist li { display: flex; gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-line); font-size: 1rem; line-height: 1.5; color: var(--color-charcoal); }
.nlist .enum { flex: 0 0 2.2em; font-size: var(--text-enum); line-height: 1.1; color: var(--color-azure); }
.nlist b { color: var(--color-onyx); }

/* ---- Bloque a dos columnas ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 1rem + calc(4 * var(--vw)), 4rem); align-items: center; }
.split--rev { grid-template-columns: 1.45fr 1fr; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--1-2 { grid-template-columns: 1fr 2fr; }
.split--top { align-items: start; }
.more { margin-top: var(--space-6); }

/* ---- Tarjeta de foto (misión) -------------------------------------------- */
.photocard { background: var(--color-paper); border-radius: var(--radius-3xl); padding: 14px; box-shadow: var(--shadow-card); }
.photocard__media { position: relative; height: 360px; border-radius: 20px; overflow: hidden; color: #fff; }
.photocard__media > img { width: 100%; height: 100%; object-fit: cover; }
.photocard__title { position: absolute; left: 30px; bottom: 28px; }
.photocard__title b { display: block; font-size: 1.625rem; line-height: 1.2; }
.photocard__title small { display: block; margin-top: var(--space-1); font-size: .9375rem; color: var(--color-on-dark-2); }
.photocard__action {
  position: absolute; right: 26px; bottom: 24px; padding: var(--space-4) var(--space-8); border-radius: 16px;
  background: rgba(60, 70, 72, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.125rem; font-weight: var(--weight-semibold);
}
.photocard__info { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-6) 22px var(--space-3); }
.photocard__mission b { display: block; font-size: 1.0625rem; }
.photocard__mission small { display: block; font-size: .8125rem; color: var(--color-muted); }
.photocard__stats { display: flex; gap: var(--space-8); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.photocard__stats b { display: block; font-size: 1.5rem; line-height: 1.15; white-space: nowrap; }
.photocard__stats small { font-size: .8125rem; color: var(--color-muted); }
.photocard__map { flex: 0 0 170px; height: 110px; border-radius: 18px; background: #F4F6F7; display: flex; align-items: center; justify-content: center; }
.photocard__map img { width: 90%; }
.photocard__cap { padding: 4px 22px 10px; }

/* ---- Pasos verticales ---------------------------------------------------- */
.steps { padding: 0; list-style: none; counter-reset: paso; }
.steps li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); }
.steps .enum {
  flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--color-azure); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .875rem;
}
.steps li:last-child .enum { background: var(--color-navy); }
.steps b { display: block; font-size: 1.0625rem; }
.steps p { margin-top: 2px; font-size: var(--text-small); color: var(--color-charcoal); }

/* ---- Lista de seguridad (sobre oscuro) ----------------------------------- */
.slist { padding: 0; list-style: none; border-top: 1px solid var(--color-line-dark); }
.slist li { display: grid; grid-template-columns: 70px minmax(200px, 260px) 1fr; gap: 0 var(--space-4); align-items: baseline; padding: var(--space-5) 0; border-bottom: 1px solid var(--color-line-dark); }
.slist .enum { font-size: 1.875rem; line-height: 1; color: var(--color-mist); }
.slist__t { font-size: 1.125rem; line-height: 1.35; }
.slist p { font-size: 1rem; line-height: 1.5; color: var(--color-on-dark-2); }
.slist--light { border-top-color: var(--color-line); }
.slist--light li { border-bottom-color: var(--color-line); }
.slist--light .enum { color: var(--color-azure); }
.slist--light p { color: var(--color-charcoal); }

.principle-card { --card-bg: var(--color-navy); color: #fff; border-radius: var(--radius-xl); padding: var(--space-8); }
.principle-card .kicker { color: var(--color-mist); }
.principle-card blockquote { margin-top: var(--space-4); font-size: 1.375rem; font-weight: var(--weight-bold); line-height: 1.3; }
.principle-card p { margin-top: var(--space-6); font-size: var(--text-small); color: var(--color-azure-light); }

/* ---- Rejilla de capacidades ---------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile { --card-bg: var(--color-tint); border-radius: var(--radius-xl); padding: var(--space-6) 22px var(--space-6); }
.tile .h4 { font-size: 1.0625rem; }
.tile__sub { display: block; margin-top: 2px; font-size: .8125rem; font-weight: var(--weight-semibold); color: var(--color-azure); }
.tile p { margin-top: var(--space-2); font-size: var(--text-small); line-height: 1.5; color: var(--color-charcoal); }
.tile--dark { --card-bg: var(--color-navy); color: #fff; }
.tile--dark p { color: var(--color-on-dark-2); }
.tile--dark .tile__sub { color: var(--color-mist); }
.tile--cta { padding: var(--space-8); }
.tile--cta .h3 { margin-top: var(--space-3); }
.tile--cta > p:not(.kicker):not(.caption) { margin: var(--space-3) 0 var(--space-6); font-size: 1rem; }
.tile--cta .caption { margin-top: var(--space-3); }

/* ---- Banda de cifras ----------------------------------------------------- */
.statband { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
  border-radius: var(--radius-2xl); background: var(--gradient-stat-band); color: #fff; padding: 0; list-style: none; }
.stat { position: relative; z-index: 1; padding: var(--space-10) var(--space-8) var(--space-10); }
.stat + .stat { border-left: 1px solid var(--color-line-dark); }
.stat b { display: block; font-size: clamp(2rem, 1.7rem + calc(.9 * var(--vw)), 2.5rem); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.stat__label { display: block; margin-top: var(--space-2); font-size: .8125rem; font-weight: var(--weight-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-mist); }
.stat p { margin-top: var(--space-4); font-size: .9375rem; line-height: 1.45; color: var(--color-on-dark-2); }
.stat-note { margin-top: var(--space-4); font-size: .875rem; color: var(--color-muted); max-width: 44em; }

/* ---- Filas de etiquetas -------------------------------------------------- */
.chiprows { padding: 0; list-style: none; }
.chiprow { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); padding: var(--space-5) 0 var(--space-3); border-top: 1px solid var(--color-line); }
.chiprow:first-child { border-top: 5px solid var(--color-azure); }
.chiprow .h3 { padding-top: var(--space-1); }
.chiprow .chips { gap: var(--space-3); }

/* ---- Banda de contacto --------------------------------------------------- */
.cta-wrap { padding-bottom: var(--section-y); }
.cta-wrap--dark { background: var(--color-navy); }
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-3xl);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6);
  padding: clamp(2.5rem, 1.5rem + calc(3 * var(--vw)), 4.375rem) clamp(1.75rem, 1rem + calc(3 * var(--vw)), 4rem); color: #fff; background: var(--color-navy);
}
.cta-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-banner > div, .cta-banner > a, .band > div, .band > a, .statband > li { position: relative; z-index: 1; }
.cta-banner .h2 { color: #fff; font-size: clamp(1.875rem, 1.4rem + calc(1.4 * var(--vw)), 2.625rem); }
.cta-banner p { margin-top: var(--space-3); font-size: 1.125rem; color: #DCEAF1; }

/* ---- Pie ----------------------------------------------------------------- */
.site-footer { background: var(--color-footer); color: var(--color-on-dark-3); padding: var(--space-16) 0 var(--space-10); font-size: .875rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); }
.site-footer img { height: 28px; width: auto; }
.site-footer p { margin-top: var(--space-4); line-height: 1.6; }
.site-footer h2 { font-size: .875rem; color: #fff; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
/* From 700 px the links get a box of 31 px, 25 px on screen at the desktop
   80 %, the 24 px of WCAG 2.5.8; the rows keep about the same rhythm. */
@media (min-width: 700px) {
  .site-footer li a { display: inline-block; padding-block: 5px; }
  .site-footer li + li { margin-top: 0; }
}
.site-footer a { color: var(--color-on-dark-3); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: .8125rem; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
/* El icono de LinkedIn bajo el lema (Carlos, 17 de noviembre de 2026: «pon en el footer el típico icono de linkedin»). */
.site-footer__social { margin-top: var(--space-5); }
.site-footer .site-footer__in {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--color-on-dark-2);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-footer .site-footer__in:hover { color: #fff; background: rgba(255, 255, 255, .14); text-decoration: none; }
.site-footer__in svg { width: 20px; height: 20px; }
.site-footer__legal li + li { margin-top: 0; }

/* ---- Aviso de cookies ---------------------------------------------------- */
/* The glass of the bar, in a card at the foot of the screen: on the left from
   700 px, the width of the screen below. cookies.js adds .is-in to bring it up
   and takes it away to let it go. */
.cookie-notice {
  position: fixed; z-index: var(--z-notice); left: var(--space-4); right: var(--space-4);
  bottom: max(var(--space-4), env(safe-area-inset-bottom)); max-width: 26rem;
  padding: var(--space-5) var(--space-6) var(--space-6); border-radius: var(--radius-lg);
  background-color: rgb(0 22 36 / .86); color: var(--color-on-dark-2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid rgb(255 255 255 / .14); box-shadow: var(--shadow-shot-dark);
  font-size: .9375rem; line-height: 1.55;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-in { opacity: 1; transform: none; }
.cookie-notice .kicker { margin-bottom: var(--space-2); color: var(--color-mist); }
.cookie-notice__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); }
.cookie-notice a { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice a:hover { color: var(--color-light-cyan); }
.cookie-notice :focus-visible { outline-color: var(--color-focus-on-dark); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-notice { background-color: var(--glass-fallback); } }
@media (prefers-reduced-transparency: reduce) {
  .cookie-notice { background-color: var(--glass-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (min-width: 700px) {
  .cookie-notice { left: var(--space-6); bottom: max(var(--space-6), env(safe-area-inset-bottom)); }
}

/* ---- Cabecera de página interior ----------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--color-on-dark); background: var(--color-night);
  padding: calc(var(--nav-h) + clamp(2.5rem, 1rem + calc(4 * var(--vw)), 4.5rem)) 0 clamp(8rem, 5rem + calc(10 * var(--vw)), 14rem);
}
.page-hero--short { padding-bottom: clamp(3.5rem, 2.5rem + calc(3 * var(--vw)), 5.5rem); }
.page-hero__inner { position: relative; z-index: 1; max-width: 50rem; }
.page-hero .h1 { margin-top: var(--space-4); }
.page-hero .lead { margin-top: var(--space-5); color: #DCEAF1; }
.page-hero .btn-row { margin-top: var(--space-8); }
.page-hero .chips { margin-top: var(--space-6); }
.breadcrumb { margin-bottom: var(--space-8); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; font-size: .875rem; color: var(--color-azure-light); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-mist); }
.breadcrumb a { color: var(--color-azure-light); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; }
.page-shot { position: relative; z-index: 2; margin-top: calc(-1 * clamp(6rem, 3.5rem + calc(8 * var(--vw)), 11rem)); }

/* ---- Formulario ---------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-size: .875rem; font-weight: var(--weight-semibold); color: var(--color-onyx); }
.field .opt { font-weight: var(--weight-regular); color: var(--color-muted); }
.input {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  border: 1px solid var(--color-field-border); background: var(--color-paper); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover { border-color: var(--color-azure); }
.input:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(11, 99, 200, .25); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; padding-right: var(--space-10);
  background: var(--color-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300638E' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.field__help { font-size: .8125rem; color: var(--color-muted); }
.field__error { display: none; font-size: .8125rem; font-weight: var(--weight-semibold); color: var(--color-error); }
.field.is-invalid .input { border-color: var(--color-error); background: var(--color-error-bg); }
.field.is-invalid .field__error { display: block; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--color-charcoal); }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--color-azure); }
.form__legal { grid-column: 1 / -1; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-paper-2); font-size: .8125rem; line-height: 1.55; color: var(--color-muted); }
.form__legal b { color: var(--color-charcoal); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.alert { grid-column: 1 / -1; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); font-size: .9375rem; }
.alert--ok { background: var(--color-success-bg); color: var(--color-success); border: 1px solid #BFE3CF; }
.alert--warn { background: #FFF6E8; color: #7A4A00; border: 1px solid #F3D6A6; }
.aside-card { background: var(--color-paper-2); border-radius: var(--radius-xl); padding: var(--space-8); }
.aside-card dl { margin-top: var(--space-4); }
.aside-card dt { margin-top: var(--space-4); font-size: .8125rem; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.aside-card dd { margin: var(--space-1) 0 0; font-size: 1rem; font-weight: var(--weight-semibold); }

/* ---- Texto legal --------------------------------------------------------- */
.prose { max-width: 46rem; font-size: 1.0625rem; line-height: 1.65; color: var(--color-charcoal); }
.prose h2 { margin-top: var(--space-12); font-size: 1.5rem; line-height: 1.25; color: var(--color-onyx); }
.prose h3 { margin-top: var(--space-8); font-size: 1.125rem; color: var(--color-onyx); }
.prose p, .prose ul, .prose table { margin-top: var(--space-4); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--color-line); }
.prose th { width: 34%; color: var(--color-onyx); }
.todo { background: #FFF1C2; color: #5C4400; padding: 0 .3em; border-radius: 4px; font-weight: var(--weight-semibold); }

/* ---- Quiénes somos ------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-16); align-items: start; }
.about__text > p { font-size: var(--text-lead); line-height: var(--leading-body); color: var(--color-charcoal); margin-top: var(--space-5); }
.about__text .section-head { margin-bottom: var(--space-2); }
.about__facts { margin: 0; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--color-navy); color: var(--color-on-dark); }
.about__facts div + div { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-line-dark); }
.about__facts dt { font-size: var(--text-kicker); font-weight: var(--weight-bold); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-mist); }
.about__facts dd { margin: var(--space-1) 0 0; font-size: 1.0625rem; font-weight: var(--weight-semibold); }

/* ---- Cartas del equipo: carta de arte completo y minimalista, guiño a los juegos de cartas ---- */
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--grid-gap); padding: 0; list-style: none; }
.tcard {
  --card-1: var(--color-card-azure-1); --card-2: var(--color-card-azure-2); --card-3: var(--color-card-azure-3);
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 63 / 88;
  border-radius: 16px; background: var(--color-night); color: var(--color-on-dark);
  box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tcard:hover, .tcard:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-shot-light); }
.tcard--sky { --card-1: var(--color-card-sky-1); --card-2: var(--color-card-sky-2); --card-3: var(--color-card-sky-3); }
.tcard--violet { --card-1: var(--color-card-violet-1); --card-2: var(--color-card-violet-2); --card-3: var(--color-card-violet-3); }
.tcard--amber { --card-1: var(--color-card-amber-1); --card-2: var(--color-card-amber-2); --card-3: var(--color-card-amber-3); }
.tcard__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient-card-shade); }
/* marco fino: deja abajo una franja para el pie; la gema con el símbolo corta la línea */
.tcard::after { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; bottom: 28px; border: 1.5px solid var(--color-card-line); border-radius: 12px; pointer-events: none; }
.tcard__cost { position: absolute; top: 20px; right: 20px; display: flex; gap: 4px; }
.tcard__cost span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .6875rem; font-weight: var(--weight-bold); line-height: 1; color: var(--card-2);
  background: var(--card-3); box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.tcard__body { position: absolute; left: 10px; right: 10px; bottom: 44px; min-height: 43%; }   /* alto mínimo: nombres alineados en la fila */
.tcard__tags { display: flex; align-items: center; gap: 3px; margin: 0 0 7px 14px; }
.tcard__tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 9px;
  font-size: .5625rem; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  background: var(--card-3); color: var(--card-2); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.tcard__tag--dark { background: rgba(0, 20, 32, .85); color: var(--color-on-dark); }
.tcard__tag img { width: 8px; height: auto; }
.tcard__band {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 5px 14px 6px 11px;
  border-left: 3px solid var(--card-1); background: linear-gradient(90deg, var(--card-2) 0%, rgba(0, 20, 32, 0) 92%);
}
.tcard__name { margin: 0; font-size: 1.3125rem; font-weight: var(--weight-bold); line-height: 1.1; letter-spacing: -.015em; color: var(--color-on-dark); }
.tcard__stat { flex: none; font-size: .875rem; font-weight: var(--weight-bold); color: var(--color-mist); }
.tcard__role { margin: 6px 14px 0; font-size: .75rem; font-weight: var(--weight-semibold); letter-spacing: .01em; color: var(--color-mist); }
.tcard__text { margin: 8px 14px 0; font-size: .78rem; font-weight: var(--weight-medium); line-height: 1.42; color: var(--color-on-dark); }
.tcard__flavor { margin: 6px 14px 0; font-size: .75rem; font-style: italic; line-height: 1.4; color: var(--color-on-dark-2); opacity: .85; }
.tcard__gem {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: #02111B; box-shadow: 0 0 0 1.5px var(--color-card-line);
}
.tcard__gem img { width: 9px; height: auto; }
.tcard__foot { position: absolute; left: 16px; right: 16px; bottom: 8px; display: flex; justify-content: space-between; font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-on-dark-3); }
.tcard__foil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--gradient-foil); background-size: 260% 260%; background-position: 0% 0%;
  mix-blend-mode: soft-light; transition: background-position var(--dur-slow) var(--ease);
}
.tcard--foil:hover .tcard__foil, .tcard--foil:focus-within .tcard__foil { background-position: 100% 100%; }
.tcard--back .tcard__body { min-height: 0; }
.tcard--back .tcard__band { border-left-color: var(--color-mist); }
.tcard--back .tcard__text { margin-bottom: var(--space-4); color: var(--color-on-dark-2); font-weight: var(--weight-regular); }
.tcard--back .btn { margin-left: 14px; }
.deck__note { margin-top: var(--space-5); }
@media (prefers-reduced-motion: reduce) {
  .tcard:hover, .tcard:focus-within { transform: none; }
}

/* ---- Equipo -------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }

/* ---- Error 404 ----------------------------------------------------------- */
.notfound { min-height: calc(100 * var(--vh)); display: flex; align-items: center; }
.notfound .enum { font-size: clamp(5rem, 3rem + calc(8 * var(--vw)), 9rem); line-height: 1; color: var(--color-mist); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1279px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}
@media (max-width: 1023px) {
  .hero__grid, .split, .split--rev, .split--even { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  .icon-nn { width: 180px; }
  .stories, .tabcards, .tabcards--3 { grid-template-columns: repeat(2, 1fr); }
  .flow, .flow--3 { grid-template-columns: repeat(2, 1fr); }
  .flow__step::after { display: none; }
  .tiles, .tiles--3 { grid-template-columns: repeat(2, 1fr); }
  .split--1-2 { grid-template-columns: 1fr; }
  .statband { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--color-line-dark); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: var(--space-8); }
}
@media (max-width: 699px) {
  .hero .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; }
  .pillars, .principles, .tiles, .tiles--2, .tiles--3, .flow, .flow--3, .tabcards, .tabcards--3, .people { grid-template-columns: 1fr; }
  .principles { gap: 0; }
  .principle { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-line); }
  /* Las historias pasan a carrusel horizontal, como en una aplicación de mensajería */
  ul.stories {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-2); scroll-padding-inline: var(--gutter);
  }
  .stories::-webkit-scrollbar { display: none; }
  /* Las cartas pasan a carrusel horizontal, como una mano de cartas */
  ul.deck {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: var(--space-2) var(--gutter) var(--space-4); scroll-padding-inline: var(--gutter);
  }
  .deck::-webkit-scrollbar { display: none; }
  .deck > li { scroll-snap-align: start; }
  .story { height: 470px; scroll-snap-align: start; }
  .tabcard { min-height: 0; }
  .tabcard__foot { margin-top: var(--space-6); }
  .band { min-height: 0; flex-direction: column; align-items: flex-start; padding: var(--space-8) var(--space-6); }
  .photocard__media { height: 240px; }
  .photocard__action { top: 18px; bottom: auto; right: 18px; padding: var(--space-3) var(--space-4); font-size: .875rem; border-radius: 12px; }
  .photocard__title { left: 20px; bottom: 20px; }
  .photocard__info { flex-direction: column; align-items: stretch; }
  .photocard__stats { gap: var(--space-5); flex-wrap: wrap; }
  .photocard__map { flex: none; width: 100%; height: 130px; }
  .slist li { grid-template-columns: 50px 1fr; }
  .slist p { grid-column: 2; margin-top: var(--space-1); }
  .statband { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--color-line-dark); }
  .chiprow { grid-template-columns: 1fr; gap: var(--space-3); }
  .form { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Versión 4 (octubre de 2026): selector de idioma, comparativa, galería de capturas,
   ilustración con lista, vídeo autoalojado, fundador y área de clientes
   ========================================================================== */

/* ---- Insignia de producto en la cabecera de página ---------------------- */
.page-hero__title { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-4); }
.page-hero__title .h1 { margin-top: 0; }
/* 84 px, 64 px on the phone (kit 5.7, COMPONENTES 36), beside the name on
   its line and not over the kicker, which is Carlos's: «que no genere un
   salto de línea». */
.page-hero__badge { display: block; flex: none; width: auto; height: 84px; filter: drop-shadow(0 10px 24px rgba(0, 10, 20, .35)); }
@media (max-width: 699px) { .page-hero__title { gap: var(--space-4); } .page-hero__badge { height: 64px; } }

/* ---- Selector de idioma (cabecera, menú móvil y pie) --------------------- */
.lang-switch {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--color-on-dark-2); font-size: .875rem; font-weight: var(--weight-semibold);
  letter-spacing: .06em; text-decoration: none; border: 1px solid var(--glass-border);
}
.lang-switch:hover { color: var(--color-on-dark); background: var(--color-line-dark); }
.site-header .lang-switch { margin-left: var(--space-2); }
.site-header .lang-switch:focus-visible { outline-color: var(--color-focus-on-dark); }
.mobile-menu__lang { margin-top: var(--space-5); font-size: 1rem; }
.mobile-menu__lang a { color: var(--color-mist); font-weight: var(--weight-semibold); }

/* ---- Comparativa: lo de otro frente a lo de Harpe ------------------------ */
.compare { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--grid-gap); align-items: stretch; }
.compare__col { --card-bg: var(--color-tint); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-8) var(--space-10); }
.compare__col--harpe { --card-bg: var(--color-navy); color: var(--color-on-dark); }
.compare__t { font-size: var(--text-kicker); font-weight: var(--weight-bold); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--color-muted); }
.compare__col--harpe .compare__t { color: var(--color-mist); }
.compare__via { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); }
.compare__via .chip { background: var(--color-paper); }
.compare__via .chip--muted { background: var(--color-line); color: var(--color-charcoal); }
.compare__wire { position: relative; flex: 1; min-width: 48px; border-top: 2px dashed var(--color-field-border); }
.compare__wire small { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: .75rem; color: var(--color-muted); white-space: nowrap; }
.compare__room { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid var(--glass-border); }
.compare__room-k { margin-right: var(--space-2); font-size: .75rem; font-weight: var(--weight-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--color-mist); }
.compare__room-side { margin-left: auto; font-size: .75rem; color: var(--color-mist); }
.compare__room .chip--mint { background: var(--color-success-bg); border-color: var(--color-success-bg); color: var(--color-success); font-weight: var(--weight-bold); }
.compare__list { margin-top: var(--space-6); padding: 0; list-style: none; }
.compare__list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; font-size: 1.0625rem; line-height: 1.45; color: var(--color-charcoal); }
.compare__list li + li { margin-top: var(--space-4); }
.compare__col--harpe .compare__list li { color: var(--color-on-dark); }
.cmp-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--color-field-border); }
.compare__col--harpe .cmp-ico { color: var(--color-success-bg); }

/* ---- Galería de capturas ------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }

/* ---- Ilustración con pie ------------------------------------------------- */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.figure figcaption { margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-muted); }

/* ---- Vídeo autoalojado --------------------------------------------------- */
.video { margin: 0; }
.video__frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); box-shadow: var(--shadow-shot-light); background: var(--color-night); }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video figcaption { margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-muted); }

/* ---- Fundador: carta y trayectoria --------------------------------------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 1rem + calc(3 * var(--vw)), 4rem); align-items: start; }
.deck--one { grid-template-columns: 1fr; }
.founder__profile { font-size: var(--text-lead); line-height: var(--leading-body); color: var(--color-charcoal); max-width: 40em; }
.founder__hl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-6); padding: 0; list-style: none; }
.founder__hl li { padding-right: var(--space-5); }
.founder__hl li + li { padding-left: var(--space-5); border-left: 1px solid var(--color-line); }
.founder__hl b { display: block; font-size: var(--text-stat); letter-spacing: -.02em; line-height: 1.1; color: var(--color-navy); }
.founder__hl span { display: block; margin-top: var(--space-1); font-size: var(--text-small); color: var(--color-charcoal); }
.founder__k { margin-top: var(--space-8); }
.founder__xp { margin-top: var(--space-3); padding: 0; list-style: none; }
.founder__xp li { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-5); padding: var(--space-3) 0; border-top: 1px solid var(--color-line); }
.founder__when { font-size: .8125rem; font-weight: var(--weight-bold); color: var(--color-azure); padding-top: 2px; }
.founder__xp b { color: var(--color-onyx); }
.founder__xp p { margin-top: 2px; font-size: var(--text-small); color: var(--color-charcoal); }
.founder__edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-3); padding: 0; list-style: none; }
.founder__edu b { display: block; color: var(--color-onyx); font-size: .9375rem; }
.founder__edu span { display: block; margin-top: 2px; font-size: var(--text-small); color: var(--color-muted); }
.founder__note { margin-top: var(--space-6); }

/* ---- Área de clientes (/login) ------------------------------------------- */
.login-page { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100 * var(--vh)); display: grid; place-items: center;
  padding: var(--space-12) var(--gutter); background: var(--color-night); }
.login { width: min(440px, 100%); padding: var(--space-10) var(--space-8) var(--space-8); border-radius: var(--radius-2xl);
  background: var(--color-paper); color: var(--color-onyx); box-shadow: var(--shadow-shot-dark); }
.login__brand img { height: 30px; width: auto; }
.login .kicker { margin-top: var(--space-6); }
.login h1 { margin-top: var(--space-2); }
.login__lead { margin-top: var(--space-2); font-size: .9375rem; color: var(--color-charcoal); }
.login__form { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.login__form .btn { width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-size: .875rem;
  font-weight: var(--weight-semibold); color: var(--color-charcoal); cursor: pointer; }
.seg input:checked + label { background: var(--color-navy); color: var(--color-on-dark); }
.seg input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.login__form:has(#modo-pin:checked) .field--pass, .login__form:has(#modo-pass:checked) .field--pin { display: none; }
.login__notes { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.login__links { margin-top: var(--space-6); font-size: .875rem; color: var(--color-muted); }

/* ---- Banda con imagen atenuada (texto blanco sobre la captura) ----------- */
@media (max-width: 1023px) { .band--dim > img { opacity: .4; } }

@media (max-width: 1023px) {
  .compare, .founder { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .founder .deck--one { max-width: 300px; }
}
@media (max-width: 699px) {
  .compare__col { padding: var(--space-6) var(--space-5) var(--space-8); }
  .compare__room-side { margin-left: 0; width: 100%; }
  .compare__via { flex-direction: column; align-items: flex-start; gap: 0; }
  .compare__via .chip { white-space: nowrap; }
  .compare__wire { flex: none; width: 0; min-width: 0; height: 40px; margin-left: var(--space-6); border-top: 0; border-left: 2px dashed var(--color-field-border); }
  .compare__wire small { left: var(--space-3); bottom: auto; top: 50%; transform: translateY(-50%); }
  .founder__hl, .founder__edu { grid-template-columns: 1fr; }
  .founder__hl li, .founder__hl li + li { padding: var(--space-4) 0 0; border-left: 0; }
  .founder__hl li + li { border-top: 1px solid var(--color-line); margin-top: var(--space-4); }
  .founder__xp li { grid-template-columns: 1fr; gap: var(--space-1); }
  .founder .deck--one { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; }
  .site-header .lang-switch { margin-left: auto; }
  .site-header .lang-switch + .nav-cta + .nav-toggle { margin-left: var(--space-2); }
}
@media (max-width: 1023px) {
  .site-header .lang-switch { margin-left: auto; }
  .site-header .nav-toggle { margin-left: var(--space-2); }
}

/* =========================================================================
   Componentes nuevos de la versión 5 (7 de noviembre de 2026)
   ========================================================================= */

/* ---- 39 · Tarjeta marcapáginas ----------------------------------------------
   Silueta de marcapáginas: muesca arriba a la izquierda y abajo a la derecha con escalones
   a 30°. En reposo, casi negra con la imagen apagada; al pasar el ratón se enciende con el
   degradado de su variante y sube con un muelle. Variantes: --azure, --cyan, --mist (clara). */
.bookmarks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); padding: 0; list-style: none; }
.bookmark {
  --bm-on: linear-gradient(172deg, var(--color-blue) 0%, var(--color-azure) 46%, var(--color-navy) 100%);
  --bm-dot: var(--color-cyan); --bm-ink-on: #fff; --bm-ink-2-on: #DCEAF1;
  position: relative; isolation: isolate; aspect-ratio: 3 / 4; display: flex; flex-direction: column;
  padding: calc(16px + var(--space-4)) var(--space-4) calc(16px + var(--space-4)); color: #8FA6B2;
  transition: transform var(--dur-spring) var(--ease-spring), filter var(--dur) var(--ease);
}
.bookmark--cyan { --bm-on: linear-gradient(172deg, var(--color-light-cyan) 0%, var(--color-cyan) 38%, var(--color-blue-deep) 100%); --bm-dot: var(--color-light-cyan); }
.bookmark--mist { --bm-on: linear-gradient(172deg, #fff 0%, var(--color-azure-light) 45%, var(--color-mist) 100%); --bm-dot: var(--color-azure);
  --bm-ink-on: var(--color-navy); --bm-ink-2-on: var(--color-charcoal); }
.bookmark__bg, .bookmark__bg::after { position: absolute; inset: 0; clip-path: var(--bookmark-clip); }
.bookmark__bg { z-index: -1; background: linear-gradient(180deg, #0E202B 0%, #07131B 100%); }
.bookmark__bg::after { content: ""; background: var(--bm-on); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.bookmark__kicker { align-self: flex-end; font-size: .6875rem; font-weight: var(--weight-semibold); letter-spacing: .14em; text-transform: uppercase; transition: color var(--dur) var(--ease); }
.bookmark__media { position: relative; margin: var(--space-3) 0 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #04101A; }
.bookmark__media img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.6);
  transition: opacity var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease), transform var(--dur-spring) var(--ease-spring); }
.bookmark__text { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-3); margin: 0; padding: 0 var(--space-3);
  font-size: .8125rem; font-weight: var(--weight-semibold); line-height: 1.35; color: #DCEAF1; }
.bookmark__big { margin-top: auto; font-family: var(--font-cartel); font-weight: 300; font-size: clamp(1.75rem, 2.6vw, 2.375rem); letter-spacing: -.02em; line-height: 1.05; transition: color var(--dur) var(--ease); }
.bookmark__big a { color: inherit; text-decoration: none; }
.bookmark__big a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bookmark__dots { display: flex; gap: 5px; margin-top: var(--space-4); }
.bookmark__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.bookmark__dots i:first-child { background: var(--bm-dot); opacity: 1; }
.bookmark:hover, .bookmark:focus-within, .bookmark.is-hover { transform: translateY(-10px); filter: drop-shadow(0 22px 28px rgba(0, 30, 46, .35)); color: var(--bm-ink-2-on); }
.bookmark:hover .bookmark__bg::after, .bookmark:focus-within .bookmark__bg::after, .bookmark.is-hover .bookmark__bg::after { opacity: 1; }
.bookmark:hover .bookmark__media img, .bookmark:focus-within .bookmark__media img, .bookmark.is-hover .bookmark__media img { opacity: 1; filter: none; transform: scale(1.04); }
.bookmark:hover .bookmark__big, .bookmark:focus-within .bookmark__big, .bookmark.is-hover .bookmark__big { color: var(--bm-ink-on); }
.bookmark:focus-within { filter: drop-shadow(0 0 1.5px var(--color-focus)) drop-shadow(0 0 1.5px var(--color-focus)) drop-shadow(0 22px 28px rgba(0, 30, 46, .35)); }
.bookmark a:focus-visible { outline: none; }

@media (max-width: 1023px) { .bookmarks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) { .bookmarks { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) {
  .bookmark, .bookmark__media img { transition-duration: 1ms; }
  .bookmark:hover, .bookmark:focus-within { transform: none; }
}

/* ==== reference/css/cristal.css ==== */
/* Cristal plano · libro de marca v5, secciones 04 y 07.
   Va sobre los degradados de marca («movement» o discos en Deep Azure y Mist). Velo azul noche, borde blanco fino, sin sombra.
   Texto blanco; kicker en Mist. */
.cristal {
  background-color: var(--glass-bg);
  background-image: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / 0) 33%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: none;
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cristal { background-color: var(--glass-fallback); }
}
@media (prefers-reduced-transparency: reduce) { .cristal { background-color: var(--glass-fallback); backdrop-filter: none; } }
.pastilla { display: inline-block; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 8px 20px; font-weight: 600; }
.pastilla--solida { background: #fff; color: #003048; border-color: transparent; }
.cartel-cifra { font-family: var(--font-cartel); font-weight: 200; line-height: .8; color: #BFD8E3; }
.cartel-linea { font-family: var(--font-cartel); font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.cartel-linea--vertical { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ==== Atalaya pricing ==== */
/* ---- Atalaya · precios (añadido de Carlos, octubre de 2026) ----------------
   Tres planes por puesto y mes sobre la rejilla de capacidades: cada plan es una
   .tile con el corte del símbolo. Pro va en azul noche (.tile--dark) porque es el
   que se quiere mirar primero. Que los planes se mezclan lo dice la nota de debajo
   (.note-band), no la tarjeta. Mismos tokens que el resto de la hoja. */
.plan { display: flex; flex-direction: column; }
.plan__name { color: var(--color-azure); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.plan__price b { font-size: var(--text-stat-xl); letter-spacing: -.02em; line-height: 1; color: var(--color-onyx); }
.plan__price span { font-size: var(--text-small); color: var(--color-muted); }
.plan__for { margin-top: var(--space-2); font-size: .8125rem; font-weight: var(--weight-semibold); color: var(--color-azure); }
.plan__list { flex: 1; display: grid; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; font-size: var(--text-small); line-height: 1.45; color: var(--color-charcoal); }
.plan__list li { position: relative; padding-left: 22px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--color-azure); border-bottom: 2px solid var(--color-azure); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; margin-top: var(--space-6); }
.tile--dark.plan .plan__name, .tile--dark.plan .plan__for { color: var(--color-mist); }
.tile--dark.plan .plan__price b { color: var(--color-on-dark); }
.tile--dark.plan .plan__price span, .tile--dark.plan .plan__list { color: var(--color-on-dark-2); }
.tile--dark.plan .plan__list li::before { border-color: var(--color-mist); }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; } }   /* tres planes en columna, no 2 + 1 */

/* ==========================================================================
   What harpe.live adds to the kit's reference. Same tokens, no loose hex
   outside the three colours the reference itself writes for state.
   ========================================================================== */

/* ---- The failure notice of the form -------------------------------------- */
.alert--error { background: var(--color-error-bg); color: var(--color-error); border: 1px solid var(--color-error); }
/* A field in error keeps its red border, so the ring alone has to show focus. */
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }

/* ---- The client area ----------------------------------------------------- */
.app-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.chip--on { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-on-dark); }
a.chip--on:hover { color: var(--color-on-dark); border-color: var(--color-navy); }
.app-sample { margin: var(--space-6) 0 var(--space-10); }
.tile .tile__value { margin-top: var(--space-2); font-size: var(--text-stat); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.app-subs { margin-top: var(--grid-gap); }
.app-subs .h4 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.app-dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); margin-top: var(--space-4); font-size: var(--text-small); }
.app-dl dt { color: var(--color-muted); }
.app-dl dd { margin: 0; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: .75rem;
  font-weight: var(--weight-semibold); letter-spacing: .02em; white-space: nowrap;
}
.badge--ok { background: var(--color-success-bg); color: var(--color-success); }
.badge--warn { background: #FFF6E8; color: #7A4A00; }
.table-wrap { margin-top: var(--stack-title); overflow-x: auto; border-radius: var(--radius-xl); background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-line); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.data-table th, .data-table td { padding: var(--space-3) var(--space-5); text-align: left; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.data-table th { font-size: .75rem; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); background: var(--color-paper-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { font-variant-numeric: tabular-nums; }

/* ---- What the review of 29 September 2026 found, still true in v4 -------- */
/* A long cell of the privacy table pushed the page 4 px wide at 320. */
.prose td { overflow-wrap: anywhere; }
/* The Spanish labels broke onto two lines between 1024 and 1079 px. */
.nav-links a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) { .nav-links { gap: var(--space-5); } }
/* A white label over a light card header fell to 2.6:1; a dark chip carries it. */
.tabcard__tag { padding: 3px 8px; border-radius: var(--radius-xs); background: rgba(11, 14, 21, .72); }
/* Two-line chips touched their border top and bottom. */
.chip { padding-block: 6px; }
/* The tallest product card ran its last line into the divider. */
.tabcard__body { padding-bottom: var(--space-5); }
/* Two tinted sections in a row stacked their padding into an empty band. */
.section--alt + .section--alt { padding-top: 0; }
/* The card labels were 9 px: readable sizes, the layout unchanged. */
.tcard__tag { font-size: .6875rem; }
.tcard__foot { font-size: .625rem; }
.tcard__role { font-size: .8125rem; }
/* Phone tap targets of at least 44 px for the small links. */
@media (max-width: 699px) {
  .site-footer li a { display: inline-block; padding-block: 10px; }
  .mobile-menu__lang a { display: inline-block; padding-block: 12px; }
  .breadcrumb a { display: inline-block; padding-block: 14px; margin-block: -14px; }
  .link-arrow { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

/* ---- Invierte en Harpe ---------------------------------------------------- */
/* The card face down next to its text, the founder's grid without the career. */
.card-note { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 1rem + calc(3 * var(--vw)), 4rem); align-items: center; }
.card-note .lead { margin-top: var(--space-4); max-width: 34em; }
/* On the alternate background the paper-2 card vanished into the section. */
.section--alt .aside-card { background: var(--color-paper); }
/* A fieldset that looks like any other field: the boxes of step 1 of the private area. */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: var(--space-2); }
.choices.is-invalid .field__error { display: block; }
/* The second error of a field, the one that refuses a valid choice. */
.field.is-invalid .field__error[data-alt] { display: none; }
.field.is-invalid.is-rejected .field__error { display: none; }
.field.is-invalid.is-rejected .field__error[data-alt] { display: block; }
@media (max-width: 1023px) {
  .card-note { grid-template-columns: 1fr; }
  .card-note .deck--one { max-width: 300px; }
}
@media (max-width: 699px) {
  .card-note .deck--one { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; }
}

/* The private area of an investor. */
.xtable-wrap { overflow-x: auto; }
.xtable { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: 1rem; background: var(--color-paper); border-radius: var(--radius-md); }
.xtable th, .xtable td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-line); }
.xtable thead th { font-size: .8125rem; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.xtable tbody tr:last-child td, .xtable tbody tr:last-child th { border-bottom: 0; }
.xtable__note { margin-top: var(--space-4); max-width: 46rem; }
.step + .step, .steps-done + .step { margin-top: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--color-line); }
.step .lead { margin-top: var(--space-4); max-width: 40em; }
.step .alert, .step .btn-row, .step .note-band, .step > p { margin-top: var(--space-5); }
.step .btn-row form { display: contents; }
.steps-done .alert { margin-top: var(--space-3); }
.steps-done p { margin-top: var(--space-3); }
.code-form { margin-top: var(--space-6); max-width: 40rem; }
.code-form .input { font-size: 1.375rem; letter-spacing: .3em; max-width: 12rem; }
.code-form .alert { margin-top: 0; }
.input--file { padding: var(--space-3); }
/* The button of the file picker, in the site's soft button and not the system's grey. */
.input--file::file-selector-button {
  margin-right: var(--space-3); padding: .5rem var(--space-4); border: 0; border-radius: 8px;
  background: var(--color-tint); color: var(--color-navy); font: inherit; font-weight: var(--weight-semibold); cursor: pointer;
}
.input--file:hover::file-selector-button { background: var(--color-azure-light); }
.transfer { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); max-width: 40rem; padding: var(--space-6); background: var(--color-paper-2); border-radius: var(--radius-xl); }
.transfer dt { font-size: .8125rem; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); padding-top: 3px; }
.transfer dd { margin: 0; font-size: 1.0625rem; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.site-footer--slim .site-footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 699px) {
  .transfer { grid-template-columns: 1fr; gap: var(--space-1); }
  .transfer dd + dt { margin-top: var(--space-3); }
}

/* The orders of the investment, in the client area. */
.admin > * + * { margin-top: var(--space-6); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--grid-gap); }
.admin-card { padding: var(--space-6); background: var(--color-paper-2); border-radius: var(--radius-xl); align-content: start; }
.admin-card .btn-row form { display: contents; }
.admin-link code { overflow-wrap: anywhere; }
.admin-dl { max-width: none; grid-template-columns: 14rem 1fr; }
.admin-log { padding: 0; list-style: none; font-size: var(--text-small); color: var(--color-charcoal); }
.admin-log li { padding: var(--space-2) 0; border-bottom: 1px solid var(--color-line); }
.admin-login { max-width: 26rem; grid-template-columns: 1fr; }
/* The card of the Series: the figures, the table of tranches and the dates, close together. */
.admin-serie { margin-bottom: var(--grid-gap); }
.admin-serie .table-wrap { margin-top: var(--space-4); }
.admin-serie .table-wrap + p { margin-top: var(--space-4); }
.admin-serie + .admin-grid { margin-bottom: var(--grid-gap); }

/* ---- La cabecera de producto con su pantalla -------------------------------
   Carlos, 25 de octubre de 2026: «la gracia es que se vea la pantalla
   superpuesta según se entra» y «letra más pequeña y botones a la derecha y
   tal», y la pantalla «con el ancho del resto de cosas». A partir de 1.024 px,
   el texto a la izquierda, botones y etiquetas a la derecha, y debajo la
   pantalla con el ancho del contenedor, colgando del borde de la cabecera hacia
   la página. En el móvil, el orden del kit: texto, botones, etiquetas, pantalla.
   La cabecera no recorta (el fondo sí) y su margen inferior deja sitio a lo que
   cuelga.
   --sw    ancho de la pantalla, el del contenido del contenedor
   --hang  lo que cuelga por debajo del degradado: una parte del marco, que es
           16:9, más el pie de la captura */
.page-hero--shot {
  --hw: calc(min(calc(100 * var(--vw)), var(--container)) - 2 * var(--gutter));
  --sw: var(--hw);
  --cap: 2.75rem;
  --below: .6;
  --hang: calc(var(--sw) * .5625 * var(--below) + var(--cap));
  --hp: clamp(2rem, 1rem + calc(2 * var(--vw)), 3rem);
  overflow: visible;
  padding-bottom: var(--hp);
  margin-bottom: var(--hang);
}
.page-hero--shot .page-hero__bg { overflow: hidden; }
.page-hero__shot {
  position: relative; z-index: 2;
  margin: clamp(2.5rem, 1.5rem + calc(3 * var(--vw)), 4rem) 0 calc(-1 * (var(--hp) + var(--hang)));
}
/* Media sombra entre la oscura y la clara: la pantalla pisa el degradado y el
   blanco, y la oscura del kit teñía de gris el blanco de debajo. */
.page-hero__shot .shot__frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 24px 64px color-mix(in srgb, var(--color-night) 34%, transparent); }
@media (min-width: 1024px) {
  .page-hero--shot, .page-hero--side { padding-top: calc(var(--nav-h) + clamp(1.5rem, .5rem + calc(2 * var(--vw)), 3rem)); }
  .page-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    grid-template-areas: "text actions" "shot shot"; column-gap: clamp(2rem, 1rem + calc(3 * var(--vw)), 5rem); align-items: end;
  }
  .page-hero--shot .page-hero__inner { grid-area: text; max-width: 46rem; }
  .page-hero__actions { grid-area: actions; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-5); }
  .page-hero__actions .btn-row, .page-hero__actions .chips { margin-top: 0; justify-content: flex-end; }
  .page-hero__shot { grid-area: shot; margin-top: clamp(2rem, 1rem + calc(2.5 * var(--vw)), 3.5rem); }
  .page-hero--shot .breadcrumb, .page-hero--side .breadcrumb { margin-bottom: var(--space-6); }
  .page-hero--shot .page-hero__title { margin-top: var(--space-3); }
  .page-hero--shot .lead, .page-hero--side .lead { margin-top: var(--space-4); font-size: clamp(1rem, .85rem + calc(.25 * var(--vw)), 1.125rem); }
  .page-hero--shot .chips { gap: var(--space-2); }
  .page-hero--shot .chip { min-height: 32px; padding: 6px var(--space-3); font-size: .8125rem; }
  /* A la derecha caen sobre la luz del degradado, donde el blanco sobre
     transparente no se lee: el botón de cristal y las etiquetas llevan el
     cristal de noche de la barra. */
  .page-hero__actions .btn--glass, .page-hero__actions .chip--dark {
    background: color-mix(in srgb, var(--color-night) 62%, transparent); border-color: rgba(255, 255, 255, .34);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .page-hero__actions .btn--glass:hover { background: color-mix(in srgb, var(--color-night) 78%, transparent); }
}

/* La barra flota sobre la cabecera, y en pantallas anchas su lado derecho cae
   sobre la luz del degradado, donde el blanco no se lee. Una sombra de noche en
   la franja de arriba lo resuelve sin tocar la imagen. */
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--nav-h) + 4rem); pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--color-night) 62%, transparent), transparent);
}

/* ---- Detalles plegables ---------------------------------------------------
   <details> y <summary> se abren y se cierran con el ratón, el dedo y el
   teclado, sin ningún script. La flecha es un borde girado, sin imagen. Con
   movimiento reducido --dur vale 0 y la flecha cambia sin girar. */
.faq { max-width: 52rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__q {
  position: relative; display: block; min-height: 56px; cursor: pointer; list-style: none;
  padding: var(--space-4) var(--space-10) var(--space-4) 0;
  font-size: var(--text-h4); font-weight: var(--weight-semibold); line-height: var(--leading-snug); color: var(--color-onyx);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: var(--space-2); top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--color-azure); border-bottom: 2px solid var(--color-azure);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
details[open] > .faq__q::after { margin-top: -2px; transform: rotate(-135deg); }
.faq__q:hover { color: var(--color-azure); }
.faq__q:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
.faq__a { max-width: 46rem; padding-bottom: var(--space-5); font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-charcoal); }
.faq__a p + p { margin-top: var(--space-3); }
.faq__a b { color: var(--color-onyx); }
/* El titular de una columna acompaña a una lista larga al desplazar. */
@media (min-width: 1024px) {
  .split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + var(--space-8)); }
}

/* ==========================================================================
   La Serie Semilla (docs/INVIERTE.md, 08 A2 y 06 01b), en el área privada y
   en /invierte y /en/invest.

   Carlos, 25 de octubre de 2026: «necesito lo de la primera ronda lo de
   convertible, todo eso no sale por ningún lado. Necesito una progress bar,
   necesito que sea mucho más claro que hay tres oportunidades y que el
   descuento se va bajando».

   Arriba, el mensaje con sus palabras, en el área privada y en la pública, y
   frases numeradas: qué es la primera ronda y qué es el préstamo convertible
   (en la pública, una tercera, la de los tramos). Debajo, una tarjeta con el
   título del encargo, «Cómo va la Serie Semilla»: lo firmado y su desglose,
   la barra a todo el ancho y, pegada a ella, la regla del descuento. Cada escalón de la regla es un tramo, con el ancho del tramo
   (las mismas columnas .grow-N que la barra) y el alto de su descuento
   (.ht-N): el tramo que se llena queda encima de su descuento, y la escalera
   baja según avanza la Serie. Bajo cada escalón, su tramo y su estado; en el
   teléfono, una fila por tramo.

   Sin estilos en línea: anchos .w-N, posiciones .at-N, columnas .grow-N y
   altos .ht-N, generados tras este bloque. Cada estado lo
   dice un texto y el color acompaña. Lo firmado pendiente lleva rayas, para
   distinguirse de lo confirmado sin depender del tono.
   ========================================================================== */

.ss-section {
  --ss-gap: 4px;                 /* entre tramos: barra, regla y tramos comparten el hueco */
  --ss-bar: 1.5rem;              /* alto de la barra */
  --ss-ruler: 8.5rem;            /* alto del escalón del mayor descuento */
  /* Verde y en movimiento. Carlos, 26 de octubre de 2026: «pon la barra de
     progreso en verde y como si tuviera un degradado en movimiento como para
     dar la sensación de que está abierto y vivo». Lo confirmado lleva el
     degradado que corre; lo firmado pendiente, el mismo verde al 45 % sobre
     papel, opaco y quieto, para que la barra y la muestra de la leyenda den
     el mismo color. */
  --ss-green: #16A463;
  --ss-green-deep: #0B7443;
  --ss-green-light: #4BDB95;
  --ss-signed: color-mix(in srgb, var(--ss-green) 45%, var(--color-paper));
  --ss-hatch: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--ss-green-deep) 34%, transparent) 4px 6px);
}

/* ---- Composición ---------------------------------------------------------- */
/* Tras la firma, el área privada pasa de esta sección a los pasos, otra
   sección blanca: como .section--alt + .section--alt del kit, sin sumar los
   dos rellenos. */
.ss-section:not(.section--alt) + .section:not(.section--alt) { padding-top: 0; }
.ss { display: grid; grid-template-columns: minmax(0, 1fr); }
.ss__head .h2 { margin-top: var(--space-4); }
/* La segunda frase del titular empieza línea: «El descuento va bajando.» */
.ss__head .h2 span { display: block; }

/* ---- Las frases numeradas: la lista del kit (.nlist), más prieta --------- */
.ss-facts { margin: var(--space-6) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.ss-facts li { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); }
.ss-facts .enum { flex: 0 0 2.2em; font-size: var(--text-enum); line-height: 1.1; color: var(--color-azure); }
.ss-facts p { font-size: 1rem; line-height: 1.5; color: var(--color-charcoal); }
.ss-facts b { color: var(--color-onyx); }

/* ---- La tarjeta ----------------------------------------------------------- */
.ss-card {
  margin-top: var(--space-10); padding: clamp(1.25rem, .6rem + calc(2.2 * var(--vw)), 2.5rem);
  border-radius: var(--radius-2xl); background: var(--color-paper); box-shadow: var(--shadow-card);
}

/* El título del encargo encabeza la tarjeta: lo que sigue es cómo va la Serie. */
.ss-card__t { margin-bottom: var(--space-3); }

/* Lo firmado manda. El porcentaje de la Serie va en Inter, como la cifra,
   para no confundirse con los descuentos, que van en Unbounded. */
.ss-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.ss-top__sum { min-width: 0; font-size: 1.0625rem; line-height: 1.35; color: var(--color-charcoal); font-variant-numeric: tabular-nums; }
.ss-top__sum b { display: block; font-size: var(--text-stat-xl); line-height: 1.05; letter-spacing: -.02em; color: var(--color-onyx); white-space: nowrap; }
.ss-top__pct { font-size: var(--text-stat); line-height: 1.1; letter-spacing: -.02em; color: var(--color-onyx); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* La leyenda desglosa lo firmado: lo confirmado y lo pendiente. Va tras los
   tramos; en escritorio sube a la fila de la marca, arriba a la derecha. */
.ss-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-5) 0 0; padding: 0; list-style: none;
  font-size: .875rem; line-height: 1.35; color: var(--color-charcoal);
}
/* Cada entrada corre como texto: si parte, la cifra sigue a sus palabras. */
.ss-legend li { padding-left: 1.375rem; text-indent: -1.375rem; }
.ss-legend b { margin-left: var(--space-1); font-weight: var(--weight-semibold); color: var(--color-onyx); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-key { display: inline-block; width: .875rem; height: .875rem; margin-right: var(--space-2); border-radius: 3px; vertical-align: -.125rem; text-indent: 0; }
.ss-key--conf { background: linear-gradient(90deg, var(--ss-green-deep), var(--ss-green)); }
.ss-key--signed { background: var(--ss-hatch), var(--ss-signed); }

/* ---- La barra ------------------------------------------------------------- */
/* El texto de la marca va fuera del progressbar: los hijos de un progressbar
   son presentacionales y el lector de pantalla no los lee. */
.ss-track { position: relative; margin-top: var(--space-5); padding-top: 1.75rem; }
.ss-mark {
  position: absolute; top: 0; padding-left: var(--space-2); white-space: nowrap;
  font-size: .8125rem; font-weight: var(--weight-semibold); line-height: 1.25rem; color: var(--color-onyx);
}
.ss-mark.is-reached::before {
  content: ""; display: inline-block; width: .3125rem; height: .625rem; margin: 0 .5rem .125rem .125rem;
  border: solid var(--ss-green-deep); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ss-bar { position: relative; display: flex; gap: var(--ss-gap); height: var(--ss-bar); }
.ss-seg { position: relative; min-width: 0; overflow: hidden; border-radius: 6px; background: var(--color-line); }
.ss-fill { position: absolute; top: 0; bottom: 0; left: 0; }
.ss-fill--signed { background: var(--ss-hatch), var(--ss-signed); }
/* El degradado se repite cada 14rem y corre hacia la derecha un periodo por
   vuelta: la luz pasa por lo confirmado sea cual sea su ancho. */
.ss-fill--conf {
  background: linear-gradient(90deg, var(--ss-green-deep) 0%, var(--ss-green) 28%, var(--ss-green-light) 50%, var(--ss-green) 72%, var(--ss-green-deep) 100%) 0 0 / 14rem 100% repeat-x;
  animation: ss-flow 2.6s linear infinite;
}
@keyframes ss-flow { to { background-position: 14rem 0; } }
.ss-bar__mark { position: absolute; z-index: 1; top: -1.75rem; bottom: -.375rem; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--color-onyx); }

/* ---- La regla del descuento ---------------------------------------------- */
/* Es un contenedor: la cifra se mide en cqi, con el ancho de la regla, y cabe
   en el escalón más estrecho (el 23 % del ancho) en cualquier pantalla. */
.ss-ruler {
  position: relative; container-type: inline-size; display: flex; align-items: flex-end; gap: var(--ss-gap);
  height: var(--ss-ruler); margin-top: var(--space-2); border-bottom: 1px solid var(--color-line-strong);
}
/* El título de la regla va arriba a la derecha, en el hueco que dejan los
   escalones más bajos: la escalera baja hacia él. */
.ss-ruler__t {
  position: absolute; top: 0; right: 0; white-space: nowrap;
  font-size: .8125rem; font-weight: var(--weight-semibold); line-height: 1.25; color: var(--color-charcoal);
}
.ss-col { display: flex; align-items: flex-end; min-width: 0; height: 100%; }
.ss-step {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: var(--space-2) var(--space-3);
  width: 100%; min-width: 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--color-tint); color: var(--color-navy);
}
.ss-step b {
  font-family: var(--font-cartel); font-weight: 200; font-size: clamp(1rem, 6.6cqi, 2.5rem); line-height: 1;
  letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* «AHORA» delante de la cifra; si no cabe, encima. */
.ss-step small {
  padding: 3px 9px; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-navy);
  font-size: .75rem; font-weight: var(--weight-bold); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
}
.ss-col.is-open .ss-step { background: var(--color-navy); color: var(--color-light-cyan); }
.ss-col.is-open .ss-step b { font-weight: 300; }
.ss-col.is-closed .ss-step { background: var(--color-paper-2); color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-line); }

/* ---- Los tramos: una fila por tramo; en escritorio, bajo su escalón ------ */
.ss-tranches { margin: 0; padding: 0; list-style: none; }
.ss-tranche { padding: 14px 0; }
.ss-tranche + .ss-tranche { border-top: 1px solid var(--color-line); }
.ss-tranche__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ss-tranche__name { font-size: .9375rem; font-weight: var(--weight-semibold); line-height: 1.35; color: var(--color-onyx); }
.ss-tranche__size { margin-top: var(--space-1); font-size: .875rem; line-height: 1.45; color: var(--color-muted); }
.ss-tranche__you { margin-top: var(--space-2); font-size: .9375rem; font-weight: var(--weight-semibold); line-height: 1.4; color: var(--color-azure); }
.ss-tranche.is-closed .ss-tranche__name { font-weight: var(--weight-medium); color: var(--color-charcoal); }

/* El estado, en palabras, en una etiqueta del kit. */
.ss-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: var(--weight-semibold); line-height: 1.35;
}
.ss-tag--open { background: var(--color-navy); color: var(--color-on-dark); }
.ss-tag--open::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--ss-green-light); animation: ss-pulse 2s ease-out infinite;
}
@keyframes ss-pulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 219, 149, .7); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(75, 219, 149, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ss-fill--conf, .ss-tag--open::before { animation: none; }
}
.ss-tag--next { box-shadow: inset 0 0 0 1px var(--color-field-border); color: var(--color-charcoal); }
.ss-tag--closed { background: var(--color-paper-2); color: var(--color-charcoal); }
.ss-tag--closed::before {
  content: ""; flex: none; width: .3125rem; height: .625rem; margin: 0 .5rem .1875rem .125rem;
  border: solid var(--ss-green-deep); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---- La línea del encargo ------------------------------------------------- */
.ss-line { margin-top: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--color-line); font-size: 1.0625rem; line-height: 1.5; color: var(--color-onyx); }

/* ---- Pública: la nota y el único enlace, al formulario -------------------- */
.ss__note { margin-top: var(--space-8); max-width: 36em; font-size: var(--text-small); line-height: 1.5; color: var(--color-charcoal); }
.ss__note .link-arrow { display: inline-block; margin-top: var(--space-3); }

/* ---- Desde 700 px ---------------------------------------------------------- */
@media (min-width: 700px) {
  .ss-top { align-items: baseline; }
  .ss-top__sum b { display: inline; margin-right: var(--space-2); }
}

/* ---- Escritorio ------------------------------------------------------------ */
@media (min-width: 1024px) {
  /* El titular a todo el ancho, en dos líneas; las frases, en columnas. En la
     pública, la nota y el enlace a la derecha del título, como la cabecera
     partida del kit (.section-head--split). */
  .ss-section--public .ss { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); grid-template-areas: "card card" "head note" "facts facts"; column-gap: var(--space-10); align-items: end; }
  .ss-section--public .ss__head { grid-area: head; }
  .ss-section--public .ss-facts { grid-area: facts; }
  .ss-section--public .ss-card { grid-area: card; }
  .ss__note { grid-area: note; margin-top: 0; }
  .ss-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--grid-gap); margin-top: var(--space-8); border-top: 0; }
  .ss-facts li { padding: var(--space-5) var(--space-6) 0 0; border-top: 1px solid var(--color-line); border-bottom: 0; }
  /* La leyenda comparte fila con la marca del mínimo: la barra sube una línea. */
  .ss-card {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "top" "track" "ruler" "tranches" "line";
    margin-top: var(--space-8);
  }
  .ss-card__t { grid-area: title; }
  .ss-top { grid-area: top; }
  .ss-track { grid-area: track; }
  .ss-ruler { grid-area: ruler; }
  .ss-tranches { grid-area: tranches; }
  .ss-line { grid-area: line; }
  .ss-legend { grid-area: track; justify-self: end; align-self: start; margin-top: var(--space-5); }
}

/* ---- Escritorio amplio: cada tramo bajo su escalón, en las mismas columnas.
   Por debajo de 1.280 px la columna del tramo 1 no da para su etiqueta y su
   estado en una línea, y los tramos siguen en filas. El margen va en los
   hijos: con relleno en la columna, .grow-N ya no daría el ancho de la barra. */
@media (min-width: 1280px) {
  .ss-tranches { display: flex; gap: var(--ss-gap); }
  .ss-tranche { min-width: 0; padding: var(--space-4) 0 0; }
  .ss-tranche > * { margin-right: var(--space-5); }
  .ss-tranche + .ss-tranche { border-top: 0; }
  .ss-tranche__head { flex-direction: column; align-items: flex-start; }
  .ss-line { margin-top: var(--space-6); }
}

/* ---- Teléfono --------------------------------------------------------------- */
@media (max-width: 699px) {
  /* La sección sigue al saludo: menos aire arriba, para que la barra y la
     regla entren en la primera pantalla de la sección. */
  .ss-section { --ss-bar: 1.25rem; --ss-ruler: 6.5rem; --ss-gap: 3px; padding-top: var(--space-12); }
  .ss-facts { margin-top: var(--space-5); }
  .ss-facts li { gap: var(--space-3); padding: 14px 0; }
  .ss-facts .enum { flex-basis: 1.9em; }
  .ss-facts p { font-size: .9375rem; line-height: 1.45; }
  .ss-card { margin-top: var(--space-8); border-radius: var(--radius-xl); }
  .ss-legend { flex-direction: column; gap: var(--space-1); margin-top: var(--space-4); }
  /* En el escalón más estrecho, «AHORA» va encima de la cifra, sin pastilla. */
  .ss-step {
    flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 3px; padding: 6px var(--space-2);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .ss-step b { font-weight: 300; }
  .ss-step small { padding: 0; background: none; color: var(--color-mist); letter-spacing: .02em; }
  .ss-line { font-size: 1rem; }
}
@media (max-width: 374px) {
  .ss-step { padding-inline: 5px; }
  .ss-step small { letter-spacing: 0; }
  .ss-mark { font-size: .75rem; }
}

/* ---- Colores forzados ----------------------------------------------------- */
/* Con el alto contraste de Windows los fondos desaparecen: los rellenos pasan
   a colores del sistema y cada hueco lleva borde. */
@media (forced-colors: active) {
  .ss-seg, .ss-step { border: 1px solid CanvasText; }
  .ss-fill--conf, .ss-key--conf { forced-color-adjust: none; background: Highlight; }
  .ss-fill--signed, .ss-key--signed { forced-color-adjust: none; background: GrayText; }
  .ss-bar__mark { forced-color-adjust: none; background: CanvasText; }
  .ss-col.is-open .ss-step { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .ss-col.is-open .ss-step small { background: none; color: HighlightText; }
  .ss-tag { border: 1px solid CanvasText; }
}
.w-0{width:0%} .w-1{width:1%} .w-2{width:2%} .w-3{width:3%} .w-4{width:4%} .w-5{width:5%} .w-6{width:6%} .w-7{width:7%} .w-8{width:8%} .w-9{width:9%} .w-10{width:10%} .w-11{width:11%} .w-12{width:12%} .w-13{width:13%} .w-14{width:14%} .w-15{width:15%} .w-16{width:16%} .w-17{width:17%} .w-18{width:18%} .w-19{width:19%} .w-20{width:20%} .w-21{width:21%} .w-22{width:22%} .w-23{width:23%} .w-24{width:24%} .w-25{width:25%} .w-26{width:26%} .w-27{width:27%} .w-28{width:28%} .w-29{width:29%} .w-30{width:30%} .w-31{width:31%} .w-32{width:32%} .w-33{width:33%} .w-34{width:34%} .w-35{width:35%} .w-36{width:36%} .w-37{width:37%} .w-38{width:38%} .w-39{width:39%} .w-40{width:40%} .w-41{width:41%} .w-42{width:42%} .w-43{width:43%} .w-44{width:44%} .w-45{width:45%} .w-46{width:46%} .w-47{width:47%} .w-48{width:48%} .w-49{width:49%} .w-50{width:50%} .w-51{width:51%} .w-52{width:52%} .w-53{width:53%} .w-54{width:54%} .w-55{width:55%} .w-56{width:56%} .w-57{width:57%} .w-58{width:58%} .w-59{width:59%} .w-60{width:60%} .w-61{width:61%} .w-62{width:62%} .w-63{width:63%} .w-64{width:64%} .w-65{width:65%} .w-66{width:66%} .w-67{width:67%} .w-68{width:68%} .w-69{width:69%} .w-70{width:70%} .w-71{width:71%} .w-72{width:72%} .w-73{width:73%} .w-74{width:74%} .w-75{width:75%} .w-76{width:76%} .w-77{width:77%} .w-78{width:78%} .w-79{width:79%} .w-80{width:80%} .w-81{width:81%} .w-82{width:82%} .w-83{width:83%} .w-84{width:84%} .w-85{width:85%} .w-86{width:86%} .w-87{width:87%} .w-88{width:88%} .w-89{width:89%} .w-90{width:90%} .w-91{width:91%} .w-92{width:92%} .w-93{width:93%} .w-94{width:94%} .w-95{width:95%} .w-96{width:96%} .w-97{width:97%} .w-98{width:98%} .w-99{width:99%} .w-100{width:100%}
.at-0{left:0%} .at-1{left:1%} .at-2{left:2%} .at-3{left:3%} .at-4{left:4%} .at-5{left:5%} .at-6{left:6%} .at-7{left:7%} .at-8{left:8%} .at-9{left:9%} .at-10{left:10%} .at-11{left:11%} .at-12{left:12%} .at-13{left:13%} .at-14{left:14%} .at-15{left:15%} .at-16{left:16%} .at-17{left:17%} .at-18{left:18%} .at-19{left:19%} .at-20{left:20%} .at-21{left:21%} .at-22{left:22%} .at-23{left:23%} .at-24{left:24%} .at-25{left:25%} .at-26{left:26%} .at-27{left:27%} .at-28{left:28%} .at-29{left:29%} .at-30{left:30%} .at-31{left:31%} .at-32{left:32%} .at-33{left:33%} .at-34{left:34%} .at-35{left:35%} .at-36{left:36%} .at-37{left:37%} .at-38{left:38%} .at-39{left:39%} .at-40{left:40%} .at-41{left:41%} .at-42{left:42%} .at-43{left:43%} .at-44{left:44%} .at-45{left:45%} .at-46{left:46%} .at-47{left:47%} .at-48{left:48%} .at-49{left:49%} .at-50{left:50%} .at-51{left:51%} .at-52{left:52%} .at-53{left:53%} .at-54{left:54%} .at-55{left:55%} .at-56{left:56%} .at-57{left:57%} .at-58{left:58%} .at-59{left:59%} .at-60{left:60%} .at-61{left:61%} .at-62{left:62%} .at-63{left:63%} .at-64{left:64%} .at-65{left:65%} .at-66{left:66%} .at-67{left:67%} .at-68{left:68%} .at-69{left:69%} .at-70{left:70%} .at-71{left:71%} .at-72{left:72%} .at-73{left:73%} .at-74{left:74%} .at-75{left:75%} .at-76{left:76%} .at-77{left:77%} .at-78{left:78%} .at-79{left:79%} .at-80{left:80%} .at-81{left:81%} .at-82{left:82%} .at-83{left:83%} .at-84{left:84%} .at-85{left:85%} .at-86{left:86%} .at-87{left:87%} .at-88{left:88%} .at-89{left:89%} .at-90{left:90%} .at-91{left:91%} .at-92{left:92%} .at-93{left:93%} .at-94{left:94%} .at-95{left:95%} .at-96{left:96%} .at-97{left:97%} .at-98{left:98%} .at-99{left:99%} .at-100{left:100%}
.grow-1{flex:1 1 0} .grow-2{flex:2 1 0} .grow-3{flex:3 1 0} .grow-4{flex:4 1 0} .grow-5{flex:5 1 0} .grow-6{flex:6 1 0} .grow-7{flex:7 1 0} .grow-8{flex:8 1 0} .grow-9{flex:9 1 0} .grow-10{flex:10 1 0} .grow-11{flex:11 1 0} .grow-12{flex:12 1 0} .grow-13{flex:13 1 0} .grow-14{flex:14 1 0} .grow-15{flex:15 1 0} .grow-16{flex:16 1 0} .grow-17{flex:17 1 0} .grow-18{flex:18 1 0} .grow-19{flex:19 1 0} .grow-20{flex:20 1 0} .grow-21{flex:21 1 0} .grow-22{flex:22 1 0} .grow-23{flex:23 1 0} .grow-24{flex:24 1 0} .grow-25{flex:25 1 0} .grow-26{flex:26 1 0} .grow-27{flex:27 1 0} .grow-28{flex:28 1 0} .grow-29{flex:29 1 0} .grow-30{flex:30 1 0} .grow-31{flex:31 1 0} .grow-32{flex:32 1 0} .grow-33{flex:33 1 0} .grow-34{flex:34 1 0} .grow-35{flex:35 1 0} .grow-36{flex:36 1 0} .grow-37{flex:37 1 0} .grow-38{flex:38 1 0} .grow-39{flex:39 1 0} .grow-40{flex:40 1 0} .grow-41{flex:41 1 0} .grow-42{flex:42 1 0} .grow-43{flex:43 1 0} .grow-44{flex:44 1 0} .grow-45{flex:45 1 0} .grow-46{flex:46 1 0} .grow-47{flex:47 1 0} .grow-48{flex:48 1 0} .grow-49{flex:49 1 0} .grow-50{flex:50 1 0} .grow-51{flex:51 1 0} .grow-52{flex:52 1 0} .grow-53{flex:53 1 0} .grow-54{flex:54 1 0} .grow-55{flex:55 1 0} .grow-56{flex:56 1 0} .grow-57{flex:57 1 0} .grow-58{flex:58 1 0} .grow-59{flex:59 1 0} .grow-60{flex:60 1 0} .grow-61{flex:61 1 0} .grow-62{flex:62 1 0} .grow-63{flex:63 1 0} .grow-64{flex:64 1 0} .grow-65{flex:65 1 0}
/* ---- Utilidades generadas --------------------------------------------------
   .ht-0 a .ht-100: el alto de un escalón, en tanto por ciento de la regla: el
   descuento del tramo entre el mayor de los tres (20, 15 y 10 dan 100, 75 y
   50). Van con .w-N, .at-N y .grow-N de site.css. */
.ht-0{height:0%} .ht-1{height:1%} .ht-2{height:2%} .ht-3{height:3%} .ht-4{height:4%} .ht-5{height:5%} .ht-6{height:6%} .ht-7{height:7%} .ht-8{height:8%} .ht-9{height:9%} .ht-10{height:10%} .ht-11{height:11%} .ht-12{height:12%} .ht-13{height:13%} .ht-14{height:14%} .ht-15{height:15%} .ht-16{height:16%} .ht-17{height:17%} .ht-18{height:18%} .ht-19{height:19%} .ht-20{height:20%} .ht-21{height:21%} .ht-22{height:22%} .ht-23{height:23%} .ht-24{height:24%} .ht-25{height:25%} .ht-26{height:26%} .ht-27{height:27%} .ht-28{height:28%} .ht-29{height:29%} .ht-30{height:30%} .ht-31{height:31%} .ht-32{height:32%} .ht-33{height:33%} .ht-34{height:34%} .ht-35{height:35%} .ht-36{height:36%} .ht-37{height:37%} .ht-38{height:38%} .ht-39{height:39%} .ht-40{height:40%} .ht-41{height:41%} .ht-42{height:42%} .ht-43{height:43%} .ht-44{height:44%} .ht-45{height:45%} .ht-46{height:46%} .ht-47{height:47%} .ht-48{height:48%} .ht-49{height:49%} .ht-50{height:50%} .ht-51{height:51%} .ht-52{height:52%} .ht-53{height:53%} .ht-54{height:54%} .ht-55{height:55%} .ht-56{height:56%} .ht-57{height:57%} .ht-58{height:58%} .ht-59{height:59%} .ht-60{height:60%} .ht-61{height:61%} .ht-62{height:62%} .ht-63{height:63%} .ht-64{height:64%} .ht-65{height:65%} .ht-66{height:66%} .ht-67{height:67%} .ht-68{height:68%} .ht-69{height:69%} .ht-70{height:70%} .ht-71{height:71%} .ht-72{height:72%} .ht-73{height:73%} .ht-74{height:74%} .ht-75{height:75%} .ht-76{height:76%} .ht-77{height:77%} .ht-78{height:78%} .ht-79{height:79%} .ht-80{height:80%} .ht-81{height:81%} .ht-82{height:82%} .ht-83{height:83%} .ht-84{height:84%} .ht-85{height:85%} .ht-86{height:86%} .ht-87{height:87%} .ht-88{height:88%} .ht-89{height:89%} .ht-90{height:90%} .ht-91{height:91%} .ht-92{height:92%} .ht-93{height:93%} .ht-94{height:94%} .ht-95{height:95%} .ht-96{height:96%} .ht-97{height:97%} .ht-98{height:98%} .ht-99{height:99%} .ht-100{height:100%}

/* The table of the example, a column per tranche: the investor's stands out,
   with a word that says so, not only a colour. */
.xtable--tranches { max-width: none; }
.xtable--tranches tbody th { font-size: 1rem; font-weight: var(--weight-regular); letter-spacing: 0; text-transform: none; color: var(--color-charcoal); }
.xtable--tranches td, .xtable--tranches thead th:not(:first-child) { text-align: right; }
.xtable--tranches td { white-space: nowrap; }
.xtable__col, .xtable__terms { display: block; }
.xtable__terms { margin-top: 2px; letter-spacing: .04em; }
.xtable .is-mine { background: var(--color-tint); }
.xtable__tag { display: block; margin-top: 4px; font-size: .75rem; letter-spacing: 0; text-transform: none; font-weight: var(--weight-semibold); color: var(--color-azure); }
.step__tranche { margin-top: var(--space-4); font-weight: var(--weight-semibold); color: var(--color-onyx); }
.contract-links { margin-top: var(--space-6); }
/* The second line of a row of the example: the valuation of the round. */
.xtable__sub { display: block; margin-top: 2px; font-size: .8125rem; color: var(--color-muted); }

/* The conditions of the Seed Series under the bar, on /invierte: the four
   figures, what happens to the loan and every condition, grouped. */
.conditions__sub { margin-top: var(--space-12); }
.conditions__detail { margin-top: var(--space-6); }
.conditions__note { margin-top: var(--space-6); max-width: 46rem; }
.conditions__cta { margin-top: var(--space-4); }
@media (max-width: 699px) {
  /* The table fits at 390 without scrolling: smaller type, tighter cells and
     a header in two lines; the row names wrap, the figures do not. */
  .xtable--tranches { font-size: .875rem; }
  .xtable--tranches tbody th { font-size: .875rem; }
  .xtable--tranches th, .xtable--tranches td { padding: var(--space-3) var(--space-2); }
  .xtable--tranches th:first-child { padding-left: var(--space-3); }
  .xtable--tranches thead th { font-size: .6875rem; letter-spacing: .04em; }
  /* A long label wraps inside its button instead of pushing the page wider. */
  .btn-row .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: var(--space-2); }
}
@media (max-width: 359px) {
  /* At 320 the four columns take the last pixels of padding. */
  .xtable--tranches th, .xtable--tranches td { padding-inline: 6px; }
  .xtable--tranches th:first-child { padding-left: var(--space-2); }
}

/* ---- La tarjeta de la Serie cuelga sobre la cabecera ----------------------
   Carlos, 26 de octubre de 2026: «este cuadro tiene que quedar superponiendo
   el hero». La cabecera con 'hang' deja sitio abajo y la tarjeta sube a
   ocuparlo, como la consola de las páginas de producto. */
:root { --hero-hang: clamp(4rem, 2rem + calc(6 * var(--vw)), 9rem); }
.page-hero--hang { padding-bottom: calc(clamp(3.5rem, 2.5rem + calc(3 * var(--vw)), 5.5rem) + var(--hero-hang)); }
.ss-section--hang { padding-top: 0; }
.ss-section--hang .ss-card { position: relative; z-index: 2; margin-top: calc(-1 * var(--hero-hang)); }
.ss-section--hang .ss__head { margin-top: var(--space-12); }

/* ---- «Invierte», el botón dorado de la barra --------------------------------
   Carlos: «a la derecha de contacto un botón de invierte ... como de color oro
   o algo así con una animación de brillito». Oro con texto oscuro (más de 7:1).
   Después: «no tiene animación el brillito de invierte». El destello se veía
   0,7 s de cada 4,5 y se confundía con el reflejo fijo del degradado: ahora el
   reflejo fijo es suave, el destello cruza más despacio cada 3,6 s y una
   estrella guiña en la esquina cuando sale. Con movimiento reducido no cruza
   nada: la estrella se enciende y se apaga en su sitio. */
:root {
  --color-gold: #D4AF37;
  --color-gold-deep: #9A7B1F;
  --color-gold-light: #F6E7A8;
  --color-on-gold: #231A04;
}
.btn--gold {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--color-gold-deep) 0%, var(--color-gold) 38%, color-mix(in srgb, var(--color-gold) 55%, var(--color-gold-light)) 50%, var(--color-gold) 62%, var(--color-gold-deep) 100%);
  color: var(--color-on-gold); border-color: rgba(255, 236, 170, .6);
  box-shadow: 0 6px 18px rgba(212, 175, 55, .28);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 22%, rgba(255, 246, 214, .55) 40%, rgba(255, 255, 255, .95) 50%, rgba(255, 246, 214, .55) 60%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-100%);
  animation: gold-shine 3.6s cubic-bezier(.35, .1, .65, .9) .6s infinite;
}
.btn--gold::before {
  content: ""; position: absolute; top: 5px; right: 7px; z-index: -1; width: 11px; height: 11px;
  background: #FFFCEE;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: gold-twinkle 3.6s ease-out .6s infinite;
}
.btn--gold:hover { color: var(--color-on-gold); filter: brightness(1.06); }
@keyframes gold-shine {
  0%, 30% { transform: translateX(-100%); }
  80%, 100% { transform: translateX(100%); }
}
@keyframes gold-twinkle {
  0%, 64% { opacity: 0; transform: scale(.2) rotate(0deg); }
  76% { opacity: 1; transform: scale(1.25) rotate(45deg); }
  90%, 100% { opacity: 0; transform: scale(.2) rotate(90deg); }
}
@keyframes gold-glint {
  0%, 50%, 100% { opacity: 0; }
  70% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--gold::after { animation: none; opacity: 0; }
  .btn--gold::before { animation-name: gold-glint; }
}
@media (forced-colors: active) { .btn--gold { border: 1px solid ButtonText; } .btn--gold::after, .btn--gold::before { display: none; } }
.mobile-menu__cta { display: grid; gap: var(--space-3); }
/* Con el dorado, la barra no cabe entre 1.024 y 1.279 px: menos aire entre los
   enlaces y en los botones, y ningún botón se encoge. */
.site-header .nav-cta { flex: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .container { gap: var(--space-5); }
  .nav-links { gap: var(--space-5); }
  .site-header .nav-cta { padding-inline: var(--space-4); }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  .site-header .container, .nav-links { gap: var(--space-4); }
  .nav-links a { font-size: .875rem; }
}

/* ---- Cabecera con los botones a la derecha ---------------------------------
   Carlos, sobre /invierte: «necesito que pongas los botones a la derecha o algo
   para que así se vea la barra esa más arriba al entrar». La rejilla de las
   páginas con captura, sin captura y con menos aire abajo. El título cabe en
   una línea: entre 1.024 y 1.439 px los botones van uno encima de otro. */
@media (min-width: 1024px) {
  .page-hero--side .page-hero__grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text actions"; }
  .page-hero--side .page-hero__inner { grid-area: text; max-width: none; }
  .page-hero--side .lead { max-width: 46rem; }
  .page-hero--side .page-hero__actions { position: relative; z-index: 1; }
  .page-hero--side.page-hero--hang { padding-bottom: calc(clamp(2.5rem, 1.5rem + calc(2 * var(--vw)), 3.5rem) + var(--hero-hang)); }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .page-hero--side .page-hero__actions .btn-row { flex-direction: column; align-items: stretch; }
}

/* ---- Escala de escritorio: la web al 80 % ----------------------------------
   Carlos, 26 de octubre de 2026: «ponlo todo como si lo escalases al 80 % en
   el navegador, queda todo mucho mejor». Con ratón y desde 1.024 px la página
   entera se dibuja al 80 %, como con el zoom del navegador. El zoom de CSS
   encoge también lo que se mide en vw y vh, y el del navegador no: --vw y
   --vh valen 1,25 para compensarlo. Las consultas de ancho siguen viendo la
   pantalla real. En el móvil y en las tabletas táctiles se queda al 100 %:
   ahí el 80 % deja la letra demasiado pequeña para leer. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html { zoom: .8; }
  :root { --vw: 1.25vw; --vh: 1.25vh; }
  /* Al 80 % la barra cabe entera desde 1.024 px: los huecos y la letra de los
     enlaces vuelven a los de siempre, que entre 1.024 y 1.279 px se apretaban. */
  .site-header .container, .nav-links { gap: var(--space-8); }
  .site-header .nav-cta { padding-inline: var(--space-6); }
  .nav-links a { font-size: .9375rem; }
}
/* Sin ratón (tabletas) no hay 80 %, y con Empleo la barra entera no cabe por
   debajo de 1.536 px: ahí va el menú del teléfono, que ya lo lleva. Las tres
   condiciones son lo contrario de la del 80 %; menu.js usa la misma. */
@media (min-width: 1024px) and (max-width: 1535px) and (hover: none),
       (min-width: 1024px) and (max-width: 1535px) and (pointer: coarse),
       (min-width: 1024px) and (max-width: 1535px) and (pointer: none) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
/* Con Empleo en la barra, al 80 % ya no cabe entera por debajo de 1.200 px:
   ahí los huecos y el relleno de los botones vuelven a apretarse. */
@media (min-width: 1024px) and (max-width: 1199px) and (hover: hover) and (pointer: fine) {
  .site-header .container, .nav-links { gap: var(--space-5); }
  .site-header .nav-cta { padding-inline: var(--space-4); }
}
/* Al 80 %, desde 1.280 px los botones de la cabecera de /invierte caben uno al
   lado del otro sin partir el título. */
@media (min-width: 1280px) and (max-width: 1439px) and (hover: hover) and (pointer: fine) {
  .page-hero--side .page-hero__actions .btn-row { flex-direction: row; align-items: normal; }
}

/* ---- Olas en el degradado de las cabeceras ---------------------------------
   Carlos, 26 de octubre de 2026: «podrías hacer el fondo de los heros el
   degradado como un poco animado como si fueran olas que se mueven
   lentamente», y después «parecen no moverse o se mueven demasiado lentos».
   El degradado mismo se mece y respira (la imagen, ampliada lo justo para que
   no asomen los bordes), y por encima pasan dos bandas de su luz, difusas y a
   destiempo, por debajo del texto y del grano. Solo se anima la
   transformación, que va en la tarjeta gráfica; con movimiento reducido todo
   se queda quieto. */
.hero__bg img, .page-hero__bg img { transform-origin: 50% 50%; will-change: transform; animation: hero-drift 18s ease-in-out infinite alternate; }
@keyframes hero-drift {
  0%   { transform: scale(1.08) translate3d(-2.5%, 1.5%, 0); }
  50%  { transform: scale(1.14) translate3d(1.5%, -1.5%, 0) rotate(.6deg); }
  100% { transform: scale(1.1) translate3d(2.5%, 1%, 0) rotate(-.4deg); }
}
.hero-waves { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-waves::before, .hero-waves::after {
  content: ""; position: absolute; left: -30%; width: 160%; border-radius: 50%;
  filter: blur(40px); mix-blend-mode: screen; will-change: transform;
}
.hero-waves::before {
  top: 14%; height: 42%;
  background: linear-gradient(90deg, rgba(142, 216, 255, 0) 8%, rgba(142, 216, 255, .36) 42%, rgba(191, 216, 227, .48) 62%, rgba(142, 216, 255, 0) 92%);
  transform: rotate(-14deg);
  animation: hero-wave-a 11s ease-in-out infinite alternate;
}
.hero-waves::after {
  top: 50%; height: 36%;
  background: linear-gradient(90deg, rgba(18, 162, 236, 0) 10%, rgba(18, 162, 236, .34) 48%, rgba(18, 162, 236, 0) 90%);
  transform: rotate(-8deg);
  animation: hero-wave-b 14s ease-in-out infinite alternate;
}
@keyframes hero-wave-a {
  0%   { transform: translate3d(-16%, -8%, 0) rotate(-20deg) scaleY(.7); }
  50%  { transform: translate3d(2%, 6%, 0) rotate(-9deg) scaleY(1.3); }
  100% { transform: translate3d(16%, -4%, 0) rotate(-15deg) scaleY(.85); }
}
@keyframes hero-wave-b {
  0%   { transform: translate3d(14%, 8%, 0) rotate(-3deg) scaleY(1.25); }
  50%  { transform: translate3d(-4%, -7%, 0) rotate(-13deg) scaleY(.75); }
  100% { transform: translate3d(-16%, 5%, 0) rotate(-6deg) scaleY(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-waves::before, .hero-waves::after, .hero__bg img, .page-hero__bg img { animation: none; }
}

/* ---- La puerta de la administración ---------------------------------------
   Carlos, 26 de octubre de 2026, con la imagen de un acceso: «mejora el login
   de admin como el que te paso en la imagen». Una tarjeta en dos mitades: la
   oscura, con el degradado de Harpe, el grano y las olas de las cabeceras; y
   la blanca, con el formulario. */
.admin-site--door { background: #E9EFF2; }
.door { display: grid; place-items: center; min-height: calc(100 * var(--vh)); padding: clamp(1rem, .5rem + calc(2 * var(--vw)), 3rem); }
.door__card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: min(100%, 68rem); min-height: min(40rem, calc(100 * var(--vh) - 4rem));
  padding: .875rem; border-radius: 1.75rem; background: var(--color-paper); box-shadow: 0 30px 80px rgba(1, 30, 47, .14);
}
.door__art {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.75rem 2rem 2rem; border-radius: 1.25rem; color: #fff;
  background: radial-gradient(120% 78% at 50% 106%, #2A97D0 0%, #0B5C8E 30%, #06304D 58%, #020E17 90%);
}
.door__logo, .door__foot { position: relative; z-index: 1; }
/* Sobre el negro de arriba, la ola clara se volvía niebla gris: aquí va más tenue. */
.door__art .hero-waves::before { opacity: .45; }
.door__logo { width: 123px; height: auto; }
.door__title { max-width: 11em; font-size: clamp(2.25rem, 1.5rem + calc(2 * var(--vw)), 3.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; }
.door__form { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem clamp(1.5rem, 1rem + calc(3 * var(--vw)), 4.5rem); }
.door__h { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: var(--color-onyx); }
.door__fields { display: grid; gap: .5rem; max-width: 26rem; margin-top: 1.25rem; }
.door__fields .alert { margin: 0 0 .25rem; }
.door__label { margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--color-onyx); }
.door__input {
  height: 3rem; padding: 0 1rem; border: 0; border-radius: .75rem; background: #F1F4F6; color: var(--color-onyx); font: inherit;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.door__input:focus { outline: none; background: var(--color-paper); box-shadow: inset 0 0 0 2px var(--color-azure); }
.door__btn {
  height: 3rem; margin-top: 1.5rem; border: 0; border-radius: .75rem; background: #0C1A22; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 12px 26px rgba(1, 30, 47, .3); transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.door__btn:hover { background: var(--color-navy); }
.door__btn:active { transform: translateY(1px); }
.door__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (max-width: 859px) {
  .door__card { grid-template-columns: 1fr; min-height: 0; }
  .door__art { min-height: 15rem; padding: 1.5rem; }
  .door__title { font-size: 2rem; }
  .door__form { padding: 2rem 1.25rem 1.5rem; }
}
@media (forced-colors: active) { .door__input { border: 1px solid CanvasText; } }

/* ---- Los contactos en la administración ------------------------------------
   Carlos, 26 de octubre de 2026: «pon en admin los formularios de contacto de
   demos y de inversor para que no se nos pierdan los contactos». Los filtros
   y una tarjeta por contacto. */
.admin-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.admin-filter a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 var(--space-4); border-radius: 999px;
  background: var(--color-paper-2); color: var(--color-charcoal); font-size: .9375rem; font-weight: var(--weight-semibold); text-decoration: none;
}
.admin-filter a span { color: var(--color-muted); font-weight: var(--weight-medium); }
.admin-filter a[aria-current="page"] { background: var(--color-navy); color: #fff; }
.admin-filter a[aria-current="page"] span { color: var(--color-azure-light); }
.admin-contacts { display: grid; gap: var(--grid-gap); padding: 0; list-style: none; }
.admin-contact.is-done { opacity: .72; }
.admin-contact__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.admin-contact__head time { margin-left: auto; font-size: var(--text-small); color: var(--color-muted); }
.admin-contact__kind { padding: 2px 10px; border-radius: 999px; background: var(--color-tint); color: var(--color-azure-deep); font-size: .8125rem; font-weight: 700; }
.admin-contact__kind--invest { background: #FBEBD6; color: #7A4E0B; }
.admin-contact__dl { margin-top: var(--space-4); }
.admin-contact__msg { margin-top: var(--space-4); white-space: pre-wrap; color: var(--color-charcoal); }
.admin-contact__state { margin-top: var(--space-4); font-size: var(--text-small); color: var(--color-muted); }
.admin-contact__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-4); }
.admin-contact__drop summary { display: inline-flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--color-error); font-weight: var(--weight-semibold); }
.admin-contact__drop form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
@media (max-width: 699px) {
  /* La columna de 14rem de las etiquetas dejaba una rendija al dato: arriba la etiqueta, debajo el dato. */
  .admin-contact__dl { grid-template-columns: 1fr; gap: 0 var(--space-5); padding: var(--space-4); }
  .admin-contact__dl dd + dt { margin-top: var(--space-3); }
}

/* ---- Los puestos de /empleo ------------------------------------------------
   Carlos, 27 de octubre de 2026, con los tres puestos. Una tarjeta por puesto:
   a la izquierda el título, cuántos, dónde y desde cuándo, y el botón; a la
   derecha el texto del puesto. En el teléfono, el botón va después del texto.
   La candidatura abierta cierra la lista, en oscuro. */
.jobs { display: grid; gap: var(--grid-gap); padding: 0; list-style: none; }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); grid-template-areas: "head body" "apply body";
  grid-template-rows: auto 1fr; gap: var(--space-4) var(--space-10);
  padding: clamp(1.25rem, .6rem + calc(2.2 * var(--vw)), 2.5rem); border-radius: var(--radius-xl); background: var(--color-paper-2);
}
.job__head { grid-area: head; }
.job__body { grid-area: body; }
.job__apply { grid-area: apply; align-self: start; }
.job__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; color: var(--color-muted); font-size: var(--text-small); font-weight: var(--weight-semibold); }
.job__meta li + li::before { content: "·"; margin-right: var(--space-3); }
.job__body p { color: var(--color-charcoal); line-height: 1.6; max-width: 62ch; }
.job__body p + p { margin-top: var(--space-3); }
.job__body .job__plus { color: var(--color-muted); }
.job--open { background: var(--color-navy); }
.job--open .h3 { color: #fff; }
.job--open .job__body p { color: #DCEAF1; }
@media (max-width: 899px) {
  .job { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "apply"; grid-template-rows: none; }
}
/* El código de cada puesto, que lo separa de los demás: en la lista, en su
   página y en el gestor, con la letra de la numeración. Carlos, 27 de octubre de
   2026: «los puestos de trabajo deberían tener un código único». */
.job__code, .admin-app__code {
  font-family: var(--font-enum); font-weight: 400; letter-spacing: var(--tracking-enum); font-variant-numeric: tabular-nums; color: var(--color-azure-deep);
}
.job__meta .job__code { padding: 0 .5rem; border-radius: 6px; background: var(--color-tint); }
.job__meta .job__code + li::before { content: none; }
.job__link { color: inherit; text-decoration: none; }
.job__link:hover { text-decoration: underline; text-underline-offset: .15em; }
.job__apply { display: flex; flex-wrap: wrap; gap: var(--space-3); }
/* La página de un puesto: la ficha a la izquierda, fija al bajar; el texto a
   la derecha, con sus dos títulos. */
.job-page__facts dd.job__code { font-size: 1.125rem; }
.job-page__actions { margin-top: var(--space-6); }
.job-page__facts .link-arrow { display: inline-block; margin-top: var(--space-4); }
.job-page__text h2 + p { margin-top: var(--space-4); }
.job-page__text p + h2 { margin-top: var(--space-10); }
.job-page__text p { color: var(--color-charcoal); line-height: 1.65; max-width: 66ch; }
.job-page__text p + p { margin-top: var(--space-3); }
.job-page__text .job__plus { color: var(--color-muted); }

/* ---- El empleo en la administración ----------------------------------------
   Carlos, 27 de octubre de 2026: «subir su CV y tener un gestor en el admin».
   Las tarjetas de los contactos, con el estado de la selección en color y el
   formulario del estado y las notas del equipo debajo. Cada estado lo dice su
   texto; el color acompaña. */
.admin-app__state { padding: 2px 10px; border-radius: 999px; background: var(--color-tint); color: var(--color-azure-deep); font-size: .8125rem; font-weight: 700; }
/* Lo que se le ha dicho a la persona desde info@harpe.live: el acuse, la
   lectura del CV y el rechazo, cada uno con su marca cuando salió. */
.admin-app__told { display: grid; gap: var(--space-1); margin-top: var(--space-2); padding: 0; list-style: none; font-size: var(--text-small); color: var(--color-muted); }
.admin-app__told li::before { content: "○"; display: inline-block; width: 1.25rem; color: var(--color-muted); }
.admin-app__told li.is-on { color: var(--color-charcoal); }
.admin-app__told li.is-on::before { content: "✓"; color: var(--color-success); font-weight: 700; }
.admin-app__reply { margin-top: var(--space-4); }
.admin-app__reply summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--color-azure); font-weight: var(--weight-semibold); }
.admin-app__reply form { display: grid; gap: var(--space-3); justify-items: start; margin-top: var(--space-2); }
.admin-app__reply .field { width: 100%; }
/* El segundo filtro, por puesto, más ligero que el del estado y pegado a él. */
.admin-filter--jobs { margin-top: calc(-1 * var(--space-3)); }
.admin-filter--jobs a { background: none; box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.admin-filter--jobs a[aria-current="page"] { background: var(--color-navy); box-shadow: none; }
.admin-app__state--nueva { background: var(--color-azure); color: #fff; }
.admin-app__state--revision { background: #FBEBD6; color: #7A4E0B; }
.admin-app__state--entrevista { background: #E6E3F8; color: #3F2F8C; }
.admin-app__state--contratada { background: var(--color-success-bg); color: var(--color-success); }
.admin-app__state--descartada { background: var(--color-paper); color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.admin-app__pos { margin-top: var(--space-2); color: var(--color-charcoal); }
.admin-app__pos b { color: var(--color-onyx); }
.admin-app__review {
  display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr auto; align-items: end; gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-line);
}
.admin-app__review .field { margin: 0; }
.admin-app__review textarea { min-height: 48px; }
@media (max-width: 699px) {
  .admin-app__review { grid-template-columns: 1fr; }
}

/* ---- Las visitas en la administración --------------------------------------
   Carlos, 26 de octubre de 2026: «quiero registrar las visitas a la web y tal
   por un lado y contactos por otro y poco más». Cuatro cifras, una columna por
   día (las páginas vistas detrás, las visitas delante) y cuatro listas, cada
   fila con su barra. Altos .ht-N y anchos .w-N: nada en línea. */
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); margin: 0; }
.admin-kpi { padding: var(--space-5) var(--space-6); background: var(--color-paper-2); border-radius: var(--radius-xl); }
.admin-kpi dt { color: var(--color-muted); font-size: var(--text-small); font-weight: var(--weight-semibold); }
.admin-kpi dd { margin: 0; }
.admin-kpi .admin-kpi__n {
  margin-top: var(--space-2); color: var(--color-navy); font-size: clamp(1.75rem, 1.5rem + calc(.8 * var(--vw)), 2.5rem);
  font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.admin-kpi .admin-kpi__note { margin-top: var(--space-1); color: var(--color-muted); font-size: .8125rem; }
.admin-chart { display: grid; gap: var(--space-4); }
.admin-legend { display: flex; flex-wrap: wrap; gap: var(--space-5); color: var(--color-muted); font-size: var(--text-small); }
.admin-legend span::before {
  content: ""; display: inline-block; width: .75rem; height: .75rem; margin-right: .5rem; border-radius: 3px; vertical-align: -1px;
}
.admin-legend__visits::before { background: var(--color-azure); }
.admin-legend__views::before { background: var(--color-azure-light); }
.admin-bars {
  display: flex; gap: 3px; height: 11rem; margin: 0; padding: 0; list-style: none;
  border-bottom: 1px solid var(--color-line-strong);
}
.admin-bars li { position: relative; flex: 1 1 0; min-width: 0; }
.admin-bars__views, .admin-bars__visits { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.admin-bars__views { background: var(--color-azure-light); }
.admin-bars__visits { left: 20%; right: 20%; background: var(--color-azure); }
.admin-bars li:hover .admin-bars__views { background: var(--color-mist); }
.admin-bars--7 { gap: var(--space-3); margin-bottom: 1.75rem; }
.admin-bars--7 small {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  color: var(--color-muted); font-size: .75rem; white-space: nowrap;
}
.admin-bars--90 { gap: 1px; }
.admin-bars--90 .admin-bars__visits { left: 0; right: 0; }
.admin-axis { display: flex; justify-content: space-between; margin-top: calc(-1 * var(--space-2)); color: var(--color-muted); font-size: .75rem; }
.admin-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.admin-top { display: grid; gap: var(--space-2); margin-top: var(--space-4); padding: 0; list-style: none; }
.admin-top li {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 2.25rem;
  padding: 0 var(--space-3); border-radius: 8px; overflow: hidden; font-size: .9375rem;
}
.admin-top__bar { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(0, 99, 142, .12); }
.admin-top__k { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-top__n { position: relative; color: var(--color-navy); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.admin-top__n small { margin-left: .375rem; color: var(--color-muted); font-size: .8125rem; font-weight: var(--weight-medium); }
.admin-top__none { margin-top: var(--space-3); color: var(--color-muted); font-size: var(--text-small); }
@media (max-width: 899px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-vgrid { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .admin-kpi { padding: var(--space-4); }
  .admin-bars { height: 9rem; }
  .admin-bars--7 { gap: var(--space-2); margin-bottom: 2.5rem; }
  .admin-bars--7 small { text-align: center; line-height: 1.3; }
  .admin-bars--7 small > span:first-child { display: block; }
  .admin-bars__month { display: none; }
}

/* ---- El marco de la administración: la barra lateral ------------------------
   Carlos, 17 de noviembre de 2026: «mejora este panel con una sidenav a la
   izquierda». A la izquierda, oscura y con la luz de Harpe que sube desde
   abajo (la de la puerta), la marca, las tres páginas con lo que espera en
   cada una, la web y la salida. A la derecha el título y la página sobre el
   gris de los paneles, con las tarjetas en blanco. Por debajo de 960 px la
   barra se tumba arriba: la marca y salir, y debajo las tres páginas. */
.admin-site { background: var(--color-paper-2); }
.adm { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: calc(100 * var(--vh)); }
.adm-side {
  position: sticky; top: 0; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 2px;
  height: calc(100 * var(--vh)); padding: 1.5rem .875rem 1rem; color: var(--color-on-dark-2);
  background: radial-gradient(150% 58% at 0% 106%, #2A97D0 0%, #0B5C8E 27%, #06304D 54%, #020E17 88%);
}
.adm-side > * { position: relative; z-index: 1; }
.adm-brand {
  display: grid; justify-items: start; gap: .625rem; margin-bottom: 1rem; padding: 0 .75rem 1.25rem;
  border-bottom: 1px solid var(--color-line-dark); text-decoration: none;
}
.adm-brand img { width: 107px; height: auto; }
.adm-brand__k { color: var(--color-mist); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.adm-nav { display: grid; gap: 2px; }
.adm-ico { flex: none; width: 1.25rem; height: 1.25rem; }
.adm-nav__a, .adm-site {
  position: relative; display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; border-radius: .75rem;
  color: #C3D7E2; text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.adm-nav__a { min-height: 2.75rem; font-size: .9375rem; font-weight: var(--weight-medium); }
.adm-nav__a:hover, .adm-site:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav__a[aria-current="page"] { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* La raya de la página abierta, pegada al borde de la barra. */
.adm-nav__a[aria-current="page"]::before {
  content: ""; position: absolute; top: .625rem; bottom: .625rem; left: -.875rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-light-cyan);
}
.adm-nav__a[aria-current="page"] .adm-ico { color: var(--color-light-cyan); }
.adm-nav__t { flex: 1; }
.adm-nav__n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.375rem; height: 1.375rem; padding: 0 .4375rem;
  border-radius: 999px; background: #C8452F; color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.adm-site { min-height: 2.5rem; margin-top: auto; font-size: .875rem; }
.adm-site .adm-ico { width: 1.125rem; height: 1.125rem; }
.adm-user { display: flex; align-items: center; gap: .625rem; margin-top: .75rem; padding: 1rem .25rem 0 .5rem; border-top: 1px solid var(--color-line-dark); }
.adm-user__av {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: .8125rem; font-weight: 700; text-transform: uppercase;
}
.adm-user__name { flex: 1; min-width: 0; overflow: hidden; color: #fff; font-size: .875rem; font-weight: var(--weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.adm-user__out {
  display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: 0 .75rem; border: 0; border-radius: .625rem;
  background: rgba(255, 255, 255, .09); color: #DCEAF1; font: inherit; font-size: .8125rem; font-weight: var(--weight-semibold); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.adm-user__out:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.adm-user__out .adm-ico { width: 1rem; height: 1rem; }
.adm-nav__a:focus-visible, .adm-site:focus-visible, .adm-brand:focus-visible, .adm-user__out:focus-visible { outline: 2px solid var(--color-focus-on-dark); outline-offset: 2px; }
.adm-main { min-width: 0; padding: clamp(1.5rem, 1rem + calc(2 * var(--vw)), 3rem) clamp(1rem, .25rem + calc(3 * var(--vw)), 3.5rem) 4rem; }
.adm-title, .adm-main .admin { max-width: 80rem; margin-inline: auto; }
.adm-title { margin-bottom: var(--space-6); color: var(--color-onyx); font-size: clamp(1.75rem, 1.45rem + calc(.9 * var(--vw)), 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
/* Sobre el gris, las tarjetas y los filtros en blanco con un filo. */
.admin-site .admin-card, .admin-site .admin-kpi { background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-line), 0 1px 2px rgba(1, 30, 47, .04); }
.admin-site .admin-filter a { background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-line); }
.admin-site .admin-filter a[aria-current="page"] { background: var(--color-navy); box-shadow: none; }
.admin-site .admin-filter--jobs a { background: none; box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.admin-site .admin-filter--jobs a[aria-current="page"] { background: var(--color-navy); box-shadow: none; }
/* Con la barra al lado no caben cuatro cifras por fila hasta que entra el 80 %. */
@media (min-width: 960px) and (max-width: 1023px) {
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .75rem;
    height: auto; padding: .875rem 1rem 0; background: radial-gradient(120% 160% at 100% 0%, #0B5C8E 0%, #06304D 46%, #020E17 92%);
  }
  .adm-brand { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: .75rem; margin: 0; padding: 0; border: 0; }
  .adm-brand img { width: 96px; }
  .adm-site { display: none; }
  .adm-user { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .adm-nav { grid-column: 1 / -1; display: flex; gap: .25rem; margin: 0 -1rem; padding: 0 .5rem; overflow-x: auto; scrollbar-width: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav__a { flex: none; min-height: 3rem; border-radius: 0; }
  .adm-nav__a:hover, .adm-nav__a[aria-current="page"] { background: none; }
  .adm-nav__a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-light-cyan); }
  .adm-nav__a[aria-current="page"]::before { display: none; }
}
/* En el teléfono las tres páginas caben en la fila sin sus dibujos. */
@media (max-width: 479px) {
  .adm-brand__k, .adm-user__name, .adm-nav .adm-ico { display: none; }
  .adm-nav__a { gap: .5rem; padding: 0 .625rem; }
}
@media (forced-colors: active) { .adm-nav__a[aria-current="page"] { outline: 2px solid CanvasText; } }

/* ==========================================================================
   Kit 5.1 (7 de noviembre de 2026): Eco, el módulo de Atria para el
   combatiente, en /productos/atria/eco, y lo que sus diez secciones
   añaden a los componentes de siempre. El tema oscuro va al final.
   ========================================================================== */

/* ---- Una subpágina bajo su producto: menú del teléfono y pie --------------
   Atria Visión y Atria Eco cuelgan de Atria (SUBPAGES en lib/i18n.php):
   van en una lista dentro del elemento de Atria, sangrada hasta el nombre y
   en letra menor. */
.mobile-menu .mobile-menu__sub { margin-top: 0; border-top: 0; }
.mobile-menu .mobile-menu__sub a {
  padding: var(--space-3) 0 var(--space-3) calc(2.2rem + var(--space-4));
  font-size: 1.125rem; font-weight: var(--weight-semibold); color: var(--color-on-dark-2);
}
.site-footer .site-footer__sub { margin-top: var(--space-2); padding-left: var(--space-4); }
@media (min-width: 700px) { .site-footer .site-footer__sub { margin-top: 0; } }

/* ---- Una tarjeta de la rejilla que lleva a una página ---------------------
   El enlace es el título y cubre la tarjeta, como en la tarjeta de pestaña:
   la tarjeta Eco en los módulos de Atria. */
.tile__link { color: inherit; }
.tile__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile__link:focus-visible { outline: none; }
.tile--link { transition: transform var(--dur) var(--ease); }
.tile--link:hover { transform: translateY(-4px); }
.tile--link:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tile--link:hover { transform: none; } }

/* ---- Tabla comparativa y tabla de modos -----------------------------------
   Una fila por caso y una columna por titular. La última columna responde y
   va en azul noche, como la columna de Harpe en la comparativa. En el
   teléfono cada fila es un bloque y cada celda lleva el nombre de su columna
   (data-label): nada se desplaza de lado. */
.ctable-wrap:not(.stack-title) { margin-top: var(--space-10); }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 1rem; line-height: 1.5; }
.ctable th, .ctable td { padding: var(--space-5) var(--space-6); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.ctable thead th {
  padding-block: var(--space-4); border-bottom: 2px solid var(--color-azure);
  font-size: var(--text-kicker); font-weight: var(--weight-bold); letter-spacing: var(--tracking-kicker); line-height: 1.35;
  text-transform: uppercase; color: var(--color-muted);
}
.ctable tbody th { font-weight: var(--weight-semibold); color: var(--color-onyx); }
.ctable td { color: var(--color-charcoal); }
.ctable--accent :is(th, td):last-child { background: var(--color-navy); color: var(--color-on-dark); border-bottom-color: var(--color-line-dark); }
.ctable--accent thead th:last-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; color: var(--color-mist); }
.ctable--accent tbody tr:last-child td:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (max-width: 699px) {
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ctable tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); }
  .ctable tbody th, .ctable td { padding: var(--space-1) 0; border-bottom: 0; }
  .ctable tbody :is(th, td)::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: .75rem; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted);
  }
  .ctable--accent tbody td:last-child, .ctable--accent tbody tr:last-child td:last-child { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
  .ctable--accent tbody td:last-child::before { color: var(--color-mist); }
}

/* ---- Línea temporal: los pasos verticales unidos por una línea ------------
   Un caso contado hora a hora. Sin separadores: la línea va de un círculo al
   siguiente. */
.steps--timeline li { position: relative; padding: 0 0 var(--space-8); border-bottom: 0; }
.steps--timeline li:last-child { padding-bottom: 0; }
.steps--timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 44px; bottom: var(--space-2);
  width: 2px; border-radius: 1px; background: var(--color-line);
}

/* ---- La frase que cierra una lista numerada ------------------------------ */
.nlist__text { margin-top: var(--space-5); font-size: 1rem; line-height: 1.5; color: var(--color-charcoal); }

/* ---- Filas de etiquetas numeradas, con una frase en lugar de etiquetas ----
   Las fases de Eco: número, nombre y lo que trae. */
.chiprow .enum { margin-right: var(--space-3); color: var(--color-azure); }
.chiprow__text { max-width: 46em; padding: var(--space-1) 0 var(--space-2); font-size: var(--text-lead); line-height: 1.5; color: var(--color-charcoal); }

/* ---- La ilustración recortada y la galería de dos imágenes ---------------
   El casco sin fondo se queda a su tamaño, centrado sobre la sección. Las dos
   fotos del casco van de dos en dos desde 700 px. */
.figure--cutout { text-align: center; }
.figure--cutout img { width: min(100%, 28rem); margin-inline: auto; border-radius: 0; filter: drop-shadow(0 30px 50px color-mix(in srgb, var(--color-night) 70%, transparent)); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 699px) { .gallery--2 { grid-template-columns: 1fr; } }

/* ---- Cabecera de ARX: la pareja del casco en su panel ------------------------
   ARX lleva la plantilla de producto de las demás (Carlos: «la página de ARX
   no sigue el estilo de las otras ... tiene que tener lo del degradado del
   hero»): el degradado de su encuadre y, donde las otras llevan la captura a
   caballo entre el degradado y el blanco, un panel azul noche con los dos
   recortes, visor cerrado y visor abierto, enteros hasta los hombros (libro de
   marca 7.13: «Visor cerrado y abierto, los dos en el mismo sentido, sobre el
   degradado de marca»). Cuelga como la captura (.page-hero--shot), con su
   propia proporción: --ratio es el alto del panel entre su ancho. Los cascos
   apoyan los hombros en el borde de abajo del panel. */
.page-hero--pair { --ratio: .64; --hang: calc(var(--sw) * var(--ratio) * var(--below) + var(--cap)); }
@media (min-width: 700px) { .page-hero--pair { --ratio: .46; } }
@media (min-width: 1024px) { .page-hero--pair { --ratio: .33; } }
.page-hero__pair { margin: 0; }
.page-hero__pair ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: clamp(.75rem, calc(3 * var(--vw)), 4rem);
  height: calc(var(--sw) * var(--ratio)); margin: 0; padding: clamp(.75rem, .25rem + calc(1.5 * var(--vw)), 2rem) clamp(.75rem, calc(6 * var(--vw)), 7rem) 0;
  list-style: none; overflow: hidden; border-radius: var(--radius-lg, 18px);
  background: radial-gradient(ellipse 65% 85% at 50% 30%, var(--color-azure-deep) 0%, var(--color-navy) 48%, var(--color-night) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 24px 64px color-mix(in srgb, var(--color-night) 34%, transparent);
}
.page-hero__pair li { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 26rem; height: 100%; min-height: 0; }
.page-hero__pair img {
  display: block; flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 32px color-mix(in srgb, var(--color-night) 70%, transparent));
}
.page-hero__pair-tag { display: inline-flex; flex: none; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-small); font-weight: 600; color: var(--color-on-dark-2); }
.page-hero__pair-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-mist); }
.page-hero__pair-open .page-hero__pair-tag::before { background: var(--color-light-cyan); box-shadow: 0 0 6px 1px var(--color-cyan); }
.page-hero__pair figcaption { margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-muted); }
@media (max-width: 699px) { .page-hero__pair-tag { font-size: .8125rem; } }

/* ---- Cabecera de Atria Eco: la esfera viva ------------------------------
   Una esfera de puntos con olas que la recorren, que gira y respira, dibujada
   por assets/js/orb.js (Carlos: «una pelota así animada como con olas
   flotando para dar la sensación de que [Atria Eco] ... es como algo vivo»).
   A la derecha del texto desde 1.024 px; debajo, en el teléfono y la tableta.
   Detrás, un halo de noche quieto: la esfera se lee también sobre la luz del
   degradado, y sin script queda el halo. */
.page-hero--orb .page-hero__inner { max-width: 44rem; }
.page-hero__orb { position: relative; width: min(100%, 24rem); margin: var(--space-8) auto 0; aspect-ratio: 1; pointer-events: none; }
.page-hero__orb::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-night) 92%, transparent) 0%, color-mix(in srgb, var(--color-night) 70%, transparent) 58%, transparent 100%);
}
/* The canvas stands out of its box by 17.5 % on every side (OVER in orb.js):
   the sphere keeps the size of the box and its halo fades out before the edge. */
.page-hero__orb .orb { position: absolute; inset: -17.5%; display: block; width: 135%; height: 135%; }
@media (min-width: 1024px) {
  .page-hero--orb .page-hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); column-gap: clamp(2rem, 1rem + calc(3 * var(--vw)), 5rem); align-items: center; }
  .page-hero__orb { width: 100%; margin: calc(-1 * var(--space-6)) 0; }
}

/* ---- Atria Eco habla: el escenario de la cabecera ----------------------
   La esfera en el centro y, a su alrededor, los mensajes de una patrulla
   ficticia, en tarjetas con el corte del símbolo y su número en Offside, como
   los pasos y las capacidades, sin bordes. Carlos: «tiene que ser todo como en
   el mismo sitio y están los mensajes alrededor», y después «haz que las
   tarjetas sean más harpe y que los mensajes vayan solos o clicando». Los
   mensajes pasan solos mientras la esfera está a la vista; cada uno es un botón
   que lo dice, y otro botón para y reanuda el paso (assets/js/talk.js). Sin
   script, los mensajes se leen enteros alrededor de una esfera quieta. Lo que no
   se dice va en el gris claro de la noche, que conserva el contraste; el nivel
   lleva su color en el punto y su nombre en claro. */
.page-hero--talk { padding: 0; }
.talk-stage { position: relative; isolation: isolate; overflow: hidden; }
.talk-stage__grid {
  position: relative; z-index: 1;
  padding-block: calc(var(--nav-h) + clamp(2rem, 1rem + calc(3 * var(--vw)), 3.5rem)) clamp(3.5rem, 2rem + calc(4 * var(--vw)), 6rem);
}
.talk-ring { position: relative; }
/* The cards are the brand's flat glass (cristal plano: a night veil over the
   blurred stage, a light at the top, no shadow) and the message being said is
   the one solid card, in navy. Carlos: «pon las tarjetas modo cristal excepto
   la que se este reproducciendo», and then «pon las tarjetas más transparentes
   y ten cuidado que no se pisen». A light veil (.34) over a lightly blurred,
   slightly dimmed stage, so the cards take its blue; what keeps the letters
   readable over the light corner is a night halo round each one: under every
   letter, halo included, 4.5:1 or more at 1280 x 720, 1440 x 700, 1440 x 900
   and 1920 x 1080. */
.talk__msg {
  --card-bg: rgb(0 22 36 / .34); display: block; width: 100%; padding: var(--space-4) var(--space-5) var(--space-5); border: 0; border-radius: var(--radius-xl);
  font: inherit; text-align: left; color: var(--color-on-dark-2); background: none; cursor: pointer;
  text-shadow: 0 0 1px rgb(0 22 36 / .9), 0 0 5px rgb(0 22 36 / .85), 0 0 12px rgb(0 22 36 / .7);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.talk__msg::before {
  background-image: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / 0) 33%);
  -webkit-backdrop-filter: blur(12px) saturate(150%) brightness(.8);
  backdrop-filter: blur(12px) saturate(150%) brightness(.8);
}
.talk__msg:hover { --card-bg: rgb(0 22 36 / .45); }
.talk__msg:focus-visible { outline: 2px solid var(--color-focus-on-dark); outline-offset: 3px; }
.talk__msg[aria-pressed="true"] { --card-bg: var(--color-navy); color: var(--color-on-dark); text-shadow: none; }
.talk__msg[aria-pressed="true"]::before { background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .talk__msg { --card-bg: var(--glass-fallback); } }
@media (prefers-reduced-transparency: reduce) {
  .talk__msg { --card-bg: var(--glass-fallback); }
  .talk__msg::before { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* A card that cannot keep the sphere going (orb.js marks the canvas data-lean once its quality has
   come down twice) loses the blur too: every card over the moving canvas blurs it again every frame. */
.talk-ring:has([data-orb][data-lean]) .talk__msg { --card-bg: var(--glass-fallback); }
.talk-ring:has([data-orb][data-lean]) .talk__msg::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
.talk__k {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding-right: var(--space-8);
  font-size: .75rem; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--color-mist);
}
.talk__k .enum { font-size: 1rem; font-weight: 400; letter-spacing: var(--tracking-enum); }
.talk__time { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.talk__level { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-on-dark-2); }
.talk__level::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lvl, currentColor); }
.talk__level--info { --lvl: var(--color-cyan); }
.talk__level--aviso { --lvl: var(--color-card-amber-1); }
.talk__level--peligro { --lvl: var(--color-ui-alert); }
.talk__text { display: block; margin-top: var(--space-2); font-size: 1rem; line-height: 1.35; font-weight: var(--weight-semibold); }
/* The letters take the colour of their level: blue for Información, orange for
   Aviso and Peligro inmediato (Carlos: «los baners de informacion no se leen y
   las letras que se coloreen de azul y de naranjado»). While a message is said,
   its words go from grey to that colour one by one. */
.talk__msg[data-level="info"] .talk__text, .talk__now[data-level="info"] .talk__text { color: var(--color-light-cyan); }
.talk__msg:is([data-level="aviso"], [data-level="peligro"]) .talk__text, .talk__now:is([data-level="aviso"], [data-level="peligro"]) .talk__text { color: var(--color-card-amber-1); }
.talk__w { transition: color var(--dur-fast) var(--ease); }
.talk__msg[data-spoken][aria-pressed="true"] .talk__w:not(.is-said), .talk__now[data-spoken] .talk__w:not(.is-said) { color: var(--color-on-dark-3); }
/* The information the emergency breaks off (Carlos: «haz una de información
   interrumpida, o sea está dando una info y se interrumpe a algo concreto de
   emergencia»). While it is said (.is-from) the card wears the information's
   level, its words light up in the information's blue and the emergency waits
   unseen, holding its place; when the emergency cuts in, the label turns and
   what was said stays in grey where it broke off, above the emergency. */
.talk__cut { display: block; margin-top: var(--space-2); font-size: .875rem; line-height: 1.35; color: var(--color-on-dark-3); }
.talk__level--from { display: none; }
.is-from .talk__level--from { display: inline-flex; }
/* The emergency's label is only hidden from sight while the information is said: the
   button's name keeps the card's level. */
.is-from .talk__level:not(.talk__level--from) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-from .talk__said .talk__w.is-said { color: var(--color-light-cyan); }
.talk__cut + .talk__text { transition: opacity var(--dur-fast) var(--ease); }
.is-from .talk__text { opacity: 0; }
.talk__now { margin: 0; }
.talk__now:empty { display: none; }
.talk__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); }
.talk__play, .talk__sound {
  padding: .45rem 1rem; font: inherit; font-size: .8125rem; font-weight: var(--weight-semibold); color: var(--color-on-dark); cursor: pointer;
  background: var(--glass-fallback); border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
}
.talk__play:hover, .talk__sound:hover { background: var(--color-navy); }
.talk__play:focus-visible, .talk__sound:focus-visible { outline: 2px solid var(--color-focus-on-dark); outline-offset: 3px; }
/* El sonido es el altavoz, tachado mientras calla (Carlos, 17 de noviembre de
   2026: «el típico símbolo de audio tachado o no»): un botón redondo del alto
   del de pausa, con su nombre para el lector de pantalla y al pasar el ratón. */
.talk__sound { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; }
.talk__sound[hidden] { display: none; }
.talk__ico { width: 1.25rem; height: 1.25rem; }
.talk__sound .talk__ico--on, .talk__sound[data-sound] .talk__ico--off { display: none; }
.talk__sound[data-sound] .talk__ico--on { display: block; }
@media (min-width: 1024px) {
  /* La cabecera ocupa la pantalla: el texto a la izquierda y el corro a la
     derecha, con los mensajes en el sentido de las agujas del reloj. --vh
     deshace el zoom del 80 %. */
  .talk-stage { display: flex; align-items: center; min-height: calc(100 * var(--vh)); }
  .talk-stage__grid {
    display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); column-gap: clamp(2rem, 1rem + calc(3 * var(--vw)), 5rem); align-items: center;
  }
  /* Six messages of Atria Eco in a hexagon, clockwise from the top left.
     Carlos: «ten cuidado que no se pisen». On a grid of three rows, so a card
     that grows pushes its neighbours instead of covering them and the ring
     grows if the six need more height; the middle pair stays level with the
     sphere's equator. The gap leaves room for the card being said, which grows
     a little. The ring's height is the empty ::before, at most the height there
     is (--ring-h); on a low screen the ring widens into the room at its sides,
     up to 1.5 times its height, so the cards move away from the sphere instead
     of into it. Offsets in cqw, hundredths of the ring's width. */
  .talk-ring {
    --ring-h: calc(100 * var(--vh) - var(--nav-h) - 10rem);
    justify-self: center; width: min(100%, 60rem, calc(var(--ring-h) * 1.5));
    container-type: inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto 1fr; row-gap: var(--space-5);
  }
  .talk-ring::before { content: ""; grid-area: 1 / 1 / -1 / -1; aspect-ratio: 1.15; max-height: var(--ring-h); }
  .talk-ring .page-hero__orb { position: absolute; left: 50%; top: 50%; width: min(60%, calc(var(--ring-h) * .69)); margin: 0; transform: translate(-50%, -50%); }
  .talk__msg { width: min(15rem, 30cqw); }
  .talk__msg[aria-pressed="true"] { transform: scale(1.04); }
  /* The level always starts the second line, clear of the cut corner, so it
     has the card's whole width: «Peligro inmediato» keeps to one line and
     «Información» fits the narrow cards of a tablet. */
  .talk__msg .talk__k { padding-right: 0; }
  .talk__msg .talk__level { flex-basis: 100%; }
  .talk__msg--1 { grid-area: 1 / 1; align-self: start; justify-self: start; margin: 2.6cqw 0 0 1cqw; }
  .talk__msg--2 { grid-area: 1 / 2; align-self: start; justify-self: end; margin: 2.6cqw 1cqw 0 0; }
  /* The two at mid height stand clear of the sphere's equator, where the bands
     swell most while it speaks. */
  .talk__msg--3 { grid-area: 2 / 2; align-self: center; justify-self: end; width: min(13rem, 26cqw); margin-right: -3cqw; }
  .talk__msg--4 { grid-area: 3 / 2; align-self: end; justify-self: end; margin: 0 1cqw 5.2cqw 0; }
  .talk__msg--5 { grid-area: 3 / 1; align-self: end; justify-self: start; margin: 0 0 5.2cqw 1cqw; }
  .talk__msg--6 { grid-area: 2 / 1; align-self: center; justify-self: start; width: min(13rem, 26cqw); margin-left: -3cqw; }
  .talk__now { display: none; }
  /* Once the emergency is said, what was cut off keeps to one grey line, so the
     07:12 card stays clear of 07:13 on a laptop screen; while the information is
     said it has its room, and the emergency, not yet said, takes none. */
  .talk__msg .talk__cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .talk__msg.is-from .talk__cut { white-space: normal; }
  .talk__msg.is-from .talk__text { display: none; }
  .talk__foot { position: absolute; left: 50%; top: 100%; margin-top: var(--space-4); transform: translateX(-50%); white-space: nowrap; }
}
@media (min-width: 1024px) and (max-height: 780px) {
  /* On a short laptop screen the ring is too small for that line too: once the
     emergency cuts in the card keeps the emergency alone; the label has turned
     from Información, and the button's name still says it was cut. */
  .talk__msg:not(.is-from) .talk__cut { display: none; }
}
@media (max-width: 1023px) {
  /* En el teléfono no caben seis tarjetas alrededor de la esfera: la esfera,
     el mensaje que se dice debajo, en una tarjeta con el corte, y las seis
     horas como botones con el punto de su nivel; el mensaje entero sigue dentro
     de cada botón para los lectores de pantalla. El fondo se queda en la
     primera pantalla y se funde en la noche. */
  .talk-stage .page-hero__bg, .talk-stage .hero-waves {
    bottom: auto; height: calc(100 * var(--vh));
    -webkit-mask-image: linear-gradient(to bottom, var(--color-night) 50%, transparent);
    mask-image: linear-gradient(to bottom, var(--color-night) 50%, transparent);
  }
  .talk-ring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-8); }
  .talk-ring .page-hero__orb { grid-column: 1 / -1; width: min(70vw, 19rem); margin: 0 auto; }
  .talk__now { position: relative; isolation: isolate; grid-column: 1 / -1; grid-row: 2; min-height: 7.5rem; padding: var(--space-4) var(--space-5) var(--space-5); color: var(--color-on-dark); border-radius: var(--radius-xl); }
  .talk__now::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--color-navy);
    -webkit-mask: var(--cut-mask); mask: var(--cut-mask);
  }
  .talk__now .talk__text { font-size: 1.0625rem; }
  .talk__msg { padding: var(--space-2) var(--space-1); text-align: center; border-radius: var(--radius-md); }
  .talk__msg::before { -webkit-mask: none; mask: none; }
  .talk__msg .talk__k { justify-content: center; gap: var(--space-2); padding-right: 0; font-size: .8125rem; letter-spacing: .04em; }
  .talk__msg .talk__k .enum { display: none; }
  .talk__msg .talk__level { font-size: 0; gap: 0; }
  .talk__msg .talk__who, .talk__msg .talk__cut, .talk__msg .talk__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .talk__foot { grid-column: 1 / -1; margin-top: var(--space-3); }
}

/* ---- Banda de contacto con foto -------------------------------------------
   El casco con el visor cerrado, oscurecido a la izquierda para el texto. En
   el teléfono el texto ocupa la banda entera: el velo cubre toda la foto.
   Sobre la página oscura, el azul noche de la foto se confunde con el fondo:
   un hilo claro, el de las capturas sobre oscuro, dibuja la banda. */
.cta-banner--photo > img { object-position: 100% 50%; }
.theme-dark .cta-banner { box-shadow: 0 0 0 1px var(--color-line-dark); }
.cta-banner--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-night) 90%, transparent) 0%, color-mix(in srgb, var(--color-night) 60%, transparent) 42%, transparent 72%);
}
@media (max-width: 699px) {
  .cta-banner--photo > img { object-position: 75% 40%; }
  .cta-banner--photo::before { background: linear-gradient(180deg, color-mix(in srgb, var(--color-night) 85%, transparent), color-mix(in srgb, var(--color-night) 60%, transparent)); }
}

/* ---- Tema oscuro de página ------------------------------------------------
   El kit: «Tema oscuro en toda la página, porque el casco y el visor viven
   sobre azul noche». La página va en Noche y la sección alterna en Navy; las
   tarjetas, sobre un velo blanco, y la tarjeta en azul noche sigue en Navy
   (en Noche si cae sobre una sección alterna). En la rejilla el velo es más
   tenue: con el de las demás, la tarjeta en azul noche no se distinguía.
   Textos y líneas toman los
   colores sobre oscuro de los tokens. El rojo de amenaza no aparece: ninguna
   sección lleva la maqueta del visor. */
body.theme-dark { --theme-card: color-mix(in srgb, var(--color-on-dark) 8%, transparent); background: var(--color-night); color: var(--color-on-dark); }
.theme-dark .section--alt { background: var(--color-navy); }
.theme-dark main :focus-visible { outline-color: var(--color-focus-on-dark); }
.theme-dark main .kicker { color: var(--color-mist); }
.theme-dark main .lead { color: var(--color-on-dark-2); }
.theme-dark .tile, .theme-dark .flow__step { --card-bg: var(--theme-card); color: var(--color-on-dark); }
.theme-dark .tile { --card-bg: color-mix(in srgb, var(--color-on-dark) 4.5%, transparent); }
.theme-dark .tile--dark { --card-bg: var(--color-navy); }
.theme-dark .section--alt .tile--dark { --card-bg: var(--color-night); }
.theme-dark .tile p, .theme-dark .flow__step p { color: var(--color-on-dark-2); }
.theme-dark .flow__k, .theme-dark .flow__step:not(:last-child)::after { color: var(--color-mist); }
.theme-dark .note-band { background: var(--theme-card); color: var(--color-on-dark-2); }
.theme-dark .nlist li { border-bottom-color: var(--color-line-dark); color: var(--color-on-dark-2); }
.theme-dark .nlist .enum, .theme-dark .chiprow .enum { color: var(--color-mist); }
.theme-dark .nlist b { color: var(--color-on-dark); }
.theme-dark .nlist__text, .theme-dark .chiprow__text, .theme-dark .steps p { color: var(--color-on-dark-2); }
.theme-dark .steps li { border-bottom-color: var(--color-line-dark); }
.theme-dark .steps li:last-child .enum { background: var(--color-mist); color: var(--color-night); }
.theme-dark .steps--timeline li::before { background: var(--color-line-dark); }
.theme-dark .chiprow { border-top-color: var(--color-line-dark); }
.theme-dark .chiprow:first-child { border-top-color: var(--color-mist); }
.theme-dark .figure figcaption { color: var(--color-on-dark-3); }
.theme-dark .ctable :is(th, td), .theme-dark .ctable tr { border-bottom-color: var(--color-line-dark); }
.theme-dark .ctable thead th { border-bottom-color: var(--color-mist); color: var(--color-mist); }
.theme-dark .ctable tbody th { color: var(--color-on-dark); }
.theme-dark .ctable td { color: var(--color-on-dark-2); }
.theme-dark .ctable--accent :is(th, td):last-child { background: var(--theme-card); color: var(--color-on-dark); }
.theme-dark .ctable tbody :is(th, td)::before { color: var(--color-mist); }

/* ==========================================================================
   Version 5 on harpe.live: the bookmark cards (lib/blocks.php,
   block_bookmarks) and what the site adds to them.
   ========================================================================== */

/* On navy the focus colour of paper is lost, as for every other ring. */
.section--dark .bookmark:focus-within { filter: drop-shadow(0 0 1.5px var(--color-focus-on-dark)) drop-shadow(0 0 1.5px var(--color-focus-on-dark)) drop-shadow(0 22px 28px rgba(0, 30, 46, .35)); }

/* ==========================================================================
   Version 5.5 on harpe.live (8 November 2026): Atria Eco on the front
   page, the insignias of the modules and the four views of ARX.
   ========================================================================== */

/* Five product cards on the front: the two main products wide, the module and
   the complement cards under them, three to a row. */
.tabcards--5 { grid-template-columns: repeat(6, 1fr); }
.tabcards--5 > :nth-child(-n+2) { grid-column: span 3; }
.tabcards--5 > :nth-child(n+3) { grid-column: span 2; }
@media (max-width: 1023px) {
  .tabcards--5 { grid-template-columns: repeat(2, 1fr); }
  .tabcards--5 > :nth-child(n) { grid-column: auto; }
  .tabcards--5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 699px) { .tabcards--5 { grid-template-columns: 1fr; } }

/* The icon of a module in its card of Atria's modules, over the name (kit 5.7). */
.tile__icon { display: block; width: 32px; height: 32px; object-fit: contain; margin-bottom: var(--space-3); }

/* The four views of ARX: two by two, and on the phone a carousel that snaps
   to each view (kit 5.5). The caption the four share goes under them. */
.gallery-group { margin-inline: 0; margin-bottom: 0; }
.gallery-group > figcaption { margin-top: var(--space-5); font-size: var(--text-caption); color: var(--color-muted); }
.theme-dark .gallery-group > figcaption { color: var(--color-on-dark-3); }
.gallery--4 { grid-template-columns: repeat(2, 1fr); max-width: 60rem; }
@media (max-width: 699px) {
  .gallery--4 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--space-4);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: var(--space-3);
  }
  .gallery--4 > li { scroll-snap-align: start; }
}

/* ==========================================================================
   ARX in motion (assets/js/eco.js): the visor switch in «Prioridades»
   and the turntable of the four views in «El casco». Carlos, 8 November
   2026: «intenta hacer cosas interactivas, por ejemplo pasar de versión
   cerrada a no». The script adds .is-ready; until then, and without it,
   these rules leave the still pictures as they were. Since 10 November they
   live on the ARX page, which has the light sections of the product template
   (Carlos: «la página de ARX no sigue el estilo de las otras»): the controls
   are drawn for a light ground.
   ========================================================================== */

/* The switch both pieces share: pills on the card grey, the pressed one white. */
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-panel); }
.seg[hidden], .turn__bar[hidden], .turn__hint[hidden] { display: none; }
.seg__btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted);
  font: inherit; font-size: var(--text-small); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.seg__btn:hover { background: color-mix(in srgb, var(--color-navy) 6%, transparent); color: var(--color-onyx); }
.seg__btn[aria-pressed="true"] { background: var(--color-paper); color: var(--color-onyx); box-shadow: 0 1px 3px color-mix(in srgb, var(--color-night) 16%, transparent), inset 0 0 0 1px var(--color-line-strong); }
.seg__btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
/* The LED of the visor switch: grey with the visor closed, cyan when it lights. */
.seg__led { width: 7px; height: 7px; border-radius: 50%; background: var(--color-field-border); opacity: .6; transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.seg__btn[aria-pressed="true"] .seg__led { opacity: 1; background: var(--color-azure); }
[data-visor-set="open"][aria-pressed="true"] .seg__led { background: var(--color-cyan); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--color-cyan) 55%, transparent); }

/* ---- The visor switch -----------------------------------------------------
   Two frames of the same render, so only the visor changes: the open one lies
   on the closed one and shows or hides, nothing more (Carlos: «que solo sea
   ponerse una imagen u otra»). The helmet sits on a night blue panel like the
   pair of the header, its shoulders on the lower edge. */
.visor__stage {
  --vp: clamp(1rem, .5rem + calc(2 * var(--vw)), 2.5rem);
  position: relative; width: min(100%, 30rem); margin-inline: auto; padding: var(--vp) var(--vp) 0; overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 70% 80% at 50% 35%, var(--color-azure-deep) 0%, var(--color-navy) 50%, var(--color-night) 100%);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--color-night) 22%, transparent);
}
.figure--cutout.visor .visor__img { display: block; width: 100%; filter: drop-shadow(0 18px 32px color-mix(in srgb, var(--color-night) 70%, transparent)); }
.visor__img--open { position: absolute; top: var(--vp); left: var(--vp); width: calc(100% - 2 * var(--vp)); height: calc(100% - var(--vp)); opacity: 0; }
.visor.is-ready .visor__stage { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.visor.is-open .visor__img--open { opacity: 1; }
.visor__switch { display: flex; width: max-content; max-width: 100%; margin: var(--space-6) auto 0; }
.visor figcaption { margin-top: var(--space-4); }

/* ---- The turntable --------------------------------------------------------
   The four views lie in one cell of the grid and the one in front shows:
   the bar or the arrow keys put one or another, without a fade or a slide. On a phone
   the bar is two arrows and four dots, and the caption of the view says
   which one it is; from 1.024 px the views are a numbered list right of the
   helmet. */
.turn { --turn-w: 34rem; }
.turn.is-ready .gallery {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto;
  max-width: var(--turn-w); overflow: visible; scroll-snap-type: none; padding-bottom: 0;
}
.turn.is-ready .gallery:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-lg); }
.turn.is-ready .gallery > li { grid-area: 1 / 1; visibility: hidden; }
.turn.is-ready .gallery > li.is-active { visibility: visible; }
.turn.is-ready .gallery figcaption { text-align: center; }
.turn__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-2); max-width: var(--turn-w); margin-top: var(--space-5); }
.turn__step {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--color-line-strong); border-radius: 50%; background: var(--color-paper); color: var(--color-navy); cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.turn__step:hover { background: var(--color-tint); border-color: var(--color-azure); }
.turn__step:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.turn__step svg { width: 20px; height: 20px; }
.turn__views .enum { display: none; }
.turn__hint { max-width: var(--turn-w); margin-top: var(--space-3); font-size: var(--text-caption); color: var(--color-muted); text-align: center; }
.turn.is-ready > figcaption { max-width: var(--turn-w); text-align: center; }
@media (max-width: 699px) {
  /* Dots: the name stays for a screen reader, the caption says it on screen. */
  .turn__views { border-color: transparent; background: none; }
  .turn__views .seg__btn { width: 32px; min-height: 44px; padding: 0; justify-content: center; box-shadow: none; background: none; }
  .turn__views .seg__btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-field-border); opacity: .6; transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .turn__views .seg__btn[aria-pressed="true"]::before { width: 22px; border-radius: 4px; background: var(--color-azure); opacity: 1; }
  .turn__views .seg__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1024px) {
  .turn { --turn-w: 38rem; }
  .turn.is-ready { display: grid; grid-template-columns: minmax(0, var(--turn-w)) minmax(0, 20rem); column-gap: var(--space-16); align-items: center; }
  .turn.is-ready > .gallery { grid-column: 1; grid-row: 1 / span 2; }
  .turn.is-ready > .turn__bar { grid-column: 2; grid-row: 1; align-self: end; flex-wrap: wrap; justify-content: flex-start; margin-top: 0; }
  .turn.is-ready > .turn__hint { grid-column: 2; grid-row: 2; align-self: start; text-align: left; }
  .turn.is-ready > figcaption { grid-column: 1; grid-row: 3; }
  .turn__views { order: -1; flex-direction: column; width: 100%; margin-bottom: var(--space-3); border-radius: var(--radius-lg); }
  .turn__views .seg__btn { justify-content: flex-start; gap: var(--space-4); min-height: 48px; border-radius: var(--radius-md); font-size: var(--text-body); }
  .turn__views .enum { display: inline; font-size: var(--text-caption); color: var(--color-azure); }
}

@media (prefers-reduced-motion: reduce) {
  .seg__btn, .seg__led, .turn__views .seg__btn::before { transition: none; }
}

/* ==========================================================================
   The whole family on the front page (10 November 2026). Carlos: «en la home
   no se ven todas las cosas», after «pon ARX como un producto» (said of the
   bar) and «utiliza más el tipo de tarjetas que te ponemos». Six product
   cards, Atalaya and Atria wide over Atria Visión, Atria Eco, Atria Edge
   and ARX at the kit's own card width.
   Approved by Carlos on 11 November 2026 («subelo todo»): two wide over
   four, the sectors of Atalaya beside its list and the four stories closing
   «En local» (the last three rules).
   ========================================================================== */

/* Two wide over four, on the four columns .tabcards already has. From 700 to
   1.023 px two columns in three even rows, and one column under that. */
.tabcards--6 > :nth-child(-n+2) { grid-column: span 2; }
@media (max-width: 1023px) { .tabcards--6 > :nth-child(-n+2) { grid-column: auto; } }
/* Atria Eco and ARX have no figure: the foot of the narrow row keeps the
   height of one with a figure, so the four dividers stay level. A card
   narrower than the longest figure label needs (Atria Vision's in English,
   249,5 px, and the 44 px of the foot) breaks it in two lines, and the four
   feet count two. */
.tabcards--6 > :nth-child(n+3) { container-type: inline-size; }
.tabcards--6 > :nth-child(n+3) .tabcard__foot {
  min-height: calc(1px + var(--space-4) + 1.1 * var(--text-stat) + 2px + 1.21875rem + var(--space-3) + 1.5rem);
  justify-content: flex-end;
}
@container (max-width: 18.5rem) {
  .tabcards--6 > :nth-child(n+3) .tabcard__foot { min-height: calc(1px + var(--space-4) + 1.1 * var(--text-stat) + 2px + 2.4375rem + var(--space-3) + 1.5rem); }
}
@media (max-width: 699px) { .tabcards--6 > :nth-child(n+3) .tabcard__foot { min-height: 0; } }
/* The caption a concept picture carries, under the text of its card (ARX). */
.tabcard__body .tabcard__cap { margin-top: var(--space-3); font-size: var(--text-caption); line-height: 1.45; color: var(--color-muted); }
/* The gaps blocks() gives after a heading: the stories after the split of «En
   local»; in the Atalaya split, the kit's lead under the sectors' heading, as
   a section head spaces its own, and the sectors after both. */
.split + .stories { margin-top: var(--stack-title); }
.split h3.h2 + .lead { margin-top: var(--space-4); }
.split h3.h2 ~ .tiles { margin-top: var(--space-5); }
