/* =====================================================
   Tarjetas modernas y profesionales para Tecknia
   Reemplazo de las tarjetas con giro por un diseño más eficiente
====================================================== */

/* Estilos generales para las tarjetas */
.feature-card {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Efecto de hover */
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(22, 152, 176, 0.3);
  border-color: rgba(22, 152, 176, 0.8);
}

/* Barra superior con gradiente */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #1698b0, #16b098);
}

/* Contenido de la tarjeta */
.feature-card-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Ícono de la tarjeta */
.feature-icon-large {
  width: 70px;
  height: 70px;
  line-height: 70px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(22, 152, 176, 0.3);
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo en el ícono */
.feature-icon-large::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Título de la tarjeta */
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1698b0;
  font-weight: 600;
}

/* Descripción de la tarjeta */
.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: justify;
}

/* Lista de características */
.feature-list {
  text-align: left;
  padding-left: 0;
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

/* Marcadores de lista personalizados */
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #1698b0;
  border-radius: 2px;
  margin-right: 10px;
}

/* Efecto de líneas tecnológicas en el fondo */
.feature-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.05;
  z-index: 0;
}

.tech-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1698b0, transparent);
  width: 100%;
  animation: techLine 8s linear infinite;
}

@keyframes techLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Botón de más información */
.feature-card-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(22, 152, 176, 0.2);
  color: #1698b0;
  border: 1px solid rgba(22, 152, 176, 0.4);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-card-button:hover {
  background: rgba(22, 152, 176, 0.3);
  border-color: rgba(22, 152, 176, 0.6);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
  .feature-card {
    min-width: 100%;
  }
  
  .feature-icon-large {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.5rem;
  }
}

/* Mejoras para la línea de tiempo */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #1698b0, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1698b0, #16b098);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: rgba(1, 27, 55, 0.7);
  border: 1px solid rgba(22, 152, 176, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
  color: #1698b0;
  margin-bottom: 0.5rem;
}

/* Puntos en la línea de tiempo */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  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);
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
    left: 0;
  }
  
  .timeline-item::before {
    left: 20px;
  }
}
