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


* {
    box-sizing: border-box;
}



.contenedor {
    width: min(70rem, 100%);
    margin-inline: auto;
    padding: .5rem;
}

.margen {
    margin-block: 3rem;
}

body {
    margin: 0%;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
}




li {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    color: yellow;
}


.mayus {
    text-transform: uppercase;
}



/* nav y logo*/

header {
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
}

header .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (min-width:830px) {
    header .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    
    }
}


header ul {
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:821px) {
    header ul {
        padding-inline-start: 0;
        display: flex;
        flex-direction: row;
    }   
}

header ul li {
    padding: .25em .5em .25em .5em;
    margin-inline:.5em;
    text-align: center;
    list-style: none;
    font-size: .9em;
}

header ul a {
    text-decoration: none;
    color: yellow;
}

header nav ul li a:hover {
    color: white;
}


/* menu hamburguesa */

.menu_linea {
    width: 30px;
    height: 3px;
    margin: 6px 0 6px 0;
    background: yellow;
    right: 1rem;
}

#btn-menu{
    display: none;
}

header label{
    display: none; 
}

header label:hover{
    cursor: pointer; 
}

.menu ul{
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
}

.menu li a{
    display: block;
    padding: 1rem 2rem;
    color: yellow;
    text-decoration: none;
}

@media (max-width:768px) {
    header label{
        display: block;
    }
    
    .menu{
        position: absolute;
        background: yellow;
        width: 40%;
        margin-left: -70%;
    }

    .menu ul{
        flex-direction: column;
    }

    #btn-menu:checked ~ .menu{
        margin-top: 74%;
        margin-left: 60%;
    }
}

@media (max-width:768px) {
    header ul li {
        text-align: left;
        color: black;
    }
    
    .menu li a{
        color: black;
    }   
}



