*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    box-sizing: border-box;
    scroll-padding: 0;
}

body{
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    background-color: #222;
    font-size: 16px;
}

.contenedor{
    width: 100%;
    max-width: 90em;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.flex{
    display: flex;
}

.w-100{
    width: 100%;
}

@media (min-width: 768px){
    .w-100{
        width: auto;
    }
}

.alinear-derecha{
    justify-content: flex-end;
}


/*---------------------Barra de navegacion-----------------*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT&display=swap');

/*NAVBAR*/
header{
    z-index: 999;
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .1rem 3rem;
    transition: 0.6s;
    font-family: 'Open Sans', sans-serif;
    background-color: rgba(186, 189, 0, 0);
}

header.down{
    background: #fbe122;
    padding: 1rem 1rem;
}

header .brand img{
    width: 15rem;
}

header .menu{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .menu ul{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .menu ul li{
    list-style: none;
}

header .menu a{
    color: rgb(34, 34, 34);
    font-weight: 400;
    font-size: 1.6rem;
    text-decoration: none;
    margin: 0 .6rem;
    padding: .8rem .5rem;
    border-radius: 1.1rem;
    transition: 0.3s;
    transition-property: color, background;
}

header .menu a:hover{
    color: #323234;
    background: #fbe122;
}

header .btn{
    color: #000000;
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 990px){
    header, header.down{
        padding: 2rem 3rem;
    }
    header .btn{
        display: block;
    }
    header .menu{
        position: fixed;
        background: rgba(251, 225, 35, 0.7);
        min-width: 3rem;
        height: 100vh;
        top: 0;
        right: -100%;
        padding: 5rem 3rem;
        transition: all 0.5s;
        transition-property: right;
    }
    header .menu ul{
        flex-direction: column;
    }
    header .menu.active{
        right: 0;
    }
    header .menu .close-btn{
        position: absolute;
        top: 0;
        left: 0;
        margin: 2rem;
    }
    header .menu a{
        display: block;
        font-size: 1.3rem;
        margin: 2rem;
        padding: 0 1rem;
    }
}