/* ==========================================================================
   DRIFT — Reset
   Base mínima moderna. No utility classes acá.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* El fallback de abajo (@media prefers-reduced-motion) ya existía; esta
     línea era la que faltaba para que realmente hubiera algo que apagar. */
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100svh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Mejora el kerning y activa ligaduras: con el nuevo display type esto se
     nota sobre todo en los titulares grandes, donde un par mal espaciado
     (como "Wa" o "To") se ve más. */
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
svg {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Contenido accesible pero visualmente oculto */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Movimiento reducido
   El smooth scroll de los anchors queda afuera a propósito (pedido
   explícito: debe funcionar igual en cualquier navegador, tenga o no
   activada la preferencia de movimiento reducido del sistema). El resto
   del feedback en el espacio sí se neutraliza acá. Apagar con un
   `transition-duration: 0.01ms !important` global deja la interfaz muda:
   los botones dejan de responder y los estados no se comunican.
   Lo que molesta a quien activa esta preferencia es el movimiento en el
   espacio, así que acá se conservan opacidad, color y trazo —que informan
   sin desplazar nada— y se cortan los transforms y los bucles infinitos.
   Cada componente afina su propio caso en animations.css.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color,
      stroke, fill, box-shadow, stroke-dashoffset !important;
  }
}
