/* ===========================
   SECCIÓN PASOS / CÓMO TRABAJAMOS
   Mobile-first. 3 cards verticales con número grande de fondo,
   ícono dentro de círculo claro, título uppercase y texto con bolds.
   Desktop: 3 columnas conectadas por línea horizontal tenue.
   =========================== */

.pasos {
  background: #fff;
  padding: 72px 22px 80px;
}

.pasos__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Header ---- */
.pasos__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.pasos__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F65F01;
  line-height: 1;
}

.pasos__title {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1F252C;
  text-wrap: balance;
}

.pasos__title em {
  font-style: italic;
  font-weight: 800;
  color: #F65F01;
}

.pasos__lead {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #4A5560;
  font-weight: 400;
}

.pasos__lead strong {
  color: #1F252C;
  font-weight: 700;
}

/* ---- Lista de pasos ---- */
.pasos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
}

.pasos__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 0 12px;
  max-width: 360px;
  margin: 0 auto;
}

/* Número grande de fondo */
.pasos__num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(246, 95, 1, 0.10);
  pointer-events: none;
  z-index: 0;
}

/* Círculo del ícono — fondo translúcido para que se vea el número de atrás */
.pasos__icon-wrap {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 246, 238, 0.55);
  border: 1.5px solid rgba(246, 95, 1, 0.25);
  margin-top: 18px;
}

.pasos__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.pasos__step-title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1F252C;
  line-height: 1.3;
}

.pasos__step-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A5560;
  font-weight: 400;
}

.pasos__step-text strong {
  color: #1F252C;
  font-weight: 700;
}

/* ---- CTA final ---- */
.pasos__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pasos__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 16px 28px;
  background: #F65F01;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.12s ease;
}

.pasos__cta i {
  font-size: 1.35em;
  line-height: 1;
}

.pasos__cta:hover,
.pasos__cta:focus-visible {
  background: #D14E00;
  color: #fff;
}

.pasos__cta:active {
  transform: translateY(1px);
}

.pasos__cta:focus-visible {
  outline: 2px solid #F65F01;
  outline-offset: 3px;
}

/* ---- Tablet (>= 640px) ---- */
@media (min-width: 640px) {
  .pasos {
    padding: 96px 32px 104px;
  }

  .pasos__header {
    margin-bottom: 64px;
  }

  .pasos__lead {
    font-size: 16.5px;
  }
}

/* ---- Desktop (>= 1024px): 3 columnas con línea conectora ---- */
@media (min-width: 1024px) {
  .pasos {
    padding: 120px 40px 132px;
  }

  .pasos__list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    position: relative;
  }

  /* Línea horizontal tenue que conecta los íconos */
  .pasos__list::before {
    content: '';
    position: absolute;
    top: 66px; /* centro del círculo (18px margin-top + 48px = 66px) */
    left: 16.66%;
    right: 16.66%;
    height: 1px;
    background: repeating-linear-gradient(
      to right,
      rgba(246, 95, 1, 0.32) 0,
      rgba(246, 95, 1, 0.32) 4px,
      transparent 4px,
      transparent 10px
    );
    z-index: 0;
  }

  .pasos__step {
    flex: 1;
    max-width: none;
    padding: 0 8px;
  }

  .pasos__num {
    font-size: 96px;
    top: -14px;
  }

  .pasos__cta-wrap {
    margin-top: 64px;
  }

  .pasos__cta {
    width: auto;
    max-width: none;
  }
}

/* ---- Reveal heredado ---- */
.pasos.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pasos.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pasos.reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .pasos__cta {
    transition: none;
  }
}
