*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-2); }
h1 { font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); }
p { margin: 0 0 var(--space-2); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--space-2); top: -4rem;
  background: var(--color-primary); color: var(--color-primary-contrast);
  padding: var(--space-1) var(--space-2); z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

.container { width: min(100% - 2 * var(--space-3), 70rem); margin-inline: auto; }

/* Datos faltantes: imposibles de publicar por error */
.pendiente {
  background: #fef08a; color: #422006;
  outline: 2px dashed #ca8a04; padding: 0 0.25em;
}

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

/* ---------- Añadidos del proyecto (v2, oscuro; no se toca lo anterior) ---------- */
html { scroll-padding-top: calc(72px + var(--space-2)); -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-skeleton-2) var(--color-bg); }
body { line-height: var(--leading-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { text-wrap: balance; color: var(--color-text-strong); font-weight: var(--weight-display); }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--color-primary); color: var(--color-primary-contrast); }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (hover: hover) { a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; } }
img { height: auto; }
input, button { font: inherit; }
input { caret-color: var(--color-link); }
:focus-visible { outline-width: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { z-index: var(--z-skip); border-radius: var(--radius-sm); font-weight: var(--weight-semibold); }
/* Datos faltantes en oscuro: reconocibles (borde discontinuo + subrayado punteado) sin parecer un error */
.pendiente {
  background: var(--color-surface-2); color: var(--color-text-muted);   /* opaco: legible también sobre el azul rey de la escena */
  outline: 1px dashed var(--color-border-strong); outline-offset: 1px;
  text-decoration: underline dotted 1px; text-underline-offset: 0.2em;
  font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: 0.8em; font-style: normal;
  letter-spacing: 0; line-height: 1.4; padding: 0 0.3em; border-radius: 3px;
}

