/*!
 * Componente Nombre:  timeline
 * Base: Bootstrap v4.6.2
 * Autor: DEX360
 * Copyright: DEX360

    1.  timeline
        1.2. Arrows

    2.  time-line-imagen

    10. responsive
*/

/* 1. timeline */
.timeline {
  white-space: nowrap;
  overflow-x: hidden;
  min-height: 650px;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0;
  overflow: hidden;
}

.timeline::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 50%);
  content: '';
  left: 0px;
  height: 250px;
  padding: 18px 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 990;  
}

.timeline-container {
  /*
  background: url('../../img/time-line.png') top left no-repeat;
  background-color: var(--primary) !important;
  background-size: cover;
  */
  padding: 0px;
  margin-bottom: 0em;
  min-height: 800px;
  position: relative;
  overflow: hidden;
}

.timeline-container:before {
  background: url('../../img/time-line.png') top left no-repeat;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateZ(-200px) scale(2);
  width: 100%;
}


/*
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: block;
  background: url('../../img/time-line.png') top center no-repeat;
  background-size: cover;
  transform: translateZ(-1px) scale(2.1);
  min-height: 100%;
  z-index: -2;
}
*/

.timeline-section-title {
  color: white;
  left: 3%;
  font-family: inherit !important;
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
  padding: 4% 0% 1%;
  position: relative;
  top: 50%;
  word-wrap: break-word;
  z-index: 3;
}

.time-line-wrap {
  height: 100%;
  position: absolute;
  z-index: 1;

}

.timeline .arrow {
  color: #599AD2 !important;
  font-size: 27px;
}

.timeline .btn-link.focus,
.timeline .btn-link:focus {
  text-decoration: none;
  box-shadow: none !important
}

.timeline .content {
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: center;
}

.timeline ol {
  font-size: 0;
  width: 100vw;
  padding: 250px 0;
  transition: all 1s;
}

.timeline ol li {
  position: relative;
  display: inline-block;
  list-style-type: none;
  width: 25%;
  height: 3px;
}

.timeline .title {
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display:none;
}

.timeline .description {
  font-weight: 400;
  font-size: 15px;
  /*line-height: 15px;*/
  max-width: 80%;
  width: 300px;
  word-break: break-word;
  margin-top:10px;
}

.timeline-image {
    display: block;
    max-width: 80%;
} 

@media(min-width:768px) {

  /* Arrow Top Bottom */
  .timeline ol li:nth-child(odd) div {
    top: 30px;
    transform: translateY(-100%);
  }

  .timeline ol li:nth-child(even) div {
    top: 16px;
  }

  .timeline ol li:before {
    content: "";
    position: absolute;
    display: block;
    height: 10px;
    margin-right: 10px;
    width: 100%;
    z-index: 1;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
  }

  .timeline ol li:after {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    content: "";
    display: block;
    width: 20px;
    z-index: 1;
    height: 10px;
    right: -11px;
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .timeline ol li:nth-child(4n-3):before {
    background-color: lightblue !important;
  }

  /* Para el segundo elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-2):before {
    background-color: #0188D2 !important;
  }

  /* Para el tercer elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-1):before {
    background-color: #1671C2 !important;
  }

  /* Para el cuarto elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n):before {
    background-color: #748697 !important;
  }

  .timeline ol li:nth-child(4n-3):after {
    background-color: lightblue !important;
  }

  /* Para el segundo elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-2):after {
    background-color: #0188D2 !important;
  }

  /* Para el tercer elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-1):after {
    background-color: #1671C2 !important;
  }

  /* Para el cuarto elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n):after {
    background-color: #748697 !important;
  }

  /* Estilo para el segundo elemento de cada grupo de 4 */

  .timeline ol li>div {
    position: absolute;
    width: 324px;
    padding: 15px;
    left: 25%;
    font-size: 1rem;
    white-space: normal;
    color: white;
    background: transparent;
  }

  .timeline ol li:nth-child(even) div {
    margin-top:55px;
  }

  .timeline ol li>div:before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 20px;
    height: 10px;
    content: "";
    position: absolute;
    z-index: -1;
    background: red;
    left: 38%;
    z-index: -1 !important;
    bottom: 0;
  }

  .timeline ol li:nth-child(odd)>div:before {
    top: 84%;
  }

  .timeline ol li:nth-child(even)>div:before {
    top: -66px;
  }

  .timeline ol li:nth-child(4n)>div::before {
    background-color: #748697 !important;
  }

  .timeline ol li:nth-child(4n-3)>div:before {
    background-color: lightblue !important;
  }

  /* Para el segundo elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-2)>div:before {
    background-color: #0188D2 !important;
  }

  /* Para el tercer elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n-1)>div:before {
    background-color: #1671C2 !important;
  }

  /* Para el cuarto elemento de cada grupo de 4 */
  .timeline ol li:nth-child(4n)>div:before {
    background-color: #748697 !important;
  }
}


