* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root{
    --letras: rgb(255, 255, 255);
    --letrasScroll: rgb(255, 255, 255);
    --iconMenu: rgb(255,255,255);
    --iconMenuScroll: rgb(255, 255, 255);
    --fondoMenu: rgb(5, 62, 71);
    --letrasResponsive: rgb(255, 255, 255);
    --letrasResponsiveScroll: rgb(255, 255, 255);
    --fondoInicialMenuScroll: rgb(5, 62, 71);
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
.header{
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    background-color: var(--fondoInicialMenuScroll);
    -webkit-box-shadow: 0px 3px 13px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 3px 13px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 3px 13px 0px rgba(0, 0, 0, 0.75);
    transition: .6s;
}

.containerNav{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 3%;
    gap: 0 35px;
    position: relative;
}

.contLogos{
    width: 120px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logoHead{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: opacity .6s ease;
}

.logoHead.secondLogo{
    display: none;
}

.logoHead img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.textList{
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ulList{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 0 45px;
}

.itemLi{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.itemLink{
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    color: var(--letras);
    cursor: pointer;
    position: relative;
    transition: .6s;
}

.ulList > li:nth-of-type(n+4):nth-of-type(-n+5){
    flex-direction: column;
}


.itemLink::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 1.5px;
    left: 0;
    bottom: -8px;
    background-color: var(--letras); 
    transition: width 0.3s ease;
    border-radius: 30px;
}

.itemLink:hover::after{
    width: 100%;
}

.dropdown{
    position: relative;
}

.ItemLiSubMenu{
    min-width: 160px;
    position: absolute;
    top: 100%; 
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    background-color: var(--fondoInicialMenuScroll);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.04),
    0px 0px 3px rgba(0, 0, 0, 0.08),
    1px 1px 6px rgba(0, 0, 0, 0.11),
    2px 2px 11px rgba(0, 0, 0, 0.15),
    3px 3px 17px rgba(0, 0, 0, 0.19);
    z-index: 10;
    border-radius: 10px;
    list-style: none;
    gap: 10px;
}

.dropdown:hover .ItemLiSubMenu{
    display: flex;
}

.ItemLiSubMenu li{
    width: 100%;
    padding: 5px 10px;
}

.ItemLiSubMenu li a{
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    color: var(--letras);
    cursor: pointer;
    transition: .6s;
}

.carShop{
    width: auto;
    height: 100%;
    position: absolute;
    right: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carShop a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.carShop img{
    width: 87%;
    height: 87%;
    object-fit: contain;
    transition: .6s;
}

.carShop img:hover{
    transform: scale(1.05);
}

.carShop img.secondCar{
    display: none;
}

/* Estilos para cuando la navegación está en scroll */
.fixed-header{
    width: 100%;
    height: 90px;
    background-color: var(--fondoInicialMenuScroll);
    transition: .6s;
}

/* Logo */
.logoHead.scrolled{
    display: none;
}

.logoHead.secondLogo.scrolled{
    display: flex;
}

/* Letras */
.itemLink.scrolled{
    color: var(--letrasScroll);
}
.itemLink.scrolled::after{
    background-color: var(--letrasScroll);
}

/* Submenú en scroll */
.fixed-header.scrolled .ItemLiSubMenu{
    background-color: var(--fondoInicialMenuScroll);
}
.fixed-header.scrolled .ItemLiSubMenu li a{
    color: var(--letrasScroll);
}

/* Carro de compras */
.carShop.scrolled img.firstCar{
    display: none;
}
.carShop.scrolled img.secondCar{
    display: block;
}

@media(max-width: 1275px){
    .ItemLiSubMenu{
        display: none;
        flex-direction: column;
        position: relative;
        background-color: var(--fondoMenu);
    }
    .ItemLiSubMenu.active{
        display: flex;
    }
    .subMenu{
        width: 45px;
        height: 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        z-index: 100;
        position: absolute;
        right: 5%;
        overflow: hidden;
    }
    .bar{
        width: 80%;
        height: 3px;
        border-radius: 20px;
        background-color: var(--letrasScroll);
        transition: .6s;
    }
    .ItemLiSubMenu,
    .ulList{
        transition: .3s;
    }
    .subMenu.active .bar:nth-child(1){
        transform: translateY(10px) rotate(45deg);
    }
    .subMenu.active .bar:nth-child(2){
        opacity: 0;
    }
    .subMenu.active .bar:nth-child(3){
        transform: translateY(-10px) rotate(-45deg);
    }
    .ulList{
        width: 100%;
        height: auto;
        display: none;
        flex-direction: column;
        background-color: var(--fondoMenu);
        position: absolute;
        top: 100%;
        left: 0;
        text-align: center;
        padding: 15px 0;
        gap: 20px;
    }
    .ulList.active{
        display: flex;
    }
    .carShop{
        position: static;
        right: 0;
    }
    .carShop img{
        width: 80px;
        height: 80px;
    }
}

@media(max-width: 700px){
    .header{
        height: 80px;
    }
}

@media(max-width: 580px){
    .header{
        height: 60px;
    }
    .carShop img{
        width: 70px;
        height: 70px;
    }
    .itemLink{
        font-size: 20px;
    }
    .ItemLiSubMenu li a{
        font-size: 15px;
    }
    .bar{
        width: 70%;
    }
}