/* =========================================
   RESET MODERNO — basado en Josh Comeau
   Refinado para arquitectura CSS escalable
   ========================================= */

/* 1) Box sizing universal */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) Reset de márgenes y paddings */
* {
  margin: 0;
  padding: 0;
}

/* 3) Ajustes base del documento */
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* 4) Evita scroll horizontal accidental */
html,
body {
  overflow-x: hidden;
}

/* 5) Medios visuales */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6) Herencia tipográfica en controles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 7) Botones */
button {
  cursor: pointer;
}

/* 8) Listas */
ul,
ol {
  list-style: none;
}

/* 9) Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
