
@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;
}

/*==========================================*/

/*==central-container*/
.timeline .swiper-container {
    height: calc(100vh);
    width: 100%;
    position: relative;
}

/*==efecto click deslizar*/
.timeline .swiper-wrapper {
    transition: 2s cubic-bezier(0.68, -0.4, 0.27, 1.34) 0.2s;
}

/*==fondo e imagen*/
.timeline .swiper-slide {
    position: relative;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/*===sombreado*/
.timeline .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: -115%;
    bottom: -10%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, 0.5);
    border-radius: 100%;
}

/*======central text*/
.timeline .swiper-slide-content {
    position: absolute;
    text-align: center;
    /*  width: 80%;*/
    max-width: 50%;
    right: 0%;
    top: 5%;
    transform: translate(50%, 0);
    font-size: 3.5vw;
    z-index: 2;
    /*    background: red;*/
}

/*======año der*/
.timeline .swiper-slide .timeline-year {
    display: block;
    /*  font-style: italic;*/
    font-size: 1.5vw;
    margin-bottom: 50px;
    transform: translate3d(20px, 0, 0);
    color: #d4a024;
    font-weight: 300;
    opacity: 0;
    transition: 0.2s ease 0.4s;
}

/*======efecto central text*/
.timeline .swiper-slide .titulo_h4 {
    font-weight: 800;
    font-size: 3vw;
    margin: 0 0 30px;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: 0.2s ease 0.5s;
}

/*========efecto texto p*/
.timeline .swiper-slide .texto_cent {
    line-height: 1.5;
    opacity: 0;
    transform: translate3d(20px, 0, 0);
    transition: 0.2s ease 0.6s;
}

.ene{
    font-size: 0.9vw;
    text-align: justify;
}

.ene2{
    font-size: 1vw; 
}

/*==efecto sube año*/
.timeline .swiper-slide-active .timeline-year {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.6s;
}

/*=======efecto central h4*/
.timeline .swiper-slide-active .titulo_h4 {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.7s;
}

/*========efecto central p*/
.timeline .swiper-slide-active .texto_cent {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: 0.4s ease 1.8s;
}





/*====posicion y tamaño letras barra*/
.timeline .swiper-pagination {
    right: 10% !important;
    height: 225%;
    /*  height: 180%;*/
    display:none;
    flex-direction:column;
    justify-content: center;
    font-style: italic;
    /*  font-weight: 300;*/
    font-size: 1vw;
    z-index: 1;
    /*    overflow-y: scroll;*/
    margin: 0px;
}

.darw{
    position:absolute;
    top: 15%;
    right: 5%;
    height: 80%;
    z-index: 1;
    overflow-y: auto;
    width: 20%;
}

.darw::-webkit-scrollbar{
    width: 2px;
}

.darw{
    scrollbar-width: thin;
    /*  scrollbar-color: red blue;*/
}

.darw::-webkit-scrollbar-track {
    background: rgba(20,20,20,.6);
}

.darw::-webkit-scrollbar-thumb {
    background-color: blue;
    border-radius: 6px;
    border: 3px solid #626038;
}

.loco{
    margin: 30px;
    color: white;
}

/*=======barra yellow*/
.timeline .swiper-pagination::before {
    content: "";
    position: absolute;
    left: -18%;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/*=======espacio letra yellow*/
.timeline .swiper-pagination-bullet {
    width: auto;
    height: auto;
    text-align: center;
    opacity: 1;
    background: transparent;
    color: #d4a024;
    margin-bottom: 8%;
    position: relative;
    font-family: 'lato';
    /*    font-style: italic;*/
}


/*=punto barrra*/
.timeline .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -19%;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #d4a024;
    transform: scale(0);
    transition: 0.2s;
}

/*====color letra*/
.timeline .swiper-pagination-bullet-active {
    color: #d4a024;
}


/*tamaño punto*/
.timeline .swiper-pagination-bullet-active::before {
    transform: scale(1.5);
}


/*====flechas*/
.timeline .swiper-button-next,
.timeline .swiper-button-prev {
    background-size: 20px 20px;
    top: 10%;
    width: 20px;
    height: 20px;
    margin-top: 0;
    z-index: 1;
    transition: 0.2s;
}

/*==imagen flecha sup*/
.timeline .swiper-button-prev {
    left: 8%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23d4a024'%2F%3E%3C%2Fsvg%3E");
}
.timeline .swiper-button-prev:hover {
    transform: translateX(-3px);
}
/*imagen flecha inf*/
.timeline .swiper-button-next {
    right: 8%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23d4a024'%2F%3E%3C%2Fsvg%3E");
}
.timeline .swiper-button-next:hover {
    transform: translateX(3px);
}

