*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

header{
    height: 70px;
    background-color: #0681E9;
    color:azure;
    position: fixed;
    z-index: 1000;
    transition: background-color 0.4s;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    width: 100%;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
}

header img{
    
    height: 90%; 
    width:auto; 
    align-self:center;
}

#botonMenu, #botonSubMenu{
    display: none;
    align-self: flex-end;
}

header label{
    font-size: 30px;
    cursor: pointer;
    display: none;
}

.contenedorMenu,.contenedorSubMenu{
    margin-right: 5%;
    width: 90%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s;
    height: 70px;
}


.contenedorSubMenu{
    justify-content: center;
    display: none;
}





.menu ul li, .subMenu ul li{
    line-height: inherit;
}

.menu ul, .subMenu ul{
    
    display: flex;
    list-style: none;
}

ul.secundario{
    background-color: #087BB4;
    
}

ul.secundario li{
    font-size: 0.9em;
    border-bottom: solid 1px rgba(255,255,255,0.1);
}

.menu ul ul, .subMenu ul ul{
    display: none;
}

.menu a, .subMenu a{
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.menu a:hover, .subMenu a:hover{
    background-color: rgba(255,255,255,0.3);
}

.menu ul li:hover ul, .subMenu ul li:hover ul{
    display: block;
    position: absolute;
}



@media (max-width:768px){
    header{
        height: 50px;
    }
    header img{
        background-color:rgba(255, 255, 255, 0.2); 
        height: 50px; 
        width:auto; 
        top: 20px;
        align-self: center;
    }
    header label{
        display: block;
    }
    
    .menu, .subMenu{
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        left:-100%;
        transition: all 0.5s;
        z-index: 1000;
    }
    
    .menu ul, .subMenu ul{
        flex-direction: column;
        background-color: rgba(0,0,0,0.8);
    }
    
    .menu ul li:hover ul, .subMenu ul li:hover ul{
        display: none;
        position: static;
    }
    
    .menu ul span, .subMenu ul span{
        position: absolute;
        right: 5px;        
    }
    
    #botonMenu:checked ~ .menu, #botonSubMenu:checked ~ .subMenu{
        left:0%;
    }
    
    .menu ul ul, .subMenu ul ul{
        background-color: rgba(0,0,0,0.4);
    }
    
    .menu ul ul a, .subMenu ul ul a{
        padding-left: 40px;
    }
}


