@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
}

.menu{
    background-color: #e5e5e5; /*c4c4c4 2da opcion gris  #6a89a7 opcion ccolor barra de menu azul claro gris*/
    color: #fff;
    height: 70px;/*para hacer mas grande la barra del menu deplegable*/
	z-index: 999;
	
}

.menu__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 90%; /*100 tenia y se baja subu el texto menu */
    margin: 0 auto;
	z-index: 999;
	
	
}

.menu__links{
    height: 100%;
    transition: transform .5s;
    display: flex;
}

.menu__item{
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
	z-index:999;/*TRAER AL FRENTE MENU DESPLEGABLE*/
}

.menu__item:hover{
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
	
}

.menu__link{
    color: #3a3e47;/*COLOR DE TEXTO MENUS PRINCIPALES*/
    text-decoration: none;
    padding: 0 30px;
    display: flex;
    height: 100%;
    align-items: center;
	
}

.menu__link:hover{
    background-color: #8a9597; /*color a pasar mouse sobre menu sin deplegar*/
	color: #000;/*COLOR TEXTO AL PASAR EL MOUSE*/
}


.menu__arrow{
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}

.menu__nesting{
    list-style: none;
    transition:clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
     background-color: #777d8c;/*color submenu sin pasar el mouse*/
}

.menu__link--inside{
    padding: 10px 100px 10px 20px;/*10 hacer mas delgados los submenus*/
	 background-color:#cccccc;/*color submenu fondo sin  el mouse gris claro*/
}

.menu__link--inside:hover{
    background-color: #999999;/*color gris al pasar el mouse sobre menu deplegable*/
}

.menu__hamburguer{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}

.menu__img{
    display: block;
    width: 36px;
	
}

@media (max-width:800px){
    .menu__hamburguer{
        display: flex;
    }

    .menu__item{
        --clip:0;
        overflow:hidden ;
	
    }

    .menu__item--active{
        --transform: rotate(0);
        --background: #b2b2b2;/*fondo dispo menus al pasar el mouse sobre deplgable*/
    }

    .menu__item--show{
        background-color: var(--background);
    }


    .menu__links{
        position: fixed;
        max-width: 400px;
        width: 100%;
        top: 70px;
        bottom: 0;
        right: 0;
        background-color: #cccccc;/*color submenu al dispositivos*/
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
		z-index:999;/*TRAER AL FRENTE MENU DESPLEGABLE CUANDO SE ADAPTA A MOVILES*/
    }

    .menu__links--show{
        transform: unset;
        width: 100%;
    }

    .menu__link{
        padding: 15px 0;
        padding-left: 10px;
        height: auto;
		
    }

    .menu__arrow{
        margin-left: auto;
        margin-right: 20px;
    }

    .menu__nesting{
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }

    .menu__link--inside{
        width: 90%;
        margin-left: auto;
        border-left: 1px solid #929fb8;
    }
    
    
    
    
    
}