/* ==========================================================================
   RESET — mínimo, moderno. No usa normalize.css completo: solo lo necesario
   para partir de una base predecible.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img, svg {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- Accesibilidad: saltar al contenido ----------
   Antes lo traía Astra como tema padre; al cortar el vínculo (ver README,
   "Astra como tema padre") hace falta el propio. .screen-reader-text oculta
   visualmente sin ocultar al lector de pantalla; el enlace se hace visible
   solo al recibir foco por teclado (ver el <a class="skip-link"> en
   header.php, que salta a <main id="contenido-principal">). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background: var(--tinta);
  color: var(--fondo);
  clip: auto !important;
  clip-path: none;
  display: block;
  font-family: var(--f-display);
  font-weight: var(--peso-medio);
  font-size: 15px;
  height: auto;
  width: auto;
  left: 12px;
  top: 12px;
  padding: 12px 20px;
  border-radius: var(--radio-campo);
  text-decoration: none;
  z-index: 1000;
}
