/* =============================================
   Hacienda Reservas — Detalle de habitación
   ============================================= */

.hr-hab {
    font-family: 'Inter', sans-serif;
    color: var(--hr-text);
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 8px;
    box-sizing: border-box;
}
.hr-hab *, .hr-hab *::before, .hr-hab *::after { box-sizing: border-box; }

/* ── Encabezado ── */
.hr-hab-header {
    text-align: center;
    margin-bottom: 38px;
}
.hr-hab-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hr-terracota);
    margin-bottom: 12px;
}
.hr-hab-titulo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    color: var(--hr-brown-dk);
    margin: 0;
    line-height: 1.1;
}

/* Divisor ornamental: línea — rombo — línea */
.hr-hab-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 22px;
}
.hr-hab-divider span {
    display: block;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hr-sand-md));
}
.hr-hab-divider span:last-child {
    background: linear-gradient(90deg, var(--hr-sand-md), transparent);
}
.hr-hab-divider i {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--hr-terracota);
    border-radius: 1px;
}

/* Pills de info */
.hr-hab-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hr-hab-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hr-brown);
    background: var(--hr-sand);
    border: 1px solid var(--hr-sand-md);
    padding: 7px 15px;
    border-radius: 100px;
}
.hr-hab-pill svg {
    width: 15px;
    height: 15px;
    color: var(--hr-terracota);
    flex-shrink: 0;
}

/* ── Grid principal ── */
.hr-hab-grid {
    display: grid;
    gap: 44px;
    align-items: start;
}
.hr-hab--split .hr-hab-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
}
.hr-hab--apilado .hr-hab-grid {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Galería ── */
.hr-hab-principal {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 18px;
    overflow: hidden;
    background: var(--hr-sand);
    box-shadow: 0 18px 44px rgba(107,63,31,.16);
    border: 1px solid var(--hr-sand-md);
}
.hr-hab-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: opacity .25s ease, transform .6s ease;
}
.hr-hab-principal:hover img { transform: scale(1.03); }
.hr-hab-principal.is-loading img { opacity: .35; }

/* Botón de zoom sobre la imagen principal */
.hr-hab-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(74,43,18,.72);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .15s;
    z-index: 2;
}
.hr-hab-zoom:hover { background: var(--hr-brown-dk); transform: scale(1.06); }
.hr-hab-zoom svg { width: 20px; height: 20px; }

/* Miniaturas */
.hr-hab-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.hr-hab-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--hr-sand);
    aspect-ratio: 4 / 3;
    transition: border-color .2s, transform .15s;
}
.hr-hab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-hab-thumb:hover { transform: translateY(-2px); }
.hr-hab-thumb.is-active { border-color: var(--hr-terracota); }

/* ── Bloques de contenido ── */
.hr-hab-bloque { margin-top: 34px; }

.hr-hab-subtitulo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--hr-brown-dk);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hr-sand-md);
}

/* Comodidades */
.hr-hab-comodidades-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}
.hr-hab-comodidades-lista li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    color: var(--hr-text);
    line-height: 1.4;
}
.hr-hab-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hr-olive-lt);
    color: var(--hr-olive);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hr-hab-check svg { width: 15px; height: 15px; }

/* Descripción (prosa) */
.hr-hab-descripcion {
    font-size: 16px;
    line-height: 1.75;
    color: var(--hr-text);
}
.hr-hab-descripcion p { margin: 0 0 1em; }
.hr-hab-descripcion p:last-child { margin-bottom: 0; }
.hr-hab-descripcion ul,
.hr-hab-descripcion ol { margin: 0 0 1em; padding-left: 1.4em; }
.hr-hab-descripcion li { margin-bottom: .4em; }
.hr-hab-descripcion img { max-width: 100%; height: auto; border-radius: 10px; }
.hr-hab-descripcion a { color: var(--hr-terracota); }

/* ── Columna de reserva ── */
.hr-hab-side { position: sticky; top: 24px; }
.hr-hab-side .hr-reserva-widget {
    margin: 0;
    max-width: none;
    width: 100%;
}

/* ── Lightbox ── */
.hr-hab-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(28,16,4,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
}
.hr-hab-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.hr-hab-lightbox-close {
    position: absolute;
    top: 20px;
    right: 26px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.hr-hab-lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Bloquear scroll de fondo mientras el lightbox está abierto */
body.hr-hab-noscroll { overflow: hidden; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hr-hab--split .hr-hab-grid { grid-template-columns: 1fr; gap: 34px; }
    .hr-hab-side { position: static; }
    .hr-hab-side .hr-reserva-widget { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .hr-hab-header { margin-bottom: 28px; }
    .hr-hab-pills { gap: 8px; }
    .hr-hab-pill { font-size: 12.5px; padding: 6px 12px; }
    .hr-hab-comodidades-lista { grid-template-columns: 1fr; gap: 10px; }
    .hr-hab-thumbs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
    .hr-hab-descripcion { font-size: 15px; }
    .hr-hab-subtitulo { font-size: 20px; }
}
