/* ============================================================
   CINEMA 7 - NAV.CSS (VERSIÓN DEFINITIVA DE RESTAURACIÓN)
   ============================================================ */

/* 1. RECUPERACIÓN DE ESPACIO */
/* Esto quita el vacío que hacía que el contenido desapareciera */
body {
    padding-top: 0 !important;
    margin: 0;
    background-color: #000;
    color: #fff;
}

/* 2. HEADER ESTÁTICO (FLUJO NATURAL) */

header#main-header {
    background-color: #000;
    border-bottom: 1px solid #111;
    position: relative; 
    width: 100%;
    height: 220px; 
    /* El header debe ser intocable */
    z-index: 999999 !important; 
    display: flex;
    align-items: center;
}

/* 3. NAVEGACIÓN Y LOGO */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-logo {
    height: 180px; 
    width: auto;
    transition: filter 0.3s ease;
}

.main-logo:hover {
    filter: drop-shadow(0 0 10px rgba(85, 247, 255, 0.8));
}

/* 4. ENLACES PRINCIPALES (Tu estilo Bebas Neue) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: 60px;
    padding: 0;
}

.nav-links > li > a {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.6rem;
    color: #55f7ff !important;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links > li > a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px #55f7ff;
}

/* 5. SUBMENÚ (ELÁSTICO Y PROFESIONAL) */
.nav-links li { 
    position: relative; 
    /* Puente invisible para que el mouse no pierda el foco */
    padding-bottom: 40px; 
    margin-bottom: -40px;
}

.submenu {
    position: absolute;
    top: 80%; 
    left: 0;
    background: rgba(5, 5, 5, 0.98) !important;
    border-left: 3px solid #55f7ff;
    padding: 20px;
    min-width: 320px;
    list-style: none;
    margin: 0;
    z-index: 10000 !important;
    
    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    /*transform: translateY(0px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);*/
    transform: translateY(0); /* Quitamos el movimiento para evitar huecos */
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 20px 50px rgba(0,0,0,1);
}

.nav-links li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    /*transform: translateY(0);*/
}

.submenu a {
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 0.9rem !important;
    color: #888 !important;
    padding: 10px 15px;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
    /*letter-spacing: 1px !important;
    transition: all 0.3s ease !important;*/
}

.submenu a:hover {
    color: #fff !important;
    padding-left: 25px;
    background: linear-gradient(90deg, rgba(85, 247, 255, 0.1), transparent);
}

/* BLINDAJE DE CAPAS: Manda el contenido al fondo real */
#app-content, 
main, 
section, 
.film-vault,
.film-strip {
    /* Usamos -1 para que el menú (que está en z-index positivo) gane siempre */
    z-index: -1 !important; 
    position: relative;
    transform-style: flat !important;
}

/* Asegurar que el header sea el punto más alto */
header#main-header {
    background-color: #000;
    border-bottom: 1px solid #111;
    position: sticky; /* Cambiamos a sticky para que no flote sobre el contenido pero mande */
    top: 0;
    width: 100%;
    height: 220px; 
    z-index: 99999999 !important; /* Prioridad de nivel satelital */
    display: flex;
    align-items: center;
}


/* 4. EL LINK DE YOUTUBE: Ahora sí debe funcionar */
.short-film-details {
    position: relative;
    z-index: 100 !important; /* Esto lo saca del fondo solo a esta sección */
    pointer-events: none; /* Que el contenedor no estorbe al menú */
}

.text-content, .video-cta {
    pointer-events: auto; /* Pero que el texto y el botón SÍ reciban clics */
}

.video-cta a {
    cursor: pointer !important;
    display: inline-block;
    position: relative;
    z-index: 101 !important;
}












/* 6. CORRECCIÓN PARA DISPOSITIVOS */
@media (max-width: 1024px) {
    header#main-header { height: 120px; }
    .main-logo { height: 80px; }
    .nav-links { gap: 20px; }
    .nav-links > li > a { font-size: 1.2rem; }
}