/* Self-hosted Maicao font subset (latin only).
 *
 * Fuente: descargas directas de Google Fonts (versiones v44 / v24) restringidas
 * al unicode-range latino — suficiente para es-CL. Si en el futuro se necesitan
 * acentos extendidos (latin-ext), cyrillic, etc., agregar el .woff2 al folder
 * y un nuevo bloque @font-face apuntando a su archivo local.
 *
 * Pesos:
 *   - Open Sans: VF rango 300-800 (cubre 300 typography.js + 400/500/600/700/800
 *     usados a lo largo del código sin synthesis del navegador).
 *   - Poppins:   archivos estáticos 400, 600, 700 (los únicos pesos co-localizados
 *     con `fontFamily: 'Poppins'` o `getFontFamily('display')`).
 *
 * font-display: optional → si la woff2 no está lista cuando el CSS se activa
 * (~100ms después), el browser usa el system fallback PERMANENTE en esa visita
 * (sin swap posterior). Esto elimina el reflow por carga de fuentes y mata el
 * CLS por fonts. Los `<link rel="preload" as="font">` declarados en el brand
 * aseguran que la woff2 ya esté en caché cuando el CSS active, así que en
 * cargas con conectividad normal el usuario sí ve la fuente real.
 */

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    /* El archivo VF de Google soporta el rango 300-800 internamente. Declaramos
     * el mismo rango para que peso 300 (h1/h2 en typography.js) y 800
     * (PDP, stores-near-you) usen el VF real en vez de un bold sintetizado. */
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: optional;
    src: url(./open-sans-latin-vf.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url(./poppins-latin-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url(./poppins-latin-600.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url(./poppins-latin-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
