/* ==========================================================================
   Base — fuentes del kit, reset y utilidades tipográficas
   ========================================================================== */

/* Fuentes servidas desde el proyecto: sin dependencias externas.
   Pesos autorizados por el kit v2.0: Archivo 400/600/800, DM Mono 400/500.
   Nunca usar Light ni Thin. Licencias OFL en fuentes/. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/ARCHIVO-REGULAR.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fuentes/ARCHIVO-SEMIBOLD.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fuentes/ARCHIVO-EXTRABOLD.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/DM-MONO-REGULAR.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fuentes/DM-MONO-MEDIUM.woff2') format('woff2');
}

/* ── Reset ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--superficie);
  color: var(--texto-fuerte);
  font-family: var(--tipo-titulos);
  font-size: var(--txt-base);
  line-height: var(--lh-normal);
  font-weight: var(--peso-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--tipo-titulos);
  font-weight: var(--peso-fuerte);
  line-height: var(--lh-apretado);
  letter-spacing: var(--track-titulo);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

svg { display: block; }

a { color: var(--acento); }

/* Foco del kit: contorno celeste de 3 px. */
:focus-visible {
  outline: 3px solid var(--mufah-celeste);
  outline-offset: 2px;
  border-radius: var(--radio-s);
}

::selection {
  background: var(--acento-medio);
  color: var(--texto-fuerte);
}

/* ── Utilidades tipográficas ─────────────────────────────────────────── */

/* Etiqueta de metadato: DM Mono en mayúsculas. */
.meta {
  font-family: var(--tipo-datos);
  font-size: var(--txt-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--texto-tenue);
  line-height: var(--lh-normal);
}

/* Dato tabular sin mayúsculas: cifras en tablas y listas. */
.dato {
  font-family: var(--tipo-datos);
  font-size: var(--txt-sm);
  font-variant-numeric: tabular-nums;
  color: var(--texto-medio);
}

.cifra {
  font-family: var(--tipo-titulos);
  font-weight: var(--peso-fuerte);
  letter-spacing: var(--track-cifra);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Barras de desplazamiento ────────────────────────────────────────── */

.scroll-sutil { scrollbar-width: thin; scrollbar-color: var(--gris-300) transparent; }
.scroll-sutil::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-sutil::-webkit-scrollbar-track { background: transparent; }
.scroll-sutil::-webkit-scrollbar-thumb {
  background: var(--gris-300);
  border-radius: var(--radio-completo);
}
