.section-how {
  padding: 80px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.section-how-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 32px;
}

.how-header h2 {
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.how-header h2 span {
  color: var(--blue);
  font-weight: 800;
}

.how-underline {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  margin: 14px auto 18px;
}

.how-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: #4B5563;
}

/* grid centrado */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;   /* centra horizontalmente cada card */
}

/* card centrada */
.how-card {
  background: var(--beige);
  border-radius: 16px;
  padding: 20px 18px 18px;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 28px rgba(0,0,0,0.04);
  text-align: center;      /* centra texto e iconos */
  max-width: 240px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.how-card:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(0,120,212,0.14);
  transform: translateY(-2px);
}

/* círculo de número centrado */
.how-step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px auto;  /* centrado horizontal */
}

.how-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.how-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #4B5563;
}

/* responsive */
@media (max-width: 900px) {
  .how-steps {
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .how-steps {
	grid-template-columns: 1fr;
  }
}

.how-step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px auto;
  animation: stepPulse 4s infinite;
}

/* delays para el efecto en cadena */
.how-card:nth-child(1) .how-step-number { animation-delay: 0s; }
.how-card:nth-child(2) .how-step-number { animation-delay: 0.4s; }
.how-card:nth-child(3) .how-step-number { animation-delay: 0.8s; }
.how-card:nth-child(4) .how-step-number { animation-delay: 1.2s; }

@keyframes stepPulse {
  0%, 70%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,120,212,0);
  }
  20% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(0,120,212,0.25);
  }
}
/* Línea de conexión detrás de las cards (solo desktop) */
.how-steps::before {
  content: "";
  position: absolute;
  top: 64%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(0,120,212,0),
    rgba(0,120,212,0.35),
    rgba(0,120,212,0)
  );
  transform: translateY(-50%);
  z-index: 0; /* detrás de las cards */
}

/* Asegurar que las cards queden encima de la línea */
.how-card {
  position: relative;
  z-index: 1;
}
