.timeline-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.timeline-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content h3 {
  color: #4a90e2;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 1em;
}

.timeline-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  background: #4a90e2;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-content p {
  line-height: 1.6;
  color: #666;
}

/* Efectos al hacer hover */
.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Animaciones para cada sección */
.timeline-content:nth-child(1) {
  animation: slideInLeft 0.8s ease-out forwards;
}

.timeline-content:nth-child(2) {
  animation: slideInRight 0.8s ease-out 0.3s forwards;
}

.timeline-content:nth-child(3) {
  animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline {
    position: relative;
    padding: 2em 0;
    margin-top: 2em;
    margin-bottom: 2em;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background: #4a90e2;
    transform: translateX(-50%);
  }

  .timeline-item {
    margin: 2em 0;
    position: relative;
    display: flex;
    align-items: center;
  }

  .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
  }

  .timeline-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4a90e2;
    flex-shrink: 0;
    z-index: 1;
    background: #fff;
  }

  .timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .timeline-content {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 0 2em;
    flex: 1;
  }

  .timeline-content h3 {
    color: #4a90e2;
    margin-bottom: 0.5em;
  }

  .timeline-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
  }

  @media (max-width: 768px) {
    .timeline::before {
      left: 0;
    }

    .timeline-item {
      flex-direction: column !important;
      margin-left: 2em;
    }

    .timeline-img {
      width: 150px;
      height: 150px;
      margin-bottom: 1em;
    }

    .timeline-content {
      margin: 0;
    }
  }