/* Base: reset, tipografía, accesibilidad */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.41;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

/* Escala tipográfica (HIG) */
.t-large-title { font-family: var(--font-display); font-size: var(--fs-large-title); line-height: 1.2; font-weight: 700; letter-spacing: -0.026em; }
.t-title-1     { font-family: var(--font-display); font-size: var(--fs-title-1); line-height: 1.21; font-weight: 700; letter-spacing: -0.022em; }
.t-title-2     { font-family: var(--font-display); font-size: var(--fs-title-2); line-height: 1.27; font-weight: 700; letter-spacing: -0.018em; }
.t-title-3     { font-size: var(--fs-title-3); line-height: 1.25; font-weight: 600; letter-spacing: -0.016em; }
.t-headline    { font-size: var(--fs-headline); line-height: 1.29; font-weight: 600; }
.t-subhead     { font-size: var(--fs-subhead); line-height: 1.33; color: var(--text-2); letter-spacing: -0.005em; }
.t-footnote    { font-size: var(--fs-footnote); line-height: 1.38; color: var(--text-3); letter-spacing: 0; }
.tabular       { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent-soft); }
