/* =====================================================
   Mejoras para la línea de tiempo - Evolución de tecnología
   Diseño moderno, atractivo y totalmente responsivo
====================================================== */

/* Contenedor principal */
.tech-evolution {
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  /* Aplicamos la clase de fondo tecnológico estándar */
  padding: 3rem 0;
  background-color: rgb(1 27 55 / 56%);
}

/* Título de la sección */
.tech-evolution h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1698b0;
  position: relative;
  width: 100%;
}

/* Efecto de subrayado animado */
.tech-evolution h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #1698b0 50%, 
    transparent 100%
  );
  border-radius: 3px;
}

/* Contenedor de la línea de tiempo */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Línea central */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, 
    rgba(22, 152, 176, 0.2),
    rgba(22, 152, 176, 0.9),
    rgba(22, 152, 176, 0.2)
  );
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(22, 152, 176, 0.3);
}

/* Elementos de la línea de tiempo */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem;
  margin-bottom: 0;
}

/* Alternancia izquierda-derecha */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Fecha */
.timeline-date {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(22, 152, 176, 0.3);
}

/* Contenido */
.timeline-content {
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  max-width: 90%;
  text-align: center;
}

/* Efecto hover en el contenido */
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(22, 152, 176, 0.6);
}

/* Título del contenido */
.timeline-content h4 {
  color: #1698b0;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  text-align: center;
}

/* Descripción */
.timeline-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Puntos en la línea de tiempo */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: #1698b0;
  border-radius: 50%;
  box-shadow: 
    0 0 0 4px rgba(22, 152, 176, 0.3),
    0 0 0 8px rgba(22, 152, 176, 0.1),
    0 0 20px rgba(22, 152, 176, 0.5);
  z-index: 3;
}

/* Posición de los puntos */
.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* Líneas conectoras */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 2rem;
  height: 3px;
  background: rgba(22, 152, 176, 0.7);
  z-index: 2;
  width: 2.5rem;
  box-shadow: 0 0 8px rgba(22, 152, 176, 0.4);
}

/* Posición de las líneas conectoras */
.timeline-item:nth-child(odd)::after {
  right: 0;
}

.timeline-item:nth-child(even)::after {
  left: 0;
}

/* Iconos de tecnología */
.timeline-icon {
  position: absolute;
  top: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(1, 27, 55, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  transform: translateY(-50%);
  box-shadow: 0 0 15px rgba(22, 152, 176, 0.5);
  border: 2px solid rgba(22, 152, 176, 0.6);
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -20px;
}

.timeline-icon i {
  color: #1698b0;
  font-size: 1.2rem;
}

/* Etiquetas de tecnología */
.tech-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(22, 152, 176, 0.2);
  color: #1698b0;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(22, 152, 176, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Adaptación responsiva */
@media (max-width: 992px) {
  .timeline {
    gap: 3rem;
  }
  
  .timeline::before {
    left: 20px;
    width: 3px;
    background: linear-gradient(to bottom, 
      rgba(22, 152, 176, 0.2),
      rgba(22, 152, 176, 0.7),
      rgba(22, 152, 176, 0.2)
    );
    box-shadow: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
    text-align: left;
    left: 0 !important;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
  }
  
  .timeline-item::before {
    left: 10px !important;
    right: auto !important;
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 3px rgba(22, 152, 176, 0.2);
  }
  
  .timeline-item::after {
    left: 20px !important;
    right: auto !important;
    width: 30px;
    height: 2px;
    box-shadow: none;
  }
  
  .timeline-icon {
    left: 0 !important;
    right: auto !important;
    width: 36px;
    height: 36px;
  }
  
  .timeline-content {
    width: 100%;
    max-width: 100%;
    word-break: break-word;
  }
  
  .timeline-content h4 {
    font-size: 1.2rem;
  }
  
  .timeline-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .tech-evolution {
    padding: 2rem 0;
  }
  
  .tech-evolution h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  
  .timeline-content {
    padding: 1.2rem;
    margin-top: 0.5rem;
    max-width: 100%;
  }
  
  .timeline-content h4 {
    font-size: 1.2rem;
  }
  
  .timeline-date {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-block;
  }
  
  .timeline-item {
    padding-left: 50px;
    margin-bottom: 2.5rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item::before {
    left: 5px !important;
  }
  
  .timeline-item::after {
    left: 15px !important;
    width: 25px;
  }
  
  .timeline-icon {
    left: -5px !important;
  }
}

@media (max-width: 480px) {
  .timeline-item {
    padding-left: 40px;
    padding-right: 5px;
    margin-bottom: 2rem;
  }
  
  .timeline::before {
    left: 10px;
    width: 2px;
  }
  
  .timeline-item::before {
    left: 1px !important;
    width: 12px;
    height: 12px;
    top: 1.2rem;
  }
  
  .timeline-item::after {
    left: 10px !important;
    width: 20px;
    top: 1.2rem;
  }
  
  .timeline-icon {
    left: -8px !important;
    width: 28px;
    height: 28px;
    top: 1.2rem;
  }
  
  .timeline-icon i {
    font-size: 0.7rem;
  }
  
  .timeline-content {
    padding: 1rem 0.8rem;
    border-radius: 8px;
  }
  
  .timeline-icon i {
    font-size: 0.8rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .tech-evolution h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}
