:root {
  --ink: #f8f1df;
  --muted: #b8b4aa;
  --night: #080a14;
  --gold: #efc66f;
  --rose: #ec7ca7;
  --cyan: #68d6d4;
  --violet: #9385ff;
  --green: #79c898;
  --world-cycle: 520s;
  --cycle-offset: -18s;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
}

button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.experience {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 0%, rgba(104, 214, 212, .08), transparent 35%),
    radial-gradient(circle at 12% 30%, rgba(147, 133, 255, .11), transparent 30%),
    var(--night);
}

.experience::after {
  content: "";
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient { position: absolute; width: 34vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-one { background: var(--violet); left: -17vw; top: 20%; }
.ambient-two { background: var(--cyan); right: -18vw; top: 34%; }

.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,10,20,.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(4px);
}

.identity { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.wing { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.06); }
.identity strong { display: block; font-size: .86rem; letter-spacing: .015em; }
.identity small { display: block; margin-top: 2px; color: var(--muted); font-size: .62rem; letter-spacing: .03em; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.top-actions button { padding: 9px 13px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: .73rem; font-weight: 750; }
.top-actions button:hover { background: rgba(255,255,255,.07); }
.top-actions .patron-button { border: 1px solid rgba(239,198,111,.55); color: #f6d895; background: rgba(239,198,111,.08); }

.intro {
  position: absolute;
  z-index: 12;
  top: clamp(92px, 12vh, 132px);
  left: clamp(22px, 5vw, 76px);
  width: min(490px, 41vw);
  pointer-events: none;
}

.overline { margin: 0 0 12px; color: var(--gold); font-size: .66rem; letter-spacing: .19em; font-weight: 800; }
.intro h1 { margin: 0; font: 600 clamp(2.65rem, 4.6vw, 5.1rem)/.84 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.intro h1 em { color: #c4bbff; font-weight: 500; }
.intro-copy { max-width: 460px; margin: 19px 0 15px; color: #c9c5bc; font-size: clamp(.74rem, .9vw, .9rem); line-height: 1.62; }
.instruction { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #e6e0d4; background: rgba(12,14,26,.48); backdrop-filter: blur(10px); font-size: .67rem; }
.instruction span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(121,200,152,.1); }

.world {
  position: absolute;
  z-index: 4;
  inset: 72px 0 30px;
  overflow: visible;
  background: linear-gradient(to bottom, #11172f 0%, #253653 48%, #52604e 70%, #172419 100%);
}

.world::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(ellipse at 69% 14%, rgba(255,248,207,.18), transparent 22%), linear-gradient(105deg, rgba(6,8,20,.45) 0 35%, transparent 56%); pointer-events: none; animation: skyGlowCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.world::after { content: ""; position: absolute; z-index: 0; inset: 0; opacity: 0; background: linear-gradient(to bottom, #77c9ed 0%, #bde7f2 48%, #e8d9ad 68%, #47704a 100%); pointer-events: none; animation: dayLightCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.stars { position: absolute; z-index: 1; inset: 0; pointer-events: none; animation: starsCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: white; opacity: .65; box-shadow: 0 0 7px white; animation: twinkle 3s infinite alternate; }
.stars i:nth-child(1) { left: 49%; top: 10%; }
.stars i:nth-child(2) { left: 59%; top: 19%; animation-delay: .8s; }
.stars i:nth-child(3) { left: 87%; top: 34%; animation-delay: 1.6s; }
.stars i:nth-child(4) { left: 38%; top: 47%; animation-delay: 2.1s; }
.stars i:nth-child(5) { left: 76%; top: 55%; animation-delay: 1.1s; }
.stars::before { content: ""; position: absolute; inset: 0; opacity: .78; pointer-events: none; background-image: radial-gradient(circle at 3% 8%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 7% 28%, rgba(255,255,255,.82) 0 1px, transparent 1.5px), radial-gradient(circle at 11% 49%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 15% 17%, rgba(255,255,255,.75) 0 1px, transparent 1.5px), radial-gradient(circle at 19% 61%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 23% 37%, rgba(255,255,255,.78) 0 1px, transparent 1.5px), radial-gradient(circle at 27% 5%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 31% 52%, rgba(255,255,255,.72) 0 1px, transparent 1.5px), radial-gradient(circle at 35% 23%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 39% 69%, rgba(255,255,255,.8) 0 1px, transparent 1.5px), radial-gradient(circle at 43% 11%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 47% 43%, rgba(255,255,255,.72) 0 1px, transparent 1.5px), radial-gradient(circle at 51% 58%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 55% 4%, rgba(255,255,255,.8) 0 1px, transparent 1.5px), radial-gradient(circle at 59% 32%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 63% 72%, rgba(255,255,255,.76) 0 1px, transparent 1.5px), radial-gradient(circle at 67% 17%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 71% 49%, rgba(255,255,255,.76) 0 1px, transparent 1.5px), radial-gradient(circle at 75% 7%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 79% 64%, rgba(255,255,255,.82) 0 1px, transparent 1.5px), radial-gradient(circle at 83% 27%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 87% 45%, rgba(255,255,255,.76) 0 1px, transparent 1.5px), radial-gradient(circle at 91% 12%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 95% 57%, rgba(255,255,255,.78) 0 1px, transparent 1.5px), radial-gradient(circle at 98% 34%, #fff 0 1px, transparent 1.4px); }
.shooting-star { --shoot-x: 12%; --shoot-y: 12%; position: absolute; z-index: 3; left: var(--shoot-x); top: var(--shoot-y); width: 4px; height: 4px; border-radius: 50%; background: #fff8d2; box-shadow: 0 0 8px #fff, 0 0 15px rgba(255,239,170,.8); opacity: 0; pointer-events: none; }
.shooting-star::after { content: ""; position: absolute; right: 2px; top: 50%; width: clamp(82px, 10vw, 150px); height: 2px; transform: translateY(-50%) rotate(21deg); transform-origin: right center; border-radius: 999px; background: linear-gradient(to left, rgba(255,248,210,.98), rgba(255,248,210,.42) 44%, transparent); filter: drop-shadow(0 0 4px rgba(255,248,210,.7)); }
.shooting-star.is-flying { animation: shootingStar .82s cubic-bezier(.18,.62,.22,1) both; }
.moon, .sun { position: absolute; z-index: 1; right: -5vw; top: 42%; width: clamp(36px, 4vw, 66px); aspect-ratio: 1; border-radius: 50%; opacity: 0; pointer-events: none; }
.moon { background: #f4edcf; box-shadow: 0 0 35px rgba(244,237,207,.32); animation: moonCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.moon::after { content: ""; position: absolute; inset: -6px 8px 8px -6px; border-radius: 50%; background: #15213c; }
.sun { background: #ffe48a; box-shadow: 0 0 28px rgba(255,226,126,.72), 0 0 70px rgba(255,195,91,.45); animation: sunCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.sun::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: #fff2a9; box-shadow: 0 0 14px rgba(255,255,220,.7); }
.clouds, .birds { position: absolute; z-index: 2; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; animation: daySkyVisibility var(--world-cycle) linear infinite var(--cycle-offset); }
.clouds i { --cloud-size: 72px; position: absolute; left: -18%; width: var(--cloud-size); height: calc(var(--cloud-size) * .28); border-radius: 999px; background: rgba(255,255,255,.76); filter: drop-shadow(0 5px 8px rgba(60,80,100,.1)); animation: cloudDrift 82s linear infinite; }
.clouds i::before, .clouds i::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.clouds i::before { left: 16%; width: 38%; aspect-ratio: 1; }
.clouds i::after { right: 12%; width: 48%; aspect-ratio: 1; }
.clouds i:nth-child(1) { --cloud-size: 78px; top: 13%; animation-delay: -18s; }
.clouds i:nth-child(2) { --cloud-size: 54px; top: 27%; opacity: .64; animation-duration: 96s; animation-delay: -61s; }
.clouds i:nth-child(3) { --cloud-size: 105px; top: 39%; opacity: .5; animation-duration: 115s; animation-delay: -40s; }
.clouds i:nth-child(4) { --cloud-size: 64px; top: 8%; opacity: .7; animation-duration: 103s; animation-delay: -82s; }
.birds i { --bird-scale: 1; position: absolute; left: -12%; top: 24%; width: 22px; height: 10px; animation: birdFly 47s linear infinite; }
.birds i::before, .birds i::after { content: ""; position: absolute; top: 2px; width: 12px; height: 7px; border-top: 2px solid #334455; border-radius: 50%; animation: birdWing .8s ease-in-out infinite alternate; }
.birds i::before { left: 0; transform: rotate(13deg); transform-origin: right top; }
.birds i::after { right: 0; transform: rotate(-13deg); transform-origin: left top; }
.birds i:nth-child(2) { --bird-scale: .75; top: 19%; margin-left: -42px; animation-delay: -11s; animation-duration: 53s; }
.birds i:nth-child(3) { --bird-scale: .58; top: 34%; margin-left: 28px; animation-delay: -23s; animation-duration: 61s; }
.birds i:nth-child(4) { --bird-scale: .88; top: 29%; margin-left: -70px; animation-delay: -36s; animation-duration: 49s; }
.birds i:nth-child(5) { --bird-scale: .52; top: 12%; margin-left: 55px; animation-delay: -44s; animation-duration: 68s; }
.hills { position: absolute; z-index: 2; left: -5%; right: -5%; bottom: 29%; height: 28%; background: #283c3e; clip-path: polygon(0 65%, 12% 28%, 25% 70%, 41% 18%, 54% 61%, 70% 24%, 83% 68%, 100% 30%, 100% 100%, 0 100%); opacity: .86; animation: landscapeCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.grass { position: absolute; left: -5%; width: 110%; }
.grass-far { bottom: 0; height: 45%; background: radial-gradient(ellipse at 63% 12%, #6b8057, transparent 45%), linear-gradient(#31432f, #162519); clip-path: ellipse(75% 66% at 50% 72%); animation: landscapeCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.grass-near { bottom: -24%; height: 46%; background: linear-gradient(#20341f, #0f1911); border-radius: 50% 50% 0 0; animation: landscapeCycle var(--world-cycle) linear infinite var(--cycle-offset); }
.path { position: absolute; z-index: 1; left: 37.5%; bottom: -12%; width: 25%; height: 56%; background: linear-gradient(to bottom, rgba(211,192,146,.35), rgba(126,105,68,.64)); clip-path: polygon(46% 0, 55% 0, 100% 100%, 0 100%); animation: landscapeCycle var(--world-cycle) linear infinite var(--cycle-offset); }

.project-zone { position: absolute; z-index: 5; }
.zone-label { position: absolute; z-index: 8; display: flex; flex-direction: column; white-space: nowrap; pointer-events: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.zone-label strong { font: 600 1.05rem/1 var(--display); }
.zone-label span { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .55rem; letter-spacing: .05em; }

/* Una Puerta */
.door-zone { left: 41%; top: 20%; width: 18%; height: 49%; }
.door-aura { position: absolute; left: 50%; top: 38%; width: 135%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(147,133,255,.24), transparent 67%); filter: blur(8px); animation: breathe 3.8s ease-in-out infinite; }
.majestic-door { position: absolute; z-index: 3; left: 50%; bottom: 0; width: clamp(80px, 8vw, 132px); height: clamp(154px, 17vw, 260px); transform: translateX(-50%); padding: 0; border: 0; background: none; perspective: 800px; cursor: default; }
.door-frame { position: absolute; inset: -14px -15px -8px; border: clamp(7px, .65vw, 12px) solid #34261d; border-radius: 58px 58px 6px 6px; box-shadow: 0 16px 25px rgba(0,0,0,.48), inset 0 0 0 2px #7b5a38, 0 0 0 2px #15100d; background: #211714; }
.door-frame i { position: absolute; width: 13px; height: 18px; border-radius: 50% 50% 20% 20%; background: #655035; }
.door-frame i:nth-child(1) { left: -13px; bottom: 19%; }
.door-frame i:nth-child(2) { right: -13px; bottom: 30%; }
.door-frame i:nth-child(3) { left: 7%; top: -8px; }
.door-face { position: absolute; inset: 0; transform-origin: left center; border-radius: 45px 45px 2px 2px; overflow: hidden; background: repeating-linear-gradient(90deg, #513821 0 10%, #694929 11% 20%); border: 2px solid #1f1510; box-shadow: inset -10px 0 25px rgba(0,0,0,.35); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .6s; }
.door-panel { position: absolute; left: 18%; right: 18%; height: 28%; border: 2px solid rgba(30,18,10,.75); box-shadow: inset 0 0 0 3px rgba(156,111,62,.22); }
.door-panel.top { top: 17%; border-radius: 35px 35px 8px 8px; }
.door-panel.bottom { bottom: 16%; }
.lock { position: absolute; right: 14%; top: 54%; width: 14px; height: 22px; border-radius: 8px 8px 5px 5px; background: #c69946; box-shadow: 0 0 0 2px #49351a, 0 0 12px rgba(239,198,111,.5); }
.lock::after { content: ""; position: absolute; left: 5px; top: 7px; width: 4px; height: 8px; border-radius: 50% 50% 2px 2px; background: #201810; }
.door-opening .door-face { transform: rotateY(-72deg); filter: brightness(1.35); }
.door-opening .door-aura { background: radial-gradient(circle, rgba(238,231,183,.55), rgba(147,133,255,.2) 42%, transparent 70%); }
.floating-key { --key-x: 0px; --key-y: 0px; --key-scale: 1; position: absolute; z-index: 8; left: 70%; top: 9%; width: 64px; height: 64px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none; font-size: 2.2rem; filter: drop-shadow(0 0 12px #ffe991); animation: keyDance 13s ease-in-out infinite; transform-origin: center; }
.floating-key > span { display: block; animation: keyGlyphFloat 2.4s ease-in-out infinite; transform-origin: 50% 52%; }
.floating-key.dragging { z-index: 20; cursor: grabbing; animation: none; transform: translate3d(var(--key-x), var(--key-y), 0) scale(calc(var(--key-scale) * 1.14)) rotate(-12deg); }
.floating-key.dragging > span { animation: none; }
.door-label { left: 50%; bottom: -38px; transform: translateX(-50%); text-align: center; align-items: center; }

/* Agrégala */
.agregala-zone { left: 4%; top: 5%; width: 92%; height: 30%; }
.music-note { position: absolute; z-index: 7; width: 36px; height: 44px; margin: -20px 0 0 -18px; padding: 0; border: 0; background: transparent; color: #ffc1dc; cursor: grab; font: 700 clamp(1.35rem, 2vw, 2.1rem)/1 var(--display); text-shadow: 0 0 14px rgba(236,124,167,.72); animation: noteDrift 2.8s ease-in-out infinite alternate; touch-action: none; }
.music-note:nth-of-type(even) { color: #d3c9ff; animation-delay: -.8s; }
.music-note.collected { opacity: 0; pointer-events: none; }
.note-1 { left: 4%; top: 34%; }
.note-2 { left: 17%; top: 12%; }
.note-3 { left: 30%; top: 42%; }
.note-4 { left: 43%; top: 9%; }
.note-5 { left: 56%; top: 36%; }
.note-6 { left: 69%; top: 13%; }
.note-7 { left: 82%; top: 43%; }
.note-8 { left: 95%; top: 18%; }
.agregala-label { right: 1%; top: 55%; text-align: right; align-items: flex-end; }
.note-cluster { position: absolute; z-index: 28; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; opacity: 0; }
.note-cluster.visible { opacity: 1; }
.note-cluster span { --trail-x: 0px; --trail-y: 0px; --trail-rotation: 0deg; --burst-x: 0px; --burst-y: -45px; position: absolute; left: 0; top: 0; color: #ffd0e1; font-size: 1.35rem; text-shadow: 0 0 12px rgba(236,124,167,.8); transform: translate3d(var(--trail-x), var(--trail-y), 0) rotate(var(--trail-rotation)); will-change: transform; }
.note-cluster.complete span { animation: noteBurst .5s ease-out forwards; }

/* Menue */
.menue-zone { left: 5%; bottom: 15%; width: 21%; height: 33%; cursor: none; }
.restaurant-base { position: absolute; z-index: 1; left: 2%; right: 2%; bottom: -6%; height: 16%; border: 2px solid #56534e; border-radius: 3px 3px 9px 9px; background: linear-gradient(165deg, #aaa79e, #77746d 58%, #56534e); box-shadow: 0 12px 18px rgba(0,0,0,.3), inset 0 2px rgba(255,255,255,.18); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.restaurant-base::before { content: ""; position: absolute; left: 3%; right: 3%; top: -5px; height: 7px; border: 2px solid #5d5952; border-radius: 3px; background: #9b978e; box-shadow: inset 0 2px rgba(255,255,255,.18); }
.restaurant-base::after { content: ""; position: absolute; inset: 8px 9% 5px; opacity: .42; background: radial-gradient(circle at 14% 30%, #383633 0 1px, transparent 1.5px), radial-gradient(circle at 43% 72%, #d2cec2 0 1px, transparent 1.5px), radial-gradient(circle at 72% 28%, #3f3d39 0 1px, transparent 1.5px), linear-gradient(104deg, transparent 45%, rgba(58,56,52,.8) 46% 48%, transparent 49%); }
.restaurant { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 4%; height: 76%; border: 3px solid #3d1d22; background: linear-gradient(#f5cf93 0 19%, #a9434f 20% 100%); box-shadow: 0 18px 30px rgba(0,0,0,.38), inset 0 0 35px rgba(255,214,137,.22); border-radius: 4px 4px 0 0; }
.restaurant-roof { position: absolute; z-index: 2; left: -8%; right: -8%; top: -18%; height: 24%; display: flex; overflow: hidden; border: 2px solid #57262a; border-radius: 5px 5px 12px 12px; transform: perspective(100px) rotateX(7deg); }
.restaurant-roof i { flex: 1; background: #f3dfb6; }
.restaurant-roof i:nth-child(odd) { background: #a62d42; }
.restaurant-sign { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); color: #fff2d5; font: 700 clamp(.55rem, .85vw, .8rem)/1 var(--display); letter-spacing: .12em; }
.restaurant-window { position: absolute; left: 9%; bottom: 12%; width: 48%; height: 47%; display: grid; place-items: end center; padding-bottom: 7px; border: 4px solid #5b2930; background: linear-gradient(150deg, rgba(126,211,220,.65), rgba(28,55,74,.9)); box-shadow: inset 0 0 18px rgba(255,219,137,.3); }
.restaurant-window::before, .restaurant-window::after { content: ""; position: absolute; background: #5b2930; }
.restaurant-window::before { left: 50%; top: 0; bottom: 0; width: 3px; }
.restaurant-window::after { top: 47%; left: 0; right: 0; height: 3px; }
.restaurant-window span { color: #ffe9b8; font-size: .42rem; letter-spacing: .08em; }
.restaurant-door { position: absolute; right: 9%; bottom: 0; width: 27%; height: 57%; border: 4px solid #52252c; background: #50262b; }
.restaurant-door::after { content: ""; position: absolute; right: 5px; top: 48%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cafe-light { position: absolute; left: 24%; bottom: -7px; width: 52%; height: 10px; border-radius: 50%; background: rgba(255,190,101,.24); filter: blur(7px); }
.qr-board { position: absolute; z-index: 5; right: -2%; bottom: -4%; width: clamp(74px, 6vw, 92px); aspect-ratio: 1; padding: 5px; border: 3px solid #4d3022; border-radius: 4px; background: #f5eddc; box-shadow: 0 9px 16px rgba(0,0,0,.35); cursor: none; transform: rotate(3deg); }
.qr-board::after { content: ""; position: absolute; left: -6%; right: -6%; top: -8px; height: 8px; border-radius: 4px; background: #7a4b2d; }
.qr-pattern { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; }
.qr-pattern img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-board.scanning::before { content: ""; position: absolute; z-index: 3; left: 6px; right: 6px; top: 8px; height: 2px; background: #ff4d7d; box-shadow: 0 0 8px #ff4d7d; animation: scanLine .7s linear infinite; }
.menue-label { left: 7%; bottom: -38px; }
.camera-cursor { --camera-x: 0px; --camera-y: 0px; position: absolute; z-index: 30; left: -20px; top: -18px; width: 40px; height: 29px; border: 2px solid #f7efe1; border-radius: 7px; background: #1e2230; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); transform: translate(var(--camera-x), var(--camera-y)); opacity: 0; }
.camera-active ~ .camera-cursor, .menue-zone.camera-active ~ .camera-cursor { opacity: 1; }
.camera-cursor::before { content: ""; position: absolute; left: 5px; top: -7px; width: 13px; height: 7px; border-radius: 3px 3px 0 0; background: #f7efe1; }
.camera-cursor i { position: absolute; left: 13px; top: 6px; width: 13px; height: 13px; border: 3px solid #f7efe1; border-radius: 50%; }
.camera-cursor b { position: absolute; right: 5px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #f18b9f; }
.photo-flash { position: absolute; z-index: 40; inset: 0; background: white; opacity: 0; pointer-events: none; transition: opacity .12s; }
.photo-flash.visible { opacity: .92; }

/* Teatro */
.theater-zone { right: 4%; bottom: 8%; width: 25%; height: 36%; }
.mini-theater { position: absolute; z-index: 5; left: 50%; bottom: 20%; width: clamp(130px, 14vw, 230px); height: clamp(116px, 12vw, 190px); transform: translateX(-50%); padding: 0; border: 0; border-radius: 45% 45% 5px 5px / 24% 24% 5px 5px; background: #4d281f; box-shadow: 0 18px 28px rgba(0,0,0,.44), inset 0 0 0 4px #7f5031; cursor: pointer; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.mini-theater:hover { transform: translateX(-50%) translateY(-5px) scale(1.03); }
.theater-top { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); color: #f1c46a; font: 700 clamp(.5rem, .7vw, .75rem)/1 var(--display); letter-spacing: .15em; }
.theater-stage { position: absolute; left: 10%; right: 10%; top: 24%; bottom: 15%; overflow: hidden; border: 4px solid #25110e; background: radial-gradient(circle at 50% 72%, rgba(255,204,107,.35), transparent 38%), #15101a; box-shadow: inset 0 0 22px rgba(0,0,0,.85); }
.curtain { position: absolute; z-index: 3; top: 0; width: 54%; height: 100%; background: repeating-linear-gradient(90deg, #6e1526 0 12%, #a62d42 13% 25%); transition: transform .75s cubic-bezier(.65,0,.35,1); }
.curtain.left { left: 0; border-right: 3px solid #d49751; }
.curtain.right { right: 0; border-left: 3px solid #d49751; }
.stage-moon { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); color: #f6deb0; font-size: 1.2rem; opacity: .85; }
.puppet { --shirt: #a33b3f; position: absolute; z-index: 2; bottom: 7%; width: 34px; height: 52px; transform-origin: 50% 0; animation: puppetIdle 2.7s ease-in-out infinite; }
.puppet-one { left: 25%; }
.puppet-two { --shirt: #3f6889; right: 25%; animation-delay: -1.2s; }
.puppet-string { position: absolute; z-index: 0; top: -34px; width: 1px; height: 39px; background: rgba(217,204,180,.7); transform-origin: top; }
.puppet-string.string-left { left: 9px; transform: rotate(5deg); }
.puppet-string.string-right { right: 9px; transform: rotate(-5deg); }
.puppet-head { position: absolute; z-index: 2; left: 6px; top: 0; width: 22px; height: 22px; border: 2px solid #563f32; border-radius: 50%; background: #d7ad83; }
.puppet-body { position: absolute; z-index: 1; left: 5px; top: 22px; width: 24px; height: 28px; border: 2px solid #4d3528; background: var(--shirt); }
.theater-opening .puppet { animation: puppetDance .72s ease-in-out infinite alternate; }
.theater-stage em { position: absolute; left: 50%; bottom: 10%; width: 85%; transform: translateX(-50%); color: #f5e9d2; font: 500 clamp(.42rem, .6vw, .65rem)/1.2 var(--display); }
.theater-foot { position: absolute; bottom: -8%; width: 11%; height: 17%; background: #3b1f18; }
.theater-foot.left { left: 16%; }
.theater-foot.right { right: 16%; }
.table { position: absolute; z-index: 2; left: 1%; right: 1%; bottom: 10%; height: 14%; border-radius: 3px; background: linear-gradient(#815538, #3e251c); transform: perspective(300px) rotateX(58deg); box-shadow: 0 20px 25px rgba(0,0,0,.5); }
.table i { position: absolute; left: 6%; right: 6%; bottom: -75%; height: 80%; background: #3c251c; }
.theater-label { right: 5%; bottom: -10px; text-align: right; align-items: flex-end; }
.theater-opening .mini-theater { z-index: 20; transform: translateX(-50%) scale(2.2); filter: drop-shadow(0 25px 35px rgba(0,0,0,.5)); }
.theater-opening .curtain.left { transform: translateX(-92%); }
.theater-opening .curtain.right { transform: translateX(92%); }

.project-index { position: absolute; z-index: 12; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; }
.project-index span { min-width: 31px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.72); background: rgba(6,8,16,.45); backdrop-filter: blur(8px); font-size: .54rem; }
.stage-edge { position: absolute; z-index: 14; left: 0; right: 0; bottom: 0; height: 33px; overflow: hidden; border-top: 2px solid #8b4d2d; background: linear-gradient(#502218, #24100f); box-shadow: 0 -8px 30px rgba(0,0,0,.32); }
.stage-edge span { position: absolute; top: 0; bottom: 0; width: 33%; border-right: 1px solid rgba(255,255,255,.08); transform: skewX(-22deg); }
.stage-edge span:nth-child(2) { left: 33%; }
.stage-edge span:nth-child(3) { left: 66%; }

/* Modales */
.modal-layer { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,6,12,.74); backdrop-filter: blur(12px); animation: veilIn .25s ease-out; }
.project-modal { --tone: var(--green); position: relative; width: min(680px, 94vw); max-height: min(720px, 88svh); overflow: auto; padding: clamp(27px, 4vw, 52px); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: linear-gradient(145deg, rgba(27,29,43,.99), rgba(12,14,25,.99)); box-shadow: 0 35px 100px rgba(0,0,0,.55); animation: cardIn .45s cubic-bezier(.2,.9,.25,1); scrollbar-width: thin; scrollbar-color: var(--tone) rgba(255,255,255,.055); }
.project-modal::-webkit-scrollbar { width: 10px; }
.project-modal::-webkit-scrollbar-track { margin: 20px 0; border-radius: 999px; background: rgba(255,255,255,.045); }
.project-modal::-webkit-scrollbar-thumb { border: 3px solid rgba(15,17,28,.96); border-radius: 999px; background: var(--tone); }
.project-modal::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--tone) 82%, white); }
.project-modal::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--tone); }
.tone-menue { --tone: var(--gold); }
.tone-agregala { --tone: var(--rose); }
.tone-unapuerta { --tone: var(--violet); }
.tone-teatro { --tone: var(--cyan); }
.tone-patron { --tone: var(--green); }
.modal-close { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.25rem; }
.modal-close:hover { background: rgba(255,255,255,.1); }
.modal-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid var(--tone); border-radius: 16px; color: var(--tone); background: rgba(255,255,255,.04); font-size: 1.2rem; }
.modal-eyebrow { margin: 0 0 9px; color: var(--tone); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.project-modal h2 { margin: 0; font: 600 clamp(2rem, 4.3vw, 3.7rem)/.94 var(--display); letter-spacing: -.035em; }
.project-modal h3 { max-width: 520px; margin: 12px 0 0; color: #e9e1d4; font: 500 clamp(1rem, 1.6vw, 1.28rem)/1.22 var(--display); }
.modal-summary { max-width: 590px; margin: 20px 0 21px; color: #bdb9b1; font-size: .85rem; line-height: 1.72; }
.project-details { display: flex; flex-wrap: wrap; gap: 7px; }
.project-details span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #d4d0c8; background: rgba(255,255,255,.035); font-size: .63rem; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 27px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
.modal-footer p { max-width: 410px; margin: 0; color: #b4afa6; font: 500 .86rem/1.5 var(--display); }
.modal-footer button, .modal-footer a { flex: 0 0 auto; padding: 11px 15px; border: 0; border-radius: 999px; color: #15100c; background: var(--tone); cursor: pointer; text-decoration: none; font-size: .68rem; font-weight: 850; }
.modal-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.modal-actions #visitAction { border: 1px solid color-mix(in srgb, var(--tone) 68%, transparent); color: var(--tone); background: transparent; }
.modal-actions #visitAction:hover { color: #15100c; background: var(--tone); }
.modal-footer span { margin-left: 6px; }
.patron-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 23px; }
.patron-list div { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.025); }
.patron-list b { color: var(--tone); font-size: .62rem; }
.patron-list span { color: #ddd7cc; font-size: .72rem; line-height: 1.35; }

@media (min-width: 621px) {
  .project-modal { width: min(646px, 94vw); padding: clamp(26px, 3.8vw, 49px); border-radius: 27px; }
  .modal-close { right: 17px; top: 15px; width: 34px; height: 34px; font-size: 1.19rem; }
  .modal-mark { width: 46px; height: 46px; margin-bottom: 24px; border-radius: 15px; font-size: 1.14rem; }
  .modal-eyebrow { margin-bottom: 8px; font-size: .62rem; }
  .project-modal h2 { font-size: clamp(1.9rem, 4.08vw, 3.52rem); }
  .project-modal h3 { max-width: 494px; margin-top: 11px; font-size: clamp(.95rem, 1.52vw, 1.22rem); line-height: 1.16; }
  .modal-summary { max-width: 561px; margin: 19px 0 20px; font-size: .81rem; line-height: 1.63; }
  .project-details { gap: 6px; }
  .project-details span { padding: 6px 9px; font-size: .6rem; }
  .modal-footer { gap: 23px; margin-top: 26px; padding-top: 21px; }
  .modal-footer p { max-width: 390px; font-size: .82rem; line-height: 1.43; }
  .modal-footer button, .modal-footer a { padding: 10px 14px; font-size: .65rem; }
  .modal-actions { gap: 7px; }
  .patron-list { gap: 7px; margin-top: 22px; }
  .patron-list div { min-height: 66px; gap: 11px; padding: 12px; border-radius: 13px; }
  .patron-list b { font-size: .59rem; }
  .patron-list span { font-size: .68rem; line-height: 1.28; }
}

noscript { position: fixed; z-index: 200; left: 50%; bottom: 45px; transform: translateX(-50%); padding: 10px 14px; border-radius: 10px; background: #fff; color: #111; font-size: .75rem; }

@keyframes twinkle { to { opacity: .16; transform: scale(.7); } }
@keyframes shootingStar { 0% { opacity: 0; transform: translate3d(0,0,0) scale(.7); } 8% { opacity: 1; } 38% { opacity: 1; } 62%, 100% { opacity: 0; transform: translate3d(28vw,16vh,0) scale(1); } }
@keyframes dayLightCycle { 0%, 44%, 100% { opacity: 0; } 49% { opacity: .38; } 55%, 91% { opacity: 1; } 97% { opacity: .24; } }
@keyframes skyGlowCycle { 0%, 44%, 100% { opacity: 1; } 55%, 91% { opacity: .24; } }
@keyframes starsCycle { 0%, 44%, 100% { opacity: 1; } 50%, 94% { opacity: 0; } 98% { opacity: .72; } }
@keyframes moonCycle { 0% { opacity: 0; transform: translate3d(0,10vh,0); } 2% { opacity: .88; } 5% { opacity: .88; transform: translate3d(-12vw,-18vh,0); } 12.5% { transform: translate3d(-31vw,-32vh,0); } 25% { transform: translate3d(-53vw,-38vh,0); } 37.5% { transform: translate3d(-76vw,-32vh,0); } 45% { opacity: .88; transform: translate3d(-96vw,-18vh,0); } 48% { opacity: .88; } 50% { opacity: 0; transform: translate3d(-110vw,10vh,0); } 50.01%, 100% { opacity: 0; transform: translate3d(0,10vh,0); } }
@keyframes sunCycle { 0%, 49.99% { opacity: 0; transform: translate3d(0,10vh,0); } 50% { opacity: 0; transform: translate3d(0,10vh,0); } 52% { opacity: 1; } 55% { opacity: 1; transform: translate3d(-12vw,-18vh,0); } 62.5% { transform: translate3d(-31vw,-32vh,0); } 75% { transform: translate3d(-53vw,-38vh,0); } 87.5% { transform: translate3d(-76vw,-32vh,0); } 95% { opacity: 1; transform: translate3d(-96vw,-18vh,0); } 98% { opacity: 1; } 100% { opacity: 0; transform: translate3d(-110vw,10vh,0); } }
@keyframes daySkyVisibility { 0%, 49%, 100% { opacity: 0; } 55%, 92% { opacity: 1; } 97% { opacity: 0; } }
@keyframes landscapeCycle { 0%, 44%, 100% { filter: brightness(.78) saturate(.82); } 55%, 91% { filter: brightness(1.22) saturate(1.08); } 97% { filter: brightness(.9) saturate(.95); } }
@keyframes cloudDrift { from { transform: translate3d(-12vw,0,0); } to { transform: translate3d(132vw,0,0); } }
@keyframes birdFly { from { transform: translate3d(-15vw,0,0) scale(var(--bird-scale)); } 48% { transform: translate3d(55vw,-12px,0) scale(var(--bird-scale)); } to { transform: translate3d(130vw,5px,0) scale(var(--bird-scale)); } }
@keyframes birdWing { from { margin-top: 0; } to { margin-top: 3px; } }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes keyDance { 0%, 100% { z-index: 8; transform: translate3d(var(--key-x), var(--key-y), 0) scale(var(--key-scale)) rotate(-5deg); } 12% { z-index: 8; transform: translate3d(calc(var(--key-x) + 18px), calc(var(--key-y) + 65px), 0) scale(var(--key-scale)) rotate(8deg); } 24% { z-index: 8; transform: translate3d(calc(var(--key-x) + 30px), calc(var(--key-y) + 115px), 0) scale(var(--key-scale)) rotate(-8deg); } 25% { z-index: 2; transform: translate3d(calc(var(--key-x) + 30px), calc(var(--key-y) + 115px), 0) scale(var(--key-scale)) rotate(-8deg); } 40% { z-index: 2; transform: translate3d(calc(var(--key-x) - 25px), calc(var(--key-y) + 150px), 0) scale(var(--key-scale)) rotate(10deg); } 55% { z-index: 2; transform: translate3d(calc(var(--key-x) - 95px), calc(var(--key-y) + 220px), 0) scale(var(--key-scale)) rotate(-10deg); } 72% { z-index: 2; transform: translate3d(calc(var(--key-x) - 180px), calc(var(--key-y) + 230px), 0) scale(var(--key-scale)) rotate(7deg); } 73% { z-index: 8; transform: translate3d(calc(var(--key-x) - 180px), calc(var(--key-y) + 230px), 0) scale(var(--key-scale)) rotate(7deg); } 84% { z-index: 8; transform: translate3d(calc(var(--key-x) - 145px), calc(var(--key-y) + 170px), 0) scale(var(--key-scale)) rotate(-9deg); } 94% { z-index: 8; transform: translate3d(calc(var(--key-x) - 70px), calc(var(--key-y) + 80px), 0) scale(var(--key-scale)) rotate(6deg); } }
@keyframes keyDanceMobile { 0%, 100% { z-index: 8; transform: translate3d(var(--key-x), var(--key-y), 0) scale(var(--key-scale)) rotate(-5deg); } 12% { z-index: 8; transform: translate3d(calc(var(--key-x) + 14px), calc(var(--key-y) + 70px), 0) scale(var(--key-scale)) rotate(8deg); } 24% { z-index: 8; transform: translate3d(calc(var(--key-x) + 24px), calc(var(--key-y) + 118px), 0) scale(var(--key-scale)) rotate(-8deg); } 25% { z-index: 2; transform: translate3d(calc(var(--key-x) + 24px), calc(var(--key-y) + 118px), 0) scale(var(--key-scale)) rotate(-8deg); } 40% { z-index: 2; transform: translate3d(calc(var(--key-x) - 12px), calc(var(--key-y) + 145px), 0) scale(var(--key-scale)) rotate(10deg); } 55% { z-index: 2; transform: translate3d(calc(var(--key-x) - 48px), calc(var(--key-y) + 170px), 0) scale(var(--key-scale)) rotate(-10deg); } 72% { z-index: 2; transform: translate3d(calc(var(--key-x) - 138px), calc(var(--key-y) + 180px), 0) scale(var(--key-scale)) rotate(7deg); } 73% { z-index: 8; transform: translate3d(calc(var(--key-x) - 138px), calc(var(--key-y) + 180px), 0) scale(var(--key-scale)) rotate(7deg); } 84% { z-index: 8; transform: translate3d(calc(var(--key-x) - 95px), calc(var(--key-y) + 120px), 0) scale(var(--key-scale)) rotate(-9deg); } 94% { z-index: 8; transform: translate3d(calc(var(--key-x) - 40px), calc(var(--key-y) + 55px), 0) scale(var(--key-scale)) rotate(6deg); } }
@keyframes keyGlyphFloat { 0%, 100% { transform: translate3d(0,-2px,0) rotate(-7deg); } 50% { transform: translate3d(0,4px,0) rotate(7deg); } }
@keyframes noteDrift { to { transform: translate(5px,-8px) rotate(7deg); } }
@keyframes noteBurst { from { transform: translate3d(var(--trail-x), var(--trail-y), 0) rotate(var(--trail-rotation)); opacity: 1; } to { transform: translate3d(calc(var(--trail-x) + var(--burst-x)), calc(var(--trail-y) + var(--burst-y)), 0) rotate(calc(var(--trail-rotation) + 35deg)) scale(1.15); opacity: 0; } }
@keyframes puppetIdle { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-2px); } }
@keyframes puppetDance { from { transform: rotate(-7deg) translate3d(-2px,0,0); } to { transform: rotate(7deg) translate3d(2px,-4px,0); } }
@keyframes scanLine { from { transform: translateY(0); } to { transform: translateY(44px); } }
@keyframes veilIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 900px) {
  .intro { top: 88px; width: 53vw; }
  .intro h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
  .intro-copy { max-width: 380px; font-size: .7rem; }
  .door-zone { left: 41%; top: 26%; }
  .agregala-zone { left: 4%; width: 92%; }
  .menue-zone { left: 2%; width: 27%; }
  .theater-zone { right: 1%; width: 30%; }
  .zone-label span { display: none; }
}

@media (max-width: 620px) {
  .topbar { height: 60px; padding: 0 14px; }
  .identity small { display: none; }
  .wing { width: 32px; height: 32px; border-radius: 11px; }
  .top-actions button { padding: 7px 9px; font-size: .61rem; }
  .top-actions button:first-child { display: none; }
  .world { inset: 60px 0 26px; }
  .intro { top: 72px; left: 15px; width: calc(100% - 30px); text-align: center; }
  .overline { margin-bottom: 7px; font-size: .52rem; }
  .intro h1 { font-size: clamp(2rem, 10vw, 3.1rem); line-height: .86; }
  .intro-copy { width: 92%; margin: 10px auto 8px; font-size: .62rem; line-height: 1.45; }
  .instruction { padding: 6px 9px; font-size: .55rem; }
  .hills { bottom: 32%; }
  .grass-far { height: 42%; }
  .agregala-zone { left: 4%; top: 17%; width: 92%; height: 23%; }
  .agregala-label { right: 0; top: 65%; }
  .music-note { font-size: 1.4rem; }
  .door-zone { left: 35%; top: 43%; width: 30%; height: 32%; }
  .majestic-door { width: 72px; height: 138px; }
  .floating-key { --key-scale: .82; left: 73%; top: 1%; animation-name: keyDanceMobile; }
  .door-label { bottom: -25px; }
  .menue-zone { left: 2%; bottom: 12%; width: 34%; height: 24%; }
  .restaurant { left: 0; right: 9%; }
  .restaurant-base { left: -3%; right: 5%; bottom: -7%; }
  .qr-board { right: -4%; width: 64px; }
  .menue-label { bottom: -24px; }
  .theater-zone { right: 0; bottom: 6%; width: 38%; height: 25%; }
  .mini-theater { width: 120px; height: 102px; }
  .theater-opening .mini-theater { transform: translateX(-50%) scale(1.7); }
  .theater-label { bottom: 0; }
  .project-index { bottom: 7px; }
  .stage-edge { height: 27px; }
  .project-modal { padding: 28px 22px; border-radius: 22px; }
  .project-modal h2 { font-size: 2.2rem; }
  .project-modal h3 { font-size: 1rem; }
  .modal-footer { align-items: flex-start; flex-direction: column; gap: 15px; }
  .modal-actions { flex-wrap: wrap; }
  .patron-list { grid-template-columns: 1fr; }
  .patron-list div { min-height: 54px; }
}

@media (max-height: 660px) and (min-width: 621px) {
  .intro { top: 88px; }
  .intro h1 { font-size: 3rem; }
  .intro-copy { margin: 12px 0 10px; }
  .door-zone { top: 23%; height: 46%; }
  .menue-zone, .theater-zone { bottom: 9%; height: 31%; }
}

@media (hover: none) {
  .menue-zone, .qr-board { cursor: pointer; }
  .camera-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .moon { right: 13%; top: 9%; opacity: .88; transform: none; animation: none !important; }
  .sun, .clouds, .birds { display: none; }
  .floating-key { z-index: 8; animation: none !important; transform: scale(var(--key-scale)); }
}
