/**
 * Estilos para el Timeline Reinpe con Imagen.
 */

.pasos-wrapper {
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.pasos-dots {
  display: grid;
  grid-template-columns: repeat(var(--steps-count, 4), 1fr);
  position: relative;
  margin-bottom: 24px;
}

/* Línea de conexión inactiva (fondo) */
.pasos-dots::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background-color: #E4E9F2;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Línea de conexión activa (progreso del scroll) */
.pasos-dots::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  width: calc(var(--scroll-progress, 0) * (100% - 56px));
  height: 2px;
  background: linear-gradient(to right, var(--line-color-start, #0065FE), var(--line-color-end, #32BABE));
  z-index: 1;
  transition: width 0.1s ease-out;
}

.pasos-dot-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pasos-dot-wrap.animate-fadeup {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Círculo en estado inactivo */
.pasos-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #dde3ef;
  color: #7a8499;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(221, 227, 239, 0.2);
  transition: transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  font-size: 18px;
  font-weight: 800;
  cursor: default;
}

/* Círculo en estado activo (cambia dinámicamente según scroll) */
.pasos-dot-wrap.active .pasos-dot {
  background-color: var(--step-color) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--step-color-alpha) !important;
}

.pasos-dot:hover {
  transform: scale(1.1);
}

.pasos-cards {
  display: grid;
  grid-template-columns: repeat(var(--steps-count, 4), 1fr);
  gap: 24px;
}

.pasos-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E4E9F2;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.pasos-card.animate-fadeup {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.pasos-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 101, 254, 0.10);
}

.pasos-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.pasos-body {
  padding: 20px;
}

.pasos-title {
  font-size: 17px;
  font-weight: 700;
  color: #0C1830;
  margin-bottom: 10px;
}

.pasos-text {
  font-size: 14px;
  color: #7A8499;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pasos-dots {
    display: none;
  }
  .pasos-cards {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}
