/* =====================================================================
   oGo — base: reset, tipografía, layout y accesibilidad
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* Transición suave solo al cambiar de tema con el botón */
.theme-anim, .theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

::selection { background: var(--orange); color: var(--on-orange); }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; font-variation-settings: "opsz" 24; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3.25rem); }
/* Títulos de sección en naranja oGo (cámbialo en tokens.css → --title) */
main .section h2 { color: var(--title); }
.section-head h2 + .lead { margin-top: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--orange); color: var(--on-orange); font-weight: 700;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Capturas: se muestran según el tema activo */
.shot--dark { display: none; }
[data-theme="dark"] .shot--light { display: none; }
[data-theme="dark"] .shot--dark { display: block; }

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