/* ---------- Reset básico ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2b2b2b;
    background: #f7f5f2;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: #23324a;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-contact {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
}

.header-contact a {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.header-contact a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Hero ---------- */
.hero {
    background: #2f4260;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero p {
    opacity: 0.9;
}

/* ---------- Grid de habitaciones ---------- */
.rooms {
    padding: 40px 20px 60px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.no-rooms {
    text-align: center;
    padding: 40px 0;
    font-size: 1.1rem;
    color: #666;
}

/* ---------- Tarjeta de habitación ---------- */
.room-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* ---------- Galería ---------- */
.gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e5e1da;
    overflow: hidden;
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}

.gallery-img.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.gallery-dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* ---------- Info de la habitación ---------- */
.room-info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.room-info h2 {
    font-size: 1.15rem;
}

.room-price {
    font-weight: 700;
    color: #23324a;
}

.room-description {
    font-size: 0.92rem;
    color: #555;
    flex: 1;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #23324a;
    color: #d9dee7;
    padding: 28px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-inner p {
    margin-bottom: 4px;
}

.footer-note {
    margin-top: 10px;
    opacity: 0.7;
}

/* ---------- Responsivo ---------- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Lightbox (visualización completa) ---------- */
body.no-scroll {
    overflow: hidden;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

@media (max-width: 600px) {
    .lightbox-close {
        top: 10px;
        right: 14px;
    }

    .lightbox-btn {
        width: 38px;
        height: 38px;
    }
}
