@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

/* .section SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.seccion {
  display: flex;
  flex-direction: row;
  width: 90%;
  height: auto;
  margin: 0 auto;
  text-align: center;
}

.ltrlnnmb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
}

.ltrlnctn {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 50%;
  height: 100%;
}

.seccion h2 {
  font-size: 95px;
  font-weight: 100;
  line-height: 1;
  font-family: var(--fuente-poppins);
  color: var(--color-terceiario);
}

.seccion img {
  height: 100%;
  width: auto;
}

@media (max-width: 361px) {
  .seccion {
    width: 90%;
    flex-direction: column;
  }

  .ltrlnnmb {
    width: 100%;
    height: 200px;
  }

  .ltrlnctn {
    text-align: center;
    width: 100%;
    height: auto;
  }

  .seccion h2 {
    /* transform: translateY(-30%); */
    font-size: 50px;
    padding: 0;
  }

  .seccion img {
    height: 200px;
    width: auto;
  }
}

@media (max-width: 481px) and (min-width: 361px) {
  .seccion {
    width: 90%;
    flex-direction: column;
    height: auto;
  }

  .ltrlnnmb {
    width: 100%;
    height: 300px;
  }

  .ltrlnctn {
    text-align: center;
    width: 100%;
    height: auto;
  }

  .seccion h2 {
    font-size: 60px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }
}

@media (max-width: 701px) and (min-width: 481px) {
  .seccion {
    width: 90%;
    flex-direction: column;
    height: auto;
  }

  .ltrlnnmb {
    width: 100%;
    height: 350px;
  }

  .ltrlnctn {
    text-align: center;
    width: 100%;
    height: auto;
  }

  .seccion h2 {
    font-size: 75px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }  
}

@media (max-width: 959px) and (min-width: 701px) {
  .seccion {
    width: 90%;
    height: auto;
    padding-bottom: 25px;
    align-items: center;
    justify-content: center;
  }

  .ltrlnnmb {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .ltrlnctn {
    text-align: center;
    width: 100%;
    height: auto;
  }

  .seccion h2 {
    font-size: 70px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }
}

@media (max-width: 1200px) and (min-width: 959px) {
  .seccion {
    width: 90%;
    height: auto;
    padding-bottom: 25px;
    align-items: center;
    justify-content: center;
  }

  .ltrlnnmb {
    width: 50%;
    align-items: center;
    justify-content: center;
  }

  .ltrlnctn {
    text-align: center;
    width: 50%;
    height: auto;
  }

  .seccion h2 {
    font-size: 90px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }
}

@media (max-width: 1921px) and (min-width: 1337px) {
  .seccion {
    width: 90%;
    height: auto;
    padding-bottom: 25px;
    align-items: center;
    justify-content: center;
  }

  .ltrlnnmb {
    width: 50%;
    align-items: center;
    justify-content: center;
  }

  .ltrlnctn {
    text-align: center;
    width: 50%;
    height: auto;
  }

  .seccion h2 {
    font-size: 100px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }  
}

@media (max-width: 2700px) and (min-width: 1921px) {
  .seccion {
    width: 90%;
    height: auto;
    padding-bottom: 25px;
    align-items: center;
    justify-content: center;
  }

  .ltrlnnmb {
    width: 50%;
    align-items: center;
    justify-content: center;
  }

  .ltrlnctn {
    text-align: center;
    width: 50%;
    height: auto;
  }

  .seccion h2 {
    font-size: 150px;
    padding: 0;
  }

  .seccion img {
    height: 100%;
    width: auto;
  }  
}


/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
  position: relative;
  white-space: nowrap;
  max-width: 90%;
  padding: 0 10px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px auto;
  grid-gap: 20px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 30px;
  width: 100px;
  z-index: 2;
}

.timeline::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 1) 1%, rgba(255, 255, 255, 0) 100%);
}

.timeline::before {
  left: 340px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 1%, rgba(255, 255, 255, 0) 100%);
}

.timeline .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 40px;
  color: var(--white);
  background: url(/assets/img/historia/DSC05775.jpg) no-repeat center center;
  white-space: normal;
  border-radius: 30px 200px 30px 30px;
}

.timeline p {
  display: block;
  text-align: justify;
  font-family: var(--fuente-poppins);
  color: var(--color-blanco);
}

.timeline time {
  display: block;
  font-size: 45px;
  color: var(--color-blanco);
  font-family: var(--fuente-poppins);
}

.timeline ol::-webkit-scrollbar {
  height: 12px;
}

.timeline ol::-webkit-scrollbar-thumb,
.timeline ol::-webkit-scrollbar-track {
  border-radius: 92px;
}

.timeline ol::-webkit-scrollbar-thumb {
  background: var(--midnight-green);
}

.timeline ol::-webkit-scrollbar-track {
  background: var(--color-terceiario);
}

.timeline ol {
  font-size: 0;
  padding: 300px 0;
  transition: all 1s;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--color-terceiario) var(--color-primario);
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 200px;
  height: 5px;
  background: var(--color-primario);
  scroll-snap-align: start;
}

.timeline ol li:last-child {
  width: 340px;
}

.timeline ol li:not(:first-child) {
  margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  bottom: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-terceiario);
  z-index: 1;
}

.first {
  display: block;
  position: absolute;
  left: calc(100% + 7px);
  padding: 5px 30px;
  width: 300px;
  font-size: 1rem;
  white-space: normal;
  color: var(--black);
  background: linear-gradient(-135deg, rgba(3, 182, 255, 1) 40%, rgba(0, 35, 83, 1) 100%);
  border-radius: 0 10px 10px 10px;
}

.second {
  position: absolute;
  left: calc(100% + 7px);
  width: 300px;
  padding: 5px 25px;
  font-size: 1rem;
  white-space: normal;
  color: var(--black);
  background: linear-gradient(300deg, rgba(3, 182, 255, 1) 40%, rgba(0, 35, 83, 1) 100%);
  border-radius: 0 20px 60px 20px;
}

.timeline ol li div::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ol li:nth-child(odd) div {
  top: -16px;
  transform: translateY(-100%);
  border-radius: 20px 60px 20px 0;
}

/* Flecos de cada tarjeta de la línea de tiempo */
.timeline ol li:nth-child(odd) div::before {
  top: 100%;
  border-width: 8px 8px 0 0;
  border-color: var(--color-primario) transparent transparent transparent;
}

.timeline ol li:nth-child(even) div {
  top: calc(100% + 16px);
}

.timeline ol li:nth-child(even) div::before {
  top: -8px;
  border-width: 8px 0 0 8px;
  border-color: transparent transparent transparent var(--color-primario);
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 800px) {
  .timeline {
    display: block;
  }

  .timeline::before,
  .timeline::after {
    width: 50px;
  }

  .timeline::before {
    left: 0;
  }

  .timeline .info {
    display: none;
  }
}