/* ==========================================================================
   reset.css — Modern CSS Reset
   Basado en Josh Comeau's reset + Andy Bell's reset (2024)
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  /* Evita saltos de scroll cuando aparece/desaparece la scrollbar */
  scrollbar-gutter: stable;
  /* Suaviza el scroll a anclas */
  scroll-behavior: smooth;
  /* Previene font scaling en orientación landscape en iOS */
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Evita que los listas pierdan semántica al resetear bullets */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Mejor baseline para tablas */
table {
  border-collapse: collapse;
}

/* Animaciones reducidas */
@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;
  }
}
