/* Fix para Timeline - Iconos JUNTO a sus textos */
.timeline-item {
  justify-content: flex-end !important;
  gap: 20px !important;
  transform: none !important;
}

/* Animación fade para textos del timeline */
.timeline-content {
  opacity: 0.3 !important;
  transform: translateY(12px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.timeline-item.active .timeline-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animación aún más sutil en móvil */
@media (max-width: 768px) {
  .timeline-content {
    opacity: 0.5 !important;
    transform: translateY(8px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
  }
}

.timeline-item.active {
  transform: none !important;
}

/* Bolita en la línea central - fija sin animación de posición */
.timeline-item::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  margin-left: -4px !important;
  margin-top: -4px !important;
  width: 8px !important;
  height: 8px !important;
  background: white !important;
  border: 2px solid var(--accent) !important;
  border-radius: 50% !important;
  z-index: 100 !important;
  opacity: 0.6 !important;
  transition: width 0.5s ease, height 0.5s ease, margin 0.5s ease, opacity 0.5s ease, background 0.5s ease, box-shadow 0.5s ease !important;
  pointer-events: none !important;
  transform: none !important;
}

.timeline-item.active::after {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(139, 94, 43, 0.2) !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: -6px !important;
  margin-top: -6px !important;
  opacity: 1 !important;
}

/* Elementos IMPARES (1,3,5...) - A la IZQUIERDA (texto + icono juntos) */
.timeline-item:nth-child(odd) {
  flex-direction: row !important;
  justify-content: flex-start !important;
}

.timeline-item:nth-child(odd) .timeline-content {
  order: 1 !important;
  text-align: right !important;
  margin-right: 20px !important;
  margin-left: 0 !important;
}

.timeline-item:nth-child(odd) .timeline-dot {
  order: 2 !important;
}

/* Elementos PARES (2,4,6...) - A la DERECHA (icono + texto juntos) */
.timeline-item:nth-child(even) {
  flex-direction: row !important;
  justify-content: flex-end !important;
}

.timeline-item:nth-child(even) .timeline-dot {
  order: 1 !important;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 2 !important;
  text-align: left !important;
  margin-left: 20px !important;
  margin-right: 0 !important;
}

/* Ajuste para móvil - AL FINAL para sobrescribir todo */
@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    transform: none !important;
    justify-content: flex-start !important;
    padding-left: 10px !important;
  }
  
  .timeline-item.active {
    transform: none !important;
  }
  
  .timeline-dot {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    margin-left: 20px !important;
  }
  
  .timeline-dot img {
    width: 34px !important;
    height: 34px !important;
  }
  
  .timeline-content {
    margin-left: 16px !important;
    margin-right: 0 !important;
  }
  
  .timeline-item::after {
    left: 3px !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: -3px !important;
    margin-top: -3px !important;
    transform: none !important;
  }
  
  .timeline-item.active::after {
    width: 10px !important;
    height: 10px !important;
    margin-left: -5px !important;
    margin-top: -5px !important;
    transform: none !important;
  }
}
