/* ── 3 pasos facturación — horizontal row on scroll ── */
#facturacion-steps {
  height: 380vh;
  padding: 0;
}

.fsteps-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Header inside sticky — solo padding inferior para separar del deck */
.fsteps-header { padding: 0 0 44px; }

/* Deck: 3 × 380px con 28px de overlap = paso 352px */
.fsteps-deck {
  position: relative;
  width: 1084px;  /* 380 + 352 + 352 */
  height: 320px;
  margin: 0 auto;
  flex-shrink: 0;
}

.fstep-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 320px;
  padding: 32px 30px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(.22,1,.36,1),
    opacity   0.5s ease;
  will-change: transform, opacity;
}

/* Cada card arranca en su X final pero 600px abajo */
#fstep1 { transform: translateX(0px)   translateY(600px); z-index: 1; }
#fstep2 { transform: translateX(352px) translateY(600px); z-index: 2; }
#fstep3 { transform: translateX(704px) translateY(600px); z-index: 3; }

/* Entered: sube verticalmente a su posición horizontal (28px overlap) */
#fstep1.entered { transform: translateX(0px)   translateY(0); opacity: 1; }
#fstep2.entered { transform: translateX(352px) translateY(0); opacity: 1; }
#fstep3.entered {
  transform: translateX(704px) translateY(0);
  opacity: 1;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px rgba(255,202,27,.08), 0 16px 40px rgba(0,0,0,.35);
}

/* Card internals */
.fstep-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.fstep-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.fstep-desc {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.65;
}

/* WhatsApp badge */
.fstep-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #25d366;
  font-weight: 700;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: .92em;
  vertical-align: middle;
  margin: 0 2px;
}

/* Mobile: show as normal stacked list */
@media (max-width: 720px) {
  #facturacion-steps { height: auto; padding: var(--section) 0; }
  .fsteps-sticky { position: static; height: auto; overflow: visible; flex-direction: column; }
  .fsteps-header { padding: 0 0 32px; }
  .fsteps-deck { height: auto; width: 100%; }
  .fstep-card {
    position: static;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    margin-bottom: 16px;
    border-color: var(--border-1) !important;
    box-shadow: none !important;
  }
  .fstep-card--last { border-color: var(--accent-border) !important; }
}
