/* ============================================================
   SPENCER ENTERTAINMENT — BASE  v2
   Reset · tipografía · layout · utilidades de dirección artística
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01", "tnum" 0;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */

h1, h2, h3, h4 {
  font-weight: var(--fw-semi);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

.t-hero {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-hero);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.t-display {
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.t-h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-display); }
.t-h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); letter-spacing: var(--ls-display); }
.t-h3 { font-size: var(--fs-h3); font-weight: var(--fw-semi); }

.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--c-text-2);
  font-weight: var(--fw-normal);
  text-wrap: pretty;
}
.t-body  { color: var(--c-text-2); }
.t-meta  { font-size: var(--fs-sm); color: var(--c-text-3); }
.t-dim   { color: var(--c-text-2); }
.t-dimmer{ color: var(--c-text-3); }

/* Oro metálico aplicado al texto: degradado recortado por la letra.
   Es lo que separa un dorado plano de uno que parece metal. */
.t-gold {
  background: var(--g-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Etiqueta superior de sección. Con línea corta a la izquierda:
   un detalle mínimo que ordena la lectura y se siente editorial. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-gold);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold));
}
.eyebrow--center::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

/* Cifras: fuente monoespaciada y ancho tabular. Los números
   se leen como datos, no como texto. Detalle de producto técnico. */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }

.section { padding-block: var(--sp-section); position: relative; }
.section--surface { background: var(--c-surface); }

/* Borde superior luminoso entre secciones: marca el cambio de
   plano sin usar una línea dura. */
.section--edge::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong) 50%, transparent);
}

.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;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  z-index: 100;
  background: var(--c-gold); color: var(--c-on-gold);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: var(--fw-semi); font-size: var(--fs-sm);
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* ============================================================
   TEXTURA DE FONDO
   Grano finísimo sobre toda la página. Elimina el aspecto
   "plano de plantilla" y unifica los degradados.
   ============================================================ */
.grain {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* ============================================================
   SEPARADOR CON CORONA
   Motivo de marca tomado del logo. Aparece pocas veces:
   un símbolo repetido en exceso deja de significar algo.
   ============================================================ */
.crown-rule {
  display: flex; align-items: center; gap: var(--sp-5);
  color: var(--c-gold);
}
.crown-rule::before, .crown-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong), transparent);
}
.crown-rule svg { width: 20px; height: 20px; opacity: .75; }

/* ============================================================
   REVELADO AL SCROLL
   Prefijo .js deliberado: si JavaScript no corre, el contenido
   se ve igual. Nunca escondemos texto detrás de un script.
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--t-reveal) var(--ease),
    transform var(--t-reveal) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Variante con desenfoque: entrada más cinematográfica.
   Reservada para el Hero y titulares de sección. */
.js .reveal--blur { filter: blur(8px); transition-property: opacity, transform, filter; }
.js .reveal--blur.is-visible { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
