:root {
  --bg: #000;
  --ink: #eee6d8;
  --ink-2: #a39d92;
  --ink-3: #6b665e;
  --gold: #d8a45a;
  --gold-2: #f0c27f;
  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Logo */
.arc { fill: none; stroke: var(--ink); stroke-width: 40; stroke-linecap: round; }
.dot { fill: var(--gold); }

/* Grano de película */
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  transition: background .5s, backdrop-filter .5s, transform .6s var(--ease), opacity .6s;
}
.nav.is-solid { background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav__mark svg { width: 38px; height: 38px; display: block; }
.nav__cta {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(238, 230, 216, .25); transition: border-color .3s, background .3s, opacity .5s, transform .5s var(--ease);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
}
.nav.is-solid .nav__cta { opacity: 1; transform: none; pointer-events: auto; }
.nav__cta:hover { border-color: var(--gold); background: rgba(216, 164, 90, .1); }

/* HERO */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.18); filter: saturate(.75) brightness(.55) contrast(1.05);
  transition: opacity 2.4s ease, transform 9s linear;
}
.hero__bg img.is-on { opacity: 1; transform: scale(1.04); }
.hero::before { /* viñeta */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,.25), rgba(0,0,0,.85) 75%, #000),
    linear-gradient(180deg, rgba(0,0,0,.6), transparent 25%, transparent 70%, #000);
}
.hero__intro-veil { position: absolute; inset: 0; background: #000; z-index: -1; animation: veil 2.6s .4s var(--ease) forwards; }
@keyframes veil { to { opacity: 0; visibility: hidden; } }
.dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 45%), rgba(216, 164, 90, .14), transparent 60%);
}
.hero__content { text-align: center; padding: 0 var(--gutter); width: 100%; }

.eyebrow {
  margin: 0 0 clamp(18px, 3vw, 34px); color: var(--ink-2); font-size: clamp(10px, 1.05vw, 14px); font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
}
.title {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1; color: var(--ink);
  font-size: clamp(42px, 9.6vw, 168px); letter-spacing: .06em; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .38em;
  text-shadow: 0 0 40px rgba(0, 0, 0, .6);
}
.title__word { display: inline-flex; align-items: center; white-space: nowrap; }
.title__word > span {
  display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.18em) scale(1.06);
  animation: letter 1.6s var(--ease) forwards; animation-delay: calc(.9s + var(--i) * .07s);
}
@keyframes letter { to { opacity: 1; filter: blur(0); transform: none; } }
.title__o { width: 1.02em; height: 1.02em; margin: 0 .03em 0 -.02em; transform: translateY(.04em); overflow: visible; }
.title__o .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .25s var(--ease) forwards; }
.title__o .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .9s 1.2s cubic-bezier(.3, 1.6, .5, 1) forwards, blink 7s 4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes blink { 0%, 92%, 100% { transform: scale(1); } 95% { transform: scale(1, .1); } }

