*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  
}
img{
    width: 30px;
}

h1{
    text-align: center;
    background: rgb(238, 243, 245);
    padding: 20px;
}
section{
    padding: 20px;
}
p{
    color: rgb(116, 116, 116);
}

.encabezado{
    background: rgb(46, 62, 92);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100vw ;
 
}

ul{
    list-style: none;
}
a{
    text-decoration: none;
}
/* --------- */
.lista{
    display: flex;
    justify-content: space-between;
}
.item{
    padding: 20px 30px;
    color: white;    
}
.item:hover{
    color: white!important;
    background: rgb(22, 36, 61);
    border-bottom: solid rgb(221, 221, 221) 1px;
    color: white;
}

.listItem{
    position: relative;
}
.slide{
    position: absolute;
    display: none;
    top: 33px;
    background: rgb(14, 24, 43);
    width: 200px;
}

.listItem:hover > .slide{
    display: block;
}
.listItem .slide li:hover > ul{
    display: block;
}
.slide li{
    position: relative;
}
.slide ul{
    position: absolute;
    left: 200px;
    top: 0;
}
.slide li a{
    color: white;
    padding: 10px 20px;
    display: block;
}
.slide li a:hover{
    background: rgb(22, 36, 61);
    color: white;
}

#boton{
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none;
}

@media screen and (max-width:1250px) {
    #boton{
        display: block;
    }
    .menu{
        width: 350px;
        height: calc(100vh - 60px);
        background: rgb(14, 24, 43);
        position: absolute;
        top: 60px;
        left: -200%;
        transition: all 1s;
        overflow: scroll;
        color: white;
    }
    .lista{
        flex-direction: column;
    }
    .slide{
        position: relative;
        top: 0;
        display: none;
        width: 100vw;
    }
    .slide ul{
        position: relative;
        top: 0;
        left: 0;
    }
    a{
        color: white;
        display: block!important;
        padding: 20px 35px!important;
    }

    .listItem > .slide li a{
        margin-left: 20px;
    }
    .listItem .slide li > ul li a{
        margin-left: 40px;
    }
    .listItem:hover > .slide{
        display: none;
    }
    .listItem .slide li:hover > ul{
        display: none;
    }
}

@media screen and (max-width:380px) {
    .menu{
        width: 100vw;
    }
}