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

/* Reset básico de márgenes */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Quitar padding y estilos de listas cuando se usen como navegación */
ul[role="list"],
ol[role="list"],
ul,
ol {
  margin: 0;
  padding: 0;
}

/* Base del documento */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Imágenes y medios */
img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

/* Formularios heredan tipografía */
input,
button,
textarea,
select {
  font: inherit;
}

/* Botones neutrales */
button {
  padding: 0;
  border: none;
  background: none;
}

/* Enlaces sin subrayado por defecto */
a {
  text-decoration: none;
  color: inherit;
}

/* Evitar desbordes raros en textos */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
  overflow-wrap: break-word;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}