#btn-menu {
    display: none;
}

#encabezado .icon-menu{
    display: none;
    width: 20px;
    height: 20px;
    padding: 10px;
    border: 1px;
    
}
#encabezado .icon-menu:hover{
    cursor: pointer;
    background: (192, 94, 33, 0.5);
}

.menu ul {
    
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;/*también lo hace horizontal*/
}

/*.menu li{
    /*float: left;/*pongo el menú horizontal*/
    
    /*width: 9em;/*le doy tamaño a la medida del contenido*
}*/
.menu li:hover {
    background: rgba(192, 94, 33, 0.5);
    color: #0021A3;
    z-index: 9001;
}

.menu li a {
    display: block;
    padding: 0 0 0 20px;
    color: #072B7A;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    
    
}

.menu li a:hover {
    color: #C05E21;
    background: #ffffff;
    font-weight: bold;
}

/*************/
@media (min-width:768px){
    
    .menu {    
        position: absolute;
        top: 65px;
        right: 1px;
        
    } 
}
    



@media (max-width:768px){
    
    #encabezado .icon-menu{
        
        display: block;
    }
    
    .menu {
        
        position: absolute;
        width: 100%;
        height: 80vh;
        background: rgba(192, 94, 33, 0.9);
        transition: all 0.5s;
        transform: translateX(-115%);
        z-index: 9999;    
    }
    
    .menu a {
        display: block;
        color: #ffffff;
        height: 50px;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.5);
        font-weight: bold;
        
    }
    
    .menu ul {
        flex-direction: column;
    }
    
    .menu li {
        border-top: 1px solid #fff;
    }
    
    
    .menu a:hover {
        background: rgba(255,255,255,0.5);
        font-weight: bold;
        
        
    }
    
    #btn-menu:checked ~ .menu {
        transform: translateX(0%);
    }
    
    /*******medida para laterales*****/
    aside {
        width: 95%;
    }    
}