/*NAV*/
nav{
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    z-index: 1000;
}

.btnOpenNav{
    display: none;
}

.logoPrincipalBox{
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: left;
}

.logoPrincipal{
    width: 10rem;
    margin-left: 1rem;
}

nav ul{
    width: 60%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    font-family: "Glacial Indifference";
}

nav ul li{
    position: relative;
}


.boxCategoriesNav{
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 200%;
    height: 200px;
    transform: translateX(-50%);
    flex-wrap: wrap;
    transition-duration: .4s;
}

.boxCategoriesNav_Active{
    display: flex; 
}


.categories{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1rem;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.categories a{
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 15px 0;
    transition-duration: .3s;
    font-family: "Glacial Indifference";
}

.categories a:hover{
    background-color: #f2f2f2;

}

.underlinedCategory{
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: #000;
    transition-duration: .4s;
}

.underlinedCategory_Active{
    width: 100%;
}

.linksNav{
    position: sticky;
    top: 0;
}

nav ul li a{
    cursor: pointer;
}

.underlinedLinkNav{
    width: 0;
    background-color: #6b6b6b;
    height: 1px;
    transition-duration: .4s;
}

.underlinedLinkNav_Active{
    transition-duration: .3s;
    width: 100%;
}

nav ul li a{
    color: #000000bb;
    text-decoration: none;
}

#boxSearch{
    display: flex;
    align-items: center;
}

.lupeNav{
    width: 25px;
    cursor: pointer;
}

.boxFormSearch{
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000d3;
    backdrop-filter: blur(1px);
}

.formSearch{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 50%;
    border-radius: 10px;
}

.titleFormSearch{
    font-family: "Glacial Indifference";
    font-size: 30px;
    margin-bottom: 2rem;
    color: #fff;
}

.search{
    width: 100%;
    height: 40px;
    border: none;
    border-bottom: 1px solid #fff;
    font-family: "Glacial Indifference";
    background-color: transparent;
    font-size: 25px;
    color: #fff;
    margin-bottom: 2rem;

}

.search:focus{
    outline: none;
}

.btnSearch{
    background-color: transparent;
    border: none;
}

.lupeFormSearch{
    width: 50px;
    filter: invert(1);
    cursor: pointer;
}

.boxCloseFormSearch{
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.closeFormSearch{
    width: 40px;
    filter: invert(1);
}

@media (max-width: 1280px){
    .logoPrincipal{
        width: 12rem;
    }

    .logoPrincipalBox{
        width: 30%;
    }


    .linksNav{
        font-size: 20px;
        width: 70%;
    }
}

@media (max-width: 1024px) and (height: 600px){
    .logoPrincipal{
        width: 10rem;
    }

    .linksNav{
        font-size: 15px;
    }
}

@media (max-width: 820px){

    nav{
       height: 110px;
       justify-content: center; 
    }

    .logoPrincipalBox{
        width: 100%;
        justify-content: center;
    }

    .logoPrincipal{
        margin: 0;
    }

    .linksNav{
        position: fixed;
        flex-wrap: wrap;
        align-content: flex-start;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 40%;
        height: 100%;
        background-color: #fff;
        padding: 2.5rem;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        transition-duration: .3s;
    }

    .linksNav_Active{
        transform: translateX(0);
    }

    .linkNav{
        margin-top: 3rem;
        width: 100%;
        height: auto;
        font-size: 30px;
    }

    .categoriesNav{
        position: relative;
        overflow: visible;
        height: auto;
        transition-duration: .3s;
    }

    .boxCategoriesNav{
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
        height: auto;
    }

    .categories{
        box-shadow: none;
    }

    .categories a li{
        width: 85%;
        text-align: left;
    }

    .lupeNav{
        width: 40px;
    }

    .btnOpenNav{
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 2rem;
        right: 110%;
        width: 60px;
        height: 60px;
        z-index: 100000;
        border: none;
        background-color: #fff;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border-radius: 50%;
        padding: 15px;
        
    }

    .iconOpenNav{
        width: 100%;
    }


}

@media (max-width: 768px) {
    .linkNav{
        margin-top: 0;
        margin-bottom: 2rem;
        font-size: 25px;
    }
}

@media (max-width: 540px) {
    nav{
        
        height: 70px;
    }

    .linksNav{
        width: 60%;
    }

    .logoPrincipalBox{
        width: 120px;
        height: 80%;
    }

    .logoPrincipal{
        width: 100%;
    }
    .btnOpenNav{
        top: .7rem;
        width: 50px;
        height: 50px;
    }

    .linkNav{
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .categories a{
        padding-bottom: 5px;
    }

    .categoryNav{
        font-size: 17px;
        
    }

    .lupeNav{
        width: 30px;
    }
}

@media (max-width: 430px) {
    .linksNav{
        width: 60%;
    }
}

@media (max-width: 390px) {

    .formSearch{
        width: 80%;
    }
    .titleFormSearch{
        font-size: 20px;
    }

    .search{
        font-size: 18px;
    }

    .lupeFormSearch{
        width: 40px;
    }
}