/* ============================================================
   NUEZ — Fuentes self-hosted (OFL) · WOFF2 subset latin + latin-ext
   Ubicación: vistas/assets/fonts/  · Sin Google Fonts ni CDN.

   size-adjust calculado con las métricas reales de cada archivo
   (x-height / unitsPerEm) contra Arial, para que el salto al
   fallback mientras carga sea imperceptible.
   ============================================================ */

/* ---- Plus Jakarta Sans — UI, cuerpo, etiquetas ---- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 96.7%;
  src: url('../fonts/jakarta-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  size-adjust: 96.2%;
  src: url('../fonts/jakarta-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  size-adjust: 95.9%;
  src: url('../fonts/jakarta-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  size-adjust: 95.3%;
  src: url('../fonts/jakarta-700.woff2') format('woff2');
}

/* ---- Fraunces — cifras KPI y hero ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 107.6%;
  src: url('../fonts/fraunces-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  size-adjust: 107.6%;
  src: url('../fonts/fraunces-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  size-adjust: 107.6%;
  src: url('../fonts/fraunces-700.woff2') format('woff2');
}

/* ---- JetBrains Mono — folios, códigos, cifras tabulares ---- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 94.3%;
  src: url('../fonts/mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  size-adjust: 94.3%;
  src: url('../fonts/mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  size-adjust: 94.3%;
  src: url('../fonts/mono-600.woff2') format('woff2');
}

/* --- Valores por defecto del documento --- */
:root {
  --nz-font-sans: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --nz-font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  --nz-font-mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
}