/*=======keys=========================*/
@media screen and (max-width: 600px){

    .timeline .swiper-slide::after {
        right: -70%;
        bottom: 5%;
        width: 240px;
        height: 50%;
    }

    .timeline .swiper-slide-content {
        left: 5%;
        top: 50%;
        max-width:60%;
        transform: translateY(-50%);
        font-size: .7em;
        font-family: 'lato';
    }


    .timeline .swiper-slide .timeline-year {
        margin-bottom: 0;
        font-size: .7em;
    }

    .timeline .swiper-slide .titulo_h4 {
        font-size: 1em;
        margin: 0;
    }

    .timeline .swiper-pagination {
        right: 2% !important;
        height: 135%;
        display: flex;
        flex-direction:column;
        justify-content: center;
        font-style: italic;
        font-size: .6em;
        z-index: 1;
        margin: 5px;
    }

    /*=======barra yellow*/
    .timeline .swiper-pagination::before {
        left: 0%;
        top: 0%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    /*=======espacio letra yellow*/
    .timeline .swiper-pagination-bullet {
        margin-bottom: 5%;
        font-size: .9em;
        margin: 5px;
    }


    /*=punto barrra*/
    .timeline .swiper-pagination-bullet::before {
        top: 2px;
        left: -9%;
    }
    .timeline .swiper-pagination-bullet-active::before {
        transform: scale(1);
    }

    .darw{
        top: 5%;
        right: 5%;
        height: 90%;
        z-index: 1;
        overflow-y: auto;
        width: 30%;
    }

    .ene{
        font-size: .80em;
        text-align: justify;
    }

    .ene2{
        font-size: 1em; 
    }

}


@media screen and (max-width: 920px){
    .nav__toggle{
        padding: 3%;
        position: fixed;
        color: white;
        font-size: 1.4em;
        z-index: 2;
    }
    .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;
    }

    .timeline .swiper-slide::after {
        right: -70%;
        bottom: 5%;
        width: 240px;
        height: 50%;
    }

    .timeline .swiper-slide-content {
        left: 13%;
        top: 50%;
        max-width:55%;
        transform: translateY(-50%);
        font-size: .8em;
        font-family: 'lato';
        text-align: end;
    }


    .timeline .swiper-slide .timeline-year {
        margin-bottom: 0;
        font-size: .7em;
    }

    .timeline .swiper-slide .titulo_h4 {
        font-size: 1.5em;
        margin: 0;
    }

    .timeline .swiper-pagination {
        right: 2% !important;
        height: 150%;
        display: flex;
        flex-direction:column;
        justify-content: center;
        font-style: italic;
        font-size: .7em;
        z-index: 1;
        margin: 5px;
    }

    /*=======barra yellow*/
    .timeline .swiper-pagination::before {
        left: -2%;
        top: 0%;
        background-color: rgba(255, 255, 255, 0.5);
    }

    /*=======espacio letra yellow*/
    .timeline .swiper-pagination-bullet {
        margin-bottom: 5%;
        font-size: .9em;
        margin: 5px;
    }


    /*=punto barrra*/
    .timeline .swiper-pagination-bullet::before {
        top: 2px;
        left: -9%;
    }
    .timeline .swiper-pagination-bullet-active::before {
        transform: scale(1);
    }

    .darw{
        top: 5%;
        right: 5%;
        height: 90%;
        z-index: 2;
        overflow-y: auto;
        width: 30%;
    }

    .ene{
        font-size: .8em;
        text-align: justify;
    }

    .ene2{
        font-size: 1em; 
    }

}


@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;
    }

    .timeline .swiper-slide::after {
        right: -30%;
        bottom: -8%;
        width: 240px;
        height: 50%;
    }


    /*======central text p*/

    .timeline .swiper-slide-content {
        left: 25%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1em;
        text-align: right;
        font-family: 'lato';
    }


    .timeline .swiper-slide .timeline-year {
        margin-bottom: 0;
    }


    .timeline .swiper-slide .titulo_h4 {
        font-size: 2em;
        margin: 0;
    }


    .timeline .swiper-pagination {
        display: flex;
    }

    .timeline .swiper-pagination {
        right: 2% !important;
        height: 198%;
        display: flex;
        flex-direction:column;
        justify-content: center;
        font-size: 1em;
        margin: 5px;
    }
    /*=======barra yellow*/
    .timeline .swiper-pagination::before {
        left: 0%;
        /*        top: 0%;*/
        /*        background-color: rgba(255, 255, 255, 0.5);*/
    }

    /*=======espacio letra yellow*/
    .timeline .swiper-pagination-bullet {
        /*        margin-bottom: 5%;*/
        font-size: .9em;
        margin: 5px;
    }


    /*=punto barrra*/
    .timeline .swiper-pagination-bullet::before {
        top: 2px;
        left: -5%;
    }
    .timeline .swiper-pagination-bullet-active::before {
        transform: scale(1);
    }

    .darw{
        top: 7%;
        right: 5%;
        height: 85%;
        z-index: 2;
        overflow-y: auto;
        width: 30%;
    }
    .ene{
        font-size: .75em;
        text-align: justify;
    }

}
@media screen and (min-width: 1024px) {
    /*
    .timeline .swiper-slide::after {
    right: -20%;
    bottom: -10%;
    width: 240px;
    height: 50%;
    box-shadow: 0 0 10 69vw rgba(0, 0, 0, 0.7);
}
    .timeline .swiper-slide-content {
    right: 25%;
}
    */
}