/* Optimized Font Loading - WOFF2 first, fallbacks non-blocking */

/* FontAwesome 6 Free Solid - Critical Path Optimized */
@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('../fonts/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+F000-F8FF;
}

/* FontAwesome 6 Brands - Critical Path Optimized */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  src: url('../fonts/fa-brands-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+F000-F8FF;
}

/* FontAwesome 6 Regular - Critical Path Optimized */
@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('../fonts/fa-regular-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+F000-F8FF;
}

/* Ionicons - Critical Path Optimized */
@font-face {
  font-family: 'Ionicons';
  src: url('../fonts/ionicons.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
  unicode-range: U+F000-F8FF;
}

/* Fallback fonts para navegadores sin WOFF2 - Carga diferida */
@media screen {
  
  @font-face {
    font-family: 'Font Awesome 6 Free Fallback';
    src: url('../fonts/fa-solid-900.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: fallback;
  }
}

/* Stroke Gap Icons - Non-critical */
@font-face {
  font-family: 'Stroke-Gap-Icons';
  src: url('../fonts/Stroke-Gap-Icons.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}

/* Fallback font stack para iconos */
.fa, .fas, .far, .fab, .fal, .fad, .fak {
  font-family: 'Font Awesome 6 Free', Arial, sans-serif;
}

.ion {
  font-family: 'Ionicons', Arial, sans-serif;
}

/* Optimización adicional para prevenir layout shift */
.fa-solid, .fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.fa-regular, .far {
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
}

.fa-brands, .fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}