/* Reset moderno de CSS para homogeneizar navegadores */

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

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* El `display:block` de arriba es una regla de autor y, sin esto, gana al
   `[hidden]{display:none}` del navegador: los elementos con el atributo
   hidden (p. ej. las imágenes opcionales que aún no existen, ocultadas por
   js/main.js) seguirían ocupando espacio. Esta línea lo corrige en todo el sitio. */
[hidden] {
  display: none !important;
}

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

@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;
  }
}
