/* ==========================================================================
   Beer Stop – Luxury Christmas Experience 2026
   Estilos principales (Mobile-First, Luxury Editorial & Cinematic Dark)
   ========================================================================== */

:root {
  --bg-obsidian: #050506;
  --bg-elevated: #0c0b0a;
  --gold-light: #f6e7b8;
  --gold-champagne: #e8cf88;
  --gold-primary: #d4af37;
  --gold-deep: #8c6a1b;
  --crimson-dark: #5e0b15;
  --crimson-accent: #8c1423;
  --text-ivory: #f8f4ec;
  --text-secondary: #d5cdc0;
  --text-muted: #9e9588;

  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-gift: cubic-bezier(0.19, 1, 0.22, 1);

  --gift-size: 162px;
  --gift-half: 81px;
  --lid-height: 36px;
}

@media (min-width: 768px) {
  :root {
    --gift-size: 204px;
    --gift-half: 102px;
    --lid-height: 44px;
  }
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  user-select: none;
}

/* Permitir selección en textos informativos */
p,
h1,
h2 {
  user-select: text;
}

/* ==========================================================================
   Fondo cinematográfico y lienzos FX
   ========================================================================== */

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.08) 0%, rgba(5, 5, 6, 0) 58%),
    linear-gradient(180deg, #070606 0%, #050506 50%, #090607 100%);
}

.spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.spotlight--top {
  width: min(75vw, 680px);
  height: min(75vw, 680px);
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
}

.spotlight--crimson {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  bottom: -24%;
  right: -12%;
  background: radial-gradient(circle, rgba(140, 20, 35, 0.22) 0%, rgba(140, 20, 35, 0) 72%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.78) 100%);
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-canvas--ambient {
  z-index: 1;
}

.fx-canvas--burst {
  z-index: 18;
}

.scene-veil {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(18, 14, 9, 0.72), #050506 85%);
  opacity: 0;
  transition: opacity 0.48s var(--ease-luxury);
}

.scene-veil.is-active {
  opacity: 1;
}

/* ==========================================================================
   Barra superior minimalista y control de audio
   ========================================================================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 36px) 12px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.top-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-champagne);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
}

.top-brand-badge.is-visible {
  opacity: 0.85;
  transform: translateY(0);
}

.badge-star {
  color: var(--gold-primary);
  font-size: 0.8rem;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  border-color: var(--gold-primary);
  background: rgba(24, 20, 14, 0.88);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
  outline: none;
}

.audio-toggle:active {
  transform: scale(0.97);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.audio-bars span {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--gold-primary);
  opacity: 0.55;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.audio-toggle[aria-pressed="true"] {
  border-color: rgba(232, 207, 136, 0.75);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.24);
}

.audio-toggle[aria-pressed="true"] .audio-bars span {
  opacity: 1;
}

/* ==========================================================================
   Estructura principal de las 6 pantallas
   ========================================================================== */

.experience {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(68px, calc(env(safe-area-inset-top) + 56px)) clamp(18px, 5vw, 56px) max(78px, calc(env(safe-area-inset-bottom) + 68px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition:
    opacity 0.7s var(--ease-luxury),
    transform 0.8s var(--ease-luxury),
    visibility 0s linear 0.7s;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 0.75s var(--ease-luxury) 0.08s,
    transform 0.9s var(--ease-luxury) 0.08s,
    visibility 0s linear 0s;
}

.screen-inner {
  width: 100%;
  max-width: 980px;
  margin: auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-inner--narrow {
  max-width: 720px;
}

.screen-inner--split {
  max-width: 1020px;
  gap: clamp(20px, 4vw, 56px);
}

@media (min-width: 880px) {
  .screen-inner--split {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
}

/* ==========================================================================
   Tipografía, adornos y botones luxury
   ========================================================================== */

.luxury-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.06), rgba(8, 8, 9, 0.45) 72%);
  box-shadow:
    inset 0 0 40px rgba(212, 175, 55, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.65);
}

.luxury-frame::before,
.luxury-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(212, 175, 55, 0.6);
  border-style: solid;
  pointer-events: none;
}

