/* ==========================================
   NAVBAR MOBILE - HAMBURGUESA VISIBLE SIEMPRE
   ========================================== */

@media (min-width: 768px) {
    .hamburger-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    
    /* NAVBAR */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100 !important;
        padding: 15px 10px !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }
    
    /* LOGO - Izquierda */
    .navbar .logo {
        display: flex !important;
        color: white;
        font-size: 20px;
        font-weight: 700;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
    }
    
    .navbar .logo .custom-logo-link {
        display: flex !important;
        align-items: center;
        text-decoration: none;
    }
    
    .navbar .logo .custom-logo {
        height: 30px !important;
        width: auto !important;
        max-width: 120px !important;
    }
    
    .navbar .logo .logo-icon {
        display: inline-flex !important;
    }
    
    /* HAMBURGUESA - Derecha (relative por defecto) */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin: 0 !important;
        position: relative !important;
        z-index: 300 !important; /* ← MÁS ALTO que el menú */
    }
    
    /* Cuando está activa, hacerla fixed para que se vea sobre el menú */
    .hamburger-menu.active {
        position: fixed !important;
        top: 15px !important;
        right: 10px !important;
    }
    
    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #1a1a1a;
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #1a1a1a;
    }
    
    /* MENÚ LATERAL */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100% !important;
        background: #ffffff !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 200 !important;
        padding: 70px 0 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        list-style: none !important;
        margin: 0 !important;
        overflow-y: auto !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateX(0) !important;
    }
    
    .nav-links li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 18px 30px;
        color: #1a1a1a;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        transition: background 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-links li a:hover,
    .nav-links li.active a {
        background: rgba(255, 77, 0, 0.1);
        border-left-color: #ff4d00;
        color: #1a1a1a;
    }
    
    .nav-links li.nav-actions {
        margin-top: auto;
        padding: 20px 30px;
        border-left: none;
    }
    
    .nav-links li.nav-actions .btn-contact {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: #ff4d00;
        color: white;
        padding: 15px 25px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 14px;
        text-decoration: none;
        width: 100%;
        transition: background 0.3s ease;
    }
    
    .nav-links li.nav-actions .btn-contact:hover {
        background: #ff6a26;
    }
    
    .desktop-btn,
    .nav-actions.desktop-btn {
        display: none !important;
    }
}

@media (max-width: 390px) {
    .navbar .logo {
        font-size: 18px !important;
    }
    
    .navbar .logo .custom-logo {
        height: 24px !important;
        max-width: 100px !important;
    }
}