/* ============================================================
   RESURGAM · BASE
   Reset, tipografía y utilidades. Sin componentes.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* Accesibilidad: foco visible siempre */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Respeta la preferencia de movimiento reducido del sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Sólo para lectores de pantalla */
.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;
}

/* Enlace de salto al contenido */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--red); color: var(--white);
  padding: 10px 16px; font-family: var(--font-utility);
  font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase;
  text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---- Contenedores ---- */
.wrap      { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter-lg); }
.wrap-text { max-width: var(--maxw-text); margin: 0 auto; padding: 0 var(--gutter-lg); }

.section    { padding: var(--section-y) 0; }
.section-alt{ background: var(--black-2); }

/* ---- Tipografía ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-utility);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.eyebrow--muted { color: var(--gray); }

h1, .h1 {
  font-family: var(--font-display); font-size: var(--fs-h1);
  line-height: 0.92; letter-spacing: 0.01em; font-weight: 400;
}
h2, .h2 {
  font-family: var(--font-display); font-size: var(--fs-h2);
  line-height: 0.96; letter-spacing: 0.01em; font-weight: 400;
}
h3, .h3 {
  font-family: var(--font-utility); font-size: var(--fs-h3);
  font-weight: 700; letter-spacing: 0.02em; line-height: 1.2;
}

.serif-italic { font-family: var(--font-serif); font-style: italic; text-transform: none; }
.red   { color: var(--red); }
.muted { color: var(--gray-light); }

.lead { font-size: var(--fs-lead); color: var(--gray-light); max-width: 58ch; }

/* ---- Divisor ---- */
.rule { height: 1px; background: var(--border); border: 0; }
