/* ============================================
   FIX TEMPORAL PARA MENÚ MÓVIL
   Archivo CSS adicional para arreglar el menú móvil
============================================ */

/* FORZAR BOTÓN MÓVIL EN TODAS LAS PANTALLAS PEQUEÑAS */
@media screen and (max-width: 768px) {
    /* MOSTRAR EL BOTÓN HAMBURGUESA EN MÓVIL - FORZADO */
    nav .mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        position: relative !important;
    }
    
    /* ASEGURAR QUE EL NAV REGULAR SE OCULTE EN MÓVIL */
    nav .nav-links {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 80% !important;
        max-width: 300px !important;
        background: #203E79 !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2rem !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2) !important;
        z-index: 9999 !important;
        padding: 2rem !important;
    }
    
    nav .nav-links.mobile-active {
        display: flex !important;
        right: 0 !important;
    }
    
    nav .nav-links a {
        padding: 1rem 0 !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
        width: 100% !important;
        text-align: center !important;
        color: #FFFFFF !important;
    }
    
    nav .nav-links a:last-child {
        border-bottom: none !important;
    }
    
    nav .nav-links a.contact-btn {
        margin-top: 1rem !important;
        padding: 1rem 2rem !important;
        border-radius: 25px !important;
        background: #D4B896 !important;
        color: #203E79 !important;
        font-weight: bold !important;
        width: auto !important;
        border: 2px solid #D4B896 !important;
    }
    
    nav .nav-links a.contact-btn:hover {
        background: #FFFFFF !important;
        color: #203E79 !important;
        border-color: #FFFFFF !important;
    }
    
    /* ANIMACIÓN DEL BOTÓN HAMBURGUESA A X */
    nav .mobile-menu span {
        width: 25px !important;
        height: 3px !important;
        background: #FFFFFF !important;
        margin: 3px 0 !important;
        transition: 0.3s !important;
        border-radius: 2px !important;
        display: block !important;
    }
    
    nav .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px) !important;
    }
    
    nav .mobile-menu.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    nav .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px) !important;
    }
}

/* REGLAS ADICIONALES PARA ASEGURAR VISIBILIDAD */
@media screen and (max-width: 480px) {
    nav .mobile-menu {
        display: flex !important;
    }
}

/* REGLA DE RESPALDO UNIVERSAL */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: flex !important;
    }
}