/*Time Tag */
.timeline ol li time {
  position: relative;
  top: -170px;
  width: 60px;
  left: 50%;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.timeline ol li time span {
  width: 60px;
  height: 40px;
  white-space: normal;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline ol li time::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(223.91deg, #046CA5 15.46%, #9EA4B2 76.53%);
  z-index: -1;
}

.timeline ol li time::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 106px;
  background: #0F61AC;
  top: 65px;
}

.timeline ol li:nth-child(odd) time {
  top: 90px;
}

.timeline ol li:nth-child(odd) time::after {
  height: 75px;
  top: -79px;
}

.timeline time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 1.2. arrows */
.timeline .arrows {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.timeline .arrows .arrow__prev {
  margin-right: 20px;
}
.timeline .disabled {
  opacity: 0.5;
}
.timeline .arrows img {
  width: 45px;
  height: 45px;
}
.time-line-wrap {
  background-color:var(--primary); 
  opacity:.6;
}

/* 2. time-line-imagen */
.time-line-imagen {
  background-color:var(--light-primary); 
}


/* 10. responsive */
@media screen and (max-width: 768px) {
  .timeline-section-title {
    text-align: center;
    font-size: 24px;
    position: static;
  }

  .timeline-container h2 {
    text-align: center;
    left: 0%;
  }

  .timeline {
    white-space: nowrap;
    overflow: visible;
    min-height: auto;
    position: inherit;
    top: inherit;
    ;
    left: inherit;
    ;
    z-index: 2;
    padding: 0;
  }

  .timeline-container .position-absolute {
    position: inherit !important;
  }

  .timeline-container .timeline-content {
    display: block !important;
  }

  .timeline ol,
  .timeline ol li {
    width: auto;
  }

  .timeline ol {
    padding: 0;
    /* transform: none !important; */
  }

  .timeline ol li {
    display: flex;
    height: auto;
    background: transparent;
    flex-direction: column-reverse;
  }

  .timeline ol li:first-child {
    margin-top: 25px;
  }

  .timeline ol li:not(:first-child) {
    padding: 0;
    margin-left: auto;
  }

  .timeline ol li div {
    position: static;
    width: 94%;
    height: auto !important;
    margin: 50px auto 25px;
  }

  .timeline ol li:nth-child(odd) div {
    transform: none;
  }

  .timeline ol li:nth-child(odd) div::before,
  .timeline ol li:nth-child(even) div::before {
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: none;
    border-left: 1px solid white;
    height: 25px;
  }
  .timeline ol li:nth-last-child(2) div::before,
  .timeline ol li:not(:last-child)::after,
  .timeline .arrows {
    display: none;
  }
  .timeline .title,
  .time-line-item,
  .time-line-item h3 {
    text-align: center;
    color: white;
  }

  .timeline .title {
    display: none;
  }

  .time-line-item h3 {
    margin-bottom: 25px;
  }

  .timeline ol li:nth-child(odd) time,
  .timeline ol li time {
    top: 30px;
    left: 40%;
    width: 70px;
    height: 70px;
    color:black;
  }

  .timeline-content .bordered-title:after {
    position: relative;
    bottom: -10px;
    margin: 0px auto;
  }

  .timeline ol li time::after,
  .timeline ol li:nth-child(odd) time::after {
    display: none;
  }


  .timeline ol li div::before,
  .timeline ol li:nth-child(even) div::before,
  .timeline ol li:after,
  .timeline ol li:nth-child(4n):after {
    display: none !important;
  }

  .timeline-container {
    background-size: contain;
  }

  .timeline-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);

  }

  .timeline-slider .arrow {
    top: 50%;
    position: absolute;
  }

  .timeline-slider .arrow__prev {
    left: 10px;
  }

  .timeline-slider .arrow__next {
    right: 10px;
  }

  .timeline-slider .texto {
    color: white;
    font-size: 16px;
    white-space: normal;
    width: 70%;
    margin: 0px auto;
  }

  .timeline-slider  {
    background: url(../../img/grupo-taraborelli-linea-tiempo-bg-01.jpg) center center no-repeat;
    background-color: var(--primary) !important;
    padding-top: 40px; 
  }
}