*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-fondo);
  color: var(--color-texto);
  font: var(--texto-m)/1.5 var(--fuente);
}

h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: var(--texto-xl); }
h2 { font-size: var(--texto-l); }
h3 { font-size: var(--texto-m); }

a { color: var(--color-acento); }

:focus-visible {
  outline: 2px solid var(--color-foco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-fondo);
}

select, input, button {
  font: inherit;
  color: inherit;
  min-height: var(--tactil);
}

select, input {
  background: var(--color-superficie-elevada);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-campo);
  padding: 0 var(--esp-2);
}

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: var(--esp-2); text-align: left; border-bottom: 1px solid var(--color-borde); }
th { color: var(--color-texto-secundario); font-weight: 600; font-size: var(--texto-s); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
