/* ============================= */
/* BASE: variables, reset, tipografía, utilidades globales */
/* ============================= */

:root {
  --navy: #0A1628;
  --navy-2: #0E1C32;
  --navy-3: #14253D;
  --navy-hover: #0D1E35;
  --cobalt: #1E3556;
  --gold: #C49A3C;
  --gold-soft: #d9b25a;
  --tabaco: #7B4A2D;
  --arena: #F8F5F0;
  --arena-2: #EFEAE0;
  --arena-3: #E5DFD2;
  --steel: #4A6FA5;
  --ghost: #E6EDF3;
  --ink: #0A1628;
  --ink-soft: #2a3a52;
  --ink-dim: #5a6a82;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-sans: "DM Sans", system-ui, sans-serif;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(72px, 10vh, 130px);
  --topbar-h: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  font-family: var(--f-sans);
  background: var(--navy);
  color: var(--ghost);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.mono {
  font-family: var(--f-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* Skip link para accesibilidad por teclado */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* SECTION HEAD compartido */
section { padding: var(--pad-y) var(--pad-x); }
.section-inner { max-width: 1480px; margin: 0 auto; }
.section-head { max-width: 880px; margin-bottom: 64px; }
.section-num {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 700;
}
.section-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ghost);
  text-wrap: balance;
}
.section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.7);
  max-width: 640px;
  text-wrap: pretty;
}
.section-head-light .section-title { color: var(--ink); }
.section-head-light .section-num { color: var(--tabaco); }
.section-head-light .section-num::before { background: var(--tabaco); }
.section-head-light .section-lede { color: var(--ink-soft); }

/* Animaciones globales */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.55);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 6px rgba(196, 154, 60, 0);
  }
}
@keyframes blink { 50% { opacity: 0; } }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
