/* ==========================================================================
   Clima Central — Reset y tipografía base
   ========================================================================== */

/* --------------------------------------------------------------------------
   DM Sans, servida desde este dominio y no desde fonts.gstatic.com.
   Pedirla a Google manda la IP de cada visitante a un tercero antes de que
   la página pinte nada — antes, por tanto, de que nadie haya podido aceptar
   ni rechazar el banner de cookies. Alojarla aquí deja el sitio sin ninguna
   petición a terceros mientras no haya consentimiento, y de paso ahorra la
   conexión a dos dominios más.

   Es la variable font: un solo fichero por subconjunto cubre de 100 a 1000,
   así que los cuatro pesos que usa el sitio (400/500/600/700) salen de estos
   dos woff2. Licencia SIL Open Font License 1.1 — ver assets/fonts/OFL.txt.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-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;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-20); font-weight: 500; line-height: var(--lh-heading); }

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--c-ink);
  text-decoration: none;
}

a:hover { color: var(--c-green); }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

table {
  border-collapse: collapse;
  width: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* Accesibilidad ---------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: var(--fs-14);
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
  color: var(--c-white);
}

/* Impresión -------------------------------------------------------------- */

@media print {
  .site-nav,
  .site-footer,
  .no-print { display: none !important; }
  body { font-size: 12pt; }
}
