/* Plus Jakarta Sans alojada en el propio servidor (antes Google Fonts:
 * enviaba la IP del visitante a Google sin consentimiento). Es una fuente
 * variable: un solo archivo por tramo cubre los pesos 400-800. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/css/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/css/fonts/plus-jakarta-sans-latin.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;
}

/*
 * Modern CSS Reset
 * Inspirado en Andy Bell (https://piccalil.li/blog/a-more-modern-css-reset/)
 * y Josh Comeau (https://www.joshwcomeau.com/css/custom-css-reset/).
 */

/* 1. Box-sizing universal. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Eliminar margins por defecto. */
* {
  margin: 0;
}

/* 3. Asegurar que body y html ocupan toda la altura disponible. */
html,
body {
  height: 100%;
}

/* 4. Defaults sensatos en body. */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 5. Media elements como bloque y nunca desbordan. */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6. Que los form controls hereden tipografía. */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 7. Word wrap en texto largo (slugs, URLs, etc.). */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Botones sin estilo nativo, listos para customizar. */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* 9. Anchors heredan color por defecto. */
a {
  color: inherit;
  text-decoration: none;
}

/* 10. Listas marcadas con role="list" pierden bullets (accesibilidad). */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* 11. Smooth scroll cuando el usuario lo permite. */
html:focus-within {
  scroll-behavior: smooth;
}

/* 12. Respetar prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
