/*** BONDIA - Optimizada con swap ***/
@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-Light.ttf') format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-Regular.ttf') format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-Medium.ttf') format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-SemiBold.ttf') format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-Bold.ttf') format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-ExtraBold.ttf') format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bondia';
  src: url('./bondia/Bondia-Black.ttf') format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*** JUST SANS - Reserva métrica para evitar CLS ***/

/* Esta fuente fantasma evita que el texto salte al cargar */
@font-face {
  font-family: 'JUST-Sans-Fallback';
  src: local('Arial');
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 102%; /* Ajuste fino para que Arial coincida con JUST Sans */
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans ExLight.woff2') format('woff2'),
       url('./just_sans/JUST Sans ExLight.woff') format('woff');
  font-weight: 275;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans Light.woff2') format('woff2'),
       url('./just_sans/JUST Sans Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans Regular.woff2') format('woff2'),
       url('./just_sans/JUST Sans Regular.woff') format('woff'),
       url('./just_sans/JUST Sans Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans Medium.woff2') format('woff2'),
       url('./just_sans/JUST Sans Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans SemiBold.woff2') format('woff2'),
       url('./just_sans/JUST Sans SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans Bold.woff2') format('woff2'),
       url('./just_sans/JUST Sans Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JUST Sans';
  src: url('./just_sans/JUST Sans ExBold.woff2') format('woff2'),
       url('./just_sans/JUST Sans ExBold.woff') format('woff'),
       url('./just_sans/JUST Sans ExBold.otf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/*** Brotherhood **/
/* Fallback “fantasma” */
@font-face {
  font-family: 'Brotherhood-Fallback';
  src: local('Arial');           /* o cualquier sistema similar */
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 101%;             /* ajusta según Brotherhood */
}
@font-face {
  font-family: 'Brotherhood';
  src: url('./brotherhood/Brotherhood.woff2') format('woff2'),
       url('./brotherhood/Brotherhood.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* <-- clave para fallback */
}