/* Reset moderno + accesibilidad. No contiene identidad visual. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--fuente-texto);
  font-size: var(--t-md);
  line-height: var(--interlineado);
  color: var(--color-texto);
  background: var(--color-fondo);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--fuente-titulos); line-height: var(--interlineado-titulos); text-wrap: balance; }
p { max-width: var(--medida); text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }

/* Foco visible para teclado */
:focus-visible { outline: 3px solid var(--color-foco); outline-offset: 3px; }

/* Enlace para saltar al contenido */
.saltar {
  position: absolute; left: var(--e-4); top: -100%;
  padding: var(--e-2) var(--e-4); background: var(--color-fondo); z-index: 100;
}
.saltar:focus { top: var(--e-4); }

/* Solo para lectores de pantalla */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Contenedor */
.contenedor { width: min(100% - 2 * var(--margen-lateral), var(--ancho-max)); margin-inline: auto; }

/* Que los elementos fijos no tapen el foco ni los anclajes */
:target { scroll-margin-top: 6rem; }

/* Respetar a quien prefiere menos movimiento */
@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; }
}
