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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--night-950);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mientras la intro está activa no se hace scroll */
body.is-intro { overflow: hidden; height: 100svh; }

img, svg, canvas { display: block; max-width: 100%; }

button { font: inherit; color: inherit; cursor: pointer; }

#sky-root { position: fixed; inset: 0; z-index: var(--z-sky); pointer-events: none; }
#invitation-root { position: relative; z-index: var(--z-invitation); }
#intro-root { position: fixed; inset: 0; z-index: var(--z-intro); }
body.is-open #intro-root { pointer-events: none; }

/* Utilidad compartida: texto dorado */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.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: 2px solid var(--gold-400); outline-offset: 3px; }

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