/* ---------- room exploration modal ---------- */
.room-modal-backdrop{
  position:fixed; inset:0; z-index:800;
  background:rgba(8, 6, 5, 0.92);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding:1.5rem;
}
.room-modal-backdrop.open{
  opacity:1; pointer-events:auto;
}
.room-modal-card{
  position:relative;
  width:min(94vw, 780px);
  max-height:88vh;
  max-height:88dvh;
  overflow-y:auto;
  background:linear-gradient(170deg, rgba(28,22,18,0.97) 0%, rgba(14,11,9,0.99) 100%);
  border:1px solid rgba(224,149,92,0.35);
  border-radius:14px;
  padding:2.4rem 2.2rem;
  box-shadow:0 30px 80px rgba(0,0,0,0.9), 0 0 50px rgba(201,122,69,0.25);
  transform:translate3d(0, 28px, 0) scale(0.95);
  transition:transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.room-modal-backdrop.open .room-modal-card{
  transform:translate3d(0, 0, 0) scale(1);
  
}
.modal-room-hero{
  position:relative;
  width:100%;
  aspect-ratio:16/7;
  margin:0.2rem 0 1.4rem;
  overflow:hidden;
  border-radius:8px;
  border:1px solid rgba(224,149,92,0.28);
  background:#090706;
  box-shadow:inset 0 0 40px rgba(0,0,0,0.8), 0 16px 34px rgba(0,0,0,0.38);
}
.modal-room-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(0.76) saturate(0.9);
  transform:scale(1.035);
}
.modal-room-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 52% 30%, rgba(255,219,155,0.32), rgba(224,149,92,0.08) 32%, rgba(5,4,3,0.72) 100%);
  opacity:0;
  mix-blend-mode:screen;
  animation:modalLampOn 1.1s 0.18s ease-out forwards;
}
.modal-room-hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 26%, rgba(0,0,0,0.42)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
  pointer-events:none;
}
@keyframes modalLampOn{
  0%,24%{ opacity:0; }
  32%{ opacity:0.18; }
  40%{ opacity:0.04; }
  64%,100%{ opacity:1; }
}
.modal-header{
  position: relative;
  margin-bottom:1.6rem;
  border-bottom:1px solid rgba(138,129,119,0.2);
  padding-bottom:1rem;
  padding-right: 3rem;
}
.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(224, 149, 92, 0.3);
  background: rgba(20, 14, 10, 0.85);
  color: var(--cream);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10;
}
@media (hover: hover) and (pointer: fine) {
  .modal-close-btn:hover {
    background: var(--amber);
    color: #120c09;
    border-color: var(--amber-hot);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 4px 16px rgba(224, 149, 92, 0.4);
  }
}

/* ==========================================================================
   BOTÓN VOLVER / REGRESAR UNIFICADO (CASA DE KELLO · UIVERSE STYLE)
   ========================================================================== */
.kello-back-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 9.8rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(224, 149, 92, 0.35);
  border-radius: 1.5rem;
  background: rgba(18, 13, 10, 0.88);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 194, 107, 0.15);
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 10;
  flex-shrink: 0;
  transition: width 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-radius 0.45s cubic-bezier(0.65, 0, 0.076, 1), background 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-color 0.45s cubic-bezier(0.65, 0, 0.076, 1), box-shadow 0.45s cubic-bezier(0.65, 0, 0.076, 1), color 0.45s cubic-bezier(0.65, 0, 0.076, 1), transform 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  -webkit-tap-highlight-color: transparent;
}

.kello-back-btn:focus-visible {
  outline: 2px solid #f5c26b;
  outline-offset: 2px;
}

.kello-back-btn .circle {
  transition: width 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-radius 0.45s cubic-bezier(0.65, 0, 0.076, 1), background 0.45s cubic-bezier(0.65, 0, 0.076, 1), box-shadow 0.45s cubic-bezier(0.65, 0, 0.076, 1), transform 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #f5c26b 0%, #e0955c 60%, #c97a45 100%);
  border-radius: 1.35rem;
  box-shadow: 0 2px 10px rgba(224, 149, 92, 0.35);
  flex-shrink: 0;
  z-index: 1;
}

.kello-back-btn .circle .icon {
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.076, 1), background 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-color 0.45s cubic-bezier(0.65, 0, 0.076, 1), width 0.45s cubic-bezier(0.65, 0, 0.076, 1), left 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* Flecha apuntando a la izquierda (VOLVER) */
.kello-back-btn .circle .icon.arrow {
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.076, 1), background 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-color 0.45s cubic-bezier(0.65, 0, 0.076, 1), width 0.45s cubic-bezier(0.65, 0, 0.076, 1), left 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.72rem;
  width: 1.05rem;
  height: 0.125rem;
  background: none;
}

.kello-back-btn .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.22rem;
  left: 0.04rem;
  width: 0.52rem;
  height: 0.52rem;
  border-top: 0.125rem solid #120c08;
  border-left: 0.125rem solid #120c08;
  transform: rotate(-45deg);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.076, 1), border-color 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.kello-back-btn .button-text {
  transition: color 0.45s cubic-bezier(0.65, 0, 0.076, 1), transform 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.9rem;
  margin: 0;
  color: #f5ede2;
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* Efectos al pasar el cursor (Hover) y al pulsar (Active) */
.kello-back-btn:hover,
.kello-back-btn:active {
  border-color: rgba(245, 194, 107, 0.6);
  box-shadow: 0 6px 22px rgba(224, 149, 92, 0.4);
}

.kello-back-btn:hover .circle,
.kello-back-btn:active .circle {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 4px 18px rgba(224, 149, 92, 0.5);
}

.kello-back-btn:hover .circle .icon.arrow,
.kello-back-btn:active .circle .icon.arrow {
  background: #120c08;
  transform: translate(-0.25rem, 0);
}

.kello-back-btn:hover .circle .icon.arrow::before,
.kello-back-btn:active .circle .icon.arrow::before {
  border-color: #120c08;
}

.kello-back-btn:hover .button-text,
.kello-back-btn:active .button-text {
  color: #120c08;
}

/* Adaptación para pantallas móviles y tablets */
@media (max-width: 768px) {
  .kello-back-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
    background: rgba(22, 16, 12, 0.8);
    border: 1px solid rgba(224, 149, 92, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  .kello-back-btn .circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
  }
  .kello-back-btn .circle .icon.arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.92rem;
  }
  .kello-back-btn .button-text {
    display: none;
  }
  .kello-back-btn:hover .circle,
  .kello-back-btn:active .circle {
    background: rgba(224, 149, 92, 0.15);
    border-radius: 50%;
    width: 100%;
  }
}
.modal-eyebrow{ font-family:'Cormorant Garamond',serif; font-style:italic; font-size:1.1rem; color:var(--amber-hot); }
.modal-title{ font-family:'Anton',sans-serif; font-size:clamp(1.8rem, 4vw, 2.6rem); letter-spacing:0.06em; color:var(--cream); margin-top:0.25rem; }
.modal-body{ color:var(--cream-dim); font-size:0.95rem; line-height:1.7; }




/* --- ADAPTACIÓN RESPONSIVA BASE DE MODALES --- */
@media (max-width: 768px) {
  .room-modal-backdrop {
    padding: 0.8rem;
    align-items: flex-end;
  }
  .room-modal-card {
    width: 100%;
    max-height: 85dvh;
    border-radius: 22px 22px 0 0;
    padding: 1.8rem 1.3rem;
  }
  .modal-title { font-size: 1.5rem; }
  .modal-eyebrow { font-size: 0.9rem; }
  .modal-body { font-size: 0.88rem; line-height: 1.6; }
}
