/* ============ 03 · LOS CUARTOS ============ */
.cuartos { height: 600vh; position: relative; }
.cuartos-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 62%, rgba(210,167,95,.05) 62.1%, transparent 100%),
    radial-gradient(ellipse at 50% 40%, #17110c 0%, #0a0705 75%);
}
.cuartos-head {
  position: absolute; left: clamp(20px, 6vw, 96px); top: clamp(28px, 8vh, 80px); z-index: 2;
}
.cuartos-head .eyebrow {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.cuartos-head .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.cuartos-head h2 {
  font-family: "Zodiak", Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(36px, 4.4vw, 62px); line-height: 1;
}
.cuartos-head h2 em { font-style: normal; color: var(--gold); }

/* Pasillo */
.pasillo {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; perspective: 1400px;
  padding-top: clamp(60px, 10vh, 110px);
}
.track {
  display: flex; gap: clamp(18px, 2.4vw, 34px); padding: 0 calc(50vw - 150px);
  transform-style: preserve-3d; will-change: transform;
  pointer-events: none; /* las puertas giradas quedan "detrás" del riel; que el clic llegue a ellas */
}

/* Puerta */
.puerta {
  all: unset; box-sizing: border-box; cursor: pointer;
  position: relative; flex: 0 0 300px; height: min(470px, 62vh);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 24px 22px;
  background: linear-gradient(170deg, #241a12 0%, #120d09 70%);
  border: 1px solid rgba(210,167,95,.3); border-radius: 150px 150px 6px 6px;
  box-shadow: inset 0 0 0 8px rgba(0,0,0,.25), 0 30px 60px rgba(0,0,0,.5);
  transition: border-color .4s, box-shadow .4s, background .4s;
  will-change: transform; pointer-events: auto;
}
.puerta::after { /* luz que se cuela bajo la puerta */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -14px; height: 14px;
  background: radial-gradient(ellipse at top, rgba(255,183,96,.35), transparent 70%);
  opacity: .5; transition: opacity .4s;
}
.puerta:hover, .puerta:focus-visible {
  border-color: var(--warm);
  background: linear-gradient(170deg, #33251a 0%, #160f0a 70%);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,.25), 0 0 50px rgba(255,183,96,.18), 0 30px 60px rgba(0,0,0,.5);
}
.puerta:hover::after { opacity: 1; }
.puerta.hq { border-color: rgba(210,167,95,.7); }
.puerta .num {
  align-self: center; margin-top: 18px;
  font: italic 300 15px/1 "Zodiak", Georgia, serif; color: var(--gold); letter-spacing: .1em;
}
.puerta .grp {
  align-self: center; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(242,232,213,.45); margin-bottom: 8px;
}
.puerta .lc { align-self: center; margin-bottom: auto; }
.puerta h3 {
  font-family: "Zodiak", Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--paper);
}
.puerta p { font-size: 14px; line-height: 1.45; color: rgba(242,232,213,.62); min-height: 2.9em; }
.puerta .entrar {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid rgba(210,167,95,.18);
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold);
}
.puerta .entrar time, .puerta .entrar i { margin-right: auto; color: rgba(242,232,213,.5); letter-spacing: .12em; font-style: normal; }
.puerta .entrar b { font-weight: 400; transition: transform .3s; }
.puerta:hover .entrar b { transform: translateX(6px); }

/* Tarjeta de logo (puertas y ficha) */
.lc {
  display: grid; place-items: center; overflow: hidden;
  width: 120px; height: 120px; border-radius: 18px;
  background: #0d0a07; border: 1px solid rgba(210,167,95,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.5);
}
.lc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc.contain img { object-fit: contain; padding: 10px; }
.lc.wide { width: 200px; height: 90px; }
.lc.light { background: var(--paper); }
.lc.mono {
  font: italic 300 54px/1 "Zodiak", Georgia, serif; color: var(--gold);
  background: radial-gradient(circle at 30% 25%, #2b2016, #0d0a07);
}
.lc.big { width: min(360px, 70vw); height: min(360px, 70vw); border-radius: 28px; }
.lc.big.wide { height: min(200px, 40vw); }
.lc.big.mono { font-size: 150px; }

.cuartos-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(210,167,95,.12); }
.cuartos-progress i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---------- Ficha (cuarto abierto) ---------- */
.cuarto {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(ellipse at 28% 45%, rgba(255,183,96,.12), transparent 55%),
    radial-gradient(ellipse at 50% 50%, #1b130d 0%, #070504 80%);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  visibility: hidden;
  transition: clip-path .8s cubic-bezier(.7,0,.2,1), visibility 0s .8s;
}
.cuarto.open {
  clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%));
  visibility: visible;
  transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s;
}
.cuarto-x {
  all: unset; cursor: pointer; position: absolute; top: 22px; right: 26px; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(210,167,95,.4); color: var(--paper); font-size: 15px;
  transition: border-color .3s, transform .3s;
}
.cuarto-x:hover { border-color: var(--warm); transform: rotate(90deg); }
.cuarto-in { position: absolute; inset: 0; display: grid; place-items: center; padding: 80px clamp(20px, 6vw, 96px); overflow-y: auto; }
.ficha {
  display: grid; grid-template-columns: auto minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.ficha-media .fotos { display: grid; gap: 12px; width: min(420px, 80vw); }
.ficha-media .fotos img { width: 100%; border-radius: 14px; display: block; }
.ficha-txt .eyebrow {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.ficha-txt .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.ficha-txt h2 {
  font-family: "Zodiak", Georgia, serif; font-style: italic; font-weight: 300;
  font-size: clamp(46px, 6vw, 92px); line-height: .95; margin-bottom: 20px;
}
.ficha-txt .linea { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: rgba(242,232,213,.8); }
.ficha-txt dl { margin-top: 30px; border-top: 1px solid rgba(210,167,95,.22); }
.ficha-txt dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(210,167,95,.12); }
.ficha-txt dt { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.ficha-txt dd { font-size: 16px; line-height: 1.5; }
.visitar {
  display: inline-block; margin-top: 30px; padding: 14px 26px; border-radius: 40px;
  border: 1px solid var(--gold); color: var(--paper); text-decoration: none;
  font-size: 13px; letter-spacing: .25em; text-transform: uppercase; transition: background .3s, color .3s;
}
.visitar:hover { background: var(--gold); color: #120d09; }

/* entrada de la ficha */
.cuarto-in.in .ficha-media { animation: fichaIn .9s .25s both cubic-bezier(.2,.7,.2,1); }
.cuarto-in.in .ficha-txt > * { animation: fichaIn .8s both cubic-bezier(.2,.7,.2,1); }
.cuarto-in.in .ficha-txt > :nth-child(1) { animation-delay: .35s; }
.cuarto-in.in .ficha-txt > :nth-child(2) { animation-delay: .42s; }
.cuarto-in.in .ficha-txt > :nth-child(3) { animation-delay: .5s; }
.cuarto-in.in .ficha-txt > :nth-child(4) { animation-delay: .58s; }
.cuarto-in.in .ficha-txt > :nth-child(5) { animation-delay: .66s; }
@keyframes fichaIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.cuarto-nav {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px;
  font-size: 12px; letter-spacing: .3em; color: rgba(242,232,213,.55);
}
.cuarto-nav button {
  all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(210,167,95,.35); color: var(--paper); transition: border-color .3s;
}
.cuarto-nav button:hover { border-color: var(--warm); }

@media (max-width: 800px) {
  .puerta { flex-basis: 250px; }
  .track { padding: 0 calc(50vw - 125px); }
  .ficha { grid-template-columns: 1fr; justify-items: start; gap: 28px; }
  .lc.big { width: 160px; height: 160px; }
  .lc.big.wide { width: 240px; height: 110px; }
  .lc.big.mono { font-size: 80px; }
}