.luxury-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.luxury-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(10px, 2vh, 18px);
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 1.5vw, 0.78rem);
  font-weight: 500;
  letter-spacing: clamp(0.16em, 0.4vw, 0.28em);
  text-transform: uppercase;
  color: var(--gold-champagne);
  white-space: nowrap;
}

.hairline {
  display: inline-block;
  width: clamp(16px, 4.5vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}

@media (min-width: 880px) {
  .hairline--mobile {
    display: none;
  }
}

.ornament-divider {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ornament-divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold-primary);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.hero-title,
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff6da 0%, #e8cf88 38%, #d4af37 68%, #f8ebc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.hero-title {
  font-size: clamp(1.45rem, 3.8vw, 2.55rem);
  max-width: 19ch;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.38rem, 3.5vw, 2.35rem);
  max-width: 22ch;
  margin-bottom: 16px;
}

.section-title--xl {
  font-size: clamp(1.75rem, 4.4vw, 3rem);
}

.hero-subtitle,
.body-copy {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 2.1vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
  color: var(--text-ivory);
  margin-bottom: clamp(22px, 3.4vh, 32px);
}

.text-gold {
  color: var(--gold-light);
  font-weight: 500;
}

.cta-wrap {
  margin-top: clamp(22px, 3.5vh, 34px);
}

/* Botones Luxury */
.btn-luxury {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 1.6vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-luxury),
    box-shadow 0.35s var(--ease-luxury),
    border-color 0.3s ease,
    background 0.3s ease;
}

.btn-luxury:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn-luxury--primary {
  border: 1px solid rgba(246, 231, 184, 0.7);
  background: linear-gradient(135deg, #b89128 0%, #e5c976 48%, #c79e2d 100%);
  color: #110d05;
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-luxury--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(212, 175, 55, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-luxury--outline {
  border: 1px solid rgba(212, 175, 55, 0.58);
  background: rgba(14, 12, 9, 0.72);
  color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.btn-luxury--outline:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  background: rgba(30, 24, 14, 0.85);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.22);
}

.btn-luxury:active {
  transform: translateY(0) scale(0.985);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-luxury);
  pointer-events: none;
}

.btn-luxury:hover .btn-shine {
  left: 150%;
}

.btn-arrow {
  transition: transform 0.3s var(--ease-luxury);
}

.btn-luxury:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   PANTALLA 1: Logotipo Beer Stop (integración intacta y luminosa)
   ========================================================================== */

.logo-stage--beer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(74vw, 310px);
  margin: clamp(4px, 1.5vh, 14px) auto clamp(12px, 2.5vh, 22px);
}

.logo-aura {
  position: absolute;
  inset: 6% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 231, 184, 0.16) 0%, rgba(140, 20, 35, 0.12) 45%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.logo-beer-wrapper {
  position: relative;
  width: 100%;
  /* Compensa suavemente los márgenes transparentes superior/inferior del PNG sin recortar ni alterar el logotipo */
  margin-block: -15%;
  pointer-events: none;
}

.logo-beer-stop {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.72));
}

.gold-sparkles {
  position: absolute;
  inset: -8% -10%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--gold-champagne);
  font-size: 0.9rem;
  opacity: 0.7;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
}

.sparkle--1 { top: 10%; left: 8%; }
.sparkle--2 { top: 16%; right: 6%; font-size: 0.7rem; }
.sparkle--3 { bottom: 14%; left: 4%; font-size: 0.75rem; }
.sparkle--4 { bottom: 10%; right: 10%; }

/* ==========================================================================
   PANTALLA 2: Regalo 3D Interactivo
   ========================================================================== */

.gift-instruction {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.9vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: clamp(16px, 3vh, 28px);
  max-height: 48px;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.45s ease, margin-bottom 0.45s ease;
}

.gift-instruction.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.gift-stage {
  position: relative;
  width: calc(var(--gift-size) * 1.9);
  height: calc(var(--gift-size) * 1.48);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  margin: 6px auto;
}

