/* ============================================================================
 * public/assets/css/fonts.css
 * ----------------------------------------------------------------------------
 * Fuentes auto-hospedadas (antes cargadas desde fonts.googleapis.com).
 *
 * [ZAP2-M4] Sub Resource Integrity Attribute Missing — el <link> de Google
 * Fonts no tenía integrity porque el CSS que devuelve Google cambia según
 * el navegador (contenido negociado), así que un hash SRI fijo se rompería
 * para algunos usuarios. La solución fue auto-hospedar los archivos: ya no
 * hay <link> externo que necesite integrity, y de paso mejora privacidad
 * (sin request a Google) y performance (sin round-trip extra de DNS/TLS).
 *
 * Reemplaza en cada plantilla a:
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=...&display=swap" rel="stylesheet">
 * por:
 *   <link rel="stylesheet" href="{mismo prefijo que ya usaba ese archivo}assets/css/fonts.css">
 *
 * LOS ARCHIVOS .woff2 REFERENCIADOS ABAJO NO SE DESCARGARON AÚN.
 * Corre una vez: public/assets/fonts/download-fonts.sh
 * (requiere una máquina con salida a internet — ver ese script para detalles).
 * Mientras no se corra, el navegador simplemente cae al fallback
 * (system-ui / sans-serif / monospace) sin errores ni bloqueos.
 * ==========================================================================*/

/* Inter — texto de cuerpo (--font-body) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

/* Space Grotesk — títulos (--font-display) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700.woff2') format('woff2');
}

/* JetBrains Mono — datos técnicos monoespaciados (inventario) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-600.woff2') format('woff2');
}

/* Plus Jakarta Sans — cuerpo del módulo de Empresas (RH) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2');
}

/* Bricolage Grotesque — títulos del módulo de Empresas (RH)
   Nota: la fuente original es variable (eje óptico "opsz"); aquí se usan
   dos instancias estáticas (600/700) que cubren los pesos que el proyecto
   realmente usa. Se pierde el ajuste automático de tamaño óptico, efecto
   visual menor. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-700.woff2') format('woff2');
}
