/* ─────────────────────────────────────────────────────────────
   Base común a las cinco propuestas.
   Solo tipografías, reinicio y accesibilidad mínima del §2.5 del
   libro de estilo. Ni un color de marca: eso lo pone cada variante.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* El foco de teclado se ve SIEMPRE. Cada variante define --foco. */
:focus-visible {
  outline: 2px solid var(--foco, currentColor);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Cifras que no bailan (§2.2) */
.cifra { font-variant-numeric: tabular-nums; }

/* Micro-etiquetas: el único sitio donde el libro permite versales (§2.1) */
.micro {
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Con el dedo, ningún control baja de 44 px (§2.5) */
@media (pointer: coarse) {
  a[href^="tel"], a[href^="mailto"], a[href^="http"], .toque {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Solo para lectores de pantalla */
.oculto {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
