@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Tenor+Sans&display=swap');

/* variables principales de la página de habitaciones */
:root {
    --primary: #1a3a5a;
    --gold: #c5a059;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --dark: #111111;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* reset base para evitar scroll horizontal */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--white);
}

/* contenedor general de habitaciones */
.rooms-exclusive {
    background-color: var(--light-grey);
    padding-top: 90px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

/* bloque individual de cada habitación */
.room-section {
    display: flex;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    background-color: var(--white);
    overflow: hidden;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.room-section:last-of-type {
    margin-bottom: 0 !important;
    border-bottom: none;
}

/* alterna imagen y texto en habitaciones pares */
.room-section.reverse {
    flex-direction: row-reverse;
}

/* zona de imagen de la habitación */
.room-image-side {
    flex: 0.9;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 1.5s ease;
}

.room-section:hover .room-image-side {
    transform: scale(1.03);
}

/* capa oscura suave sobre la imagen */
.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* número decorativo de habitación */
.room-number {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

/* texto que aparece al pasar por la imagen */
.view-more {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--gold);
}

.room-image-side:hover .view-more {
    opacity: 1;
    bottom: 30px;
}

/* zona de contenido de la habitación */
.room-content-side {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: var(--white);
    z-index: 2;
}

.content-wrapper {
    max-width: 420px;
}

/* etiqueta superior */
.tag {
    font-family: 'Tenor Sans', sans-serif;
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 15px;
}

.room-content-side h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin: 0 0 15px 0;
    line-height: 1.1;
}

/* separador decorativo */
.divider {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    margin-bottom: 25px;
}

.room-content-side p {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* datos rápidos de la habitación */
.data-row {
    display: flex;
    gap: 35px;
    margin-bottom: 40px;
}

.data-item span {
    display: block;
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* ===== Modal acceso requerido (reservas) ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.auth-modal.show {
  display: block;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* tarjeta central del modal */
.auth-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 28px));
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.auth-modal-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}

.auth-modal-title {
  margin: 12px 0 8px;
  font-size: 22px;
}

.auth-modal-text {
  margin: 0 0 18px;
  color: rgba(0,0,0,0.75);
  line-height: 1.55;
}

.auth-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* botones del modal */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  width: 100%;
}

.auth-btn-primary {
  background: #0b2d4a;
  color: #fff;
}

.auth-btn-secondary {
  background: rgba(0,0,0,0.06);
  color: #0b2d4a;
}

.auth-modal-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}


.data-item strong {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--primary);
}

/* enlace principal de reserva */
.cta-line {
    font-family: 'Tenor Sans', sans-serif;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.cta-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.cta-line:hover::after {
    width: 100%;
}

/* adaptación para tablets */
@media (max-width: 1024px) {

    .room-section,
    .room-section.reverse {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 40px;
    }

    .room-image-side {
        display: block !important;
        width: 100% !important;
        height: 350px !important;
        flex: none !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .room-content-side {
        width: 100% !important;
        flex: none !important;
        padding: 40px 20px !important;
        background-color: var(--white) !important;
    }

    .room-number {
        font-size: 4rem;
        bottom: 20px;
        left: 20px;
    }

    .room-content-side h2 {
        font-size: 2.2rem;
    }

    .data-row {
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* visor de imágenes ampliadas */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80vh;
    border: 1px solid var(--gold);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* flechas del lightbox */
.prev,
.next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
