/* Reset, tipografía, enlaces, foco visible, utilidades [data-show-for] (sección 2). */

/* Fuentes autoalojadas (OFL 1.1): .woff2 solo del subset "latin" (cubre el español, incluida ñ/acentos)
   en assets/fonts/, con la licencia de cada familia en LICENSE-OFL-Archivo.txt / LICENSE-OFL-IBMPlexSans.txt /
   LICENSE-OFL-IBMPlexMono.txt. Nunca se carga desde fonts.googleapis.com (evita ese origen en la CSP). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
  text-wrap: balance;
  line-height: var(--lh-tight);
}
h1 { font-weight: 800; font-size: var(--fs-3xl); }
h2 { font-weight: 600; font-size: var(--fs-2xl); }
h3 { font-weight: 600; font-size: var(--fs-xl); }

/* Ritmo vertical (R-1, LANDING_REVISION_DISENO_2026-11-23.md): dentro de un bloque de
   contenido, cada hijo se separa del anterior en vez de depender de un margin suelto.
   Un h1/h2/h3 seguido de texto lleva menos aire que un bloque seguido de un h2/h3 nuevo. */
.flow > * + * { margin-top: var(--flow-space, var(--s4)); }
.flow > :is(h1, h2, h3) + * { --flow-space: var(--s3); }
.flow > * + :is(h2, h3) { --flow-space: var(--s6); }

.lede {
  font-size: var(--fs-md);
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.mono, [data-mono] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a { color: var(--felt); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a.btn, .site-header nav a, .site-header .brand, .site-footer nav a {
  text-decoration: none;
}
.site-header nav a { color: var(--fg); padding-block: var(--s1); border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--felt); border-bottom-color: var(--felt); }
.site-footer nav a:hover { text-decoration: underline; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

.measure { max-width: var(--measure); }

.wrapper {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Visibilidad condicional por estado de visitante (sección 3 de LANDING_DISENO.md).
   Sin JS, o mientras carga, se ven los bloques de "visitor": el HTML estático los trae con
   la clase .is-visible ya puesta. */
[data-show-for]:not(.is-visible) { display: none; }

/* Utilidades mínimas, para no depender de atributos style="" inline (la CSP de 1.3 no lleva
   style-src 'unsafe-inline': una modificación de el.style.* desde JS también la viola). */
.u-block { width: 100%; }
.u-mt-s4 { margin-top: var(--s4); }
.u-mt-s5 { margin-top: var(--s5); }
.u-mt-s6 { margin-top: var(--s6); }
.u-ml-s2 { margin-left: var(--s2); }
.u-max-34 { max-width: 34rem; }
.u-list-stack { display: flex; flex-direction: column; gap: var(--s2); }
.u-hidden { display: none; }
.u-mono-sm { font-family: var(--font-mono); font-size: var(--fs-xs); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
