/* NAVBAR ABS */
.header{
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 20px 8px rgba(0,0,0,.08);
}

.navbar{
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 80px;
}

.logo{
    flex-shrink: 0;
}

.logo img{
    height: 42px;
    width: auto;
    display: block;
}

.nav{
    margin-left: auto;
    margin-right: 3%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu{
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
    margin-right: 3%;
}

.nav-menu a{
    color: #003a70;
    font-weight: 700;
    font-size: 1.3rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover{
    color: #00b7ff;
}

.nav-item-dropdown{
    position: relative;
    padding-bottom: 25px;
    margin-bottom: -25px;
}

.nav-item-dropdown > a{
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item-dropdown > a i{
    font-size: 11px;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover > a i{
    transform: rotate(180deg);
}

.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-radius: 0;
    padding: 0;
    min-width: 340px;
    margin-top: 0;
    border: 1px solid #e0e0e0;
    font-size: 16px; /* Resetea el rem heredado */
}

.nav-item-dropdown:hover .dropdown-menu{
    display: block;
}

.dropdown-section{
    padding: 10px 20px;
    background: #fff;
}

.dropdown-section h4{
    color: #1a1a1a;
    font-size: 12px !important; /* Más chico y forzado */
    font-weight: 800;
    font-style: italic;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

.dropdown-item{
    display: block;
    padding: 8px 20px 8px 30px;
    color: #1a1a1a;
    font-size: 12px !important; /* Más chico y forzado */
    font-weight: 600 !important; /* Subí de 300 a 600 para que no se vea tan delgado */
    font-style: italic;
    text-transform: uppercase;
    transition: background 0.2s ease;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

/* Fondo gris alternado */
.dropdown-item:nth-child(2n){
    background: #f0f0f0;
}

.dropdown-item:nth-child(2n+1){
    background: #fff;
}

.dropdown-item:hover{
    background: #e0e0e0 !important;
    color: #0a2f82;
}

/* RESPONSIVE */
@media(max-width: 992px){
    .nav-item-dropdown{
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Reset desktop styles and hide by default on mobile */
    .dropdown-menu{
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        min-width: 100%;
        background: #f8f9fa;
        transform: none;
        max-height: none;
        overflow: visible;
    }

    /* Disable desktop hover — must come BEFORE the active rule */
    .nav-item-dropdown:hover .dropdown-menu{
        display: none;
    }

    /* Active rule comes AFTER hover — same specificity so this wins */
    .nav-item-dropdown.active .dropdown-menu{
        display: block;
    }

    .nav-item-dropdown.active > a i{
        transform: rotate(180deg);
    }

    .dropdown-section{
        background: #e8e8e8;
        padding: 10px 20px;
    }

    .dropdown-section h4{
        font-size: 11px !important;
    }

    .dropdown-item{
        padding: 10px 20px 10px 35px;
        font-size: 11px !important;
    }
}

.nav-actions{
    display: flex;
    align-items: center;
}

.contact-btn{
    background: #39d353;
    color: #fff;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.contact-btn:hover{
    background: #2eb947;
    transform: translateY(-1px);
}

.nav-contact-mobile{
    display: none;
}

.menu-toggle{
    display: none;
    border: none;
    background: none;
    font-size: 32px;
    color: #003a70;
    cursor: pointer;
    padding: 0 5px;
}

@media(min-width: 993px){
    .nav-contact-mobile{
        display: none !important;
    }
    .menu-toggle{
        display: none !important;
    }
    .contact-btn{
        display: inline-block !important;
    }
}

/* RESPONSIVE */
@media(max-width: 992px){
    .navbar{
        min-height: 70px;
    }
    
    .nav{
        margin-left: 0;
        order: 3;
        width: 100%;
    }

    .nav-menu{
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active{
        transform: translateY(0);
    }

    .nav-menu li{
        width: 100%;
        text-align: center;
    }

    .nav-menu > li > a{
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }



    .menu-toggle{
        display: block;
    }

    .contact-btn{
        display: none;
    }

    .nav-contact-mobile{
        display: block;
        padding: 15px 20px;
    }

    .contact-btn-mobile{
        display: inline-block;
        background: #39d353;
        color: #fff !important;
        padding: 12px 30px;
        border-radius: 25px;
        font-weight: 700;
        font-size: 1.1rem;
    }

}