.gift-explosion-glow {
  position: absolute;
  width: calc(var(--gift-size) * 2.1);
  height: calc(var(--gift-size) * 2.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 204, 0.95) 0%, rgba(212, 175, 55, 0.55) 35%, rgba(212, 175, 55, 0) 70%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  z-index: 1;
}

.gift-rays {
  position: absolute;
  width: calc(var(--gift-size) * 2.3);
  height: calc(var(--gift-size) * 2.3);
  background: conic-gradient(
    from 0deg,
    transparent 0deg 18deg,
    rgba(246, 231, 184, 0.16) 24deg,
    transparent 30deg 56deg,
    rgba(212, 175, 55, 0.18) 64deg,
    transparent 72deg 112deg,
    rgba(246, 231, 184, 0.16) 120deg,
    transparent 128deg 178deg,
    rgba(212, 175, 55, 0.18) 186deg,
    transparent 194deg 248deg,
    rgba(246, 231, 184, 0.15) 256deg,
    transparent 264deg 315deg,
    rgba(212, 175, 55, 0.17) 323deg,
    transparent 331deg 360deg
  );
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle, black 10%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, black 10%, transparent 68%);
}

.gift-box {
  position: relative;
  z-index: 3;
  width: var(--gift-size);
  height: var(--gift-size);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-luxury);
  -webkit-tap-highlight-color: transparent;
}

.gift-box:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 18px;
  border-radius: 12px;
}

.gift-shadow {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: calc(var(--gift-size) * 1.25);
  height: 36px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.92) 0%, rgba(212, 175, 55, 0.15) 48%, transparent 74%);
  filter: blur(8px);
  transition: transform 0.45s var(--ease-luxury), opacity 0.45s ease;
}

.gift-box-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(-26deg);
  transition: transform 0.55s var(--ease-gift);
}

.gift-box:hover .gift-box-3d,
.gift-box.is-hovered .gift-box-3d {
  transform: rotateX(-12deg) rotateY(-18deg) translateY(-10px) scale(1.03);
}

.gift-box:hover .gift-shadow {
  transform: translateX(-50%) scale(0.92);
  opacity: 0.78;
}

.gift-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.gift-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: linear-gradient(155deg, #1d1b19 0%, #0d0c0b 55%, #050506 100%);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  backface-visibility: visible;
}

.gift-face--front  { transform: translateZ(var(--gift-half)); }
.gift-face--back   { transform: rotateY(180deg) translateZ(var(--gift-half)); }
.gift-face--left   { transform: rotateY(-90deg) translateZ(var(--gift-half)); }
.gift-face--right  { transform: rotateY(90deg) translateZ(var(--gift-half)); }
.gift-face--bottom {
  transform: rotateX(-90deg) translateZ(var(--gift-half));
  background: #040404;
}

.gift-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(212, 175, 55, 0.08) 100%);
  pointer-events: none;
}

