/* ============================================================================
   FUENTES — Cintia Desire
   Cargadas como archivos externos woff2 (sustituyen al base64 inline anterior
   que pesaba 346 KB y bloqueaba el LCP).
   ============================================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600-italic.woff2') format('woff2');
}

@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');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/caveat-500.woff2') format('woff2');
}


/* ============================================================================
   FUENTES FALLBACK AJUSTADAS (size-adjust) — eliminan el CLS por swap de fuentes
   Cuando la fuente real aún no ha cargado, el navegador usa estas versiones
   ajustadas de las fuentes de sistema, que ocupan EXACTAMENTE el mismo espacio.
   Resultado: cuando llega la fuente real, no hay reflow → CLS = 0.
   ============================================================================ */

/* Fallback para Cormorant Garamond (serif) → ajustado sobre Times New Roman */
@font-face {
  font-family: 'Cormorant Garamond Fallback';
  src: local('Times New Roman'), local('Georgia'), local('serif');
  size-adjust: 92%;
  ascent-override: 90%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* Fallback para Inter (sans-serif) → ajustado sobre Arial */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('sans-serif');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Fallback para Caveat (handwriting) → ajustado sobre cursiva de sistema */
@font-face {
  font-family: 'Caveat Fallback';
  src: local('Comic Sans MS'), local('cursive');
  size-adjust: 88%;
  ascent-override: 85%;
  descent-override: 20%;
  line-gap-override: 0%;
}
