/* =========================================================
   RESET — Abanico Insurgente
   Base moderna y sobria. Sin dependencias externas.
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* El desplazamiento suave a anclas lo gestiona navigation.js (rAF):
   scroll-behavior:smooth en CSS bloquea el scroll programático en
   algunos builds de Chromium. */

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (y no hidden): recorta desbordes horizontales sin convertir
     el body en contenedor de scroll, lo que rompería las anclas. */
  overflow-x: clip;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(textarea):focus-visible,
:where(select):focus-visible,
:where([tabindex]):focus-visible {
  outline: 2px solid var(--color-wine, #721f2b);
  outline-offset: 3px;
  border-radius: 2px;
}

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