/* ==========================================================================
   RESET.CSS — Reinicio moderno y minimalista
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  line-height: var(--interlineado-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  line-height: var(--interlineado-ajustado);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Foco visible consistente y accesible en toda la aplicación */
:focus-visible {
  outline: 3px solid var(--color-foco);
  outline-offset: 2px;
}

/* Respeta la preferencia de menos movimiento del sistema operativo:
   una sola regla global evita tener que repetirla en cada animación. */
@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;
  }
}