*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; /* el scroll lo controla JS, no el navegador */
  background: var(--bg); color: var(--ink-1);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--gold-ink);
  padding: 0.6em 1em; z-index: 500; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--space-md);
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.site-header .brand, .site-header .main-nav, .site-header .nav-toggle { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 0.6em; }
.brand svg { width: 40px; height: 40px; }
.brand-text { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-1); letter-spacing: 0.02em; }
.main-nav { display: flex; gap: var(--space-md); }
.main-nav button {
  background: none; border: none; color: var(--ink-2); font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3em 0; position: relative;
  transition: color 0.25s;
}
.main-nav button:hover, .main-nav button.is-active { color: var(--gold-strong); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink-1); width: 40px; height: 40px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

.mobile-nav-panel {
  position: fixed; inset: 0; z-index: 400; background: rgba(8,8,9,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-nav-panel.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel button {
  background: none; border: none; color: var(--ink-1); font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: 0.03em;
}
.mobile-nav-panel button.is-active { color: var(--gold-strong); }
.mobile-nav-close { position: absolute; top: 1.3rem; right: 1.3rem; font-size: 1.8rem; color: var(--ink-1); background: none; border: none; }

/* ---------- Dots nav ---------- */
.dots-nav {
  position: fixed; right: var(--space-md); top: 50%; transform: translateY(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 0.9rem;
}
.dots-nav button {
  width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-1);
  background: transparent; padding: 0; position: relative; transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.dots-nav button.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.dots-nav button .dot-label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: var(--fs-small); color: var(--ink-1); white-space: nowrap; opacity: 0;
  transition: opacity 0.2s; background: rgba(0,0,0,0.6); padding: 0.2em 0.6em; border-radius: 4px;
}
.dots-nav button:hover .dot-label, .dots-nav button:focus-visible .dot-label { opacity: 1; }

@media (max-width: 640px) {
  .dots-nav { right: 0.7rem; gap: 0.7rem; }
  .dots-nav button { width: 8px; height: 8px; }
  .dots-nav .dot-label { display: none; }
}

/* ---------- Botones flotantes: WhatsApp + pausa de video ---------- */
.floating-actions { position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: 250; display: flex; flex-direction: column; gap: 0.7rem; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); border: none; transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: var(--whatsapp); color: #fff; }
.fab-pause { background: var(--bg-elevated); color: var(--ink-1); border: 1px solid var(--ink-3); }
@media (max-width: 640px) { .floating-actions { left: 0.8rem; bottom: 0.8rem; } .fab { width: 48px; height: 48px; } }

/* ---------- Scroll cue (primera sección) ---------- */
.scroll-cue {
  position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--ink-1); font-size: var(--fs-small); letter-spacing: 0.15em; text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- Botones generales ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.95em 1.8em; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-strong); }
.btn-outline { background: transparent; color: var(--ink-1); border-color: rgba(247,245,240,0.5); }
.btn-outline:hover { border-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: var(--space-md); right: var(--space-md); left: auto; max-width: 420px; z-index: 350;
  background: var(--bg-elevated); border: 1px solid rgba(201,163,92,0.35); border-radius: var(--radius-lg);
  padding: var(--space-md); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(130%); transition: transform 0.5s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--space-sm); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 640px) { .cookie-banner { left: 0.7rem; right: 0.7rem; max-width: none; } }

/* ---------- Páginas legales (no son fullscreen, scroll normal) ---------- */
.legal-page html, .legal-page body { overflow: auto; height: auto; }
body.legal-page { overflow: auto; height: auto; }
.legal-wrap { max-width: 74ch; margin: 0 auto; padding: 7rem var(--space-md) var(--space-lg); }
.legal-wrap h1 { font-size: var(--fs-h1); margin-bottom: var(--space-md); }
.legal-wrap h2 { font-size: 1.25rem; margin-top: var(--space-lg); margin-bottom: 0.5em; color: var(--gold-strong); }
.legal-wrap p, .legal-wrap li { color: var(--ink-2); }
.legal-wrap a { color: var(--gold-strong); }
.legal-back { display: inline-flex; align-items: center; gap: 0.4em; margin-bottom: var(--space-md); font-size: var(--fs-small); color: var(--ink-2); }
.legal-notice { background: var(--bg-elevated); border: 1px solid rgba(201,163,92,0.35); border-radius: var(--radius); padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-lg); font-size: var(--fs-small); }
