/* ======== RESET Y VARIABLES GLOBALES ======== */
:root {
    --color-background: #000000;
    --color-primary: #b30000; /* Rojo Borgoña */
    --color-secondary: #d4af37; /* Dorado */
    --color-text: #e0e0e0;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ======== EFECTO DE LUCES DE FONDO ======== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 25%, rgba(179, 0, 0, 0.2), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.15), transparent 40%);
    animation: diffuse-lights 15s ease-in-out infinite alternate;
}

@keyframes diffuse-lights {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ======== POPUP DE VERIFICACIÓN DE EDAD ======== */
.age-gate-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); display: flex;
    justify-content: center; align-items: center; z-index: 1000;
    backdrop-filter: blur(5px); transition: opacity 0.5s ease;
}
.age-gate-box {
    background: rgba(10, 10, 10, 0.8); padding: 30px;
    border: 1px solid var(--color-secondary); border-radius: 8px;
    text-align: center; max-width: 90%; width: 500px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
.age-gate-box h2 {
    font-family: var(--font-title); color: var(--color-secondary);
    margin-bottom: 20px; font-size: 2rem;
}
.age-gate-buttons { margin-top: 30px; display: flex; gap: 20px; justify-content: center; }
.age-gate-buttons button {
    padding: 12px 25px; font-size: 1rem; cursor: pointer;
    border: 1px solid; border-radius: 5px; transition: all 0.3s ease;
}
#age-gate-yes { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }
#age-gate-yes:hover { background-color: #c93030; box-shadow: 0 0 15px var(--color-primary); }
#age-gate-no { background-color: transparent; color: var(--color-text); border-color: var(--color-text); }
#age-gate-no:hover { background-color: #333; }

/* ======== ANIMACIÓN DE CARGA (PUERTAS) ======== */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999; display: flex; pointer-events: none;
    transition: opacity 0.5s 0.5s ease-out;
}
.loading-overlay.hidden { opacity: 0; }
.loading-overlay .door {
    position: absolute; width: 50%; height: 100%;
    background: var(--color-background);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.loading-overlay .door.left { left: 0; }
.loading-overlay .door.right { right: 0; }
.loading-overlay.open .door.left { transform: translateX(-100%); }
.loading-overlay.open .door.right { transform: translateX(100%); }
.loading-overlay .loading-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); color: var(--color-secondary);
    font-family: var(--font-title); font-size: 1.5rem;
    opacity: 1; transition: opacity 0.5s ease;
}
.loading-overlay.open .loading-text { opacity: 0; }

/* ======== ESTILOS GENERALES Y UTILIDADES ======== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; }
h1 { font-size: 3.5rem; color: #fff; text-shadow: 0 0 15px rgba(0, 0, 0, 0.7); }
h2 { font-size: 2.5rem; color: var(--color-secondary); text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.5rem; color: #fff; }

/* ======== SECCIÓN HERO CON VIDEO ======== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    opacity: 0.5; /* Transparencia del 50% */
    object-fit: cover;
}
.hero-content {
    position: relative; /* Para que esté sobre el video */
    z-index: 1;
    max-width: 800px;
}
.hero-content p {
    font-size: 1.2rem; color: var(--color-text);
    margin: 20px 0 40px; font-weight: 300;
}
.cta-button {
    display: inline-block; padding: 15px 35px;
    background-color: transparent; border: 2px solid var(--color-secondary);
    color: var(--color-secondary); text-decoration: none;
    font-size: 1.1rem; font-weight: bold; border-radius: 50px;
    transition: all 0.4s ease;
}
.cta-button:hover {
    background-color: var(--color-secondary); color: var(--color-background);
    box-shadow: 0 0 20px var(--color-secondary);
}

/* ======== SECCIÓN SALAS VIP ======== */
.vip-lounge-section { padding: 100px 0; background-color: var(--color-background); }
.vip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.vip-card {
    background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px; padding: 30px; text-align: center;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.4s ease; opacity: 0; transform: translateY(50px);
}
.vip-card.visible { opacity: 1; transform: translateY(0); }
.vip-card::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 40%);
    opacity: 0; transition: opacity 0.5s ease; transform: scale(0.5);
}
.vip-card:hover {
    transform: translateY(-10px); border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}
.vip-card:hover::before { opacity: 1; transform: scale(1); }
.card-icon { width: 50px; height: 50px; margin: 0 auto 20px; color: var(--color-secondary); transition: transform 0.4s; }
.vip-card:hover .card-icon { transform: scale(1.1); }
.card-description { font-size: 0.9rem; color: #aaa; margin: 10px 0 20px; min-height: 40px; }
.card-button {
    padding: 10px 20px; background: transparent; border: 1px solid var(--color-primary);
    color: var(--color-primary); border-radius: 5px; font-weight: bold;
    cursor: pointer; transition: all 0.4s ease;
}
.vip-card:hover .card-button { background: var(--color-primary); color: white; box-shadow: 0 0 15px var(--color-primary); }

/* ======== FOOTER ======== */
.main-footer-bottom {
    padding: 30px 0; border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center; font-size: 0.9rem;
}
.legal-notice { color: #888; }

/* ======== BOTÓN FLOTANTE WHATSAPP ======== */
.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px;
    width: 60px; height: 60px; background-color: #25D366;
    color: white; border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 90; transition: transform 0.3s;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ======== RESPONSIVIDAD ======== */
@media (max-width: 992px) {
    .vip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .vip-grid { grid-template-columns: 1fr; }
}