/* =========================================================================
   Base: reinicio, tipografía y utilidades.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  overflow-x: clip;
}

button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--brand-text); }

h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}
h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
p { margin: 0 0 12px; }

[hidden] { display: none !important; }

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

/* Utilidades */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xsmall { font-size: 13px; }
.bold { font-weight: 700; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.text-ok { color: var(--ok); }
.text-bad { color: var(--bad); }
.spaced-top { margin-top: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
