header {
    /* background: radial-gradient(circle at 30% 50%, #6eb9ff 0%, #0199dc 50%, #015ea4 100%); */
    background: #fff;
    overflow: hidden;
    z-index: 5;
    position: relative;
    width: 100%;
}

.flag-top {
    height: 21px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #f9f9f9 url('../img/layout/flag.webp');
}

.top-bar {
    width: 100%;
    height: auto;
    min-height: 100px;
    z-index: 12;
    height: auto;
    background: #f0f0f0;
    position: fixed;
    box-shadow: 0 1px 7px rgba(0, 0, 0, .2);
    transition: all .2s ease-out;
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-social {
    width: 100%;
    height: 30px;
    z-index: 2;
    position: relative;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
    border-bottom: 1px solid #e1e1e2;
    background: var(--gradient-orange);
    gap: 15px;
}

.top-social-link {
    width: 25px;
    height: 25px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 20px auto;
    padding: 5px;
    border-radius: 3px;
}

.facebook {
    background-image: url('../img/layout/icon-facebook.svg');
}

.instagram {
    background-image: url('../img/layout/icon-instagram.svg');
}

.tiktok {
    background-image: url('../img/layout/icon-tiktok.svg');
}

.youtube {
    background-image: url('../img/layout/icon-youtube.svg');
}

.top-social-link:hover {
    background-color: var(--blue)
}

.logo-top {
    position: relative;
    left: 5%;
    top: 0;
    height: 100px;
}

.logo-container {
    width: 200px;
}

.links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 200px;
    gap: 20px;
}

#top-account,
#top-account:visited {
    background-image: url('../img/layout/login.svg');
    background-size: 23px auto;
    background-position: left 15px center;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: all .2s linear;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background-color: #2787d6;
    padding: 10px 20px 10px 45px;
    border-radius: 30px;
    box-shadow: 1px 3px 3px rgba(0, 0, 0, .3);
    margin-right: 15px;
}

#top-account:hover {
    background-color: #f8943c;
    box-shadow: inset 0 5px 5px #c96813, 1px 4px 7px rgba(0, 0, 0, .4);
}

/* menú */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    position: absolute;
    bottom: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.3s ease-out;
    justify-content: center;
    align-items: center;
    gap: 15px;
    overflow: visible;
    height: 35px;
}

.menu-top {
    font-size: 14px;
    padding: 0 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-transform: uppercase;
    background: var(--gradient-blue);
    letter-spacing: .5px;
    line-height: 35px;
    height: 100%;
    display: inline-block;
    box-shadow: inset 1px 2px 1px rgba(255, 255, 255, 0.5);
}

.menu-top:hover {
    background: var(--gradient-orange);
    color: #fff;
}

.cart-icon:hover::before {
    background-image: url('../img/layout/cart.svg');
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
    background: rgba(0, 0, 0, .8);
    width: 55px;
    height: 55px;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--color-base);
    border-radius: 100%;
    position: absolute;
    right: 10px;
    top: 10px;
}

.menu-toggle .bar {
    background: #fff;
    height: 2px;
    width: 35px;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(14px);
    margin-left: 20px;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-14px);
    margin-left: 20px;
}

.search-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    height: 70px;
}

#search-form {
    width: 70%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    display: flex;
    flex-wrap: nowrap;
    border: 1px solid #ccc;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    transition: border-color .3s ease-in-out;
}

#search-input,
#search-btn {
    outline: none;
    border: 0;
    background: #fff;
}

#search-input {
    flex: 1;
    padding: 0 20px
}

#search-form:has(#search-input:focus) {
    border-color: var(--orange);
}

#search-btn {
    background: #fff url('../img/layout/search-icon.svg') center center no-repeat;
    background-size: 22px auto;
    width: 50px;
    cursor: pointer;
}

#search-btn:hover {
    background: #fff url('../img/layout/search-icon-hover.svg') center center no-repeat;
    background-size: 22px auto;
}

#btn-carro,
#btn-cliente {
    z-index: 0;
    position: relative;
    width: 55px;
    height: 60px;
    background-image: url('../img/layout/cart.svg');
    background-size: 40px auto;
    background-repeat: no-repeat;
    background-position: left 10px;
    transition: all .2s linear;
}

#btn-cliente {
    background-image: url('../img/layout/user.svg');
    background-size: 50px auto;
    background-repeat: no-repeat;
    background-position: center center;
}
#btn-carro:hover,
#btn-cliente:hover {
    transform: scale(1.1);
}
.items-carro {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 0;
    right: 0;
    color: #fff;
    font-weight: 500;
    text-align: center;
    background: var(--gradient-blue);
    border-radius: 100%;
    font-size: 12px;
    line-height: 25px;
}

#products-toggle::after {
    content: url('../img/layout/chevron-down-white.svg');
    margin-left: 7px;
    display: inline-block;
    transition: transform 0.3s ease;
}

#products-toggle.open::after {
    transform: rotate(180deg);
}

/* #products-toggle:hover::after {
    content: url('../img/layout/chevron-down-white.svg');
    margin-left: 7px;
} */

/* Estilos generales para el menú desplegable */
.menu-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, .5);
    z-index: 10;
    width: 340px;
}

.menu-dropdown.active .dropdown-menu {
    display: block;
    max-height: 300px;
}

.dropdown-menu li {
    border-bottom: 1px dotted #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-image: url("../img/layout/icon-elitech.webp");
    background-size: 14px auto;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited {
    padding: 9px 8px;
    text-decoration: none;
    color: #fff !important;
    display: block;
    font-size: 14px;
    transition: none !important;
    font-weight: 600;
}

.dropdown-menu a:hover {
    color: #fff !important;
    background: linear-gradient(90deg, #f9ffc5 0%, #fcb962 10%, var(--orange) 100%);
}



@media (max-width: 1100px) {
    .menu-dropdown .dropdown-menu {
        position: static;
        width: 100%;
    }

    .menu-dropdown li {
        text-align: left;
    }

    .menu-dropdown a {
        border-radius: 20px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease-in-out;
        z-index: 1;
        background-color: #fff;
        background-image: url('../img/layout/logo-menu.webp');
        background-repeat: no-repeat;
        background-position: center 33px;
        background-size: auto 95px;
        text-align: center;
        border: 0;
        border-radius: 0;
    }

    .nav-links.active {
        padding: 150px 30px 30px 30px;
        max-height: 100vh;
        height: auto;
    }

    .menu-top {
        display: block;
        text-shadow: none;
        border-radius: 25px;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        right: 0;
        top: 0;
        width: 100%;
        z-index: 0;
        position: absolute;
    }

    .navbar li {
        width: 100%;
    }

    .menu-top-icon.openLogin {
        position: absolute;
        left: 20px;
        top: 15px;
    }

    .icon-cliente {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .search-form-container {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60px;
        padding-top: 0;
    }

    .navbar {
        max-height: 0;
    }

    .logo-container {
        width: 150px;
        margin-bottom: 66px
    }

    .logo-top {
        height: 65px;
        min-height: 65px;
    }

    .links-container {
        flex: 1;
        width: auto;
        align-items: start;
        justify-content: end;
        margin-right: 66px;
        height: 65px;
        width: 120px;
        margin-bottom: 50px;
        gap: 10px;
    }

    .flag-top {
        display: none;
    }

    .top-bar {
        height: 150px;
        align-items: center;
    }

}