/*   Header   */
.barras {
    font-size: 50px;
}

.logoNotco {
    margin: 0;
}

header {
    background-color: #ECEDE7;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;

    transition: 0.6s;
    z-index: 100000;
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .2);
}

.menu-button {
    width: 60px;
    align-items: center;
    cursor: pointer;
    display: none;
    margin-right: 20px;

}

.hamburger-menu {
    --height: 10px;
    height: 5px;
    width: 100%;
    background-color: black;
    border-radius: calc(var(--height));
    position: relative;
    transform: rotate(0deg);
    transition: all ease 0.6s;

}

.hamburger-menu::before,
.hamburger-menu::after {
    content: "";
    position: absolute;
    background-color: inherit;
    height: 100%;
    width: 50%;
    margin: auto;
    border-radius: inherit;
    transition: all ease 0.6s;
}

.hamburger-menu::before {
    top: -20px;
    left: 0;
    transform-origin: left;
}

.hamburger-menu::after {
    bottom: -20px;
    right: 0;
    transform-origin: right;
}

.header .menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.openMenu {
    transform: rotate(135deg);
}

.openMenu::before {
    top: 0;
    transform: translateX(100%) rotate(-90deg);
}

.openMenu::after {
    bottom: 0;
    transform: translateX(-100%) rotate(-90deg);
}

.submenu {
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    position: absolute;
    top: 35px;
    left: -60px;
    font-size: 80%;
    line-height: 25px;
    width: 250%;
    background-color: #ECEDE7;
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .2);
    display: none;
}

.submenu:hover {
    cursor: pointer;
}

.barras {
    color: black;
}

.menu li a:hover {
    font-weight: 500;
    border-bottom: 3px solid #523E72;
    cursor: pointer;
}

.menu li:last-child a:hover {
    border-bottom: none;
}

.submenu li:last-child a:hover {
    border-bottom: 3px solid #523E72;
}

header.logo {
    position: relative;
    font-weight: 700;
    color: transparent;
    text-decoration: none;
    font-size: 200%;
    text-transform: uppercase;
    transition: 0.6s;
}

header a img {
    text-align: center;
    width: 120px;
    margin-left: 50px;
    margin-right: 50px;
    padding-top: 10px;

}

nav ul li {
    position: relative;
    list-style: none;
}

nav ul li a {
    position: relative;
    text-transform: uppercase;
    margin: 0 10px;
    color: #000;
    text-decoration: none;
    font-weight: 500px;
    font-size: 180%;
    font-weight: 400;
}

nav ul li a:hover {
    font-weight: 300;
    transition: 0.6s;
    color: #523E72;
}

.container-flex {
    margin: 0px auto 10px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/*   CORTE MENU NAVEGACIÓN   */
@media only screen and (max-width: 1199px) {
    .header a img {
        width: 90px;
    }

    .header .nav {
        width: 100%;
    }

    .header .menu {
        justify-content: center;
    }

    .header ul {
        justify-content: center;
        margin: 0;
    }
}

/*   CORTE MENU NAVEGACIÓN   */
@media only screen and (max-width: 1050px) {
    header {
        padding-right: 20px;
        display: grid;
        grid-template-columns: auto auto;
    }

    .logoNotco {
        display: none;
    }

    .menu-button {
        display: block;
    }
    .header .menu{
        align-items: flex-start;
        margin-left: 50px;
        padding-right: 150px;
    }
    
    .header .nav {
       
        /* display: none; */
        height: 0;
        pointer-events: none;
        overflow: hidden;
        /*oculta lo que sobresale de la etiqueta*/
        transition: all .6s ease;

        display: flex;
        flex-flow: column nowrap;
        justify-content: start;
        
    }

    .header .nav.activo {
        /* display: block; */
        height: 30vw;
        pointer-events: auto;
    }

    .header ul {
        flex-direction: column;
    }

    .header li {
        margin: 20px 0 0 0;
    }

    nav ul li a {
        font-size: 150%;
    }

    .submenu {
        left: 100px;
        top: 0px;
        padding: 0;
    }

    .submenu li {
        margin: 0;
    }

}
@media only screen and (max-width: 930px) {
    .header .nav.activo {
        height: 35vw;
    }
}

@media only screen and (max-width: 830px) {
    .header .nav.activo {
        height: 40vw;
    }

    .menu-button {
        width: 40px;
    }

    .hamburger-menu::before {
        top: -13px;

    }

    .hamburger-menu::after {
        bottom: -13px;
    }

    .openMenu {
        transform: rotate(135deg);
    }

    .openMenu::before {
        top: 0;
        transform: translateX(100%) rotate(-90deg);
    }

    .openMenu::after {
        bottom: 0;
        transform: translateX(-100%) rotate(-90deg);
    }
}

@media only screen and (max-width: 700px) {
    .header .nav.activo {
        height: 45vw;
    }
}

@media only screen and (max-width: 600px) {
    .header .nav.activo {
        height: 55vw;
    }
    /* .submenu{
        width: 200%;
        left: 80px;
    } */
}

@media only screen and (max-width: 500px) {
    .header .nav.activo {
        height: 60vw;
    }
}
@media only screen and (max-width: 440px) {
    /* .submenu{
        width: 160%;
        left: 100px;
        top: -40px;
    } */
}

@media only screen and (max-width: 400px) {
    .header .nav.activo {
        height: 75vw;
    }
}