/* ==========================================================
   Reset mínimo — sólo lo que hace falta.
   ========================================================== */

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

html { -webkit-text-size-adjust: 100%; }

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

ul[class], ol[class] { list-style: none; }

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

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

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

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

/* El atributo `hidden` tiene que ganarle a cualquier `display` de autor
   (.grilla es display:grid, .filtros es flex): si no, nunca se oculta nada. */
[hidden] { display: none !important; }

dialog { border: none; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(10, 8, 7, 0.72); }

/* Foco visible siempre, sin anillos en clicks de mouse. */
:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
