/* ============================================================
   1. RESET Y ESTRUCTURA BASE
   ============================================================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    /* Eliminamos overflow: hidden para permitir scroll hacia el footer */
}

/* El marco negro de la referencia */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 40px solid #000;
    z-index: 100; /* Aumentado para estar sobre el video pero bajo la navbar */
    pointer-events: none;
}

/* ============================================================
   2. NAVEGACIÓN (NAVBAR)
   ============================================================ */
.navbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Siempre arriba de todo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.nav-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0.8;
}

.nav-links a:hover { color: #ff5f00; opacity: 1; transform: translateY(-2px); }

/* Línea sutil en hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px; bottom: -5px; left: 0;
    background: linear-gradient(90deg, #ff5f00, #8a2be2);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   3. SECCIÓN HERO Y VIDEOS (CONTENEDOR LIMITADO)
   ============================================================ */

/* Este contenedor define hasta dónde llega el video */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100vh; /* El video ocupa toda la primera pantalla */
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

/* Estilo base para que NO se amontonen */
.video-desktop, .video-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita la desproporción */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ESCRITORIO: Forzamos que solo se vea el desktop */
.video-desktop {
    display: block !important;
    opacity: 1;
    z-index: 2;
}
.video-mobile {
    display: none !important;
    opacity: 0;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* ============================================================
   4. CONTENIDO SOBRE EL VIDEO
   ============================================================ */
.main-wrapper {
    position: absolute; /* Para que flote sobre el video dentro del contenedor */
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.hero-content {
    text-align: center;
    transform: translateY(20px);
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.tagline {
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-outline:hover { background-color: #fff; color: #000; }

/* --- BOTÓN HAMBURGUESA (Oculto en Desktop) --- */
.menu-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100; /* Por encima de la navbar */
}

.menu-hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all 0.4s ease;
    border-radius: 2px;
}

/* ============================================================
   5. FOOTER (SEPARADO)
   ============================================================ */
.main-footer {
    width: 100%;
    padding: 100px 0; /* Espaciado generoso para que respire */
    background-color: #000000; /* Fondo negro sólido */
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-content { text-align: center; display: flex; flex-direction: column; gap: 20px; }
.footer-socials { display: flex; justify-content: center; gap: 30px; }
.footer-socials a { color: #fff; font-size: 18px; opacity: 0.6; transition: 0.3s; }
.footer-socials a:hover { color: #ff5f00; opacity: 1; transform: translateY(-3px); }

/* ============================================================
   6. RESPONSIVIDAD (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    body::before { border-width: 15px; }

    .navbar { padding: 20px 5%; flex-direction: row !important; }
    .nav-logo { height: 65px; }
    
    .menu-hamburger {
        display: flex; /* Aparece en móvil */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95); /* Fondo casi negro sólido */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1050;
    }

    /* Cuando el menú está abierto */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px !important; /* Texto grande en móvil */
        margin: 15px 0;
    }

    /* ANIMACIÓN HAMBURGUESA A "X" */
    .menu-hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ff5f00;
    }
    .menu-hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ff5f00;
    }

    /* Cambio de Video en Móvil */
   .video-desktop {
        display: none !important;
        opacity: 0 !important;
        z-index: 1 !important;
        visibility: hidden; /* Seguridad extra */
    }
    .video-mobile {
        display: block !important;
        opacity: 1 !important;
        z-index: 2 !important;
        visibility: visible;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Mantiene la proporción 9:16 en el centro */
    }
    .hero-content h1 { 
        font-size: 38px; letter-spacing: 3px; 
    }
    .tagline { font-size: 10px; }
}