/* reset.css — Reset moderno y ligero. */

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

/* El atributo [hidden] SIEMPRE gana: sin esto, cualquier `display: grid/flex`
   nuestro pisa la regla del navegador y los elementos "ocultos" se muestran. */
[hidden] {
  display: none !important;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Reserva el espacio del scrollbar siempre: el ancho del contenido no
     "salta" entre páginas largas y cortas. */
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
