/* OpenWAF — sitio público (openwaf.dev). Sistema de la web de OpenMasu (web/landing/css/home.css, inner.css y
   legal.css del repo de OpenMasu, medidos en openmasu.com el 2026-10-24) con la paleta de OpenWAF: cobalto #2456e8 como
   único color de marca, papel frío #f5f6f8, tinta #1a2030 y fondos de tarjeta noche, brasa, petróleo, niebla y glaciar.
   Alturas a 1440 px: cabecera 64 (la barra de openai.com) · banda 56 · carrusel 712 (seis diapositivas) · bloques de
   96 px.
   Tipografía: Inter variable (OFL; subconjunto latino) con los pesos 420 / 460 / 500 / 600 / 700, también en el
   código (cifras tabulares), e Instrument Sans variable (OFL; subconjunto latino) en los títulos. Sin estilos en línea
   (CSP `style-src 'self'`): las escenas y posiciones van por clase y build.py cambia las rutas de /fonts/ e /img/ por
   las versiones con huella. */

@font-face { font-family: "Inter"; src: url(/fonts/inter-variable-ea94f85fc14285de.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-variable-7bc27ab382f3c274.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --ink: #1a2030;
  --text: #333a4a;
  --muted: rgb(16 22 36 / .64);
  --page: #f5f6f8;
  --line: rgb(96 106 128 / .2);
  --tint: #e4ecff;
  --tint-btn: #c9d9ff;
  --tint-hover: #b6caff;
  --brand: #2456e8;
  --brand-hover: #1b45c4;
  --navy: #0c1733;
  --ember: #3b1a1c;
  --petrol: #0b3540;
  --fog: #dde2ea;
  --dark: #0f121a;
  --night: #10141f;
  --card: #eceef2;
  --ok: #1f7a4a;
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --codigo: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulos: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sombra-s: 0 1px 3px rgb(10 20 40 / .08), 0 0 0 1px rgb(96 106 128 / .12);
  --sombra-m: 0 8px 24px -8px rgb(10 20 40 / .14), 0 0 0 1px rgb(96 106 128 / .14);
  --sombra-l: 0 24px 48px -16px rgb(10 20 40 / .18), 0 0 0 1px rgb(96 106 128 / .12);
  --sombra-v: 0 30px 60px -12px rgb(8 16 40 / .38), 0 12px 24px -8px rgb(8 16 40 / .2), 0 0 0 1px rgb(255 255 255 / .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 460 16px/19.2px var(--fuente); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure, address { margin: 0; }
h1, h2, h3, .tx { text-wrap: balance; }
h1, h2, h3 { font-family: var(--titulos); }
p, li, figcaption, dd { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd { font-family: var(--codigo); font-size: .88em; font-variant-numeric: tabular-nums; }
::selection { background: var(--tint-btn); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.car :focus-visible, .ph :focus-visible, .emp :focus-visible, .cierre :focus-visible, .pie :focus-visible, .aside.oscura :focus-visible, .mc.oscura :focus-visible { outline-color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: #fff; border-radius: 8px; box-shadow: var(--sombra-m); }
.saltar:focus { top: 12px; }
.cw { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.chev { width: 16px; height: 16px; flex: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--tint); color: var(--brand); font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }

/* ── Marca ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
/* Marca: hexágono de tres capas (build.py → mark()). Las caras van del color del texto; la derecha, al 72 %. */
.marca { flex: none; }
.mk-l, .mk-r { fill: currentColor; }
.mk-r { fill-opacity: .72; }
.logo { display: inline-flex; align-items: center; gap: 8px; height: 26px; font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: .14em; white-space: nowrap; }
.logo .marca { width: 26px; height: 26px; color: var(--brand); }
.logo.claro, .logo.claro .marca { color: #fff; }

/* ── Cabecera ─────────────────────────────────────────────────────────────────────────────────────────────────── */
/* La barra global de openai.com (medida con getComputedStyle el 2026-10-26) con la marca de OpenWAF: 64 px de alto
   (54 en móvil), fondo opaco, sin línea inferior ni cambios al desplazar; contenedor de 1440 px con 32 px a los lados
   (24 en móvil); enlaces de 13 px/500 con 16 px de relleno y sin hueco (32 px entre textos) y área de 64 px de alto, y
   al pasar por uno los demás se atenúan al 60 %; a la derecha píldoras de 36 px (relleno 0 20 px, radio 40 px, 14 px/500)
   separadas 8 px: «Entrar» con tinte y «Crear cuenta» rellena (la de OpenAI es blanca sobre negro; aquí, la de marca)
   con su flecha ↗ de 12 px. El menú grande «Product» no cambia: solo la tipografía de su disparador. */
.hdr { position: sticky; top: 0; z-index: 30; height: 64px; background: #fff; }
.hdr-in { display: flex; align-items: center; max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 32px; }
.hdr .logo { height: 64px; margin-right: 20px; }
.hdr-nav ul { display: flex; }
.hdr-nav a { display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 16px; font: 500 13px/19.68px var(--fuente); color: var(--ink); white-space: nowrap; transition: color .2s var(--ease); }
/* Con «Documentación» la barra en español no cabe con 16 px de relleno por debajo de 1280 px: 10 px hasta el menú móvil. */
@media (max-width: 1279px) { .hdr-nav a { padding: 0 10px; } }
.hdr-nav ul:hover > li > a:not(:hover) { color: rgb(26 32 48 / .6); }
.hdr-nav .chev { width: 12px; height: 12px; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-txt { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 9999px; font: 500 13px/19.68px var(--fuente); color: rgb(26 32 48 / .66); transition: color .2s var(--ease); }
.hdr-txt:hover { color: var(--ink); }
.hdr-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; color: rgb(26 32 48 / .66); transition: color .2s var(--ease); }
.hdr-ico:hover { color: var(--ink); }
.hdr-ico .gh { width: 20px; height: 20px; fill: currentColor; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 9999px; color: rgb(26 32 48 / .66); transition: color .2s var(--ease); }
.burger:hover, .burger[aria-expanded="true"] { color: var(--ink); }
.burger .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.burger .burger-cierra, .burger[aria-expanded="true"] .burger-abre { display: none; }
.burger[aria-expanded="true"] .burger-cierra { display: block; }
.menu-enlace { display: none; height: 40px; align-items: center; font: 500 13px/19.68px var(--fuente); }
.menu-movil { display: none; }

.ban { background: var(--tint); min-height: 56px; }
.ban a { min-height: 56px; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-size: 16px; line-height: 19.2px; text-align: center; }
.ban u { text-underline-offset: 3px; margin-left: 2px; white-space: nowrap; }
@media (max-width: 640px) { .ban a { font-size: 14px; line-height: 18px; } }
.ban .chev { margin-left: 2px; }

/* ── Botones (build.py → btn, ctas y setup_button) ─────────────────────────────────────────────────────────────── */
/* Un solo sistema en todo el sitio: variante prim (relleno de marca), sec (tinte; translúcido con borde sobre fondo
   oscuro) y ghost (texto con chevron), en dos tamaños: sm (36 px, la cabecera) y lg (52 px, héroes, secciones y
   franjas). Mismo radio de píldora, peso 600 y flecha al final (↗ fuera de openwaf.dev, → dentro) en todos: el
   «Crear cuenta» de la cabecera y el del héroe son el mismo botón en dos tamaños. Blanco sobre #2456e8: 5,6:1. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-family: var(--fuente); font-weight: 600; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.btn-sm { height: 36px; padding: 0 16px; gap: 6px; font-size: 14px; line-height: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; line-height: 16px; }
.btn .btn-f { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s var(--ease); }
.btn-sm .btn-f { width: 14px; height: 14px; }
.btn .btn-i { width: 18px; height: 18px; }
.btn:hover .btn-f { transform: translateX(2px); }
.btn-prim { background: var(--brand); color: #fff; }
.btn-prim:hover { background: var(--brand-hover); }
.btn-sec { background: var(--tint); color: var(--ink); }
.btn-sec:hover { background: var(--tint-btn); }
.btn-ghost { gap: 4px; padding-left: 4px; padding-right: 4px; color: var(--brand); }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Sobre fondo oscuro (héroes, banda de agencias y franja de cierre): sec translúcido con borde, ghost claro. */
.car .btn-sec, .ph .btn-sec, .emp .btn-sec, .cierre .btn-sec { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.car .btn-sec:hover, .ph .btn-sec:hover, .emp .btn-sec:hover, .cierre .btn-sec:hover { background: rgb(255 255 255 / .18); }
.car .btn-ghost, .ph .btn-ghost, .emp .btn-ghost, .cierre .btn-ghost { color: var(--tint-btn); }

/* Botón partido «Copiar prompt de configuración» (como el de OpenMasu): la parte principal copia el prompt del agente
   elegido; la flecha abre el menú de agentes (site.js, «setup»). Sin JavaScript no se muestra (js-solo). */
.setup { position: relative; display: inline-flex; align-items: stretch; }
.setup .setup-copy { border-radius: 999px 0 0 999px; padding-right: 18px; }
.setup .setup-pick { gap: 8px; border-radius: 0 999px 999px 0; padding: 0 18px 0 14px; box-shadow: inset 1px 0 0 rgb(255 255 255 / .35); }
.setup-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.setup-mark svg { width: 18px; height: 18px; }
.setup-mark .logo-marca { fill: currentColor; }
.setup-pick .chev { transition: transform .2s var(--ease); }
.setup-pick[aria-expanded="true"] .chev { transform: rotate(180deg); }
.setup-menu { position: absolute; z-index: 25; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; gap: 2px; min-width: 100%; padding: 6px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgb(12 23 51 / .2), 0 0 0 1px rgb(96 106 128 / .14); text-align: left; }
.setup-menu[hidden] { display: none; }
.setup-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; font: 500 14px/18px var(--fuente); color: var(--ink); text-align: left; white-space: nowrap; }
.setup-menu button:hover, .setup-menu button:focus-visible, .setup-menu button[aria-checked="true"] { background: #eef2fa; }
.setup-menu button:focus-visible { outline-offset: -2px; }
.setup-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; padding-left: 16px; color: var(--brand); font-weight: 700; }
.setup-menu .setup-mark { color: var(--brand); }
.setup.copiado .setup-copy, .setup.copiado .setup-copy:hover { background: #1d7048; }
.btns-c .setup, .car-btns .setup { flex: none; }

/* ── Hero: carrusel ───────────────────────────────────────────────────────────────────────────────────────────── */
/* Seis diapositivas (OpenMasu tiene tres) bajo un titular fijo con subtítulo. La columna izquierda es un flujo
   (texto arriba, lista abajo, al menos 760 px): si el titular o el subtítulo ocupan más líneas, el carrusel crece en
   vez de montar el texto sobre la lista. */
.car { --c: #1c54a0; min-height: 760px; position: relative; color: #fff; background: linear-gradient(to right, var(--dark) 50%, var(--c) 50%); transition: background .6s; }
.car-caja { position: relative; display: flex; flex-direction: column; gap: 40px; min-height: 760px; }
.car-textos { margin-top: 40px; width: min(624px, calc(50% - 16px)); }
/* Titular fijo (OpenMasu cambia el titular con cada diapositiva; aquí solo cambian el vídeo y la fila). */
.car-t { font-size: 52px; line-height: 60px; font-weight: 420; letter-spacing: -1.5px; color: #fff; }
.car-sub { margin-top: 20px; max-width: 580px; font-size: 18px; line-height: 27px; font-weight: 460; letter-spacing: -.135px; color: rgb(255 255 255 / .72); }
@media (min-width: 1181px) and (max-width: 1359px) { .car-t { font-size: 44px; line-height: 52px; letter-spacing: -1.2px; } .car-sub { font-size: 17px; line-height: 25px; } }
.car-btns { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.car-nota { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: rgb(255 255 255 / .64); }
.car-nota .ico { width: 16px; height: 16px; color: var(--tint-btn); stroke-width: 2.4; }
.car-lista { margin-top: auto; width: min(640px, 50%); }
.car-et { margin-bottom: 24px; font-size: 14px; line-height: 16.8px; font-weight: 500; color: rgb(255 255 255 / .8); }
.car-fila { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 32px; border-top: 1px solid rgb(255 255 255 / .2); text-align: left; font-size: 14px; line-height: 16.8px; font-weight: 500; color: rgb(255 255 255 / .8); transition: color .3s, background .3s; }
.car-fila:hover, .car-fila[aria-selected="true"] { color: #fff; }
.car-fila[aria-selected="true"] { background: rgb(255 255 255 / .07); }
.car-fila[aria-selected="false"] .car-ico { background: rgb(255 255 255 / .55); }
.car-fila b { width: 84px; margin-left: 12px; font-weight: 500; flex: none; }
.car-fila span:last-child { margin-left: 12px; }
.car-ico { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px; background: #fff; color: var(--dark); transition: background .3s; }
.car-ico .ico { width: 16px; height: 16px; stroke-width: 2; }
.car-panel { position: absolute; left: 50%; top: 0; bottom: 0; width: min(640px, calc(50% - 80px)); overflow: hidden; }
.car-medio { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.car-medio[aria-hidden="false"] { opacity: 1; visibility: visible; }
.car-medio video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left top; }
/* Fondo de cada diapositiva mientras carga su vídeo: el color medio de arriba y de abajo de su fluido (promo/). */
.v-dns { background: linear-gradient(#43a0c2, #1b3e75); }
.v-waf { background: linear-gradient(#752839, #4547ad); }
.v-gate { background: linear-gradient(#062e33, #2456e8); }
.v-ctl { background: linear-gradient(#183d95, #296eea); }
.v-revert { background: linear-gradient(#623e77, #7058c3); }
.v-tls { background: linear-gradient(#0f3d62, #2070c0); }
.v-reglas { background: linear-gradient(#3b384d, #6f4b5a); }
.v-nodos { background: linear-gradient(#3775da, #2d71be); }
.v-firma { background: linear-gradient(#6379cd, #6172ac); }

/* ── Pilas (equivale a la rejilla de logos) ───────────────────────────────────────────────────────────────────── */
.pilas { background: var(--page); padding: 96px 0; }
.pilas.blanco { background: #fff; }
.pilas p { text-align: center; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.12px; color: var(--muted); }
.rejilla { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rejilla li { height: 81px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; line-height: 21.6px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-align: center; }
.rejilla svg { width: 24px; height: 24px; flex: none; }
.rejilla .logo-marca { fill: currentColor; stroke: none; }

/* ── Bloques de producto ──────────────────────────────────────────────────────────────────────────────────────── */
.grupo { background: var(--page); padding: 96px 0; }
.grupo.blanco { background: #fff; }
.grupo .enc .btns-c { margin-top: 40px; }
.enc { text-align: center; }
.lockup { display: inline-flex; align-items: center; gap: 10px; height: 36px; white-space: nowrap; }
.lockup-i { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; }
.lockup-i .marca { width: 26px; height: 26px; color: var(--brand); }
.lockup-m { font-size: 20px; line-height: 36px; font-weight: 700; letter-spacing: .14em; color: var(--navy); }
.lockup-p { font-size: 24px; line-height: 36px; font-weight: 420; color: var(--navy); }
.t49 { margin: 24px auto 0; max-width: 900px; font-size: 49px; line-height: 58.8px; font-weight: 420; letter-spacing: -1.3475px; color: var(--ink); }
.t49 span { color: var(--muted); }
@media (min-width: 641px) { .t49 span { display: inline-block; } }
.sub { margin: 24px auto 0; max-width: 900px; font-size: 18px; line-height: 27px; font-weight: 500; letter-spacing: -.135px; color: var(--muted); }
.sub b { color: var(--ink); font-weight: 600; }
.btns-c { margin-top: 48px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.bloques { margin-top: 96px; }
.par { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.par + .aside { margin-top: 32px; }

.aside { position: relative; display: grid; border-radius: 12px; overflow: hidden; color: #fff; }
.aside.g { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); height: 329px; }
.aside.m { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 260px; }
.c-cobalto { background: var(--brand); }
.c-noche { background: var(--navy); }
.c-brasa { background: var(--ember); }
.c-petroleo { background: var(--petrol); }
.c-niebla { background: var(--fog); color: var(--ink); }
.c-glaciar { background: var(--tint); color: var(--ink); }
.a-txt { align-self: end; padding: 0 32px 32px; }
.et { font-size: 14px; line-height: 16.8px; font-weight: 500; color: rgb(255 255 255 / .9); }
.c-niebla .et, .c-glaciar .et { color: var(--muted); }
.a-txt .tx { margin-top: 12px; font-size: 25px; line-height: 30px; font-weight: 420; letter-spacing: -.6875px; }
.a-pic { position: relative; overflow: hidden; }
/* Escena de tarjeta: fondo pictórico del color de la tarjeta (tools/gen_texturas.py) + ventana flotante con el vídeo. */
.escena { position: absolute; inset: 0; overflow: hidden; background: center / cover no-repeat; }
.f-cobalto { background-image: url(/img/escena-cobalto-9a94b39d68eec20c.webp); }
.f-noche { background-image: url(/img/escena-noche-d95b1be49ea4f942.webp); }
.f-brasa { background-image: url(/img/escena-brasa-343235ea3213940e.webp); }
.f-petroleo { background-image: url(/img/escena-petroleo-88c644fd94290806.webp); }
.f-niebla { background-image: url(/img/escena-niebla-a3b3bbc21c3c1c1d.webp); }
.f-glaciar { background-image: url(/img/escena-glaciar-50344efa2e5c6105.webp); }
.ventana { position: absolute; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--sombra-v); }
.ventana.osc { background: #0f1420; }
/* Clip (build.py → clip): el póster es un <img> diferido y encima va el vídeo sin póster, transparente hasta su primer
   fotograma; los dos con el mismo encuadre. */
.ventana video, .ventana img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
/* Posición de la ventana según el hueco (izquierda, arriba, ancho, alto), como FORMAS en la home de OpenMasu: a sangre
   por la derecha y por abajo en las tarjetas («g», «m»), centrada y entera en las de la cuadrícula («v», «o»). */
.forma-g { left: 7%; top: 13%; width: 86%; height: 100%; }
.forma-m { left: 12%; top: 14%; width: 100%; height: 100%; }
.forma-v { left: 8%; top: 9%; width: 84%; height: 82%; }
.forma-o { left: 8%; top: 8%; width: 84%; height: 44%; }
.forma-h { left: 7%; top: 14%; width: 100%; height: 100%; }
/* Encuadre de cada clip en su ventana (como ENCUADRE en la home de OpenMasu): ancho del vídeo respecto a la ventana y
   desplazamiento (en % del propio vídeo) para traer a la vista lo que cuenta la tarjeta. Medido mirando cada tarjeta. */
.z-bento-gate :is(video, img) { width: 160%; transform: translateX(-22%); }
.z-bento-reglas :is(video, img), .z-bento-nodos :is(video, img) { width: 200%; }
.z-bento-certs :is(video, img) { width: 150%; transform: translateY(-14%); }
.z-bento-propagacion :is(video, img) { width: 150%; }
.z-bento-revert :is(video, img) { width: 130%; }
.z-dash-rum :is(video, img) { width: 160%; transform: translate(-12%, -22%); }
.z-dash-cache :is(video, img) { width: 140%; transform: translate(-28%, -10%); }
.aside.g .z-dash-cache :is(video, img) { width: 100%; transform: none; }

/* ── Declaración (equivale al testimonio) ─────────────────────────────────────────────────────────────────────── */
.cita { background: var(--tint); padding: 96px 0; text-align: center; }
.cita h2 { max-width: 920px; margin: 0 auto; font-size: 39px; line-height: 46.8px; font-weight: 420; letter-spacing: -1.0725px; }
.cita h2 b { font-weight: 700; }
.cita-n { margin-top: 27px; font-size: 18px; line-height: 27px; font-weight: 500; letter-spacing: -.135px; }
.cita-r { font-size: 18px; line-height: 27px; font-weight: 500; letter-spacing: -.135px; color: var(--muted); }
.cita .btn-ghost { margin-top: 21px; }

/* ── Cuadrícula de tres tarjetas (equivale a «Bases») ─────────────────────────────────────────────────────────── */
.mg { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 230px 397px; gap: 32px; }
.mc { position: relative; overflow: hidden; border-radius: 12px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.mc.alta { grid-row: 1 / span 2; }
.mc-pic { position: relative; overflow: hidden; }
.mc.alta .mc-pic { height: 486px; }
.mc.sup .mc-pic { position: absolute; inset: 0; }
.mc.inf .mc-pic { height: 234px; }
.mc.sup .mc-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 23 51 / .96) 0%, rgb(12 23 51 / .6) 55%, transparent 100%); }
.mc-txt { position: relative; padding: 0 32px 32px; margin-top: auto; }
.mc-txt h3 { margin-top: 8px; font-size: 25px; line-height: 30px; font-weight: 420; letter-spacing: -.6875px; }
.mc.c-niebla, .mc.c-glaciar { color: var(--ink); }

/* ── Teselas (build.py → product_tiles, feature, code_tile, tile_media) ──────────────────────────────────────── */
/* El lenguaje del escaparate de /waf/ («aside»): superficies de la paleta con un degradado suave, etiqueta corta,
   titular de una frase y un medio real (clip del panel o de la terminal en una ventana, bucle a sangre o terminal con
   texto) que sale por el borde. Mismo radio (12 px), sombra de ventana (--sombra-v) y escala de huecos (24/32/48). El
   texto va siempre sobre el color liso: blanco sobre #2456e8, 5,6:1; sobre navy, brasa y petróleo, más de 11:1; tinta
   sobre niebla y glaciar, más de 12:1. La escena pintada solo asoma detrás del medio, fundida hacia el texto. */
.bt { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; color: #fff; }
.bt.c-cobalto { background: linear-gradient(155deg, #2456e8 30%, #1a42c7); }
.bt.c-noche { background: linear-gradient(155deg, #0c1733 30%, #142454); }
.bt.c-brasa { background: linear-gradient(155deg, #3b1a1c 30%, #5a2620); }
.bt.c-petroleo { background: linear-gradient(155deg, #0b3540 30%, #0f4c58); }
.bt.c-niebla { background: linear-gradient(155deg, #e4e8ef 30%, #d3dae6); color: var(--ink); }
.bt.c-glaciar { background: linear-gradient(155deg, #eaf0ff 30%, #d6e2ff); color: var(--ink); }
.bt :focus-visible { outline-color: currentColor; }
.bt .et { color: rgb(255 255 255 / .82); }
.bt.c-niebla .et, .bt.c-glaciar .et { color: var(--muted); }
.bt-pic { position: relative; overflow: hidden; }
/* La escena pintada va en ::before, fundida hacia el texto (--fade); la ventana queda entera encima. */
.bt-pic > .escena { --fade: to bottom; background-image: none; }
.bt-pic > .escena::before { content: ""; position: absolute; inset: 0; background: center / cover no-repeat; -webkit-mask-image: linear-gradient(var(--fade), transparent, #000 60%); mask-image: linear-gradient(var(--fade), transparent, #000 60%); }
.bt-pic > .f-cobalto::before { background-image: url(/img/escena-cobalto-9a94b39d68eec20c.webp); }
.bt-pic > .f-noche::before { background-image: url(/img/escena-noche-d95b1be49ea4f942.webp); }
.bt-pic > .f-brasa::before { background-image: url(/img/escena-brasa-343235ea3213940e.webp); }
.bt-pic > .f-petroleo::before { background-image: url(/img/escena-petroleo-88c644fd94290806.webp); }
.bt-pic > .f-niebla::before { background-image: url(/img/escena-niebla-a3b3bbc21c3c1c1d.webp); }
.bt-pic > .f-glaciar::before { background-image: url(/img/escena-glaciar-50344efa2e5c6105.webp); }
.bt-pic .ventana, .bt-pic .term { transition: transform .5s var(--ease); }
/* El clip llena su ventana (recortado por abajo y por la derecha); --zw y --zt acercan y mueven cada clip para que
   se lea lo que cuenta la tesela (medido mirando cada una). */
:is(.bt-pic, .ph-panel) .ventana :is(video, img) { width: var(--zw, 100%); height: auto; min-height: 100%; object-fit: cover; object-position: 0 0; transform: var(--zt, none); }
.bt-xl .z-bento-bloqueo :is(video, img) { object-position: 50% 0; }
.bt-t .z-dash-ia { --zw: 135%; }
.bt .z-dash-mcp { --zw: 165%; }
.bt-l .z-dash-cache { --zw: 125%; }
.bt .z-bento-historial { --zw: 175%; }
.bt-m .z-agencias { --zw: 210%; --zt: translateX(-47%); }
.fx .z-agencias { --zw: 150%; --zt: translateX(-30%); }
/* Bucle a sangre (los loop-* traen su propio fondo): cubre el hueco del medio. */
.bt-loop { position: absolute; inset: 0; }
.bt-loop :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.z-loop-waf :is(img, video), .z-loop-gate :is(img, video) { object-position: 50% 62%; }

/* Ventana de terminal con texto real (build.py → term): barra con tres luces y el texto en monoespaciada del sistema,
   resaltado por hl() (claves, cadenas, números, $ y comentarios). Se recorta por el borde, como las demás ventanas. */
.term { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #0f1420; color: #d7deec; box-shadow: var(--sombra-v); }
.term-bar { display: flex; flex: none; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / .07); font: 500 12px/1 var(--codigo); color: rgb(215 222 236 / .62); white-space: nowrap; }
.term-bar i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: rgb(255 255 255 / .18); }
.term-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; }
.term pre { margin: 0; padding: 20px 22px 28px; font: 450 13.5px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 2; }
.term code { font: inherit; }
.term i { font-style: normal; }
.k-k { color: #9ab8ff; }
.k-s { color: #a8e3bd; }
.k-n { color: #f5c08a; }
.k-p { color: #7f8aa3; }
.k-c { color: #7f8aa3; }
.term.chat .mcp-log { padding: 20px 22px; font-size: 13px; line-height: 20px; gap: 10px; }
/* Formas de los medios en su hueco: a sangre por la derecha y por abajo, como las tarjetas de /waf/. */
.forma-bt { left: 32px; top: 0; width: calc(100% - 20px); height: calc(100% + 12px); }
.forma-fx { left: 9%; top: 64px; width: calc(91% + 12px); height: calc(100% - 52px); }
.fx-rev .forma-fx { left: -12px; width: calc(91% + 12px); }
.forma-fh { left: 32px; top: 0; width: calc(100% - 20px); height: calc(100% + 12px); }
.forma-fx.term pre { padding: 28px 32px 36px; font-size: 14.5px; line-height: 24px; }

/* Rejilla de producto (home #platform, /features/, «Relacionados»): 12 columnas; xl 8 y t 4 de alto doble arriba,
   después filas de 4 + 4 + 4 y 6 + 6. La tesela entera es el enlace. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin: 64px 0 0; padding: 0; list-style: none; }
.bento + .btns-c { margin-top: 56px; }
.bt-xl { grid-column: span 8; height: 560px; }
.bt-t { grid-column: span 4; height: 560px; }
.bt-l { grid-column: span 6; height: 440px; }
.bt-m { grid-column: span 4; height: 440px; }
.bt-a { display: flex; flex-direction: column; flex: 1; min-height: 0; color: inherit; }
.bt-a:focus-visible { outline-offset: -4px; border-radius: 12px; }
.bt-txt { position: relative; z-index: 1; padding: 32px 32px 0; }
.bt h3 { margin-top: 10px; max-width: 30ch; font-size: 26px; line-height: 31px; font-weight: 420; letter-spacing: -.65px; }
.bt-xl h3 { font-size: 34px; line-height: 40px; letter-spacing: -.9px; }
.bt-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 15px; line-height: 22px; font-weight: 600; }
.bt-a .bt-pic { flex: 1; margin-top: 28px; min-height: 0; }
.bt-a:hover .bt-more { text-decoration: underline; text-underline-offset: 3px; }
.bt-a:hover .bt-pic .ventana, .bt-a:hover .bt-pic .term { transform: translateY(-6px); }
/* La grande, como la tesela grande de /waf/: texto abajo a la izquierda y el medio en las tres quintas partes. */
.bt-xl .bt-a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.bt-xl .bt-txt { align-self: end; padding: 0 40px 44px; }
.bt-xl .bt-a .bt-pic { margin-top: 0; }
.bt-xl .bt-pic > .escena { --fade: to right; }
.bt-xl .forma-bt { top: 56px; height: calc(100% - 44px); }
.bento.tres .bt-m { height: 400px; }

/* Secciones de detalle (build.py → features/feature): una tesela ancha (texto 5/12 y medio 7/12, o al revés) y debajo
   lo que hace, en filas con filete; en pareja (fx-par), dos columnas con el medio bajo el texto. */
.fxs { background: #fff; padding: 96px 0; }
.fx { scroll-margin-top: 80px; }
.fx + .fx, .fx + .fx-par, .fx-par + .fx { margin-top: 96px; }
.fx-tile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 480px; }
.fx-tile.fx-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.fx-rev .fx-txt { order: 2; }
.fx-txt { position: relative; z-index: 1; align-self: end; padding: 48px 48px 52px; }
.fx h2 { font: inherit; }
.fx h2 .et { display: block; }
.fx-h { display: block; margin-top: 14px; font: 420 36px/42px var(--titulos); letter-spacing: -1px; text-wrap: balance; }
.fx-lead { margin-top: 18px; max-width: 46ch; font-size: 17px; line-height: 26px; font-weight: 460; color: rgb(255 255 255 / .8); }
.c-niebla .fx-lead, .c-glaciar .fx-lead { color: var(--muted); }
.fx-lead code { font-size: 15px; }
.fx-tile .bt-pic > .escena { --fade: to right; }
.fx-rev .bt-pic > .escena { --fade: to left; }
.fx-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.fx-solo .fx-txt { align-self: start; padding: 48px; }
.fx-par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fx-par > .fx + .fx { margin-top: 0; }
.fx-half .fx-tile { display: flex; flex-direction: column; height: 640px; min-height: 0; }
.fx-half .fx-txt { align-self: stretch; padding: 40px 40px 0; }
.fx-half .fx-h { font-size: 30px; line-height: 36px; letter-spacing: -.8px; }
.fx-half .bt-pic { flex: 1; min-height: 0; margin-top: 32px; }
.fx-half .bt-pic > .escena { --fade: to bottom; }

/* Lo que hace cada función (build.py → spec_list): filas con filete, título y frase; sin tarjetas ni iconos. */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 32px; }
.specs.n1, .specs.n2, .specs.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-half .specs { grid-template-columns: minmax(0, 1fr); }
.specs li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.specs b { display: block; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.2px; color: var(--ink); }
.specs p { margin-top: 6px; font-size: 15.5px; line-height: 24px; font-weight: 460; color: var(--muted); }
.specs code { font-size: 14px; color: var(--ink); }
.specs a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.specs.claro { margin-top: 32px; }
.specs.claro li { border-top-color: rgb(255 255 255 / .16); }
.specs.claro b { color: #fff; }
.specs.claro p { color: rgb(255 255 255 / .74); }
.seccion .specs { margin-top: 0; }

/* Decisiones sobre bots de IA (SHOWCASE["ai"]["cards"]): una tesela de color por acción, con su valor de la API. */
.dec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.dec .bt { min-height: 248px; padding: 28px; justify-content: flex-end; }
.dec-k { align-self: flex-start; margin-bottom: auto; padding: 4px 10px; border-radius: 6px; background: rgb(255 255 255 / .12); font: 500 13px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; }
.dec h3 { margin-top: 24px; font-size: 25px; line-height: 30px; font-weight: 420; letter-spacing: -.6875px; }
.dec p:last-child { margin-top: 10px; font-size: 15.5px; line-height: 23px; font-weight: 460; color: rgb(255 255 255 / .78); }

/* Pasos y variantes con orden o configuración (build.py → code_tile): texto arriba, terminal saliendo por abajo. */
.code-l { margin-top: 0; }
.ct { grid-column: span 6; min-height: 380px; }
.ct-txt { padding: 32px 32px 0; }
.ct .paso { background: rgb(255 255 255 / .16); }
.ct h3 { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.4px; }
.ct-txt p { margin-top: 8px; font-size: 15.5px; line-height: 23px; color: rgb(255 255 255 / .78); }
.ct-txt p code { color: #fff; }
.ct-txt a { color: #fff; text-decoration: underline; }
.ct .ct-win { position: relative; flex: 1; margin: 28px -12px -12px 32px; border-radius: 12px; }
.ct .ct-win pre { font-size: 13px; line-height: 21px; }

/* ── Agencias (equivale a «equipos») ──────────────────────────────────────────────────────────────────────────── */
.emp { background: var(--navy); color: #fff; padding: 96px 0; }
.emp-in { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 672px); justify-content: space-between; gap: 32px; align-items: center; min-height: 378px; }
.emp-et { font-size: 20px; line-height: 30px; font-weight: 500; letter-spacing: -.15px; color: rgb(255 255 255 / .8); }
.emp h2 { margin-top: 24px; font-size: 49px; line-height: 58.8px; font-weight: 420; letter-spacing: -1.3475px; }
.emp-p { margin-top: 24px; font-size: 18px; line-height: 27px; font-weight: 500; letter-spacing: -.135px; color: rgb(255 255 255 / .8); }
.emp-lista { margin-top: 28px; display: grid; gap: 12px; }
.emp-lista li { display: flex; gap: 10px; font-size: 16px; line-height: 24px; font-weight: 500; color: rgb(255 255 255 / .86); }
.emp-lista .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--tint-btn); stroke-width: 2.2; }
.emp-lista code { color: #fff; }
.btns-l { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.emp-pic { position: relative; height: 378px; border-radius: 12px; overflow: hidden; background: #0a1430; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -20px rgb(0 0 0 / .5); }
.emp-pic video { width: 100%; height: 100%; object-fit: cover; }

/* ── MCP: bloque de la home tras el hero (conversación de ejemplo, garantías y orden de alta) ──────────────────── */
.mcp-in { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
/* Ventana de terminal como las de las tarjetas (.ventana.osc), con texto real en lugar de vídeo. */
.mcp-chat { border-radius: 12px; overflow: hidden; background: #0f1420; color: rgb(255 255 255 / .86); box-shadow: 0 30px 60px -20px rgb(8 16 40 / .45), 0 0 0 1px rgb(15 20 32 / .9); }
.mcp-barra { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / .08); font: 500 12.5px/1 var(--codigo); color: rgb(255 255 255 / .6); }
.mcp-luces { display: flex; gap: 6px; }
.mcp-luces i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.mcp-log { display: grid; gap: 12px; padding: 24px 28px 28px; font: 400 13.5px/22px var(--codigo); }
.mcp-log p { position: relative; padding-left: 20px; overflow-wrap: anywhere; }
.mcp-log .ch-u { padding: 8px 12px 8px 30px; border-radius: 8px; background: rgb(255 255 255 / .07); color: #fff; }
.ch-u::before { content: "›"; position: absolute; left: 13px; top: 8px; color: var(--tint-btn); font-weight: 500; }
.ch-t::before, .ch-a::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ch-t::before { background: var(--tint-btn); }
.ch-t b { font-weight: 500; color: #fff; }
.ch-t span { color: rgb(255 255 255 / .56); }
.ch-a { color: rgb(255 255 255 / .92); }
.mcp-log .ch-o { margin: -6px 0 0 6px; padding-left: 14px; border-left: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .62); }
.mcp-log .ch-d { color: #86e0ad; }
.mcp-seg { display: grid; }
.mcp-seg li { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.mcp-seg h3 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.135px; color: var(--ink); }
.mcp-seg p { margin-top: 4px; font-size: 15px; line-height: 22px; font-weight: 460; color: var(--muted); }
.mcp-cmd { margin-top: 56px; padding: 28px 32px; border-radius: 12px; background: var(--page); box-shadow: var(--sombra-s); }
.mcp-cmd-t { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.mcp-cmd-t .ico { color: var(--brand); }
/* La orden de una línea se parte en los espacios para no desbordar; al copiarla sigue siendo una sola línea. */
.mcp-cmd .codigo { white-space: pre-wrap; }
.mcp-cmd .codigo span { white-space: nowrap; }
.mcp-cmd-n { margin-top: 14px; font-size: 15px; line-height: 23px; color: var(--muted); }
.mcp-cmd-n code { color: var(--ink); }
.mcp-cmd-n a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Bloque de código oscuro (build.py → codigo()): órdenes y configuración, con desplazamiento horizontal si no cabe. */
.codigo { margin: 16px 0 0; padding: 16px 20px; border-radius: 10px; background: #0f1420; color: #e3e8f2; font: 400 13.5px/22px var(--codigo); white-space: pre; overflow-x: auto; tab-size: 2; }
.codigo code { font-size: inherit; }

/* ── Preguntas ────────────────────────────────────────────────────────────────────────────────────────────────── */
.faq-s { background: var(--page); padding: 96px 0; }
.faq-s.blanco { background: #fff; }
.faq-s .t49 { margin-top: 16px; }
.etq { font-size: 14px; line-height: 16.8px; font-weight: 500; color: var(--muted); }
.enc .etq { text-align: center; }
.preguntas { max-width: 820px; margin: 48px auto 0; text-align: left; }
.preguntas details { border-bottom: 1px solid var(--line); }
.preguntas summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; font-size: 18px; line-height: 27px; font-weight: 500; letter-spacing: -.135px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font: 400 18px/1 var(--fuente); transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: #fff; }
.preguntas .resp { padding: 0 4px 22px; max-width: 720px; }
.preguntas .resp p { color: var(--muted); font-size: 16px; line-height: 1.7; font-weight: 460; }
.preguntas .resp p + p { margin-top: 10px; }
.preguntas a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ── Cierre ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.cierre { height: 251px; color: #fff; background: #0e1e48 url(/img/cierre-fluido-6225c5c1428da43b.webp) 30% 45% / 125% auto no-repeat; animation: deriva 48s ease-in-out infinite alternate; }
@keyframes deriva { from { background-position: 30% 45%; } to { background-position: 75% 60%; } }
@media (prefers-reduced-motion: reduce) { .cierre { animation: none; } }
.cierre-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cierre-t { display: flex; align-items: center; gap: 24px; }
.cierre h2 { font-size: 49px; line-height: 58.8px; font-weight: 420; letter-spacing: -1.3475px; }
/* Revelado animado de la marca (SVG con SMIL en <img>): site.js lo arranca al entrar en pantalla; con movimiento
   reducido, ahorro de datos o sin JavaScript se queda la marca fija. */
.revelado { width: 88px; height: 88px; flex: none; transition: opacity .3s; }
.revelado.espera { opacity: 0; }
/* Cierre grande de las páginas interiores: centrado, con subtítulo y dos botones. */
.cierre.grande { height: auto; padding: 96px 0; text-align: center; }
.cierre.grande .cw { display: block; }
.cierre.grande h2 { max-width: 900px; margin: 0 auto; }
.cierre.grande h2 span { color: rgb(255 255 255 / .65); }
.cierre.grande p { margin: 24px auto 40px; max-width: 720px; font-size: 18px; line-height: 27px; font-weight: 500; color: rgb(255 255 255 / .8); }
.cierre-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
/* La textura cubre la banda de 251 px a lo ancho; en pantallas estrechas la banda es más alta y se escala por la altura. */
@media (max-width: 1180px) { .cierre, .cierre.grande { background-size: auto 150%; } }

/* ── Pie ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
.pie { position: relative; background: var(--night); color: #fff; padding: 64px 0 48px; }
.pie-sup { display: flex; gap: 32px; min-height: 520px; }
.pie-marca { flex: 1 1 300px; min-width: 0; }
.pie-marca h2 { margin-top: 24px; max-width: 380px; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.63px; }
.pie-marca p { margin-top: 20px; max-width: 360px; font-size: 14px; line-height: 21px; color: rgb(255 255 255 / .6); }
.pie-nav { flex: 0 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0 clamp(32px, 4vw, 64px); }
.pie-nav h3 { font-size: 18.72px; line-height: 28px; font-weight: 700; }
.pie-nav ul { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.pie-nav a, .pie-nav li { font-size: 16px; line-height: 24px; font-weight: 420; color: rgb(255 255 255 / .8); }
.pie-nav a:hover, .pie-nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pie-nav a { overflow-wrap: anywhere; }
.pie-nav li.muted { color: rgb(255 255 255 / .5); }
/* La marca de fondo, en el hueco bajo la marca del pie: mismo blanco al 5 % que la palabra gigante. */
.pie-simbolo { position: absolute; left: 80px; top: 250px; width: 300px; height: 300px; color: rgb(255 255 255 / .05); pointer-events: none; user-select: none; }
.pie-simbolo .mk-r { fill-opacity: .6; }
@media (max-width: 1180px) { .pie-simbolo { display: none; } }
.pie-gigante { margin-top: 32px; width: 100%; height: 123px; overflow: visible; color: rgb(255 255 255 / .05); user-select: none; }
.pie-gigante text { fill: currentColor; font-family: var(--fuente); font-weight: 700; }
.pie-marcas { position: absolute; left: 0; right: 0; bottom: 14px; padding: 0 80px; font-size: 11px; line-height: 14px; color: rgb(255 255 255 / .55); }

/* ── Páginas interiores ───────────────────────────────────────────────────────────────────────────────────────── */
.interior main { background: var(--page); }
.in-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 72px; }
.in-hero h1, .p-hero h1 { margin: 0 0 24px; font-size: 49px; line-height: 58.8px; font-weight: 460; letter-spacing: -1.3475px; color: var(--ink); text-wrap: balance; }
.in-hero h1 span, .p-hero h1 span { color: var(--muted); }
.in-hero .etq, .p-hero .etq { margin-bottom: 16px; }
.in-hero .sub { margin: 0 0 32px; }
.in-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.vinetas { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); }
.vinetas li { display: inline-flex; align-items: center; gap: 8px; }
.vinetas .ico { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.4; }
.hero-loop { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1216 / 960; box-shadow: 0 24px 60px -24px rgb(12 23 51 / .45); }
.hero-loop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-hero { padding: 80px 0 56px; text-align: center; }
.p-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.p-hero .sub { margin-top: 0; max-width: 760px; }


.seccion { padding: 72px 0; }
.seccion + .seccion { padding-top: 24px; }
.seccion.blanco { background: #fff; }
.seccion.blanco + .seccion, .seccion + .seccion.blanco, .grupo + .seccion, .emp + .seccion, .pilas + .seccion { padding-top: 72px; }
.s-enc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.s-enc.centro { display: block; text-align: center; }
.s-enc.centro .sub { margin-left: auto; margin-right: auto; }
.s-enc h2 { font-size: 39px; line-height: 46.8px; font-weight: 460; letter-spacing: -1.0725px; color: var(--ink); }
.s-enc .sub { margin: 0; max-width: 680px; }
.s-enc.centro h2 { max-width: 900px; margin: 0 auto; }
.s-enc.centro .sub { margin-top: 20px; }
.cartas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cartas.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartas.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carta { padding: 32px; border-radius: 12px; background: #fff; box-shadow: var(--sombra-s); }
.carta h3, .carta h4 { font-size: 22px; line-height: 28px; font-weight: 460; letter-spacing: -.55px; color: var(--ink); }
.carta p { margin-top: 12px; font-size: 16px; line-height: 24px; font-weight: 460; letter-spacing: -.12px; color: var(--muted); }
.carta p + p { margin-top: 8px; }
.carta a:not([class]) { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.carta .tarj-i { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; }
.carta .tarj-i .ico { width: 24px; height: 24px; }
.carta.tinte { background: var(--tint); box-shadow: none; }
.lista-c { margin-top: 16px; display: grid; gap: 10px; }
.lista-c li { display: flex; gap: 10px; font-size: 16px; line-height: 24px; font-weight: 460; color: var(--text); }
.lista-c .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); stroke-width: 2.2; }
.lista-c a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.nota-s { margin-top: 32px; max-width: 820px; font-size: 15px; line-height: 23px; color: var(--muted); }
.nota-s a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.acc { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Sección #mcp de Funciones: subtítulos, lista de herramientas y pasos numerados. */
.mcp-h { margin: 56px 0 20px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); }
/* Una tarjeta con bloque de código no puede ensanchar su columna (1fr en móvil): el código se desplaza dentro. */
.cartas > .carta { min-width: 0; }
.s-enc + .mcp-h { margin-top: 0; }
.herr { margin-top: 16px; }
.herr li { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; color: var(--text); }
.herr code { font-size: 13.5px; color: var(--brand); overflow-wrap: anywhere; }
.pasos { margin: 0; padding: 0; list-style: none; }
.paso { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; background: var(--brand); color: #fff; font: 600 15px/1 var(--fuente); }
/* Pasos numerados (/mcp/, /egress/, /mcp-shield/): una pista con filete de marca encima de cada paso, sin tarjeta. */
.cartas.pasos { gap: 32px 24px; }
.pasos > .carta { padding: 20px 0 0; border-radius: 0; background: none; box-shadow: none; border-top: 2px solid var(--brand); }
.pasos > .carta .paso { margin-bottom: 14px; }
.carta p code { font-size: 14px; color: var(--ink); }

/* Home: cifras (todas de content/stats.py), pilares, decisiones sobre bots de IA y últimas noticias. */
.cifras { background: var(--page); padding: 64px 0 0; }
.cifras-t { text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cifras-l { margin-top: 32px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cifras-l li { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cifras-l b { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -1px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cifras-l span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.cifras-n { margin-top: 16px; text-align: center; font-size: 13px; line-height: 18px; color: var(--muted); }
/* Índice de /features/: cada función con su id (las anclas antiguas), agrupada por la página de producto donde vive. */
.cap-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.cap-g h3 { padding-bottom: 12px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); }
.cap-g h3 a:hover { color: var(--brand); }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cap b { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.cap small { grid-column: 1; font-size: 14.5px; line-height: 21px; color: var(--muted); }
.cap .chev { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.cap:hover b, .cap:focus-visible b { color: var(--brand); }
.cap:hover .chev { transform: translateX(3px); color: var(--brand); }
.cap-l li { scroll-margin-top: 96px; }
.ia-n { margin-top: 24px; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 1180px) {
  .cifras-l { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bt-xl { grid-column: 1 / -1; }
  .bt-t, .bt-m, .bt-l { grid-column: span 6; }
  .bento .bt:last-child:nth-child(odd):not(.bt-xl) { grid-column: 1 / -1; }
  .bento.tres .bt-m { grid-column: span 6; }
  .bento.tres .bt-m:last-child { grid-column: 1 / -1; }
  .fx-tile, .fx-tile.fx-rev { grid-template-columns: minmax(0, 1fr); }
  .fx-rev .fx-txt { order: 0; }
  .fx-txt { padding: 40px 40px 0; }
  .fx-tile .bt-pic { height: 380px; margin-top: 32px; }
  .fx-tile .bt-pic > .escena, .fx-rev .bt-pic > .escena { --fade: to bottom; }
  .forma-fx, .fx-rev .forma-fx { left: 40px; top: 0; width: calc(100% - 28px); height: calc(100% + 12px); }
  .fx-solo .fx-txt { padding: 40px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cifras { padding-top: 48px; }
  .cifras-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifras-l li { padding: 20px 16px; }
  .cifras-l b { font-size: 32px; line-height: 36px; }
  .bento { margin-top: 40px; gap: 16px; }
  .bento .bt, .bento .bt:last-child:nth-child(odd), .bento.tres .bt-m, .bento.tres .bt-m:last-child { grid-column: 1 / -1; height: auto; }
  .bt-a .bt-pic { flex: none; height: 260px; margin-top: 24px; }
  .bt-xl .bt-a { display: flex; }
  .bt-xl .bt-txt { padding: 24px 24px 0; }
  .bt-xl .bt-pic > .escena { --fade: to bottom; }
  .bt-xl .forma-bt { top: 0; height: calc(100% + 12px); }
  .bt-xl .bt-a .bt-pic, .bt-t .bt-a .bt-pic { height: 300px; margin-top: 24px; }
  .bt-txt { padding: 24px 24px 0; }
  .bt h3, .bt-xl h3 { font-size: 24px; line-height: 29px; letter-spacing: -.55px; }
  .forma-bt, .forma-fh { left: 24px; width: calc(100% - 12px); }
  .fxs { padding: 56px 0; }
  .fx + .fx, .fx + .fx-par, .fx-par + .fx { margin-top: 64px; }
  .fx-par { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .fx-txt, .fx-half .fx-txt { padding: 28px 24px 0; }
  .fx-h, .fx-half .fx-h { font-size: 27px; line-height: 32px; letter-spacing: -.6px; }
  .fx-lead { font-size: 16px; line-height: 24px; }
  .fx-half .fx-tile { height: auto; }
  .fx-tile .bt-pic, .fx-half .bt-pic { flex: none; height: 280px; margin-top: 24px; }
  .forma-fx, .fx-rev .forma-fx { left: 24px; width: calc(100% - 12px); }
  .forma-fx.term pre, .term pre { padding: 16px 18px 24px; font-size: 12.5px; line-height: 20px; }
  .fx-solo .fx-txt { padding: 28px 24px 32px; }
  .specs, .specs.n1, .specs.n2, .specs.n4 { grid-template-columns: minmax(0, 1fr); }
  .dec { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dec .bt { min-height: 0; padding: 24px; }
  .ct { grid-column: 1 / -1; min-height: 0; }
  .ct-txt { padding: 24px 24px 0; }
  .ct .ct-win { margin: 24px -12px -12px 24px; }
  .mcp-seg li:first-child { border-top: 0; }
  .cap-l { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Revelado al entrar en pantalla (solo con JavaScript y sin movimiento reducido). */
.js .revela { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .revela.dentro { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .revela { opacity: 1; transform: none; transition: none; } }

/* Diagrama de «Cómo funciona» (SVG en línea con clases) */
.diagrama { padding: 40px; border-radius: 12px; background: #fff; box-shadow: var(--sombra-l); }
.diagrama figcaption { margin-top: 20px; text-align: center; font-size: 15px; line-height: 22px; color: var(--muted); }
.dg-v { display: none; margin: 0 auto; max-width: 420px; width: 100%; }
.dg-h { width: 100%; height: auto; }
.dg-box { fill: var(--page); stroke: var(--line); }
.dg-box-acc { fill: #eef3ff; stroke: #b6caff; }
.dg-ico, .dg-ico-n { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-ico { stroke: var(--brand); }
.dg-ico-n { stroke: #5a6378; }
.dg-t { font: 600 16px var(--fuente); fill: var(--ink); }
.dg-sm { font-size: 14px; }
.dg-s { font: 460 13px var(--fuente); fill: #5a6378; }
.dg-m { font: 500 13px var(--codigo); fill: var(--brand); }
.dg-l { font: 600 12px var(--fuente); fill: #5a6378; }
.dg-line { fill: none; stroke: #9aa3b5; stroke-width: 1.6; }
.dg-head { fill: #9aa3b5; }
.dg-line-acc { fill: none; stroke: var(--brand); stroke-width: 2; }
.dg-head-acc { fill: var(--brand); }
.dg-line-dash { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 5 5; }
/* Capa animada (SMIL de build.py → diagram): paquetes, resaltes y el 403. site.js la pausa fuera de pantalla; con
   movimiento reducido no se pinta y queda el diagrama fijo (las respuestas DNS se leen igual). */
.dg-pk { fill: var(--brand); }
.dg-pk-n { fill: #8a93a6; }
.dg-pk-bad { fill: #d93a3a; }
.dg-bad { fill: #c42f2f; }
.dg-hl { fill: rgb(36 86 232 / .12); }
.dg-hl-n { fill: rgb(90 99 120 / .14); }
.dg-scan { fill: rgb(36 86 232 / .08); stroke: var(--brand); stroke-width: 2; }
.dg-deny { fill: rgb(217 58 58 / .07); stroke: #d93a3a; stroke-width: 2; }
.dg-sign { fill: rgb(31 122 74 / .07); stroke: var(--ok); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .dg-anim { display: none; } }

/* Precios */
.planes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.plan { position: relative; padding: 40px; border-radius: 12px; background: #fff; box-shadow: var(--sombra-s); }
.plan.dest { box-shadow: 0 0 0 2px var(--brand), var(--sombra-l); }
.plan-badge { position: absolute; top: -12px; left: 40px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plan h2 { font-size: 25px; line-height: 30px; font-weight: 460; letter-spacing: -.6875px; }
.plan-d { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }
.plan-precio { margin-top: 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-precio strong { font-size: 49px; line-height: 1; font-weight: 460; letter-spacing: -1.3475px; }
.plan-precio span { font-size: 15px; color: var(--muted); }
.plan .plan-b { width: 100%; margin-top: 28px; }
.plan-contacto { margin-top: 12px; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.plan-contacto a { color: var(--brand); font-weight: 500; }
.plan hr { margin: 32px 0 0; border: 0; border-top: 1px solid var(--line); }
.plan .lista-c b { font-weight: 600; color: var(--ink); }
.plan .lista-c span { color: var(--muted); }
.caja-tinte { margin-top: 32px; padding: 32px 40px; border-radius: 12px; background: var(--tint); }
.caja-tinte h2, .caja-tinte h3 { font-size: 25px; line-height: 30px; font-weight: 460; letter-spacing: -.6875px; }
.caja-tinte p { margin-top: 12px; max-width: 880px; font-size: 16px; line-height: 25px; color: rgb(16 22 36 / .72); }
.caja-tinte a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* Contacto */
.c-mail { margin-top: 16px; font: 500 15px/22px var(--codigo); color: var(--brand); overflow-wrap: anywhere; }
.c-mail a:hover { text-decoration: underline; }
.carta .btn { margin-top: 24px; }
.carta .btn-ghost { margin-top: 20px; padding: 0; }
.direccion { font-size: 17px; line-height: 28px; color: var(--text); }
.direccion strong { color: var(--ink); font-weight: 600; }
.direccion a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ── Legal ────────────────────────────────────────────────────────────────────────────────────────────────────── */
.legal-barra { background: #fff; border-bottom: 1px solid var(--line); }
.legal-barra .cw { display: flex; align-items: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.legal-barra .cw::-webkit-scrollbar { display: none; }
.legal-barra a { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; line-height: 18px; font-weight: 540; color: var(--muted); }
.legal-barra a:hover { color: var(--ink); background: rgb(127 127 127 / .08); }
.legal-barra a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.legal main { background: var(--page); }
.prosa { max-width: 880px; margin: 0 auto; padding: 80px 80px 96px; color: var(--text); font-size: 17px; line-height: 1.65; }
.prosa h1 { margin: 0 0 16px; font: 460 49px/58.8px var(--fuente); letter-spacing: -1.3475px; color: var(--ink); }
.prosa h2 { margin: 48px 0 12px; font: 540 25px/30px var(--fuente); letter-spacing: -.5px; color: var(--ink); }
.prosa h3 { margin: 28px 0 8px; font: 600 18px/26px var(--fuente); letter-spacing: -.135px; color: var(--ink); }
.prosa :is(p, ul, ol, dl) { margin: 0 0 14px; }
.prosa :is(ul, ol) { padding-left: 22px; }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li { margin: 6px 0; }
.prosa li::marker { color: var(--muted); }
.prosa strong { font-weight: 600; color: var(--ink); }
.prosa a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prosa code { padding: 1px 5px; font-size: 14px; background: var(--tint); border-radius: 4px; overflow-wrap: anywhere; }
.prosa dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
.prosa dt { font-weight: 600; color: var(--ink); }
.prosa dd { margin: 0; overflow-wrap: anywhere; }
.prosa .fecha { margin: 0 0 40px; font: 540 14px/20px var(--fuente); color: var(--muted); }
.prosa .nota-t { margin: -24px 0 40px; font-size: 15px; line-height: 23px; color: var(--muted); }
.prosa .summary { margin: 0 0 16px; padding: 24px 28px; border-radius: 12px; background: var(--tint); }
.prosa .summary > :last-child { margin-bottom: 0; }
.prosa .summary ul { margin: 0; }
.prosa .note { font-size: 15px; color: var(--muted); }
.prosa .table-wrap { margin: 0 0 20px; overflow-x: auto; border-radius: 12px; background: #fff; box-shadow: var(--sombra-s); }
.prosa table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prosa th, .prosa td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prosa th { font: 600 13px/18px var(--fuente); color: var(--ink); background: #f1f3f7; white-space: nowrap; }
.prosa tr:last-child td { border-bottom: 0; }

/* ── 404 ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
.nf { padding: 120px 0 160px; text-align: center; }
.nf-c { font: 500 15px/20px var(--codigo); color: var(--brand); }
.nf h1 { margin: 16px auto 0; max-width: 800px; font-size: 49px; line-height: 58.8px; font-weight: 460; letter-spacing: -1.3475px; }
.nf .sub { margin-top: 20px; }
.nf .btns-c { margin-top: 40px; }
.nf-otro { margin-top: 40px; font-size: 15px; color: var(--muted); }
.nf-otro a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ── Menú grande «Product» (escritorio) ───────────────────────────────────────────────────────────────────────── */
.hdr-nav ul:has(.mg-gatillo[aria-expanded="true"]) > li > a:not(.mg-gatillo) { color: rgb(26 32 48 / .6); }
.mg-gatillo .chev { transition: transform .2s ease; }
.mg-gatillo[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mg-velo { position: fixed; inset: 0; z-index: 29; background: rgb(10 16 30 / .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mg-velo.visible { opacity: 1; pointer-events: auto; }
html.mg-bloqueo { overflow: hidden; padding-right: var(--mg-barra, 0); }
.mg-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgb(0 0 0 / .14); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mg-panel.abierto { opacity: 1; transform: none; pointer-events: auto; }
.mg-panel[hidden] { display: none; }
.mg-rej { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
.mg-titulo { margin: 0 0 14px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mg-grupo ul, .mg-destacado ul { display: grid; gap: 2px; }
.mg-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--ink); transition: background .15s ease, color .15s ease; }
.mg-item:hover, .mg-item:focus-visible { background: #f2f4f8; }
.mg-item:hover b, .mg-item:focus-visible b { color: var(--brand); }
.mg-ico { margin-top: 2px; color: var(--muted); }
.mg-item:hover .mg-ico, .mg-item:focus-visible .mg-ico { color: var(--brand); }
.mg-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-txt b { font-size: 13.5px; line-height: 17.5px; font-weight: 600; color: var(--ink); }
.mg-txt small { font-size: 12px; line-height: 16.2px; font-weight: 420; color: var(--muted); }
.mg-destacado { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mg-destacado ul { gap: 8px; }
.mg-tarjeta { padding: 12px; border: 1px solid rgb(1 20 53 / .12); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.mg-tarjeta:hover, .mg-tarjeta:focus-visible { background: #fff; border-color: var(--brand); }
.mg-nota { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 16.7px; color: var(--muted); }
.mg-destacado .mg-todo { align-self: flex-start; margin: 8px 0 0 -4px; }
@media (max-width: 1180px) { .mg-panel, .mg-velo { display: none !important; } }

/* Menú móvil: acordeón «Product» (su disparador con la tipografía grande del panel móvil, como los demás enlaces) */
.mm-acc { border-bottom: 0; }
.menu-movil .mm-acc-b { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; min-height: 37px; font: 500 32px/37px var(--titulos); letter-spacing: -.01em; text-align: left; }
.mm-acc-b .chev { width: 20px; height: 20px; transition: transform .2s ease; }
.mm-acc-b[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mm-acc-p { padding: 0 0 16px; }
.mm-acc-p[hidden] { display: none; }
.mm-grupo { margin: 12px 0 6px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mm-todo a { display: inline-flex; align-items: center; gap: 4px; margin: 12px 8px 4px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--brand); }
.mm-acc-p ul { display: grid; gap: 2px; }
.menu-movil .mm-acc-p a.mm-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-bottom: 0; border-radius: 8px; font-size: 14px; line-height: 18px; }
.mm-item .ico { color: var(--muted); }
.mm-item b { display: block; font-weight: 600; }
.mm-item small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ── Noticias (/news/, /es/noticias/) ─────────────────────────────────────────────────────────────────────────── */
/* La experiencia de la sala de prensa de OpenAI (openai.com/news, medida con getComputedStyle el 2026-10-26) con la
   marca de OpenWAF: título 48/55,68 peso 500 y -0,03em (32/36,75 y -0,02em en móvil) a 88 px de la cabecera; fila de
   pestañas a 24 px (20 en móvil) con enlaces de 18 px/500 separados 24 px, la activa en tinta y el resto al 66 % (OpenAI
   usa el 60 % sobre negro; en blanco eso da 4,3:1 y hace falta 4,5:1) y al 80 % al pasar, sin raya ni subrayado,
   desplazable con desvanecido en los bordes; a la derecha Filtrar y Ordenar (14 px/500,
   40 px de alto, sin fondo ni borde, icono de 16 px detrás) y el cambio de vista (iconos de 16 px, el elegido en tinta y
   el otro al 20 %). Nada de esto es fijo: solo la cabecera del sitio y el destacado (sticky bajo ella). */
.noticias-p main, .articulo-p main { background: #fff; }
.js-solo { visibility: hidden; }
.js .js-solo { visibility: visible; }
.nv-cab { padding-top: 88px; }
.nv-t { font: 500 48px/55.68px var(--titulos); letter-spacing: -.03em; color: var(--ink); }
.nv-fila { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: center; }
.nv-tabs { grid-column: span 3; min-width: 0; padding: 4px 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.nv-tabs::-webkit-scrollbar { display: none; }
.nv-tabs ul { display: flex; align-items: center; gap: 24px; min-width: max-content; padding-right: 48px; }
.nv-tab { display: block; border-radius: 4px; font: 500 18px/23.76px var(--fuente); letter-spacing: -.18px; color: rgb(26 32 48 / .66); white-space: nowrap; transition: color .25s var(--ease); }
.nv-tab:hover { color: rgb(26 32 48 / .8); }
.nv-tab[aria-current="page"] { color: var(--ink); }
.nv-tab:focus-visible { outline-offset: 4px; }
.nv-herr { display: flex; align-items: center; justify-content: flex-end; gap: 24px; height: 40px; }
.nv-pop { position: relative; }
.nv-btn { display: inline-flex; align-items: center; gap: .3em; height: 40px; padding: 0; border-radius: 4px; font: 500 14px/1 var(--fuente); color: var(--ink); white-space: nowrap; cursor: pointer; list-style: none; transition: color .15s var(--ease); }
.nv-btn::-webkit-details-marker { display: none; }
.nv-btn:hover { color: rgb(26 32 48 / .6); }
.nv-pop[open] > .nv-btn { color: rgb(26 32 48 / .6); }
.nv-bi { width: 16px; height: 16px; order: 2; stroke-width: 2; }
.nv-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 228px; padding: 24px 28px 20px; border-radius: 6px; background: #fff; box-shadow: var(--sombra-l); }
.nv-panel-d { padding: 8px; }
.nv-panel-t { font: 400 14px/20px var(--fuente); color: var(--muted); }
.nv-pills { margin-top: 14px; display: grid; gap: 0; }
.nv-pill { display: flex; align-items: center; gap: 12px; min-height: 23px; padding: 2px 0; font: 400 14px/19px var(--fuente); color: var(--ink); white-space: nowrap; }
.nv-pill::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(26 32 48 / .45); }
.nv-pill:hover { color: var(--brand); }
.nv-pill[aria-current="page"]::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.nv-opcs { display: grid; gap: 2px; }
.nv-opc { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 36px; padding: 0 12px; border-radius: 4px; font: 400 14px/19px var(--fuente); color: var(--ink); text-align: left; white-space: nowrap; }
.nv-opc:hover { background: rgb(127 127 127 / .08); }
.nv-ok { width: 16px; height: 16px; stroke-width: 2.2; visibility: hidden; }
.nv-opc[aria-pressed="true"] .nv-ok { visibility: visible; }
.nv-vista { display: flex; align-items: center; gap: 8px; height: 32px; }
.nv-icob { display: grid; place-items: center; width: 32px; height: 32px; padding: 8px; border-radius: 9999px; color: rgb(26 32 48 / .2); transition: color .3s; }
.nv-icob + .nv-icob { width: 16px; padding: 8px 0; }
.nv-icob .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.nv-icob[data-vista="grid"] .ico { fill: currentColor; stroke: none; }
.nv-icob[aria-pressed="true"] { color: var(--ink); }
.nv-icob:hover { color: rgb(26 32 48 / .6); }
.nv-icob[aria-pressed="true"]:hover { color: var(--ink); }
.nv-icob:focus-visible { outline-offset: 2px; }

/* Destacado (9 de 12 columnas, sticky bajo la cabecera) y carril de tres tarjetas cuadradas que se desplaza con la
   página (3 columnas, 64 px entre tarjetas), como en OpenAI; rejilla de tres columnas con 24 × 80 px de hueco. */
.nv-cuerpo { padding-top: 64px; padding-bottom: 120px; }
.nv-dest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.nh { grid-column: span 9; position: sticky; top: 64px; align-self: start; }
.nv-rail { grid-column: span 3; }
.nv-rail ul { display: grid; gap: 64px; }
.nc-a { display: block; color: var(--ink); }
.nh-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.nh-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* Ilustración de terceros sobre el vídeo (build.py → hero_media): velo suave para que se lea y la ilustración centrada
   al 56 % del ancho; con movimiento reducido el vídeo se queda en su póster y la ilustración sigue encima. */
.nh-velo { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 75% at 50% 50%, rgb(7 12 34 / .74), rgb(7 12 34 / .5) 75%, rgb(7 12 34 / .42)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nh-ilus { position: absolute; left: 50%; top: 50%; width: 56%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 40px rgb(0 0 0 / .35)); }
.nh-credito { margin-top: 8px; font: 460 12px/16px var(--fuente); color: var(--muted); }
.art-credito { max-width: 1026px; margin: 10px auto 0; font: 460 13px/18px var(--fuente); color: var(--muted); text-align: right; }
.art-credito a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nc-foto::before, .nc-foto::after { display: none; }
.nc-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.nc-a:hover .nc-foto img { transform: scale(1.0125); }
.nh-t { margin-top: 24px; max-width: 900px; font: 400 44px/50px var(--titulos); letter-spacing: -.02em; }
.nc-img { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; }
/* Retícula de puntos sobre la escena (como las portadas de OpenAI) y el icono en un cuadrado de trazo blanco. */
.nc-img::before, .nc-img::after { content: ""; position: absolute; inset: 0; opacity: .7; transition: transform .6s var(--ease); }
.nc-img::before { background: linear-gradient(to bottom, rgb(255 255 255 / .6) 0 1px, transparent 1px) 0 25% / 100% 25%; -webkit-mask-image: repeating-linear-gradient(to right, #000 0 2px, transparent 2px 5px); mask-image: repeating-linear-gradient(to right, #000 0 2px, transparent 2px 5px); }
.nc-img::after { background: linear-gradient(to right, rgb(255 255 255 / .6) 0 1px, transparent 1px) 25% 0 / 25% 100%; -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 2px 5px); }
.nc-ico { position: relative; display: grid; place-items: center; width: 28%; aspect-ratio: 1; border-radius: 16%; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .9); color: #fff; transition: transform .6s var(--ease); }
.nc-ico .ico { width: 44%; height: 44%; stroke-width: 1.4; }
.nc-a:hover .nc-ico, .nc-a:hover .nc-img::before, .nc-a:hover .nc-img::after { transform: scale(1.0125); }
.nc-a:hover .nh-img video { transform: scale(1.0125); }
.nh-img video { transition: transform .6s var(--ease); }
.nc-t { margin-top: 24px; font: 500 18px/24px var(--titulos); letter-spacing: -.01em; }
.nc-a:hover .nc-t, .nc-a:hover .nh-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nc-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 460 14px/20px var(--fuente); color: var(--muted); }
.nh .nc-meta { margin-top: 16px; }
.nc-cat { color: var(--ink); font-weight: 500; }
.nl-grid { margin-top: 120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 24px; }
.nv-dest + .nl-grid .solo-movil { display: none; }
.nv-vacio { position: static; padding: 56px; border-radius: 12px; background: var(--page); box-shadow: 0 0 0 1px var(--line); }
.nv-vacio h2 { font: 400 32px/38px var(--titulos); letter-spacing: -.02em; }
.nv-vacio p { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 28px; color: var(--muted); }
.nv-vacio-acc { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.nv-pag { margin-top: 96px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.nv-pag ol { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nv-pag ol a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 4px; font: 500 14px/1 var(--fuente); color: rgb(26 32 48 / .66); }
.nv-pag ol a:hover { color: var(--ink); }
.nv-pag ol a[aria-current="page"] { color: var(--ink); background: rgb(127 127 127 / .1); }
/* Vista de lista (site.js, ?display=list): filas con categoría, fecha y lectura a la izquierda y título y entradilla. */
.nl-filas { border-top: 1px solid var(--line); }
.nf-fila { border-bottom: 1px solid var(--line); }
.nf-a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 40px 0; color: var(--ink); }
.nf-meta { display: flex; flex-direction: column; gap: 4px; font: 460 14px/20px var(--fuente); color: var(--muted); }
.nf-meta .nc-cat { margin-bottom: 16px; }
.nf-t { font: 500 20px/26px var(--titulos); letter-spacing: -.01em; }
.nf-ext { margin-top: 16px; max-width: 620px; font-size: 15px; line-height: 23px; color: var(--text); }
.nf-a:hover .nf-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nv-cuerpo.lista .nv-dest, .nv-cuerpo.lista > .nl-grid, .nv-cuerpo.plana .nv-dest, .nv-cuerpo.plana > .nl-grid:not(.nl-plana) { display: none; }
.nv-cuerpo > .nl-filas, .nv-cuerpo > .nl-plana { display: none; }
.nv-cuerpo.lista > .nl-filas { display: block; }
.nv-cuerpo.plana > .nl-plana { display: grid; margin-top: 0; }
.nv-cuerpo > .nl-grid:first-child { margin-top: 0; }

/* Artículo: cabecera centrada (fecha y categoría, título, entradilla, autor y barra con lectura y compartir), vídeo,
   texto a 676 px con el índice fijo en el margen izquierdo, temas y autor, y «Sigue leyendo» con tres tarjetas. */
.art-cab { padding-top: 96px; text-align: center; }
.art-meta { display: flex; justify-content: center; gap: 16px; font: 500 14px/20px var(--fuente); color: var(--ink); }
.art-meta a { color: var(--muted); }
.art-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.art-cab h1 { margin: 32px auto 0; max-width: 800px; font: 400 44px/50px var(--titulos); letter-spacing: -.02em; color: var(--ink); }
.art-dek { margin: 24px auto 0; max-width: 600px; font-size: 17px; line-height: 28px; color: var(--text); }
.art-by { margin-top: 20px; font: 460 14px/20px var(--fuente); color: var(--muted); }
.art-barra { margin: 56px auto 0; max-width: 676px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.art-lect { display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--fuente); color: var(--ink); }
.art-lect .ico { width: 16px; height: 16px; color: var(--muted); }
.art-comp .nv-bi { order: 0; }
.art-medio { margin-top: 48px; }
.art-medio .nh-img { max-width: 1026px; margin: 0 auto; }
.art-rej { position: relative; margin-top: 64px; }
.art-toc { position: absolute; left: 80px; top: 0; bottom: 0; width: 190px; }
.art-toc > * { position: sticky; top: 96px; }
.art-toc p { font: 600 11px/16px var(--fuente); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.art-toc ol { top: 120px; margin-top: 12px; display: grid; gap: 10px; list-style: none; padding: 0; }
.art-toc a { display: block; font: 460 13px/17px var(--fuente); color: var(--muted); }
.art-toc a:hover, .art-toc a[aria-current="true"] { color: var(--ink); }
.art-prosa { max-width: 676px; padding: 0 0 96px; font-size: 17px; line-height: 28px; }
.art-prosa h2 { margin: 56px 0 16px; font: 500 28px/34px var(--titulos); letter-spacing: -.02em; scroll-margin-top: 88px; }
.art-prosa h3 { margin: 32px 0 8px; font: 600 19px/26px var(--titulos); }
.art-prosa .summary { margin-bottom: 8px; }
.art-prosa .summary p { margin-bottom: 12px; }
.art-prosa .table-wrap { margin: 8px 0 24px; }
.art-prosa table { font-size: 14.5px; line-height: 22px; }
.art-prosa .codigo { margin: 8px 0 20px; font-size: 13px; line-height: 21px; }
.art-prosa .codigo code { padding: 0; background: none; border-radius: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.art-prosa .preguntas { max-width: none; margin: 8px 0 0; }
.art-prosa .preguntas summary { padding: 18px 0; font-size: 17px; line-height: 25px; }
.art-prosa .preguntas .resp { padding: 0 0 18px; }
.art-prosa .preguntas .resp p { margin: 0; font-size: 16px; line-height: 26px; }
.prosa .checklist { list-style: none; counter-reset: paso; padding-left: 0; }
.prosa .checklist li { position: relative; margin: 12px 0; padding-left: 40px; counter-increment: paso; }
.checklist li::before { content: counter(paso); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--brand); font: 600 13px/1 var(--fuente); }
.prosa .art-fuentes { list-style: none; padding-left: 0; font-size: 15px; line-height: 23px; }
.prosa .art-fuentes li { margin: 0 0 10px; }
.art-fuente { color: var(--muted); }
.art-pie { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 24px; font-size: 14px; line-height: 20px; }
.prosa .art-pie > * { margin: 0; }
.art-pie-t { font-weight: 500; color: var(--muted); }
.prosa .art-temas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.prosa .art-temas li { margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 20px; color: var(--text); }
.art-sigue { padding-top: 64px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.art-sigue-enc { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.art-sigue-enc h2 { font: 500 28px/34px var(--titulos); letter-spacing: -.02em; }
.art-sigue-enc a { font: 500 14px/20px var(--fuente); color: var(--ink); }
.art-sigue-enc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-sigue .nl-grid { margin-top: 48px; }
@media (max-width: 1500px) { .art-toc { width: 160px; } }
@media (max-width: 1340px) { .art-toc { display: none; } }
@media (prefers-reduced-motion: reduce) { .nc-ico, .nc-img::before, .nc-img::after, .nh-img video, .nv-tab, .nv-icob { transition: none; } .nc-a:hover .nc-ico, .nc-a:hover .nc-img::before, .nc-a:hover .nc-img::after, .nc-a:hover .nh-img video { transform: none; } }

/* ── Responsive ───────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cw { padding: 0 32px; }
  .hdr { height: 54px; }
  .hdr-in { height: 54px; padding: 0 24px; }
  .hdr .logo { height: 54px; }
  .hdr-nav, .hdr-txt, .hdr-ico, .hdr-b { display: none; }
  .menu-enlace { display: inline-flex; }
  .js .menu-enlace { display: none; }
  .js .burger { display: flex; }
  /* Panel móvil como el de OpenAI: a pantalla completa bajo la barra, enlaces de 32 px/500 cada 53 px sin separadores,
     una línea y debajo «Crear cuenta ↗» en tinta y «Entrar» y el idioma atenuados, en texto (no en píldoras). */
  .menu-movil { position: fixed; inset: 54px 0 0; z-index: 29; display: none; flex-direction: column; gap: 16px; padding: 24px 24px 40px; background: #fff; overflow: auto; overscroll-behavior: contain; }
  .menu-movil.abierto { display: flex; }
  .menu-movil > a { font: 500 32px/37px var(--titulos); letter-spacing: -.01em; color: var(--ink); }
  .menu-movil > a[aria-current] { color: var(--brand); }
  .mm-pie { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
  .mm-pie .btn { width: 100%; }
  .mm-pie .mm-sec { display: inline-flex; align-items: center; font: 500 32px/37px var(--titulos); letter-spacing: -.01em; color: rgb(26 32 48 / .66); }
  .car { min-height: 0; background: var(--dark); }
  .car-caja { gap: 0; min-height: 0; padding-top: 48px; }
  .car-textos { margin: 0; width: auto; }
  .car-t { font-size: 44px; line-height: 50px; letter-spacing: -1.2px; }
  .car-panel { position: relative; left: auto; top: auto; bottom: auto; width: calc(100% + 64px); margin: 24px -32px 0; height: 420px; order: 2; }
  .car-lista { width: auto; margin: 24px 0 0; order: 3; padding-bottom: 32px; }
  .aside.g, .aside.m { grid-template-columns: 1fr; height: auto; }
  .a-txt { padding: 32px; }
  .a-pic { height: 280px; }
  .par { grid-template-columns: 1fr; gap: 32px; }
  .rejilla { grid-template-columns: repeat(6, 1fr); }
  .rejilla li { grid-column: span 2; }
  .rejilla li:nth-child(n+4) { grid-column: span 3; }
  .tab { padding: 0 24px; }
  .tarjs { grid-template-columns: 1fr; }
  .tarj { min-height: 0; }
  .mg { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mc.alta { grid-row: auto; }
  .mc.sup, .mc.inf { min-height: 300px; }
  .emp-in { grid-template-columns: 1fr; gap: 40px; }
  .mcp-in { grid-template-columns: 1fr; gap: 48px; }
  .mcp-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .cierre { height: auto; padding: 64px 0; }
  .cierre-in { flex-direction: column; align-items: flex-start; }
  .pie-sup { flex-direction: column; min-height: 0; }
  .pie-marca { flex: none; }
  .pie-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .pie-gigante { height: auto; }
  .pie-marcas { position: static; padding: 24px 0 0; }
  .in-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .s-enc { grid-template-columns: 1fr; gap: 16px; }
  .cartas, .cartas.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planes { grid-template-columns: 1fr; }
  .diagrama { padding: 24px; }
  .prosa { padding: 64px 32px 80px; }
  .prosa.art-prosa { padding: 0 0 80px; }
  .nv-fila { display: block; }
  .nv-herr { margin-top: 32px; padding-top: 12px; height: auto; border-top: 1px solid var(--line); justify-content: flex-start; }
  .nv-vista { margin-left: auto; }
  .nv-herr .nv-pop:first-child .nv-panel { left: 0; right: auto; }
  .nv-dest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nh { grid-column: 1 / -1; position: static; }
  .nv-rail { grid-column: 1 / -1; margin-top: 64px; }
  .nv-rail ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .nh-t, .art-cab h1 { font-size: 36px; line-height: 42px; }
  .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dg-h { display: none; }
  .dg-v { display: block; }
}
@media (max-width: 640px) {
  .cw { padding: 0 16px; }
  .menu-movil { padding: 24px 24px 40px; }
  .t49, .cierre h2, .emp h2, .in-hero h1, .p-hero h1, .nf h1, .prosa h1 { font-size: 34px; line-height: 40px; letter-spacing: -.8px; }
  .s-enc h2 { font-size: 28px; line-height: 34px; letter-spacing: -.7px; }
  .sub { font-size: 16.5px; line-height: 25px; }
  .car-t { font-size: 36px; line-height: 42px; letter-spacing: -1px; }
  .car-sub { font-size: 16.5px; line-height: 25px; }
  .car-panel { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; height: 320px; }
  .car-caja { padding-top: 32px; }
  .car-fila { padding: 0 16px; }
  .car-fila span:last-child { display: none; }
  .car-btns, .btns-c, .btns-l, .in-cta { flex-wrap: wrap; gap: 12px 16px; }
  .pilas, .grupo, .cita, .emp, .faq-s { padding: 64px 0; }
  .mcp-in { margin-top: 48px; gap: 40px; }
  .mcp-seg { grid-template-columns: 1fr; }
  .mcp-log { padding: 18px 16px 20px; font-size: 12.5px; line-height: 20px; }
  .mcp-cmd { margin-top: 40px; padding: 20px; }
  .codigo { padding: 14px 16px; font-size: 12.5px; line-height: 20px; }
  .herr li { grid-template-columns: 1fr; gap: 2px; }
  .mcp-h { margin-top: 40px; }
  /* En español «OPENWAF Control de cambios» y las píldoras de «Próximamente» no caben en 390 px sin partirse. */
  .lockup { gap: 8px; }
  .lockup-m { font-size: 17px; }
  .lockup-p { font-size: 21px; }
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .rejilla li, .rejilla li:nth-child(n+4) { grid-column: auto; height: 72px; font-size: 16px; line-height: 20px; }
  .rejilla li:last-child { grid-column: 1 / -1; }
  .cita h2 { font-size: 28px; line-height: 36px; }
  .a-txt .tx, .tarj h3, .mc-txt h3 { font-size: 22px; line-height: 27px; }
  .a-txt { padding: 24px; }
  /* Pantallas del panel de 1280 px en ventanas de ~310 px: más grandes, con la parte izquierda a la vista. */
  .z-dash-eventos :is(video, img), .z-dash-ia :is(video, img) { width: 180%; }
  .z-dash-origen :is(video, img) { width: 135%; }
  .carta, .plan { padding: 24px; }
  .plan-badge { left: 24px; }
  .caja-tinte { padding: 24px; }
  .mc-txt { padding: 0 24px 24px; }
  .pie-nav { gap: 32px 24px; }
  .cartas, .cartas.dos, .cartas.cuatro { grid-template-columns: 1fr; }
  .seccion { padding: 56px 0; }
  .in-hero { padding-top: 40px; padding-bottom: 48px; }
  .p-hero { padding: 56px 0 40px; }
  .cierre.grande { padding: 64px 0; }
  .cierre-t { flex-direction: column; align-items: flex-start; gap: 16px; }
  .revelado { width: 64px; height: 64px; }
  .cierre-acc a { width: 100%; }
  .preguntas summary { font-size: 16.5px; line-height: 24px; }
  .prosa { padding: 48px 16px 64px; font-size: 16px; }
  .prosa h2 { font-size: 22px; line-height: 28px; }
  .prosa dl { grid-template-columns: 1fr; gap: 0; }
  .prosa dd { margin-bottom: 12px; }
  .nf { padding: 64px 0 96px; }
  .prosa.art-prosa { padding: 0 0 64px; font-size: 16.5px; line-height: 27px; }
  .nv-cab { padding-top: 70px; }
  .nv-t { font-size: 32px; line-height: 36.75px; letter-spacing: -.02em; }
  .nv-fila { margin-top: 20px; }
  .nv-tab { font-size: 16px; line-height: 20px; letter-spacing: -.16px; }
  .nv-cuerpo { padding-top: 40px; padding-bottom: 80px; }
  .nv-rail { display: none; }
  .nv-dest + .nl-grid .solo-movil { display: block; }
  .nl-grid { grid-template-columns: 1fr; gap: 56px; margin-top: 56px; }
  .nh-t, .art-cab h1 { font-size: 30px; line-height: 36px; }
  .nv-vacio { padding: 32px 24px; }
  .nv-vacio h2 { font-size: 26px; line-height: 32px; }
  .nf-a { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .nf-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .nf-meta .nc-cat { margin-bottom: 0; }
  .art-cab { padding-top: 56px; }
  .art-cab h1 { margin-top: 24px; }
  .art-barra { margin-top: 40px; }
  .art-medio { margin-top: 32px; }
  .art-medio .nh-img { border-radius: 8px; }
  .art-rej { margin-top: 40px; }
  .art-pie { grid-template-columns: 1fr; gap: 8px; }
  .art-sigue { padding-top: 48px; padding-bottom: 80px; }
}

/* ── OpenWAF Egress (/egress/): vídeo de portada 16:9, cinco pasos, cifras y enlaces ───────────────────────────── */
.eg-demo { padding-top: 72px; }
.eg-cover { padding-bottom: 72px; }
.eg-video { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #0c1733; box-shadow: 0 24px 60px -24px rgb(12 23 51 / .45); }
.eg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eg-cover figcaption { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 14px; line-height: 21px; color: var(--muted); }
.eg-ruta { margin: -12px auto 32px; text-align: center; font-size: 15px; line-height: 24px; color: var(--muted); }
.eg-ruta code { padding: 2px 6px; border-radius: 6px; background: var(--tint); color: var(--ink); overflow-wrap: anywhere; }
.cartas.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cartas.cinco h3 { font-size: 19px; line-height: 24px; }
.carta p.eg-st { margin-top: 10px; }
.carta p.eg-st code { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--tint); color: var(--brand); font-size: 12.5px; line-height: 17px; font-weight: 600; overflow-wrap: anywhere; }
.carta p.eg-st + p { margin-top: 10px; font-size: 15px; line-height: 22px; }
.eg-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.eg-cifras li { display: flex; flex-direction: column; gap: 8px; padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eg-cifras b { font: 500 48px/52px var(--titulos); letter-spacing: -1.2px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eg-cifras span { font-size: 15px; line-height: 22px; color: var(--muted); }
.eg-enl { margin-top: 16px; display: grid; gap: 4px; }
.eg-enl a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 8px; transition: background .15s ease; }
.eg-enl a:hover, .eg-enl a:focus-visible { background: rgb(255 255 255 / .7); }
.eg-enl .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--brand); }
.eg-enl span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-enl b { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.eg-enl small { font-size: 13px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.carta .lista-c code { font-size: 14px; color: var(--ink); }
.carta p.eg-nota { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 23px; }

/* ── Héroe de producto (build.py → product_hero): el de la landing ────────────────────────────────────────────── */
/* Las piezas del carrusel (.car-caja, .car-textos, .car-t, .car-sub, .car-btns, .car-nota, .car-lista, .car-fila y
   .car-panel): texto sobre --dark a la izquierda con la etiqueta del producto, sus filas abajo (enlaces a las
   secciones de la página) y a la derecha, a sangre hasta el borde, la escena pintada del color de la tesela del
   producto con la ventana de su clip (el póster es el LCP); el color del panel (.c-*, .v-*) se ve mientras carga. El
   alto es el del carrusel, sin saltos, y en móvil se apila como él: texto, escena y filas. */
.ph { position: relative; overflow: clip; color: #fff; background: var(--dark); }
.ph-et { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 14px; line-height: 16.8px; font-weight: 500; color: rgb(255 255 255 / .8); }
.ph .car-nota + .car-nota { margin-top: 8px; }
.ph .car-fila { height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
.ph .car-fila:hover { color: #fff; background: rgb(255 255 255 / .07); }
.ph .car-fila b { width: 132px; }
.forma-ph { left: 10%; top: 9%; width: 100%; bottom: 9%; }
.ph-panel .z-bento-bloqueo :is(video, img) { object-position: 50% 0; }
.ph-panel .bt-loop :is(img, video) { object-position: left top; }
.ph-panel .term.chat { top: 50%; bottom: auto; transform: translateY(-50%); }
.ph-panel .term.chat .mcp-log { padding: 28px 30px 32px; font-size: 15px; line-height: 24px; gap: 16px; }
@media (min-width: 1181px) { .ph-panel { width: 50vw; } }
/* Apilado: texto, filas y escena. Con la escena antes de las filas (como en la home) ocupa más pantalla que el texto y
   pasa a ser el LCP de móvil: con las fuentes y las escenas de las teselas en paralelo, 2,6-3,2 s en Lighthouse. */
@media (max-width: 1180px) {
  .ph .car-lista { padding-bottom: 0; }
  .ph-panel { order: 4; margin-top: 40px; }
  .ph-panel .forma-ph { left: 8%; top: 26%; bottom: auto; height: 100%; }
}
/* Escena del héroe: la reducida (escena-*-s.webp, tools/gen_texturas.py), que no cuenta como LCP. */
.ph-panel > .f-cobalto { background-image: url(/img/escena-cobalto-s-9ed442044a0399ef.webp); }
.ph-panel > .f-noche { background-image: url(/img/escena-noche-s-15e463f3dda8deb8.webp); }
.ph-panel > .f-brasa { background-image: url(/img/escena-brasa-s-6a91f89ece965e6e.webp); }
.ph-panel > .f-petroleo { background-image: url(/img/escena-petroleo-s-8e04acbb7af191ac.webp); }
.ph-panel > .f-niebla { background-image: url(/img/escena-niebla-s-dcc2f6cf724aa950.webp); }
.ph-panel > .f-glaciar { background-image: url(/img/escena-glaciar-s-dc5bf99749247f85.webp); }
/* Secciones de debajo: componentes de siempre (cartas, pasos, listas de dos columnas, bloques de código). */
.nota-s.ms-nota { margin-left: auto; margin-right: auto; text-align: center; }
.carta h3.ms-h { margin-top: 32px; }
.ms-no .ico { color: var(--muted); }
.ms-no code, .carta .herr code + span code { font-size: 13.5px; color: var(--ink); }
.ms-conf { margin-top: 24px; }
@media (max-width: 640px) {
  .ph .car-fila b { width: 112px; }
  .ph .car-fila span:last-child { display: inline; }
  /* La ventana mide unos 350 px: los paneles se acercan para que se lean. */
  .ph-panel :is(.z-dash-ia, .z-dash-mcp, .z-dash-eventos, .z-dash-cache, .z-bento-historial, .z-agencias) { --zw: 160%; }
  .setup .setup-pick { flex: none; }
  .setup-name { display: none; }
  /* El botón partido cabe en 358 px: sin icono de copia, rellenos más cortos y la etiqueta en dos líneas si hace falta. */
  .setup { max-width: 100%; }
  .setup .setup-copy { min-width: 0; padding: 0 14px 0 18px; font-size: 15px; line-height: 18px; white-space: normal; text-align: left; }
  .setup .setup-copy .btn-i { display: none; }
  .setup .setup-pick { padding: 0 14px 0 12px; }
}

@media (max-width: 1180px) {
  .cartas.cinco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-cifras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cartas.cinco { grid-template-columns: 1fr; }
  .eg-cover { padding-bottom: 48px; }
  .eg-video { border-radius: 8px; }
  .eg-cifras b { font-size: 40px; line-height: 44px; }
}

/* Lenis (desplazamiento suave, /js/lenis.min.js, MIT): reglas que pide la librería. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
