/* Font Display Swap - Mejora FCP asegurando que el texto sea visible durante la carga de fuentes */

/* Font metric overrides para reducir CLS al cargar Google Fonts (Manrope y Ubuntu) */
@font-face {
    font-family: 'Manrope Fallback';
    src: local('Arial');
    font-style: normal;
    font-weight: 400;
    ascent-override: 101%;
    descent-override: 27%;
    line-gap-override: 0%;
    size-adjust: 101%;
}

@font-face {
    font-family: 'Ubuntu Fallback';
    src: local('Arial');
    font-style: normal;
    font-weight: 400;
    ascent-override: 96%;
    descent-override: 24%;
    line-gap-override: 3%;
    size-adjust: 104%;
}

/* Override font-display para Font Awesome 6 cargado desde CDN */

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-solid-900.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-regular-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-brands-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/webfonts/fa-brands-400.ttf') format('truetype');
}

/* Override para Font Awesome 4.x (backend) */
@font-face {
    font-family: 'FontAwesome';
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff') format('woff');
}