/* Listones dorados metálicos */
.ribbon-v,
.ribbon-h {
  position: absolute;
  background: linear-gradient(90deg, #8c6a1b 0%, #f6e7b8 32%, #d4af37 55%, #f5e2a8 78%, #7d5d14 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.ribbon-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18%;
  transform: translateX(-50%);
}

.ribbon-h {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18%;
  transform: translateX(-50%);
}

/* Luz interior dorada que emana al abrir */
.gift-inner-light {
  position: absolute;
  inset: 8px;
  transform: rotateX(90deg) translateZ(calc(var(--gift-half) - 2px));
  background: radial-gradient(circle, #fffbe6 0%, #f3d678 45%, #5e3f08 90%);
  opacity: 0;
  box-shadow: 0 0 55px 18px rgba(246, 224, 146, 0.85);
  transition: opacity 0.6s ease;
}

/* Tapa 3D del regalo */
.gift-lid {
  position: absolute;
  top: calc(var(--lid-height) * -0.45);
  left: -5%;
  width: 110%;
  height: var(--lid-height);
  transform-style: preserve-3d;
  transition: transform 0.95s var(--ease-gift), opacity 0.6s ease;
}

.gift-lid-face {
  position: absolute;
  border: 1px solid rgba(232, 207, 136, 0.45);
  background: linear-gradient(160deg, #25221e 0%, #0e0d0c 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gift-lid-face--top {
  width: 100%;
  height: calc(var(--gift-size) * 1.1);
  top: 0;
  left: 0;
  transform-origin: top center;
  transform: rotateX(90deg) translateY(calc(var(--gift-size) * -0.55));
}

.gift-lid-face--top .ribbon-h {
  top: 50%;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 16%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #8c6a1b 0%, #f6e7b8 32%, #d4af37 55%, #f5e2a8 78%, #7d5d14 100%);
}

.gift-lid-face--top .ribbon-v {
  width: 16%;
}

.gift-lid-face--front,
.gift-lid-face--back {
  width: 100%;
  height: 100%;
}

.gift-lid-face--front { transform: translateZ(calc(var(--gift-half) * 1.1)); }
.gift-lid-face--back  { transform: rotateY(180deg) translateZ(calc(var(--gift-half) * 1.1)); }

.gift-lid-face--left,
.gift-lid-face--right {
  width: calc(var(--gift-size) * 1.1);
  height: 100%;
  left: 0;
}

.gift-lid-face--left  { transform: rotateY(-90deg) translateZ(calc(var(--gift-half) * 1.1)); }
.gift-lid-face--right { transform: rotateY(90deg) translateZ(calc(var(--gift-half) * 1.1)); }

/* Moño dorado 3D */
.gift-bow {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 92px;
  height: 44px;
  transform: translateX(-50%) rotateX(-12deg);
  transform-style: preserve-3d;
  pointer-events: none;
}

.bow-loop {
  position: absolute;
  top: 4px;
  width: 44px;
  height: 26px;
  border-radius: 50% 50% 24% 50%;
  border: 1.5px solid rgba(255, 244, 200, 0.7);
  background: linear-gradient(135deg, #fff1c2 0%, #d4af37 45%, #8a6614 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.bow-loop--left {
  left: 4px;
  transform: rotate(-18deg);
}

.bow-loop--right {
  right: 4px;
  border-radius: 50% 50% 50% 24%;
  transform: rotate(18deg);
}

.bow-loop--back-left {
  left: 12px;
  top: -2px;
  width: 36px;
  height: 20px;
  opacity: 0.85;
  transform: rotate(-36deg) translateZ(-10px);
}

.bow-loop--back-right {
  right: 12px;
  top: -2px;
  width: 36px;
  height: 20px;
  opacity: 0.85;
  border-radius: 50% 50% 50% 24%;
  transform: rotate(36deg) translateZ(-10px);
}

.bow-tail {
  position: absolute;
  top: 22px;
  width: 14px;
  height: 26px;
  background: linear-gradient(180deg, #e8cf88, #8c6a1b);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.bow-tail--left {
  left: 28px;
  transform: rotate(22deg);
}

.bow-tail--right {
  right: 28px;
  transform: rotate(-22deg);
}

.bow-knot {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 20px;
  height: 18px;
  transform: translateX(-50%) translateZ(6px);
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #fff6d4, #d4af37 55%, #7c5c12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

/* Estado Abierto del Regalo */
.gift-box.is-opened {
  cursor: default;
}

.gift-box.is-opened .gift-box-3d {
  transform: rotateX(-12deg) rotateY(-12deg) translateY(10px) scale(0.95);
}

.gift-box.is-opened .gift-lid {
  transform: translateY(-108px) translateZ(-52px) rotateX(52deg) rotateZ(-14deg);
  opacity: 0;
}

.gift-box.is-opened .gift-inner-light {
  opacity: 1;
}

/* Mensaje revelado */
.gift-reveal {
  margin-top: clamp(12px, 2.5vh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gift-reveal[hidden] {
  display: none;
}

.reveal-crest {
  color: var(--gold-primary);
  font-size: 1.25rem;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
}

.gift-reveal-message {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  max-width: 28ch;
  color: var(--gold-light);
  text-shadow: 0 0 28px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   PANTALLA 3: Agradecimiento progresivo
   ========================================================================== */

.story-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vh, 22px);
  margin-top: 8px;
}

.reveal-line {
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.5vw, 1.52rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-ivory);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
}

/* ==========================================================================
   PANTALLA 4: Navidad (Árbol Luxury + Esferas + Luces cálidas)
   ========================================================================== */

.christmas-scene {
  position: relative;
  flex: 0 0 auto;
  width: min(64vw, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 880px) {
  .christmas-scene {
    width: 310px;
  }
}

.tree-backdrop-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(140, 20, 35, 0.12) 48%, transparent 74%);
  filter: blur(22px);
  pointer-events: none;
}

.luxury-tree {
  position: relative;
  width: 100%;
}

.tree-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.8));
}

.tree-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tree-light {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe2 0%, #f5cd64 45%, rgba(212, 175, 55, 0) 75%);
  box-shadow:
    0 0 8px 2px rgba(255, 232, 158, 0.7),
    0 0 18px 4px rgba(212, 175, 55, 0.45);
  opacity: 0;
  transform: scale(0.3);
}

.christmas-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 880px) {
  .christmas-copy {
    align-items: flex-start;
    max-width: 480px;
  }
}

/* ==========================================================================
   PANTALLA 5: Año Nuevo 2027
   ========================================================================== */

.year-2027-wrap {
  position: relative;
  margin: 4px 0 12px;
}

.year-2027 {
  display: inline-flex;
  gap: clamp(4px, 1.5vw, 14px);
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 15vw, 8.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.year-2027 span {
  display: inline-block;
  background: linear-gradient(165deg, #fff9de 0%, #f1d98a 34%, #c69a28 65%, #fae8ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 30px rgba(212, 175, 55, 0.28));
  opacity: 0;
  transform: translateY(26px) scale(0.88);
}

/* ==========================================================================
   PANTALLA 6: Cierre y Logotipo Stranger Ads
   ========================================================================== */

.stranger-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: clamp(20px, 3.2vh, 30px) 0 clamp(14px, 2.4vh, 22px);
}

.logo-plaque--stranger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(148px, 34vw, 186px);
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 50% 40%, #fbf7ef 0%, #efe6d5 100%);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(212, 175, 55, 0.16);
}

.logo-stranger {
  display: block;
  width: 100%;
  height: auto;
  /* Compensa los márgenes transparentes del archivo 3333x3333 sin recortar ni alterar colores */
  margin-top: -16%;
  margin-bottom: -24%;
}

.signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.signature-brand {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--gold-light);
}

