/* ============================================================
   Landing de campaña — añadidos sobre el sistema de neuralcode.cl
   (usa las mismas variables y clases; solo agrega lo propio)
   ============================================================ */

/* Hero: la columna derecha es el formulario */
.hero-2col.hero-demo { grid-template-columns: 1.05fr .95fr; align-items: center; column-gap: 48px; }

/* Chips bajo el hero */
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-chips .chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 14px -8px rgba(30,25,60,.2);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.hero-chips .chip svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- Tarjeta de formulario (demo) ---------- */
.demo-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
}
.demo-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .28; pointer-events: none;
}
.demo-badge {
  display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: var(--cyan); background: var(--grad-soft); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.demo-card h2 { font-size: 26px; margin: 0; }
.demo-card .demo-sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.stp { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--muted-2); transition: color .3s; cursor: pointer; }
.stp.active, .stp.done { color: var(--text); }
.stp-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-strong); transition: .3s; }
.stp.active .stp-num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 5px 14px -4px rgba(99,102,241,.6); }
.stp.done .stp-num { background: var(--grad-soft); color: var(--cyan); border-color: transparent; }
.stp-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; position: relative; overflow: hidden; }
.stp-line i { position: absolute; inset: 0; width: 0; background: var(--grad); transition: width .45s cubic-bezier(.2,.7,.3,1); }

.form-step { display: none; animation: fadeStep .35s cubic-bezier(.2,.7,.3,1); }
.form-step.active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input-wrap { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.input-wrap svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.input-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.input-wrap:focus-within svg { color: var(--violet); }
.input-wrap input, .input-wrap select, .input-wrap textarea { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 15px; padding: 13px 0; }
.input-wrap.textarea { align-items: flex-start; }
.input-wrap textarea { resize: vertical; min-height: 58px; line-height: 1.5; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--muted-2); }
.input-wrap.select { position: relative; }
.input-wrap.select::after { content: ""; position: absolute; right: 15px; top: 50%; transform: translateY(-25%) rotate(45deg); width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); pointer-events: none; }
.input-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px; }
.input-wrap.invalid { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.err { color: #D93A3F; font-size: 12.5px; font-weight: 600; margin-top: 6px; display: none; }
.err.show { display: block; }

.btn-block { width: 100%; }
.step2-actions { display: flex; gap: 12px; margin-top: 4px; }
.step2-actions .btn-grow { flex: 1; }

.demo-success { text-align: center; padding: 24px 6px; }
.demo-success .ok-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 26px -8px rgba(99,102,241,.6); }
.demo-success .ok-ico svg { width: 32px; height: 32px; }
.demo-success h3 { font-size: 22px; margin-bottom: 8px; }
.demo-success p { color: var(--muted); font-size: 15px; max-width: 340px; margin: 0 auto; }
.demo-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.demo-foot strong { color: var(--text); }

/* ---------- Marquee de logos (a color, girando) ---------- */
.logo-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.logo-track.rev { animation-direction: reverse; animation-duration: 52s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track + .logo-track { margin-top: 14px; }
.lm-item {
  display: inline-flex; align-items: center; gap: 11px; padding: 12px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 14px -10px rgba(30,25,60,.25);
  font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.lm-item img { width: 26px; height: 26px; object-fit: contain; flex: none; }

/* Marquee chico del hero (solo logos) */
.hero-marquee { margin-top: 40px; }
.hero-marquee .marquee-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 600; }
.hero-marquee .lm-item { padding: 9px 14px; font-size: 13.5px; }
.hero-marquee .lm-item img { width: 20px; height: 20px; }

/* ---------- Cómo funciona: chat mockup ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.how-steps { display: grid; gap: 18px; margin-top: 30px; }
.how-steps li { display: flex; gap: 15px; align-items: flex-start; }
.how-steps .n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 6px 16px -6px rgba(99,102,241,.6); }
.how-steps strong { font-family: var(--font-display); font-size: 16px; display: block; }
.how-steps p { color: var(--muted); font-size: 14.5px; margin: 2px 0 0; }

.chat-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.chat-av svg { width: 16px; height: 16px; }
.chat-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.chat-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #16A34A; }
.chat-live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.chat-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; }
.msg.in { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; color: #fff; background: var(--grad); border-bottom-right-radius: 5px; box-shadow: 0 10px 24px -12px rgba(99,102,241,.7); }
.chat-tags { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.chat-tag { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chat-tag i { width: 8px; height: 8px; border-radius: 50%; }
.chat-tag i.v { background: var(--violet); }
.chat-tag i.b { background: var(--blue); }

/* ---------- Beneficios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s; }
.benefit:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.benefit .b-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan); background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 16px; }
.benefit .b-ico svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 18px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14.5px; }

/* ---------- Prueba social (logos de clientes) ---------- */
.clients-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.client-logo { height: 84px; min-width: 172px; display: grid; place-items: center; padding: 0 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 14px -10px rgba(30,25,60,.25); transition: transform .25s, box-shadow .25s; }
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo img { max-height: 42px; width: auto; object-fit: contain; }
.client-logo.tapvia img { max-height: 48px; }

/* Nota integraciones */
.int-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 34px; color: var(--muted); font-size: 15px; font-weight: 500; text-align: center; }
.int-note svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-2col.hero-demo { grid-template-columns: 1fr; order: 2; }
  /* En móvil: el marquee de logos sube arriba del título (como referencia) */
  .hero .container { display: flex; flex-direction: column; }
  .hero-marquee { order: 1; margin-top: 0; margin-bottom: 28px; }
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .demo-card { padding: 24px 20px; }
  .step2-actions { flex-direction: column-reverse; }
  .client-logo { min-width: 140px; height: 72px; padding: 0 20px; }
}
