body {
  font-family: 'Source Sans Pro',Helvetica Neue,Helvetica,Arial,sans-serif; 
  font-size: 16px;
  line-height: 1.15;
}

       #timeline-mobile {
    display: none; /* Oculta la línea de tiempo en escritorio */
  background-image: url('../img/linea.png'); /* Ruta de la imagen */
  background-repeat: repeat-y; /* Repetir la imagen verticalmente */
  background-position: center; /* Posición centrada */
  padding: 20px; /* Agregar espacio al contenido para evitar superposición */
  }

/* Estilos para el párrafo dentro de la clase .tl-item */
.tl-item .historia-parrafo {
    
    padding-left:5px;
    padding-right:5px;
    text-align:left;
    font-family:latoreg;
    font-weight:bolder;
    font-size: 1vw; /* Modifica el tamaño de la fuente según tu preferencia */
    color: #ffffff; /* Color de texto */
    text-align: center;
    padding-top: 30px;
    /* Otros estilos que desees aplicar */
}


#timeline {
  display: flex;
  background-color: #031625;

  &:hover {
    .tl-item {
      width: 23.3333%;
    }
  }
}

.tl-item {
  transform: translate3d(0, 0, 0);
  position: relative;
  width: 25%;
  height: 40vh;
  min-height: 450px;
  color: #fff;
  overflow: hidden;
  transition: width 0.5s ease;
  
  &:before, &:after {
    transform: translate3d(0, 0, 0);
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
  }

  &:after {
    background: transparentize(#031625, 0.15);
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  &:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 130%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  &:hover {
    width: 50% !important;
    
    &:after {
      opacity: 0;
    }

    &:before {
      opacity: 1;
      transform: translate3d(0, 0, 0) translateY(0);
      transition: opacity 1s ease, transform 1s ease 0.25s;
    }
    
    .tl-content {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.75s ease 0.5s;
    }

    .tl-bg {
      filter: grayscale(0);
    }
  }
}

.tl-content {
  transform: translate3d(0, 0, 0) translateY(25px);
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 1.618em;
  top: 55%;
  opacity: 0;
  
  h1 {
    font-family: 'Pathway Gothic One',Helvetica Neue,Helvetica,Arial,sans-serif;
    text-transform: uppercase;
    color: #1779cf;
    font-size: 1.44rem;
    font-weight: normal;
  }
}

.tl-year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-300%);
  z-index: 1;
  background-color: #db133ec9;
  width: 100%;
    
  p {
    font-family: 'Pathway Gothic One',Helvetica Neue,Helvetica,Arial,sans-serif;
    font-size: 1.728rem;
    line-height: 0;
  }
}

.tl-bg {
  transform: translate3d(0, 0, 0);
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-size: cover;
  background-position: center center;
  transition: filter 0.5s ease;
  filter: grayscale(75%);
}




 @media only screen and (max-width:1440px){

     


}


@media only screen and (max-width: 640px) {
  /* Estilos para dispositivos móviles */
  .tl-item {
    width: 100%;
    height: auto;
    min-height: auto;
  }
    
    

  .tl-bg {
    position: relative; /* Para que el texto se superponga */
    filter: grayscale(100%);
  }

  .tl-content {
    position: absolute; /* Para superponer el texto */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 20px;
    opacity: 1;
    background-color: rgba(3, 22, 37, 0.8); /* Fondo semi-transparente */
  }

  .tl-content p,
  .tl-content h1 {
    color: #fff; /* Color del texto */
    margin: 0;
  }
    
    
     #timeline-mobile {
    display: block; /* Oculta la línea de tiempo en escritorio */
  }

    
}




@media only screen and (max-width: 640px) {
  #timeline {
    display: none;
  }
    
  