/* --- 1. VARIABLES Y RESET --- */
:root {
    --gold: #c5a059;
    --dark: #121212;
    --white: #ffffff;
    --glass: rgba(0, 0, 0, 0.75);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #000;
}

/* --- 2. NAVEGACIÓN (GLASSMORPHISM) --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-vip {
    padding: 6px 12px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    transition: 0.3s;
}

/* --- 3. SLIDER DE FONDO DINÁMICO --- */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background: #000;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

/* --- 4. HERO SECTION --- */
.hero-static {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    padding: 35px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    margin-bottom: 30px; 
    line-height: 1.6;
    font-weight: 300;
}

.btn-main {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-main:hover {
    background: #b08d4a;
    transform: translateY(-2px);
}

/* --- 5. GALERÍA RESPONSIVA --- */
.gallery-section {
    position: relative;
    z-index: 20;
    padding: 80px 0;
    background: white;
}

.gallery-header {
    padding: 0 5% 30px;
    text-align: center;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--dark);
}

/* Escritorio y tablets: grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* móviles: 1 por fila */
    gap: 15px;
    padding: 20px 5%;
}

.gallery-item {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 640 / 840;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablets: 2 columnas */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Escritorio: máximo 3 columnas */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Móviles: carrusel horizontal de 1 imagen */
@media (max-width: 767px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
        margin: 0;
    }
}

/* --- 6. MODAL DE IMAGEN --- */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(8px);
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 5px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    z-index: 5001;
}

/* --- GLOBAL: Bloquear selección en todo el sitio --- */
html, body {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

/* --- 7. FOOTER --- */
.main-footer {
    position: relative;
    z-index: 20;
    background: #0a0a0a;
    color: white;
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);

    /* Permitir selección en el footer */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-info .footer-logo span { color: var(--gold); }

.address {
    line-height: 1.8;
    color: #bbb;
    font-size: 0.95rem;

    /* Permitir copiar dirección y correo */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.footer-contact h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.phone-display {
    display: block;
    font-size: 1.8rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 25px;

    /* Permitir copiar teléfono */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Formulario WhatsApp */
#whatsappForm input, 
#whatsappForm textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #333;
    background: #111;
    color: white;
    margin-bottom: 10px;
}

.btn-wa {
    width: 100%;
    border: none;
    cursor: pointer;
    background: #25D366;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-wa:hover {
    background: #1ebe57;
}

/* En pantallas grandes: dos columnas */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 8. LOGIN DRAWER --- */
.login-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 3000;
    transition: 0.4s ease-in-out;
    padding: 40px 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.login-drawer.active { right: 0; }

/* --- 9. MEDIA QUERIES (PC) --- */
@media (min-width: 768px) {
    .logo { font-size: 1.8rem; }
    .hero-static { justify-content: flex-start; padding-left: 10%; }
    .hero-content { text-align: left; padding: 50px; max-width: 650px; }
    .hero-content h1 { font-size: 4rem; }
    .gallery-header { text-align: left; padding-left: 10%; }
    .gallery-header h2 { font-size: 3rem; }
    .gallery-item { min-width: 350px; height: 480px; }
    
    /* Separación de dos columnas para el footer en pantallas grandes */
    .footer-container { 
        grid-template-columns: 1fr 1fr; 
        align-items: start;
        gap: 150px;
    }
}