
/* Timeline Section */

.timeline-container {
  max-width: 100%; /* El contenedor ocupa todo el ancho en móvil */
  margin: 0 auto;
  padding: 20px 10px; /* Reducido el padding para móvil */
}


.timeline {
  position: relative;
  margin: 40px 0; /* Reducido el margen vertical para móvil */
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e0e0e0;
  background: linear-gradient(45deg, transparent, black, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  flex-direction: column; /* Apilamos los elementos en móvil */
  margin-bottom: 60px; /* Reducido el margen inferior para móvil */
  position: relative;
}

.timeline-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  z-index: 2;
  margin-right: 20px; /* Reducido el margen derecho para móvil */
  flex-shrink: 0;
  transform: unset; /* Eliminamos la transformación para móvil */
}

.timeline-content {
  flex: 1;
  margin-left: 60px; /* Añadimos margen izquierdo para alinear con la línea */
  margin-top: -40px; /* Ajustamos el margen superior para superponerse */
  padding-top: 10px;
}

.timeline-content h2 {
  font-size: 30px; /* Reducido el tamaño de la fuente para móvil */
  margin-bottom: 10px; /* Reducido el margen inferior para móvil */
  color: #333;
  font-weight: 600;
}

.timeline-content p {
  color: #666;
  font-size: 20px;
  margin-bottom: 15px; /* Reducido el margen inferior para móvil */
  max-width: 100%; /* El texto ocupa todo el ancho disponible en móvil */
}

.timeline-image {
  width: calc(100% - 60px); /* Ocupa el ancho restante */
  height: 16px; /* Reducida la altura para móvil */
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 60px; /* Alineado con el contenido */
  margin-top: 20px; /* Añadido margen superior */
  flex-shrink: 0;
}

.timeline-image img {
  max-width: 100%; /* La imagen se ajusta al contenedor */
  max-height: 100%;
}

/* Estilos para desktop (a partir de 769px de ancho) */
@media (min-width: 769px) {

  .timeline-container {
    max-width: 1200px;
    padding: 40px 20px;
  }

  .timeline {
    margin: 60px 0;
  }

  .timeline-line {
    left: 40px;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: row; /* Volvemos a la disposición horizontal en desktop */
    margin-bottom: 80px;
  }

  .timeline-number {
    margin-right: 40px;
    width: 40px;
    height: 40px;
    transform: translateX(20px); /* Volvemos a la transformación original */
  }

  .timeline-content {
    margin-left: 0; /* Removemos el margen izquierdo */
    margin-top: 0; /* Removemos el margen superior */
    padding-top: 0;
  }

  .timeline-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .timeline-content p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 500px;
  }

  .timeline-image {
    width: 300px;
    height: 200px;
    margin-left: 40px;
    margin-top: 0; /* Removemos el margen superior */
  }

  .timeline-image img {
    max-width: 120px;
    max-height: 120px;
  }
}
