@import url('https://fonts.googleapis.com/css2?family=Caudex:wght@700&family=Source+Sans+Pro:wght@300;400;700&display=swap');


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

.hide{
  visibility: hidden;
  opacity: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

ul, li{
  list-style: none;
  margin-top:0;
  padding:0;
}

/*My code*/

.preloader{
  width:100vw;
  height:100vh;
  background: white;
  display:flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  position:absolute;
} 

body{
  overflow: hidden;
  font-family: 'Caudex', sans-serif;
  background: #F9F4E1;
  height:100vh;
  width:100vw;
}

body.no-overflow{
  overflow-x: hidden;
  overflow-y: visible;
}

body.overflow{
  overflow: hidden;
}

/* .portada{
  position: absolute;
  top:0;
  left:0;
  z-index: 999;
} */

.portada{
  position: relative;
  height:100vh;
  width:100vw;
  overflow:hidden;
  background: url('../img/bg-Beatriz.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}


.portada .title {
  position: absolute;
  right: 5%;
  top: 30%;
  transform: translateX(-100px);
  transition: transform 0.5s, opacity 0.5s;
  visibility: hidden;
  opacity: 0;
  z-index: 9;
}

.title.loaded {
    visibility: visible;
    opacity: 1;
    transform: translateX(0px);
  }

  .portada  .title  hr{
    border:1px solid black;
    margin-top: 20px;
  }

  .portada  .title h1{
    font-size: 70px;
    line-height: 1;
  }

  .loaded .portada  .title{
    transform: translateX(0px);
    visibility: visible;
    opacity:1;
  }

  .portada  .title h2{
    font-size: 26px;
  }

  .portada   .title h1 span{
    display:block;
    font-size:50px;
  }

  .boton-guia{
   position:absolute;
   bottom:2em;
   left:calc(50% - 100px); 
   display:flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width:200px;
  }
  .boton-guia .down{
    transform: rotate(180deg);
    margin-top: 1em;
  }
  .boton-guia .down img{
    transform: scale(1.3);
  }

  .boton-guia span{
    background:white;
    border-radius:10px; 
    padding:5px 15px;
    font-family: 'Source Sans Pro', sans-serif;
  }

.timeline {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 700px;
  position: relative;
  
}

.timeline__content-title {
  font-weight: 700;
  font-size: 25px;
  transition: .4s;
  box-sizing: border-box;
  font-family: 'Caudex', sans-serif;
  color: #707070;
  cursor: pointer;
}


/*Linea*/
.timeline:before {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  content: "";
  background: black;
}

h2.bg{
  position: fixed;
  font-family: 'Caudex', sans-serif;
}


.timeline-item {
  transition: .5s;
  box-sizing: border-box;
  width: 700px;
  display: flex;
  position: relative;
  transform: translateY(-40px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position:relative;
  padding:20px 0%; 
  }

  .timeline-item:nth-child(even){
    flex-direction: row-reverse;
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline__content-title {
    transform-origin: bottom right;
  }

  .timeline-item:nth-child(odd) .timeline__content-title {
    transform-origin: bottom left;
  }


.timeline-item:hover  .timeline__content-title {
  transform:scale(1.2);
  color:black;
}


.timeline-item:before {
  content: '';
  width: 10px;
  height:10px;
  position: absolute;
  top:50px;
  border: 2px solid black;
  border-radius: 50%;
  background:#F9F4E1;
  transition: all 0.5s;
}

.timeline-item:hover:before{
  background-color:black ;
}

.timeline-item .timeline__image{
  display:flex;
  align-items: center;
  width:100px;

}

.timeline_text{
  max-width:20em; 
}

.timeline-item:nth-child(odd) .timeline__image{
  transform: translateX(111px);
  margin-right:35px;
}

.timeline-item:nth-child(odd) .timeline_text{
  transform: translateX(105px);
}

.timeline-item:nth-child(even) .timeline__image{
    transform: translateX(-111px);
    margin-left: 35px;
    
}

.timeline-item:nth-child(even) .timeline_text{
  transform: translateX(-105px);
}

.timeline-item.intro .timeline_text{
  transform: translateX(0);
  transform: translateY(-30px);
}
  

.timeline__content-desc {
  margin: 0;
  font-size: 14px;
  line-height:1.4;
  box-sizing: border-box;
  color: #707070;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
}

.timeline-item:nth-child(odd) .timeline__content-desc{
  transform:translateX(-40px);
}

.timeline-item:nth-child(even) .timeline__content-desc{
  transform:translateX(40px);
}

.timeline-item:hover  .timeline__content-desc{
  visibility: visible;
  opacity:1;
  transform:translate(0px);
}


.timeline__img {
  max-width: 100%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}
.timeline-container {
  width: 100%;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  min-height:100vh;
  margin-top: 80px;
  z-index: -1;
}
.timeline-container:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #F9F4E1;
  content: "";
}
.timeline-header {
  width: 100%;
  text-align: center;
  margin-bottom: 80px;
  position: fixed;
  top:0px;
  left:0px;
  z-index: 99;
}

.only-details{
  height:100%;
  display:none;
}

.only-details .nav{
  position: absolute;
  top:0;
  right:0;
  padding: 2em;
  display:flex;
}

.only-details .nav-left{
  margin-right:1em;
}


h1.timeline-header__title {
    position: fixed;
    top: 1.5em;
    left: 20px;
    font-size: 20px;
    font-family: 'Caudex', sans-serif;
    border-bottom: 2px solid;
    padding: 0 10px;
    z-index: 99;
    cursor: pointer;
}

h2.timeline-header__title {
  color: #707070;
  font-size: 40px;
  font-family: 'Caudex', sans-serif;
  font-weight: normal;
  margin: 0;
  margin-top: 40px;
}

.timeline-header__subtitle {
  color: #707070;
  font-family: 'Caudex', sans-serif;
  font-size: 16px;
  letter-spacing: 5px;
  margin: 10px 0 0 0;
  font-weight: normal;
}

.demo-footer {
  padding: 60px 0;
  text-align: center;
}
.demo-footer a {
  color: #707070;
  display: inline-block;
  font-family: Cardo;
}

.timeline_detail{
  position: fixed;
  width: 100%;
  min-width: 100%;
  height: 100%;
  background: #F9F4E1;
  top: 0;
  left: 0;
  z-index: 9;
  padding: 10%;
  display:flex; 
  visibility: hidden;
  opacity: 0;
  transform:translateX(-100vh);
  overflow: auto;
  transition:all 0.5s;
  font-family: 'Source Sans Pro', sans-serif;
}

.timeline_detail h3{
  font-family: 'Caudex', sans-serif;
  font-weight: bold;
}

.bio h3{
  color:#E37E49;
  
}

.exposiciones h3{
  color:#29C352;
}

.exposiciones li{
  margin-bottom: 1em;
}

.obras h3{
  color:#BA58DE;
}

.contexto h3{
  color:#0F91D6;
}

.timeline_detail header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  padding: 10px;
  z-index: 999;
}

.goBack{
  margin-left:auto;
  background:none;
  border:none;
  text-decoration: underline;
  cursor: pointer;
  position: fixed;
  right:20px;
  bottom:20px;
}

.timeline-detail-container{
  display:flex;
}

.timeline_detail.open{
  transform:translateX(0);
  visibility: visible;
  opacity: 1;
}

.timeline_detail p{
  margin-bottom: 1em;
}

.timeline_detail figure{
  margin:1em 0;
}


.timeline_detail h2{
  font-size:240px;
  position: fixed;
  top:0;
  left:5%;
  color:#EBE5CD;
  z-index: -1;
}

.timeline_detail .col{
  width:27vw;
  margin-right: 80px;
}

.timeline_detail .col.open
{
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.timeline_detail figure{
  font-size:12px;
}

.timeline_detail .nav {
  display: flex;
  margin-left: auto;
}

.timeline_detail .nav  > div{
  cursor: pointer;
}

.timeline_detail .nav-left{
  margin-right: 1em;
}

.timeline_detail h1.timeline-header__title{
  position: relative;
}

.yearnav {
  left: 2em;
  top: calc( 50vh - 125px );
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  height: 250px;
  margin: auto;
  position: absolute;
  flex-direction: column;
  }

  .yearnav .down, .yearnav .up{
      cursor: pointer;
      transform: scale(.75);
      
  }

  .yearnav .down img{
transform:rotate(180deg);
  }

 .yearnav .title {
  font-size: 19px;
  color: black;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  text-decoration:underline;
}

.yearnav .title:before,  .yearnav .title:after{
  content: '';
  display: block;
  background-image: url('../img/lineas.png');
  width: 12px;
  height: 62px;
  margin: 20px auto 10px;
  transform: scale(.75);
}

.yearnav .title:after{
  margin:10px auto 20px;
}



@media only screen and (max-width: 767px) {
  .timeline-item {
    width:auto;
  }

  .timeline_text{
    max-width:10em; 
  }

  .timeline__content-desc {
    visibility: visible;
    opacity: 1;
    transform: translateX(0)!important;
  }

  .timeline-item:nth-child(odd) .timeline__image{
    transform: translateX(23px);
  }
  
  .timeline-item:nth-child(odd) .timeline_text{
    transform: translateX(34px);
  }
  
  .timeline-item:nth-child(even) .timeline__image{
      transform: translateX(-23px);
      
  }
  
  .timeline-item:nth-child(even) .timeline_text{
    transform: translateX(-34px);
  }
  
  .portada{
    background-position: center;
  }
  .portada .title h1{
    font-size: 40px;
    transform: translateX(0px);
  }

  .portada .title h1 span{
    font-size: 30px;
  }
  .portada .title h2{
    font-size: 16px;
  }
  .yearnav {
    top: 20px;
    /* bottom: 20px; */
    left: initial;
    right: 20px;
    position: fixed;
    height: auto;
    }

    .yearnav .title{
      padding:15px 0;
    }
    .yearnav .title:before, .yearnav .title:after{
      display:none;
    }

   .timeline_detail{
      height: 100%;
   }
   .timeline-detail-container{
     flex-direction: column;
     padding:10% 0;
   }

   .timeline_detail .col{
     width:auto;
     margin-right: 0;
     margin-bottom: 30px;
   }

   .only-details .nav{
     display:none;
   }


} 
