
@font-face {
    font-family: 'fonta';
    src: url('../fonts/Caveat-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'dolce';
    src: url('../fonts/DolceVita.ttf');
}


/*========== BASE ==========*/

*,::before,::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul{
    padding: 0;
    list-style: none;
}

a{
    text-decoration: none;
    color: white;
}

a>.fa-home{
    font-size: 2vw;
}

/*=========================*/

/*========HEADER================*/
.l-header{
    width: 100%;
    position: fixed;
    font-family: 'fonta';
    z-index: 2;
    font-size: 1.4vw;
    text-align: center;
}

.nav__menu{
    margin-right: 2%;
    line-height: 30px;
    overflow: hidden;
    transition: .5s ease!important;
    transform: translate(-100%,-100%);
    margin: 0;
    border-radius: 50%;
}

.show-menu{
    transform: translate(0%);
    border-radius: 0;
}

.nav__list{
    justify-content: center;
    text-transform: uppercase;
}

.nav__item{
    padding: 1%;
}

.nav__item>a:hover{
    color: #3187eb;
}

.nav__item ul li a,a>i{
    color: white;

}

#sub-menu{
    text-align: center;
    height: 0px;
    overflow: hidden;
    transition: .3s ease!important;
}


.nav__item ul li a:hover{
    color: #000; 
}


.bot{
    cursor: pointer;
    color: white;

}

.nav__item ul li:hover{
    background: white;
    transition: .3s linear!important;
}


.nav__link{
    transition: .3s;
}
.nav__link p{

}

.nav__toggle i{
    cursor: pointer;
    z-index: 20;
}

.nav__logo>img{
    width: 20%;
    object-fit: cover;
}

.active-link{
    color: #f0f0f0;
    border-bottom: 2px solid;
}

/*==========================================*/
/*
.otro{
    height: calc(10vh);

}
*/

.grilla{

    display: grid;
    /*    background: #a2a5a5;*/
    gap:15px;
    /*    grid-row-gap:15px;*/
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
    margin: auto;
    /*    margin-top: 5%;*/
    border-radius: 10%;

}

.seccion{
    border-bottom: 5px solid #92989f;
    background: #172739;
    /*    display: grid;*/
    border-radius: 5% 0% 5% 5%;
    overflow: hidden;
    text-align: center;
    align-items: center;
    color: white;
    font-family: 'lato';
    font-size: 2vw;
    width: 100%;
}

.seccion:nth-child(2){
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}

.seccion:nth-child(6){
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}

.seccion:nth-child(10){
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}

.seccion:nth-child(12){
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
}

.seccion p{
    height: 20%;
    /*    background: red;*/
    align-items: center;
    justify-content: center;
    display: flex;
}

audio{
    border-radius: 0;

}

.pdfs{
    width: 100%;
    height: 450px;
}

video{
    width: 100%;
    height: 65.8%;
    object-fit: cover;
}

@media screen and (max-width: 920px){
    .nav__toggle{
        padding: 3%;
        position: fixed;
        color: white;
        font-size: 1.4em;
        z-index: 2;
        background: rgba(20,20,20,.3);
    }
    .nav__list .fa-home{
        font-size: 1.6em;
        border: 0;
    }
    .l-header{
        width: 100%;
        font-size:.8em;

    }
    .nav__menu{
        padding-top: 4%;
        background: rgba(20,20,20,.7);
    }

    .nav__list{
        display: grid;
    }

    .nav__item{
        display: grid;
        padding: 0;
        line-height: 32px;
    }

    .active-link{
        border: 0;
    }
    .nav__item a:hover{
        background: white;
        color: black;
    }


    .grilla{
        grid-template-columns: 100%;
        width: 90%;
        margin: auto;
        padding-top: 5%;
        border-radius: 0%;

    }

    .seccion{
        border-radius: 3% 0% 3% 3%;
        overflow: hidden;
        font-size: 1em;
        width: 100%;
    }

    .seccion:nth-child(2), .seccion:nth-child(6), .seccion:nth-child(10), .seccion:nth-child(12){
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .seccion p{
        margin: 5% 0 2% 0;
        padding: 0;
    }

    audio{
        border-radius: 0;

    }

    .pdfs{
        width: 100%;
        height: 400px;
        overflow: auto;
        z-index: 2;
        display: flex;
    }

    video{
        width: 100%;
        /*        height: auto;*/
        object-fit: contain;
    }
}

@media screen and (min-width: 921px) {
    
.nav__toggle{
        display: none;
    }


    .l-header{
        width: 100%;
        font-size: 1.4vw;
    }

    .nav__menu{

        transform: translate(0%);
        border-radius: 0%;
        background: rgba(20,20,20,.5);
    }


    .nav__list{
        display: flex;
    }

    .scroll-header{
        background: rgba(20,20,20,.8);
    }

    .nav_item>.bot{
        display: none;
        color: red;
    }

    .nav_item .bot:hover{
        display: block;
    }

    .nav__item ul li:hover{
        background: white;
        transition: .3s linear!important;
    }


    .nav__link{
        transition: .3s;
    }
    
        .grilla{
        padding-top: 5%;
    }
}
