/* ── Astra · base ────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 var(--t-base)/1.5 var(--fuente);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; font-family: var(--fuente-titulos); }
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
p { margin: 0; }
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--fuente-mono); font-size: 0.92em; }
kbd {
  padding: 1px 6px; border: 1px solid var(--borde-fuerte); border-bottom-width: 2px;
  border-radius: var(--radio-sm); background: var(--superficie-2); color: var(--texto-suave); font-size: var(--t-xs);
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: var(--radio-sm); }

::selection { background: var(--acento-suave); }

.solo-lector {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tenue { color: var(--texto-suave); }
.mono { font-family: var(--fuente-mono); }
.num { font-variant-numeric: tabular-nums; }