.reveal-intro { opacity: 0; transform: translateY(14px); animation: rise 1.4s var(--d, 0s) var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__actions { margin-top: clamp(34px, 5vw, 60px); }
.play-btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 10px 28px 10px 10px; border-radius: 999px;
  background: rgba(238, 230, 216, .08); border: 1px solid rgba(238, 230, 216, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; overflow: hidden;
  transition: border-color .4s, background .4s, transform .4s var(--ease), box-shadow .4s;
}
.play-btn::after { /* brillo que barre */
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(240, 194, 127, .25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.play-btn:hover { border-color: var(--gold); background: rgba(216, 164, 90, .12); transform: translateY(-2px); box-shadow: 0 10px 50px -10px rgba(216, 164, 90, .45); }
.play-btn:hover::after { transform: translateX(120%); }
.play-btn__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #000; flex: none; transition: transform .4s var(--ease); }
.play-btn:hover .play-btn__icon { transform: scale(1.08); }
.play-btn__icon svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.ghost-btn { padding: 14px 24px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.ghost-btn:hover { color: var(--ink); }

.meta { list-style: none; margin: 26px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; color: var(--ink-3); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.meta li + li::before { content: "·"; margin: 0 .9em; color: var(--gold); }

.scroll-hint { position: absolute; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1px solid rgba(238, 230, 216, .3); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* PRÓLOGO */
.prologue { min-height: 140vh; display: grid; place-items: center; padding: 20vh var(--gutter); }
.prologue__text {
  position: sticky; top: 30vh; margin: 0; max-width: 18ch; text-align: center; font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 84px); line-height: 1.15; letter-spacing: .02em;
}
.prologue__text .w { opacity: .12; transition: opacity .25s linear, color .4s; }
.prologue__text .w.on { opacity: 1; }
.prologue__text .w.gold { color: var(--gold-2); }

/* FOTOGRAMAS */
.frames { display: grid; gap: clamp(80px, 16vh, 200px); padding: 6vh var(--gutter) 18vh; max-width: 1400px; margin: 0 auto; }
.frame { margin: 0; width: min(100%, 980px); }
.frame--right { justify-self: end; }
.frame__img {
  position: relative; aspect-ratio: 2.55; overflow: hidden; border-radius: 3px;
  clip-path: inset(12% 8% 12% 8%); transition: clip-path 1.6s var(--ease);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
}
.frame__img img { width: 100%; height: 124%; object-fit: cover; transform: translateY(calc(var(--p, 0) * -18%)) scale(1.12); transition: transform 1.6s var(--ease), filter 1.6s; filter: grayscale(.6) brightness(.7); will-change: transform; }
.frame.in .frame__img { clip-path: inset(0); }
.frame.in .frame__img img { filter: none; transition: filter 1.6s; }
.frame figcaption {
  margin-top: 22px; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 30px); color: var(--ink); letter-spacing: .02em;
  opacity: 0; transform: translateY(18px); transition: opacity 1.2s .3s, transform 1.2s .3s var(--ease);
}
.frame figcaption::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 16px; }
.frame--right figcaption { text-align: right; }
.frame.in figcaption { opacity: 1; transform: none; }

/* FICHA */
.specs { padding: 10vh var(--gutter) 16vh; max-width: 1100px; margin: 0 auto; }
.specs__title { font-family: var(--serif); font-weight: 400; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin: 0 0 40px; }
.specs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 48px; margin: 0; }
.specs__grid > div { border-top: 1px solid rgba(238, 230, 216, .12); padding: 22px 0 26px; }
.specs dt { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.specs dd { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.4; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* CIERRE */
.finale { min-height: 90vh; display: grid; place-items: center; align-content: center; gap: 48px; padding: 10vh var(--gutter); background: radial-gradient(ellipse 50% 40% at 50% 45%, rgba(216, 164, 90, .08), transparent 70%); }
.finale__logo { width: clamp(120px, 18vw, 220px); height: clamp(120px, 18vw, 220px); }
.finale__logo .dot { animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.88); } }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; border-top: 1px solid rgba(238, 230, 216, .08); }

/* ================= SALA (reproductor) ================= */
.theater { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; overflow: hidden; opacity: 0; transition: opacity .7s var(--ease); }
.theater.is-open { opacity: 1; }
.theater[hidden] { display: none; }
/* absoluto: el alto no depende de la rejilla, así al girar el celular siempre entra completo */
.theater__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; }
.theater:not(.is-started) .theater__video { opacity: .35; }

