.timeline {
    position: relative;
  }
  
  /* .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: #ccc;
    margin-left: -1px;
  } */

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: #ccc; /* Color de línea por defecto */
    margin-left: -1px;
    /* animation: timeline-line-color 1s infinite alternate; */
    /* animation: timeline-line-color 1s linear forwards; */
    animation: timeline-line-color 1s linear forwards;
  }

  @keyframes timeline-line-color {
    /* 0% {
      background-color: #ccc; 
    }
    20% {
      background-color: rgb(240, 213, 213); 
    }

    400% {
      background-color: rgb(236, 165, 165); 
    }

    60% {
      background-color: rgb(238, 77, 77); 
    }

    80% {
      background-color: rgb(248, 20, 20); 
    }


    100% {
      background-color: red; 
    } */

    0% {
      background-color: #ccc; 
      height: 0; /* Altura inicial de la línea */
    }
    100% {
      height: 100%; /* Altura final de la línea */
      background-color: red; /* Color de línea al final */
    }
  }
  
  .timeline-item {
    position: relative;
    margin-bottom: 30px;
  }
  
  /* .timeline-year {
    position: absolute;
    top: -15px;
    left: 0;
    width: 60px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #ccc;
    color: #fff;
    font-weight: bold;
  } */
  
  .timeline-year {
    position: absolute;
    top: -15px;
    left: 0;
    width: 60px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: red;
    color: #fff;
    font-weight: bold;
    /* animation: timeline-flow 1s infinite alternate; */
  }
  
  @keyframes timeline-flow {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(10px);
    }
  }


  .timeline-content {
    margin-left: 80px;
    padding: 10px;
    background-color: #f5f5f5;
    width: 50%;
  }
  
  .timeline-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .timeline-description {
    font-size: 14px;
  }

  /* .timeline-end {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    margin: 0 auto;
  } */

  .timeline-end {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    margin: 0;
    margin-left: -10px; /* Ajusta este valor según tu preferencia */
  }


  @keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
  .timeline-end {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    margin: 0;
    margin-left: 20px;
    margin-top: -31px;
    animation: heartbeat 1s infinite; /* Agrega la animación de latido */
  }