/* Gridloop - Home: bloque "antes y después" (dentro de #problemas) y proceso en 6 pasos. */

/* ── Antes y después ───────────────────────────────────── */
.ba{max-width:none;margin:64px 0 0}
.ba-head{max-width:640px;margin-bottom:28px}
.ba-head h3{font-size:clamp(22px,2.6vw,30px);line-height:1.2;font-weight:600;letter-spacing:-.015em;color:var(--l-ink)}
.ba-head p{margin-top:10px;font-size:15px;color:var(--l-ink-soft)}
.ba-list{display:flex;flex-direction:column;gap:16px}
.ba-row{display:grid;grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);align-items:center;gap:0}
.ba-chat{background:#efeae2;border-radius:16px;padding:16px 18px;box-shadow:inset 0 0 0 1px rgba(11,18,32,.06)}
.ba-msg{position:relative;display:inline-block;max-width:92%;background:#fff;color:#111b21;border-radius:4px 12px 12px 12px;padding:9px 12px 7px;box-shadow:0 1px 2px rgba(11,18,32,.16)}
.ba-msg::before{content:"";position:absolute;left:-7px;top:0;width:10px;height:12px;background:#fff;clip-path:polygon(100% 0,100% 100%,0 0)}
.ba-msg p{font-size:15px;line-height:1.4;margin:0}
.ba-meta{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-top:2px;font-size:11px;color:#667781}
.ba-meta svg{width:16px;height:16px;color:#53bdeb}
.ba-arrow{display:flex;align-items:center;justify-content:center;color:var(--l-accent)}
.ba-arrow svg{width:26px;height:26px;transition:transform .35s ease}
.ba-row:hover .ba-arrow svg{transform:translateX(5px)}
.ba-fix{display:flex;align-items:center;gap:14px;background:var(--l-surface);border:1px solid var(--l-line);border-radius:16px;padding:16px 18px;box-shadow:var(--l-shadow);transition:transform .3s cubic-bezier(.22,.68,0,1.2),box-shadow .3s ease,border-color .25s ease}
.ba-row:hover .ba-fix{transform:translateY(-3px);border-color:rgba(37,99,235,.5);box-shadow:0 22px 44px -22px rgba(37,99,235,.5)}
.ba-ico{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 8px 18px -8px rgba(37,99,235,.8);transform:scale(.4);opacity:0;transition:transform .55s cubic-bezier(.2,.9,.3,1.4) .35s,opacity .3s ease .35s}
.ba-row.in .ba-ico{transform:none;opacity:1}
.ba-ico svg{width:20px;height:20px}
.ba-fix b{display:block;font-size:16px;font-weight:600;color:var(--l-ink);letter-spacing:-.01em}
.ba-fix > div > span{display:block;margin-top:2px;font-size:14px;color:var(--l-ink-soft);line-height:1.45}
.ba-cta{margin-top:26px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.ba-cta p{font-size:15px;color:var(--l-ink-soft)}
.ba-cta p b{color:var(--l-ink)}
.ba-row.reveal:nth-child(1){transition-delay:.02s}
.ba-row.reveal:nth-child(2){transition-delay:.14s}
.ba-row.reveal:nth-child(3){transition-delay:.26s}
.ba-row.reveal.in{transition-delay:0s}
@media (max-width:760px){
  .ba{margin-top:48px}
  .ba-row{grid-template-columns:minmax(0,1fr);gap:0}
  .ba-arrow{height:34px}
  .ba-arrow svg{transform:rotate(90deg)}
  .ba-row:hover .ba-arrow svg{transform:rotate(90deg)}
}

/* ── Proceso en 6 pasos ────────────────────────────────── */
.steps.steps--six{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.steps--six .step:nth-child(3)::after{display:none}
.steps--six .step{overflow:visible}
.steps--six .step-n{position:relative}
.steps--six .step.in .step-n::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(147,197,253,.55);animation:stepRing 1.4s ease-out 1;animation-delay:var(--sd,.3s);opacity:0;animation-fill-mode:backwards}
@keyframes stepRing{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.5);opacity:0}}
.steps--six .step:nth-child(1){--sd:.1s;transition-delay:.02s}
.steps--six .step:nth-child(2){--sd:.2s;transition-delay:.1s}
.steps--six .step:nth-child(3){--sd:.3s;transition-delay:.18s}
.steps--six .step:nth-child(4){--sd:.4s;transition-delay:.26s}
.steps--six .step:nth-child(5){--sd:.5s;transition-delay:.34s}
.steps--six .step:nth-child(6){--sd:.6s;transition-delay:.42s}
.steps--six .step.in{transition-delay:0s}
@media (max-width:980px){
  .steps.steps--six{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps--six .step::after{display:none !important}
}
@media (max-width:620px){
  .steps.steps--six{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .ba-ico{transform:none;opacity:1;transition:none}
  .ba-arrow svg,.ba-fix{transition:none}
  .steps--six .step.in .step-n::after{animation:none}
}
