/* ========== BENEFICIOS ========== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.benefits-card { padding: 30px 25px 40px; overflow: hidden; }
.benefits-card .icon-circle { margin-bottom: 40px; }
.benefits-line-top,
.benefits-line-left { position: absolute; pointer-events: none; }
.benefits-line-top {
  top: 0; left: 55px;
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, var(--steel));
}
.benefits-line-left {
  top: 60px; left: 0;
  width: 25px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel));
}
.benefits-card::after {
  content: "";
  position: absolute;
  top: 60px; left: 85px; right: 30%;
  height: 1px;
  background: linear-gradient(90deg, var(--steel), transparent);
  opacity: .6;
}
.benefits-card:hover { transform: translateY(-6px); }

/* ========== SERVICIOS (tarjetas con visual) ========== */
.feature-grid { display: grid; gap: 30px; margin-bottom: 30px; }
.feature-grid-a { grid-template-columns: 1fr 1fr; }
.feature-grid-b { grid-template-columns: 1fr 1.3fr; margin-bottom: 0; }

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 560px;
  padding: 34px 30px 0;
  overflow: hidden;
  outline-offset: 4px;
}
.feature-copy { max-width: 46ch; }
.feature-visual {
  position: relative;
  flex: 1;
  min-height: 250px;
  margin: 0 -30px;
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Visual 1: pasos que se iluminan */
.v-steps { gap: 14px; padding-left: 64px; }
.v-step:not(:last-of-type) .v-step-dot::after {  /* conector entre pasos */
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--steel), transparent);
}
.v-step {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, .75);
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  transition: border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i) * 120ms);
}
.v-step-dot {
  position: absolute; left: -34px;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--muted);
  font-size: 12px;
  transition: all .5s var(--ease);
  transition-delay: calc(var(--i) * 120ms);
}
.feature-card:hover .v-step,
.feature-card.is-active .v-step,
.feature-card:focus-visible .v-step { border-color: rgba(45, 212, 191, .4); color: var(--ink); transform: translateX(6px); }
.feature-card:hover .v-step-dot,
.feature-card.is-active .v-step-dot,
.feature-card:focus-visible .v-step-dot { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); box-shadow: 0 0 14px var(--accent-glow); }

/* Visual 2: onda + nodos de flujo */
.v-flow { align-items: stretch; gap: 30px; }
.v-wave {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 90px;
}
.v-wave i {
  width: 3px;
  height: var(--h, 30px);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-soft), var(--steel));
  opacity: .55;
  transform-origin: center;
  animation: wave 1.6s ease-in-out infinite;
  animation-delay: calc(var(--w) * -90ms);
  animation-play-state: paused;
}
.feature-card:hover .v-wave i,
.feature-card.is-active .v-wave i,
.feature-card:focus-visible .v-wave i { animation-play-state: running; opacity: .9; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.1); } }

.v-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.v-nodes::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 29px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px);
}
.v-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 400; text-align: center; }
.v-node-ico {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--ink-soft);
  transition: all .5s var(--ease);
  transition-delay: calc(var(--i) * 150ms);
}
.feature-card:hover .v-node-ico,
.feature-card.is-active .v-node-ico,
.feature-card:focus-visible .v-node-ico { border-color: var(--accent-text); color: var(--accent-text); box-shadow: 0 0 22px var(--accent-glow); }

/* Visual 3: chat */
.v-chat {
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(15, 23, 42, .75);
}
.v-msg { font-size: 15px; }
.v-msg-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink); font-weight: 400; }
.v-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); color: var(--ink-soft); }
.v-avatar.bot { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.v-msg p { color: var(--muted); line-height: 1.5; }
.v-msg.bot p {
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, .25);
  border-radius: 12px;
  background: var(--accent-faint);
  color: var(--ink-soft);
  clip-path: inset(0 100% 0 0 round 12px);
  transition: clip-path 1.2s var(--ease) .2s;
}
.v-typing { display: flex; gap: 5px; padding: 4px 2px; transition: opacity .3s; }
.v-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); animation: blink 1.2s infinite; }
.v-typing i:nth-child(2) { animation-delay: .2s; }
.v-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.feature-card:hover .v-msg.bot p,
.feature-card.is-active .v-msg.bot p,
.feature-card:focus-visible .v-msg.bot p,
.v-chat.is-in .v-msg.bot p { clip-path: inset(0 0 0 0 round 12px); }
.feature-card:hover .v-typing ,
.feature-card.is-active .v-typing,
.v-chat.is-in .v-typing { opacity: 0; }

/* Visual 4: escudo + checks + barrido */
.v-sec { flex-direction: row; align-items: flex-end; gap: 30px; overflow: hidden; }
.v-shield { position: relative; flex: none; width: 150px; height: 150px; margin-bottom: 10px; display: grid; place-items: center; }
.v-shield-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed var(--steel);
  animation: spin 30s linear infinite;
}
.v-shield-ring.r2 { inset: 22px; border-style: solid; border-color: var(--line2); animation-direction: reverse; animation-duration: 20s; }
.v-shield-core {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(45, 212, 191, .35), var(--bg) 70%);
  border: 1px solid rgba(45, 212, 191, .45);
  color: var(--accent-text);
  box-shadow: 0 0 40px -6px var(--accent-glow);
}
.v-checks { flex: 1; display: grid; gap: 10px; }
.v-checks li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, .75);
  color: var(--muted);
  font-size: 15px; font-weight: 400;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  transition-delay: calc(var(--i) * 180ms);
}
.v-check {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line2);
  color: transparent;
  transition: all .4s var(--ease);
  transition-delay: calc(var(--i) * 180ms);
}
.feature-card:hover .v-checks li,
.feature-card.is-active .v-checks li,
.feature-card:focus-visible .v-checks li { color: var(--ink); border-color: rgba(45, 212, 191, .3); }
.feature-card:hover .v-check,
.feature-card.is-active .v-check,
.feature-card:focus-visible .v-check { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.v-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(45, 212, 191, .14), transparent);
  border-bottom: 1px solid rgba(45, 212, 191, .35);
  opacity: 0;
  pointer-events: none;
}
.feature-card:hover .v-scan ,
.feature-card.is-active .v-scan { opacity: 1; animation: scan 2.4s var(--ease) infinite; }
@keyframes scan { from { transform: translateY(-60px); } to { transform: translateY(300px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid-a, .feature-grid-b { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}
@media (max-width: 767px) {
  .section-top { grid-template-columns: 1fr; margin-bottom: 40px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card { padding: 28px 22px 0; }
  .feature-visual { margin: 0 -22px; padding: 0 22px 24px; }
  .v-steps { padding-left: 56px; }
  .v-sec { flex-direction: column; align-items: stretch; }
  .v-shield { margin: 0 auto; }
  .v-nodes { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .v-nodes::before { display: none; }
  .v-chat { margin: 0; }
}
