* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-content: space-around;
    padding: 2rem;
    padding: 1rem;
    background-color: #ececec;
    background-color: #5B83BA;
    
}

.logo {
    max-width: 5rem;
    max-width: 10rem;
    max-width: 15rem;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

.nav-list li a {
    text-decoration: none;
    color: #1c1c1c;
    color: white;
}

.nav-list a:hover{
    color:yellow;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

.abrir-menu i:hover {
    color: yellow;
} 

    /* era 550px de max-width abajo */

@media screen and (max-width: 920px) {
    header{
        justify-content: space-between;
    }
    
    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.25rem;
        background-color: transparent;
        cursor: pointer;
    }

    .abrir-menu {
        color: #1c1c1c;
        color: white;
       
    }

    .cerrar-menu {
        color: #ececec;
        color: yellow;
    }
    
    .cerrar-menu i:hover {
    color: red;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #1c1c1c;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: end;
    }

    .nav-list li a {
        color: pink;
        color: #ecececec;
        
    }
}