:root {
  --bg: #14110e;
  --paper: #f6f1ea;
  --ink: #2a241d;
  --gold: #eab67c;       /* acento sobre fondos oscuros */
  --terracotta: #b9733a; /* acento sobre fondos claros */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
em { font-style: italic; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .3s, background .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn .arrow { display: inline-block; transition: transform .3s; font-size: 1.05em; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover .arrow.down { transform: translateY(4px); }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--gold); color: #1d140b; box-shadow: 0 8px 30px rgb(234 182 124 / .25); }
.btn-primary:hover { background: #f6c78f; transform: translateY(-3px); box-shadow: 0 14px 40px rgb(234 182 124 / .45); }

.btn-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .45); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgb(255 255 255 / .2); border-color: #fff; transform: translateY(-3px); }

.btn-glass { padding: .8rem 1.3rem; background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .35); backdrop-filter: blur(14px); }
.btn-glass:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 1.3rem 2.3rem; font-size: .85rem; }

/* ---------- Cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--gutter); color: #fff;
  transition: background .4s, color .4s, padding .4s, box-shadow .4s;
}
.brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: inherit; text-decoration: none; letter-spacing: .02em; }
.brand em { color: var(--gold); }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.nav a:hover { opacity: 1; }

/* Al salir del recorrido, la cabecera pasa a fondo claro */
.top.light { background: rgb(246 241 234 / .88); backdrop-filter: blur(14px); color: var(--ink); padding-block: .75rem; box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.top.light .brand em { color: var(--terracotta); }
.top.light .btn-glass { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.top.light .btn-glass:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ---------- Recorrido ---------- */
.world { position: relative; height: 750vh; background: var(--bg); }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage video.on { opacity: 1; }
.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(12 7 2 / .5), transparent 22%),
    linear-gradient(to top, rgb(12 7 2 / .72), transparent 55%),
    linear-gradient(to right, rgb(12 7 2 / .4), transparent 65%);
}

/* Cada parada: --o (0 a 1) lo pone el script según lo cerca que estés de ella */
.stop {
  position: absolute; left: var(--gutter); bottom: clamp(3.5rem, 12vh, 7rem);
  max-width: 46rem; color: #fff; pointer-events: none;
  filter: blur(calc((1 - var(--o, 0)) * 10px));
  text-shadow: 0 2px 40px rgb(0 0 0 / .35);
}
.stop > * {
  opacity: calc(var(--o, 0) * 1.6 - var(--i, 0) * .25);
  translate: 0 calc((1 - var(--o, 0)) * 26px * (var(--i, 0) + 1) * var(--s, 1));
}
.stop.live .actions { pointer-events: auto; }

.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 2.8rem; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--terracotta); }

.stop h1, .stop h2 { font-family: var(--serif); font-weight: 500; line-height: .95; margin: 1rem 0 1.3rem; }
.stop h1 { font-size: clamp(4rem, 12vw, 9.5rem); letter-spacing: -.015em; }
.stop h2 { font-size: clamp(3rem, 8vw, 6.2rem); letter-spacing: -.01em; }
.stop em { color: var(--gold); }
.sub { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 30rem; font-weight: 400; color: rgb(255 255 255 / .92); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 2rem; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-hint i { width: 1px; height: 3.5rem; background: linear-gradient(to bottom, #fff 50%, transparent 50%) 0 0 / 1px 200%; animation: hint 1.8s linear infinite; }
@keyframes hint { to { background-position: 0 -100%; } }

.dots { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: .9rem; list-style: none; padding: 0; z-index: 5; }
.dots button { all: unset; box-sizing: border-box; width: .65rem; height: .65rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .8); cursor: pointer; transition: background .3s, transform .3s; }
.dots button:hover { transform: scale(1.4); }
.dots button.on { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

.loader { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: var(--bg); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; transition: opacity .6s; z-index: 6; }
.loader.done { opacity: 0; pointer-events: none; }

/* ---------- Resto de la landing ---------- */
.block { max-width: 70rem; margin: 0 auto; padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); }
.block h2, .final h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; margin: 1rem 0 2rem; }
.block h2 em, .final h2 em { color: var(--terracotta); }

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 3rem; }
.cards article { padding: 2rem 1.6rem; background: #fff; border-radius: 1.1rem; box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 18px 40px -26px rgb(60 40 20 / .35); transition: transform .4s, box-shadow .4s; }
.cards article:hover { transform: translateY(-8px); box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 30px 50px -24px rgb(60 40 20 / .45); }
.num { font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); letter-spacing: .1em; }
.cards h3 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; margin: .4rem 0 .6rem; }
.price { display: inline-block; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgb(0 0 0 / .12); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }

.band { position: relative; height: clamp(22rem, 70vh, 40rem); overflow: hidden; display: grid; place-items: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgb(12 7 2 / .45); }
.band-text { position: relative; z-index: 1; max-width: 46rem; padding: 0 var(--gutter); color: #fff; text-align: center; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.05; }
.band-text em { color: var(--gold); }

.perks { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0; }
.perks li { display: grid; gap: .2rem; padding: 1.5rem 0; border-top: 1px solid rgb(0 0 0 / .15); }
.perks li:last-child { border-bottom: 1px solid rgb(0 0 0 / .15); }
.perks b { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; }
.perks span { opacity: .75; }

.final { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: rgb(12 7 2 / .55); }
.final-inner { position: relative; z-index: 1; padding: 6rem var(--gutter); max-width: 52rem; }
.final h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin-bottom: 2.5rem; }
.final h2 em { color: var(--gold); }

footer { padding: 2rem; text-align: center; font-size: .85rem; background: var(--bg); color: #b9aea0; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .nav { display: none; }
  .top { padding-block: .8rem; }
  .scroll-hint, .dots { display: none; }
  .btn { padding: .9rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}
