/* ============================================================
   RESET — Moderno, mínimo, accesible
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

body {
  min-height: 100dvh;
  line-height: var(--lh-normal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-900);
  background-color: var(--bg-soft);
  overflow-x: hidden;
}

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

/* SVG: separado del reset para evitar expansión no deseada en flex containers.
   Los SVGs respetan sus atributos width/height o CSS específico. */
svg {
  display: inline-block;
  flex-shrink: 0;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

ul[role="list"], ol[role="list"] { list-style: none; }

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

button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-electric);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--brand-700);
  color: var(--bg-pure);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track { background: var(--bg-cool); }
::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-cool);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-700); }

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