/* Núcleo CSS · sin diseño. Reset, Lenis, accesibilidad y la red de seguridad responsive.
   Los colores, fuentes y formas los pone la hoja de la marca (css/marca.css), que se carga DESPUÉS.
   Variables que las mecánicas esperan que la marca defina (con estos valores neutros de respaldo): */
:root {
  --fondo: #fff; --tinta: #111; --tinta-2: #666; --acento: #111; --sobre-acento: #fff;
  --linea: rgb(0 0 0 / .12); --ok: #2e9d4f; --off: #999;
  --barra: 56px;                        /* alto de la barra fija si la hay (0px si no) */
  --pad: clamp(16px, 4vw, 56px);        /* margen lateral */
  --curva: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip en html Y body: cualquier cosa trasladada en X (filas, pistas) no abre scroll lateral */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--fondo); color: var(--tinta); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-pausado, html.is-pausado body { overflow: hidden; } /* pausar() del motor, con o sin Lenis */

.salto { position: fixed; left: 8px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--acento); color: var(--sobre-acento); }
.salto:focus { top: 8px; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* las columnas de texto miden sus títulos contra sí mismas (cqi), no contra la pantalla */
.texto { container-type: inline-size; }

/* escena fijada genérica: <section class="fija" style="--largo: 220svh"><div class="fija__stage">… */
.fija { position: relative; height: var(--largo, 200svh); }
.fija__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html:not(.mov) .fija { height: auto; }
html:not(.mov) .fija__stage { position: relative; height: auto; min-height: 100svh; overflow: visible; }

html:not(.mov) *, html:not(.mov) *::before, html:not(.mov) *::after {
  transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important;
}
