/* 1. VARIABLES INSTITUCIONALES */
:root {
    --guinda: #6c0308;
    --oro: #f1c40f;
    --azul-oscuro: #07203e;
    --transition: all 0.5s ease;
}

/* 2. RESET Y BASES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--azul-oscuro); color: white; line-height: 1.6; }

/* 3. NAVEGACIÓN (Escritorio) */
#main-nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 30px 50px;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-scrolled {
    padding: 15px 50px !important;
    background: rgba(108, 3, 8, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--oro) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; color: white; }
.logo span { color: var(--oro); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links li a { text-decoration: none; color: white; transition: 0.3s; font-size: 0.9rem; text-transform: uppercase; font-weight: 700; }

.btn-nav {
    background: var(--guinda);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--oro);
}

.menu-toggle { display: none; } /* Oculto en PC */

/* 4. HERO SECTION (PC) */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start;
    overflow: hidden;
    text-align: left;
}

.video-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(108, 3, 8, 0.6) 0%, rgba(7, 32, 62, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding-left: 80px; 
    padding-bottom: 80px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-primary {
    background: var(--oro);
    color: black;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: var(--transition);
    display: inline-block;
}

/* 5. DISEÑO RESPONSIVO (MÓVIL) */
@media (max-width: 768px) {
    #main-nav { padding: 10px 15px; }
    
    /* 1. Mantenemos el logo y ocultamos los links directos */
    .nav-links { display: none; } 

    /* 2. Ajuste del video para que NO se vea cortado */
    .hero {
        height: 45vh !important; 
        min-height: 300px;
        align-items: center; 
        justify-content: center;
        text-align: center;
    }

    .video-bg {
        width: 100% !important;
        height: 100% !important;
        top: 0; left: 0;
        transform: none;
        object-fit: cover !important; 
        object-position: center center;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    /* 3. Activamos el botón de hamburguesa */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 1100;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
        transition: 0.4s;
    }
    
    /* 4. Estilo del menú lateral cuando se abre */
    .nav-links.active {
        display: flex;
        position: fixed;
        left: 0; top: 0;
        width: 100%; height: 100vh;
        background: var(--guinda);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active li {
        margin: 20px 0;
    }

    .nav-links.active a {
        font-size: 1.5rem;
    }
}