/* El fondo, las estaciones y el cuaderno comparten el sistema de coordenadas de la toma. */
.hero {
  height: clamp(425px, 49vw, 73svh);
  min-height: 0;
  background: #31504b;
}
.room-world {
  position: absolute;
  transform-origin: 0 0;
  isolation: isolate;
  overflow: visible;
}
.room-world .backdrop {
  background-size: 100% 100%;
  background-position: 0 0;
}
.theater {
  inset: 0;
  perspective: none;
  isolation: auto;
  pointer-events: none;
}
.station {
  position: absolute;
  left: var(--x);
  bottom: var(--base);
  width: var(--size);
  padding: 0;
  border: 0;
  transform: translateX(-50%);
  background: none;
  aspect-ratio: 0.8;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: pointer;
}
:is(.station[data-chair="manana"], .cast[data-seat="manana"]) {
  --x: 44%;
  --base: 21.7%;
  --size: 20.8%;
  z-index: 3;
}
:is(.station[data-chair="tarde"], .cast[data-seat="tarde"]) {
  --x: 68%;
  --base: 13.5%;
  --size: 23.9%;
  z-index: 4;
}
:is(.station[data-chair="noche"], .cast[data-seat="noche"]) {
  --x: 87%;
  --base: 28.1%;
  --size: 17.1%;
  z-index: 2;
}
.swivel {
  position: absolute;
  inset: 0;
  display: block;
  background-size: 500% 500%;
  background-repeat: no-repeat;
}
.station img {
  width: 100%;
  height: 100%;
  display: block;
}
.station:focus-visible {
  outline: 2px dashed #fff1cc;
  outline-offset: 3px;
  border-radius: 38% 38% 14% 14%;
}
.contact-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 73%;
  height: 13%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse,
    #221b16b0 8%,
    #291e1570 42%,
    transparent 72%
  );
}
.contact-shadow:before {
  content: "";
  position: absolute;
  inset: -6% -3% -22% -50%;
  background: radial-gradient(ellipse, #332a1f59, transparent 69%);
  transform: rotate(14deg);
}
.room-world[data-light="tarde"] .contact-shadow:before {
  inset: -20% 5% -8% -105%;
  background: radial-gradient(ellipse, #33231275, transparent 72%);
}
.room-world[data-light="noche"] .swivel {
  filter: brightness(0.79) sepia(0.12);
}
.room-world[data-light="tarde"] .swivel {
  filter: brightness(0.94) sepia(0.12);
}
.prop-book {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 256px;
  height: 348px;
  transform-origin: 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: pointer;
}
.prop-book:focus-visible {
  outline: 3px solid #fff0ca;
  outline-offset: 3px;
}
.paper-surface,
.binding-flap,
.binding-flap i {
  position: absolute;
  inset: 0;
  display: block;
  background: url("assets/hoja.webp") center/100% 100% no-repeat;
  pointer-events: none;
}
.paper-surface {
  filter: drop-shadow(0 2px 2px #100e0b80);
}
.binding-flap {
  transform-origin: 6% 50%;
  transform-style: preserve-3d;
  background: none;
}
.binding-flap:before,
.binding-flap i {
  position: absolute;
  inset: 0;
  content: "";
  backface-visibility: hidden;
  background: url("assets/portada.webp") center/100% 100% no-repeat;
}
.binding-flap i {
  transform: rotateY(180deg);
  filter: brightness(0.4) saturate(0.45);
}
.hero .shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(110deg, #0d1b1aab, transparent 43%),
    linear-gradient(0deg, #10171321, transparent 28%);
}
.hero-copy {
  top: 5%;
  left: max(3.7vw, 22px);
  width: 29%;
  transform: none;
}
.hero-copy h1 {
  font-size: clamp(64px, 6.7vw, 116px);
}
.hero-copy .intro {
  margin: 16px 0;
  max-width: 24ch;
}
.tour-opt-in {
  display: none;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #fff4dc;
  font: italic 16px Georgia;
  pointer-events: auto;
  cursor: pointer;
}
.paused .tour-opt-in {
  display: inline-block;
  margin-left: 10px;
}
.camera-trip {
  background: transparent;
  perspective: none;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
}
.camera-trip .room-world {
  top: 0 !important;
  left: 0 !important;
}
.camera-trip .prop-book {
  z-index: 2;
  pointer-events: none;
}
.motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (min-width: 701px) {
  .motion {
    width: auto;
    padding: 0 12px;
    border-radius: 22px;
  }
  .motion:after {
    content: "Movimiento";
    font:
      12px/1 Arial,
      sans-serif;
  }
  .paused .motion:after {
    content: "Animar";
  }
}
.program,
.mast nav {
  background: linear-gradient(
    160deg,
    #fff8dd41 0%,
    #60797886 38%,
    #1c3339a8 75%,
    #a1b5a28f
  );
  border: 1px solid #e5ecda86;
  backdrop-filter: blur(12px) saturate(1.13);
  box-shadow:
    inset 0 1px 0 #fffff5b5,
    inset 0 -1px 0 #182e33bb,
    0 4px 12px #18272650;
}
.mast nav {
  background: linear-gradient(155deg, #fcfbf09c, #adbfad42 46%, #f4f6e778);
  border-color: #acb8a8;
}
.program {
  width: max-content;
  max-width: calc(100% - 28px);
  margin: -31px auto 0;
  padding: 3px;
  border-radius: 32px;
  display: block;
}
.bands {
  width: clamp(280px, 35vw, 520px);
  max-width: 100%;
  border: 0;
  border-radius: 28px;
  background: #243d3c55;
  box-shadow: inset 0 -1px 1px #d0e3d03d;
}
.bands button {
  font: italic clamp(19px, 2.1vw, 29px)/1 Georgia;
  min-height: 50px;
  border-radius: 22px;
}
.glass-lens {
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    #ffffebe5 1%,
    #e9f0da89 28%,
    #e5efdcba 65%,
    #b5cdbbda
  );
  border: 1px solid #feffebdb;
  box-shadow:
    inset 0 1px 1px #fffff5,
    inset 0 -2px 2px #607669,
    0 2px 4px #0d262766;
}
.bands button[aria-selected="true"] {
  color: #193532;
}
.bands button[aria-selected="false"] {
  color: #fff5da;
}
.glass-lens:after {
  inset: 0 10% auto;
  height: 37%;
  border-top: 1px solid #fffff4dc;
  transform: rotate(-4deg);
}
@media (max-width:559px), (max-width:700px) and (orientation:portrait) {
  .hero {
    height: clamp(485px, 72svh, 675px);
  }
  :is(.station[data-chair="manana"], .cast[data-seat="manana"]) {
    --x: 48.5%;
    --base: 28.5%;
    --size: 23.3%;
  }
  :is(.station[data-chair="tarde"], .cast[data-seat="tarde"]) {
    --x: 67.5%;
    --base: 8.2%;
    --size: 33.9%;
  }
  :is(.station[data-chair="noche"], .cast[data-seat="noche"]) {
    --x: 85.6%;
    --base: 27.2%;
    --size: 23%;
  }
  .hero-copy {
    top: 4%;
    left: 6%;
    width: 76%;
  }
  .hero-copy h1 {
    font-size: clamp(60px, 16.5vw, 90px);
  }
  .hero-copy .intro {
    max-width: 27ch;
    margin: 10px 0 12px;
  }
  .hero .shade {
    background: linear-gradient(141deg, #0b1716b8, transparent 61%);
  }
  .program {
    margin: -22px auto 0;
    padding: 2px;
  }
  .bands {
    width: min(83vw, 390px);
  }
  .bands button {
    min-height: 46px;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero {
    height: 405px;
  }
  .hero-copy {
    top: 5%;
  }
  .hero-copy h1 {
    font-size: 58px;
  }
}

.floor-shadows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  clip-path: polygon(45% 54%, 100% 57%, 100% 100%, 27% 100%, 34% 69%, 34% 60%);
}
.cast {
  position: absolute;
  left: var(--x);
  bottom: var(--base);
  width: var(--size);
  aspect-ratio: 0.8;
  transform: translateX(-50%);
}
.cast:after {
  content: "";
  position: absolute;
  left: -68%;
  top: 60%;
  width: 200%;
  height: 55%;
  background: var(--cast-image) center/100% 100%;
}
.room-world {
  --cast-image: url(assets/sombra-manana.webp);
}
.room-world[data-light="tarde"] {
  --cast-image: url(assets/sombra-tarde.webp);
}
.room-world[data-light="noche"] {
  --cast-image: url(assets/sombra-noche.webp);
}
.contact-shadow:before {
  display: none;
}
@media (max-width:559px), (max-width:700px) and (orientation:portrait) {
  .floor-shadows {
    clip-path: polygon(40% 56%, 100% 56%, 100% 100%, 32% 100%);
  }
}
/* La extensión de la superficie evita un borde de fotografía al viajar por la repisa. */
.camera-trip .room-world:before,
.camera-trip .room-world:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 100%;
  background: var(--plate) no-repeat center/100% 100%;
  transform: scaleX(-1);
  pointer-events: none;
}
.camera-trip .room-world:after {
  left: 100%;
}
.camera-trip:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/mostrador.webp) center/cover;
  opacity: var(--desk-opacity, 1);
}
.camera-trip .shot-ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.camera-trip .shot-ui .hero-copy {
  pointer-events: none;
}
@media (max-width:559px), (max-width:700px) and (orientation:portrait) {
  .camera-trip:before {
    background-image: url(assets/mostrador-s.webp);
  }
}
/* El encuadre final reserva altura al mostrador para que toda la vista descanse sobre la mesa. */
.booking { min-height: 100svh; }
.camera-trip .theater:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--plate) no-repeat center / 100% 100%;
  transform: scaleY(-1);
  pointer-events: none;
}
.swivel { overflow:hidden; }
.station .swivel > img {
  width:400%; max-width:none; height:100%;
  pointer-events:none;
}
.station .swivel > img[hidden] { display:none; }
.swivel canvas { display:block; width:100%; height:100%; pointer-events:none; }
@media (max-width:700px), (orientation:landscape) and (max-height:560px) and (pointer:coarse) {
  .theater { pointer-events:auto; touch-action:pan-y; }
  .room-world :is(.station,.cast):is([data-chair],[data-seat]) {
    --x:67.5%; --base:9.5%; --size:49%;
    z-index:3;
  }
  .room-world :is(.station,.cast):not([data-onstage]) { display:none; }
}
@media (orientation:landscape) and (max-height:560px) and (pointer:coarse), (orientation:landscape) and (max-width:700px) and (max-height:520px) {
  .room-world :is(.station,.cast):is([data-chair],[data-seat]) {
    --x:69%; --base:14%; --size:27%;
  }
}
.leaf-block {
  position:absolute; inset:0; width:100%; height:100%; overflow:visible;
  pointer-events:none;
}
.prop-book { --depth-x:13px; --depth-y:40px; }
.counter { --depth-x:2.5px; --depth-y:9px; }
.counter .leaf-block { z-index:-3; }
.leaf-block use {
  transform:translate(calc(var(--z) * var(--depth-x)),calc(var(--z) * var(--depth-y)));
}
.leaf-block { filter:drop-shadow(1px 2px 1.4px #201b164f); }
.flyleaf {
  position:absolute; inset:0; pointer-events:none;
  transform-origin:6% 50%;
  background:url(assets/hoja.webp) center / 100% 100% no-repeat;
}
.binding-flap i {
  inset:1.3% 1.4% 1% 3.2%;
  border:3px solid #514e38;
  border-radius:2.5% 5% 5% 2.5%;
  background:linear-gradient(90deg,#9a8e70,#e5d7ba 8%,#d6c7a8 87%,#b8a786);
  box-shadow:inset 0 0 8px #493d3054;
  filter:none;
}
.room-plate {
  position:absolute; inset:0; width:100%; height:100%; object-fit:fill;
  opacity:0; z-index:-2; pointer-events:none; will-change:opacity;
}
.station .swivel { transform:translateZ(0); }
.room-world > .prop-book { will-change:transform; }

/* El vidrio conserva la luz del decorado sin volver a filtrar el salón al mover una silla. */
.program,.mast nav { backdrop-filter:none; -webkit-backdrop-filter:none; }
.program {
  --glass-scene:var(--glass-wide);
  background-image:linear-gradient(160deg,#fff8dd41,#60797886 38%,#1c3339a8 75%,#a1b5a28f),var(--glass-scene);
  background-size:100% 100%;
}
.program[data-glass="manana"] { --glass-wide:url("assets/vidrio-pc-manana.webp"); --glass-mobile:url("assets/vidrio-movil-manana.webp"); }
.program[data-glass="tarde"] { --glass-wide:url("assets/vidrio-pc-tarde.webp"); --glass-mobile:url("assets/vidrio-movil-tarde.webp"); }
.program[data-glass="noche"] { --glass-wide:url("assets/vidrio-pc-noche.webp"); --glass-mobile:url("assets/vidrio-movil-noche.webp"); }
@media(max-width:700px) { .program { --glass-scene:var(--glass-mobile); } }

.glass-lens { will-change:transform; transition-timing-function:cubic-bezier(.22,.72,.26,1); }