.theater__spinner { position: absolute; width: 64px; height: 64px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.theater__spinner svg { width: 100%; height: 100%; }
.theater__spinner .arc { stroke-width: 30; }
.theater__spinner .dot { animation: wait 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.theater__spinner .dot + .dot { animation-delay: .25s; }
@keyframes wait { 50% { transform: scale(.4); opacity: .4; } }
.theater.is-waiting .theater__spinner { opacity: 1; transition-delay: .4s; }

/* doble toque: media luna que se expande desde el borde, como en las apps de video */
.theater__tap { position: absolute; top: -10%; bottom: -10%; width: 42%; display: grid; place-items: center; pointer-events: none; opacity: 0; overflow: hidden; }
.theater__tap--l { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.theater__tap--r { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.theater__tap::before { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; background: rgba(238, 230, 216, .22); transform: scale(0); }
.theater__tap span { position: relative; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.theater__tap.show { animation: tapfade .65s ease-out; background: rgba(238, 230, 216, .08); }
.theater__tap.show::before { animation: tapripple .65s ease-out; }
@keyframes tapfade { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tapripple { to { transform: scale(9); opacity: 0; } }
.theater__toast { position: absolute; top: max(80px, calc(env(safe-area-inset-top) + 64px)); left: 50%; translate: -50% 0; padding: 10px 18px; border-radius: 999px; background: rgba(20, 18, 15, .8); backdrop-filter: blur(10px); font-size: 13px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; white-space: nowrap; }
.theater__toast.show { opacity: 1; transform: none; pointer-events: auto; }
.theater__toast button { color: var(--gold-2); margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }

.ui { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; transition: opacity .5s; pointer-events: none; }
.ui > * { pointer-events: auto; } /* el centro deja pasar el clic al video */
.theater.ui-hidden .ui { opacity: 0; }
.theater.ui-hidden { cursor: none; }
.ui__top, .ui__bottom { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.ui__top { display: flex; align-items: center; gap: 14px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 40px; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); }
.ui__title { font-family: var(--serif); letter-spacing: .25em; font-size: 14px; text-transform: uppercase; }
.ui__badge { font-size: 10px; font-weight: 600; letter-spacing: .12em; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--gold); color: var(--gold-2); }
.ui__big { place-self: center; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(216, 164, 90, .92); color: #000; transition: transform .4s var(--ease), opacity .4s; box-shadow: 0 0 80px rgba(216, 164, 90, .35); }
.ui__big svg { width: 36px; height: 36px; fill: currentColor; margin-left: 4px; }
.ui__big:hover { transform: scale(1.06); }
.theater.is-playing .ui__big { opacity: 0; transform: scale(.8); pointer-events: none; }
.ui__bottom { padding-top: 60px; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.ui__row { display: flex; align-items: center; gap: 4px; }
.ui__time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); margin-left: 8px; white-space: nowrap; }
.ui__time [data-cur] { color: var(--ink); }
.ui__spacer { flex: 1; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .25s; flex: none; }
.icon-btn:hover { background: rgba(238, 230, 216, .1); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill, [data-toggle] svg { fill: currentColor; stroke: none; }
.icon-btn[hidden] { display: none; }
.i-pause, .i-muted, .i-fsx { display: none; }
.theater.is-playing .i-play { display: none; } .theater.is-playing .i-pause { display: block; }
.theater.is-muted .i-vol { display: none; } .theater.is-muted .i-muted { display: block; }
.theater.is-fs .i-fs { display: none; } .theater.is-fs .i-fsx { display: block; }

.vol { display: flex; align-items: center; }
.vol__range { width: 0; opacity: 0; transition: width .35s var(--ease), opacity .35s; accent-color: var(--gold); cursor: pointer; }
.vol:hover .vol__range, .vol:focus-within .vol__range { width: 84px; opacity: 1; margin-right: 6px; }

.seek { position: relative; height: 26px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin-bottom: 2px; }
.seek__track { position: relative; width: 100%; height: 3px; border-radius: 2px; background: rgba(238, 230, 216, .2); overflow: hidden; transition: height .2s; }
.seek:hover .seek__track, .seek.drag .seek__track { height: 6px; }
.seek__buf, .seek__fill { position: absolute; inset: 0 auto 0 0; width: 0; }
.seek__buf { background: rgba(238, 230, 216, .3); }
.seek__fill { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.seek__knob { position: absolute; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 18px rgba(240, 194, 127, .8); transform: scale(0); transition: transform .2s; }
.seek:hover .seek__knob, .seek.drag .seek__knob { transform: scale(1); }
.seek__tip { position: absolute; bottom: 30px; left: 0; translate: -50% 0; padding: 5px 9px; border-radius: 6px; background: rgba(20, 18, 15, .9); font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .2s; }
.seek:hover .seek__tip, .seek.drag .seek__tip { opacity: 1; }

.quality { position: relative; }
.quality__btn { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(238, 230, 216, .25); font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-right: 4px; transition: border-color .25s; }
.quality__btn:hover { border-color: var(--gold); }
.quality__menu { position: absolute; right: 0; bottom: 44px; list-style: none; margin: 0; padding: 6px; min-width: 170px; border-radius: 12px; background: rgba(18, 16, 14, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(238, 230, 216, .1); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.quality__menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 8px; font-size: 14px; text-align: left; }
.quality__menu button:hover { background: rgba(238, 230, 216, .08); }
.quality__menu button[aria-checked="true"] { color: var(--gold-2); }
.quality__menu small { color: var(--ink-3); font-size: 11px; }

.endcard { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: var(--gutter); background: rgba(0,0,0,.82); backdrop-filter: blur(8px); opacity: 0; transition: opacity 1.2s; }
.endcard.show { opacity: 1; }
.endcard[hidden] { display: none; }
.endcard__logo { width: 96px; height: 96px; margin-bottom: 18px; }
.endcard__title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 64px); letter-spacing: .08em; text-transform: uppercase; }
.endcard__by { margin: 0 0 30px; color: var(--ink-2); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.endcard__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 640px) {
  .vol__range, [data-skip] { display: none; }
  .ui__title { display: none; }
  .title { font-size: 8.4vw; gap: 0 .3em; flex-wrap: nowrap; letter-spacing: .04em; }
  .eyebrow { letter-spacing: .26em; padding-left: .26em; line-height: 1.9; max-width: 30ch; margin-inline: auto; }
  .ui__big { width: 72px; height: 72px; }
  .play-btn { padding-right: 22px; letter-spacing: .14em; font-size: 12px; }
  .prologue__text { max-width: 14ch; }
  .frame--right figcaption { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}

/* ================= Efectos estilo React Bits ================= */
/* Light Rays */
.rays { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 3s 1s; }
.rays.on { opacity: .9; }
/* Click Spark */
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
/* Shiny Text */
.shiny {
  background: linear-gradient(110deg, currentColor 40%, #fff6e6 50%, currentColor 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4.5s linear infinite;
}
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
/* Magnet */
.play-btn { transition: border-color .4s, background .4s, transform .4s var(--ease), box-shadow .4s, translate .5s var(--ease); }
.play-btn.is-magnet { transition: border-color .4s, background .4s, transform .4s var(--ease), box-shadow .4s, translate .12s linear; }
/* Scroll Reveal (desenfoque + giro que se endereza al bajar) */
.prologue__text { transform-origin: 0% 50%; will-change: transform; }
.prologue__text .w { filter: blur(6px); transition: opacity .3s linear, filter .5s, color .4s; }
.prologue__text .w.on { filter: blur(0); }
/* Tilted Card */
.frame__img { transition: clip-path 1.6s var(--ease), transform .5s var(--ease); }
.frame__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 240, 210, .16), transparent 45%); }
.frame__img:hover::after { opacity: 1; }
/* Spotlight Card */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(216, 164, 90, .12), transparent 70%); }
.spot:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shiny { animation: none; -webkit-text-fill-color: currentColor; } .rays { display: none; } }

/* ================= Celular ================= */
/* Barra "Ver ahora" al alcance del pulgar */
.dock {
  position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; width: min(420px, calc(100% - 32px)); padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(16, 14, 12, .72); border: 1px solid rgba(238, 230, 216, .14);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(216, 164, 90, .05) inset;
  transform: translate(-50%, 140%); transition: transform .7s var(--ease); text-align: left;
}
.dock.show { transform: translate(-50%, 0); }
.dock:active { transform: translate(-50%, 0) scale(.97); transition-duration: .15s; }
.dock__play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #000; position: relative; }
.dock__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.dock__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.dock__text { display: grid; gap: 2px; flex: 1; }
.dock__text b { font-family: var(--serif); font-weight: 400; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.dock__text small { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; }
.dock__logo { width: 30px; height: 30px; flex: none; }
@media (pointer: coarse), (max-width: 820px) {
  .dock { display: flex; }
  .nav__cta { display: none; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Aviso "gira tu celular" */
.theater__rotate { position: absolute; inset: auto 0 22%; display: grid; justify-items: center; gap: 14px; pointer-events: none; opacity: 0; transition: opacity .6s; }
.theater__rotate.show { opacity: 1; }
.theater__rotate svg { width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 2; animation: turn 2.2s var(--ease) infinite; }
.theater__rotate circle { fill: var(--gold); stroke: none; }
.theater__rotate p { margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 13px; letter-spacing: .04em; color: var(--ink); }
@keyframes turn { 0%, 15% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* deslizar hacia abajo para cerrar la sala */
.theater.is-swiping { transition: none; }
.theater.is-swiping .theater__video, .theater.is-swiping .ui { transition: none; }
.theater__video, .ui { transition: transform .45s var(--ease), opacity .5s; }
