/* ══════════════════════════════════════════
   Landing Page — Balcones del Cerro
   ══════════════════════════════════════════ */

/* Variables */
:root {
    --gold: #c9a96e;
    --gold-light: #e8c99a;
}

/* ── Scroll suave global ── */
html { scroll-behavior: smooth; }

/* ── Navbar ── */
#navbar {
    background: transparent;
}
.nav-scrolled {
    background: rgba(12, 10, 9, 0.95) !important;
    backdrop-filter: blur(16px);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

/* ── Hero background ── */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* ── Scroll indicator ── */
.scroll-indicator {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

/* ── Fade in up (hero) ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Reveal on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Image placeholders ── */
.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c1917, #292524);
    border: 1px dashed rgba(201, 169, 110, 0.2);
    border-radius: 0.5rem;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

/* ── Room cards ── */
.room-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* ── Service cards ── */
.service-card {
    transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    background: rgba(201, 169, 110, 0.03);
}

/* ── Gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 8px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item.tall {
    grid-row: span 2;
}
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── Responsive gallery ── */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item.tall,
    .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }
}

/* ── Inputs focus ring ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 1px var(--gold);
}

/* ── Disponibilidad ── */
.glass-avail {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(201,169,110,0.15);
    backdrop-filter: blur(10px);
}
.avail-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.avail-card.available {
    background: rgba(201,169,110,0.05);
    border: 1px solid rgba(201,169,110,0.25);
}
.avail-card.full {
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.2);
    opacity: 0.7;
}
