
.nav-link:hover {
    color: var(--blue);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
    color: var(--gray);
    padding: .7vw;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--blue);
    color: var(--white);
}

.dropdown:hover .dropdown-content {
    display: block;
}


.sub-dropdown-content {
    display: none;
    position: absolute;
    top: 0%;
    left: 100%;
    background-color: #ffffff;
    min-width: 200px;
    z-index: 1001;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.main-header {
    background-color: var(--white);
    width: 100%;
}

/* TOP HEADER */
.top-header {
    display: flex;
    align-items: center;
    padding: 1vw 16vw;
    gap: 2vw;
}

.logo img {
    height: 5vw;
}

.contact {
    flex-grow: 1;
    text-align: right;
}

.contact span {
    font-size: 1vw;
    font-weight: 600;
    color: var(--gray);
}

.contact span a {
    font-size: 1vw;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.contact span a:hover {
    color: var(--red);
}

.redes-1 {
    display: flex;
    justify-content: center;
    align-content: center;
    text-decoration: none;
    background: var(--blue);
    padding: 0.56vw 0.56vw;
    border-radius: 50%;
    color: white;
    font-size: 1vw;
    position: relative;
    height: 2vw;
    width: 2vw;

}

.redes-1:hover {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.redes-2 {
    background: var(--red);
    padding: 0.56vw 0.56vw;
    border-radius: 50%;
    color: white;
    font-size: 1vw;
    position: relative;
    height: 2vw;
    width: 2vw;
}

.redes-2:hover {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}


.social-icons {
    display: flex;
    gap: 8px;
}

/* Nav bar */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5vw 3vw 0.5vw 3vw;
    border-top: .1vw solid var(--gray-2);
    border-bottom: .1vw solid var(--gray-2);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu li a,
.nav-link,
.sub-dropdown,
.sub-dropdown-content a,
.dropdown-content {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.nav-menu li a:hover {
    color: var(--blue);
}

.search-icon a {
    color: var(--blue);
    font-size: 15px;
    margin-left: 1vw;
}

@media (max-width: 900px) {
    .dropdown-toggle {
        color: white;
        padding: 1vw;
        border: none;
        cursor: pointer;
        width: 100%;
    }

    .card {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        background-color: #ffffff1a;
        padding: 0 20px;
    }

    .card.active {
        max-height: 500px;
        padding: 3vw;
    }

    .card-content {
        opacity: 1;
    }



    .top-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 3vw 6vw;
        align-items: center;
        gap: 0;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: .3vw solid var(--gray-2);
    }

    .logo img {
        height: 14vw;
    }

    .contact {
        display: none;
    }

    .contact span,
    .contact span a {
        font-size: 4vw;
    }

    .redes-1,
    .redes-2 {
        display: none;
    }

    .social-icons {
        gap: 2vw;
        grid-column: 2 / 2;
    }

    .nav-bar {
        display: none;
    }
    .sidebar_box a.btn-white{
        color: var(--blue);
    }
    .sidebar_box a.btn-white:hover{
        color: var(--white);
    }

}



.mobile-box {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--gray);
    z-index: 9999;
}

body.noscroll {
    overflow: hidden;
}

.btn-3-mobile {
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding: 0.75vw 1vw 0.75vw 1.5vw;
    background: var(--red);
    color: var(--white);
    font-size: 1vw;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    min-width: 150px;
    height: 50px;
    margin-bottom: 1vw;
}

.toggle_box {
    display: none;
}

header .mobile_box .sidebar_box {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    width: 100%;
    height: 100%;
    padding: 3vw;
    background: var(--blue);
    transition: .5s;
}


@media (max-width: 900px) {

    .nav-menu li a,
    .nav-link {
        font-weight: 700;
        color: var(--white);
    }

    .dropdown-content {
        display: block;
        background-color: #ffffff00;
    }

    header .active_sidebar .sidebar_box {
        transform: translateY(0) !important;
    }



    .redes-1-dd,
    .redes-2-dd {
        background: transparent;
    }


    .btn-3-mobile {
        font-size: 5vw;
        padding: 1vw 2vw;
        min-width: 115px;
        justify-content: center;
    }


    .sidebar_box {
        display: flex;
        z-index: 999;
        flex-direction: column;
        gap: 2vw;
    }

    .sidebar_box a {
        color: var(--white);
    }

    .sidebar_box img {
        width: 50%;
        background-color: var(--white);
        padding: 4vw;
        border-radius: 3vw;
    }

    .close-nav {
        position: absolute;
        top: 6vw;
        right: 6vw;
        font-size: 8vw;
        color: var(--white);
    }

    .open-nav {
        font-size: 8vw;
        color: var(--blue);
    }

    .toggle_box {
        display: flex;
        justify-content: end;
    }

    header .mobile_box .sidebar_box .networks_box {
        gap: 12vw;
        display: flex;
    }

    header .mobile_box .sidebar_box .networks_box i {
        font-size: 8vw;
    }

    /* Menu drop */
    /* Responsive styles */

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: #f36c30;
    }

    .nav-menu.show {
        display: flex;
    }

    .dropdown-content,
    .sub-dropdown-content {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        padding: 4vw 0;
    }

    .nav-link:hover {
        color: var(--red);
    }

    .open {
        background-color: #ffffff1c;
    }

    .dropdown:hover .dropdown-content,
    .sub-dropdown:hover .sub-dropdown-content {
        display: none;
    }

    .dropdown>.nav-link::after {
        content: " ▼";
        font-size: 12px;
    }

    .dropdown.open .dropdown-content {
        display: flex;
        flex-direction: column;
    }

    .sub-dropdown.open .sub-dropdown-content {
        display: flex;
        flex-direction: column;
        background-color: none;
    }

}