.signature-role {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.closing-wish {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.38rem);
  color: var(--gold-champagne);
  margin-bottom: clamp(20px, 3.2vh, 28px);
}

.closing-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 600px) {
  .closing-actions {
    flex-direction: row;
    max-width: none;
    width: auto;
    gap: 16px;
  }
}

/* ==========================================================================
   Barra inferior de navegación entre pantallas
   ========================================================================== */

.screen-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(8, 8, 9, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-champagne);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
}

.nav-arrow:disabled {
  opacity: 0.26;
  cursor: default;
}

.nav-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: transparent;
  transform: rotate(45deg);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-dot:hover {
  border-color: var(--gold-light);
  transform: rotate(45deg) scale(1.2);
}

.nav-dot.is-active {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  transform: rotate(45deg) scale(1.22);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

/* ==========================================================================
   Toast de notificación
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px));
  transform: translateX(-50%) translateY(12px);
  z-index: 40;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: rgba(12, 11, 10, 0.94);
  color: var(--gold-light);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-luxury);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Ajustes para pantallas muy compactas en altura
   ========================================================================== */

@media (max-height: 670px) {
  .luxury-frame {
    padding: 18px 16px;
  }
  .logo-stage--beer {
    width: min(56vw, 220px);
  }
  .christmas-scene {
    width: min(48vw, 185px);
  }
}
