/* ════════════════════════════════════════════════════════════
   SEOTRONIX · Agents Control System — Portal cliente (prototipo)
   Extiende styles.css (navy + rojo, Manrope). Solo estilos propios
   de las vistas del flujo cliente.
   ════════════════════════════════════════════════════════════ */

:root {
  --maxw: 1080px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html { scroll-behavior: smooth; }
body { background: #fff; }

/* ── Router: una pantalla a la vez ── */
.screen { display: none; }
.screen.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .screen.active { animation: scr-in .32s var(--ease); }
}
@keyframes scr-in { from { transform: translateY(8px); } to { transform: none; } }

/* ── Wordmark / logo oficial ── */
.wm { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.wm img.brand-logo { height: 26px; width: auto; display: block; }
.appbar .wm img.brand-logo { height: 20px; }
.pub-foot .wm img.brand-logo { height: 17px; }
.wm.on-navy img.brand-logo { filter: brightness(0) invert(1); }

/* ════════════════════ APP SHELL (pantallas autenticadas) ═══════════ */
.appbar {
  position: sticky; top: 0; z-index: 60;
  height: 60px; background: var(--navy);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; color: #fff;
}
.appbar .wm { font-size: 18px; }
.appbar .sp { flex: 1; }
.appbar .ab-step {
  font-size: 11.5px; font-weight: 600; color: #aab8d0;
  display: flex; align-items: center; gap: 7px;
}
.appbar .ab-who { color: #c7d0e2; font-size: 12.5px; }
.appbar .ab-ghost {
  color: #fff; background: rgba(255,255,255,.1); border: none; border-radius: 8px;
  padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .14s;
}
.appbar .ab-ghost:hover { background: rgba(255,255,255,.18); }
.appwrap { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 26px 22px 56px; }
.appwrap.narrow { max-width: 760px; }

/* progress bar superior del wizard */
.wiz-bar { height: 3px; background: rgba(255,255,255,.14); width: 100%; }
.wiz-bar > span { display: block; height: 100%; background: var(--red); transition: width .5s var(--ease); }

/* ════════════════════ 1 · LANDING PÚBLICA ═══════════════════════ */
.pub-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 30px; background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
}
.pub-top .sp { flex: 1; }
.land { max-width: 1140px; margin: 0 auto; padding: 0 30px; }

.hero { padding: 78px 0 56px; max-width: 740px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  color: var(--red); background: var(--red-tint);
  padding: 6px 13px; border-radius: 30px; margin-bottom: 22px; white-space: nowrap;
}
.hero .eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.04; color: var(--navy);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede {
  font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-soft);
  line-height: 1.6; margin-top: 22px; max-width: 560px; text-wrap: pretty;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }
.hero .trust { display: flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.hero .trust svg { width: 15px; height: 15px; color: var(--pos); }

/* mock del producto bajo el hero */
.hero-mock {
  margin: 8px auto 0; max-width: 1000px; border-radius: 18px;
  border: 1px solid var(--rule); background: #fff;
  box-shadow: 0 30px 80px rgba(13,27,53,.16); overflow: hidden;
}
.hero-mock .hm-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--navy); border-bottom: 1px solid #0a1429;
}
.hero-mock .hm-bar .d { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.hero-mock .hm-bar .hm-url {
  margin-left: 10px; font-size: 11.5px; color: #9fb0cc; font-family: var(--mono);
}
.hero-mock .hm-body { padding: 22px; background: var(--backdrop); }

.land-section { padding: 56px 0; }
.land-section .sec-head { max-width: 600px; margin-bottom: 38px; }
.land-section .sec-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.land-section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.8px; color: var(--navy); line-height: 1.1; }
.land-section .sec-sub { font-size: 16px; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; text-wrap: pretty; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  padding: 24px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.benefit .b-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--fill-2);
  display: grid; place-items: center; color: var(--navy); margin-bottom: 16px;
}
.benefit .b-ic svg { width: 22px; height: 22px; stroke-width: 1.8; }
.benefit h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.benefit p { font-size: 13.5px; color: var(--ink-soft); margin-top: 7px; line-height: 1.55; }

/* bloque "empezá simple, conectá más después" */
.simple-block {
  background: var(--navy); border-radius: 22px; padding: 52px 48px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.simple-block h2 { color: #fff; }
.simple-block .sb-sub { color: #aeb9d0; font-size: 16px; line-height: 1.6; margin-top: 14px; }
.simple-block .sb-free {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; font-weight: 700; color: #fff; background: rgba(232,35,74,.18);
  border: 1px solid rgba(232,35,74,.4); padding: 8px 15px; border-radius: 30px;
}
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tool-pill {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; font-size: 12.5px; font-weight: 600; color: #dbe2f0;
}
.tool-pill .tp-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--red); flex-shrink: 0; }

/* CTA final */
.final-cta { text-align: center; padding: 80px 0 30px; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.9px; color: var(--navy); }
.final-cta p { font-size: 16px; color: var(--ink-soft); margin: 14px auto 30px; max-width: 460px; }

.pub-foot {
  border-top: 1px solid var(--rule); margin-top: 40px;
  padding: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.pub-foot .pf-copy { font-size: 12.5px; color: var(--muted); }
.pub-foot .sp { flex: 1; }
.pub-foot a { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.pub-foot a:hover { color: var(--navy); }

/* ════════════════════ 2 · REGISTRO ══════════════════════════════ */
.auth-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 26px; align-items: start; }
.auth-card { padding: 32px 32px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--navy); }
.auth-card .auth-sub { font-size: 14px; color: var(--ink-soft); margin-top: 7px; line-height: 1.55; }
.auth-link { font-size: 13px; color: var(--ink-soft); }
.auth-link a { color: var(--red); font-weight: 700; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 3px; background: var(--rule); transition: background .2s; }
.strength.s1 i:nth-child(1) { background: var(--neg); }
.strength.s2 i:nth-child(-n+2) { background: var(--warn); }
.strength.s3 i:nth-child(-n+3) { background: var(--pos); }

/* tarjeta lateral de pasos */
.steps-aside { padding: 30px 28px; background: var(--navy); color: #fff; border: none; }
.steps-aside h3 { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.2px; }
.steps-aside .sa-sub { font-size: 13px; color: #9fb0cc; margin-top: 6px; line-height: 1.5; }
.flow-steps { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.flow-step { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; position: relative; }
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 36px; bottom: -4px; width: 2px;
  background: rgba(255,255,255,.12);
}
.flow-step .fs-n {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; z-index: 1;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(255,255,255,.08); color: #aab8d0; border: 1px solid rgba(255,255,255,.16);
}
.flow-step.current .fs-n { background: var(--red); color: #fff; border-color: var(--red); }
.flow-step .fs-t { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.flow-step .fs-d { display: block; font-size: 12.5px; color: #9fb0cc; margin-top: 2px; line-height: 1.45; }

/* ════════════════════ WIZARD genérico (3,4,5) ══════════════════ */
.wizard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.stepper { padding: 8px 0; align-self: start; position: sticky; top: 84px; }
.step-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.step-item .si-n {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  background: var(--fill-2); color: var(--muted); transition: all .2s;
}
.step-item.done .si-n { background: var(--pos); color: #fff; }
.step-item.current .si-n { background: var(--red); color: #fff; box-shadow: 0 0 0 4px var(--red-tint); }
.step-item .si-t { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.step-item.current .si-t { color: var(--navy); font-weight: 700; }
.step-item.done .si-t { color: var(--ink); }

.wiz-panel { padding: 30px 32px; }
.wiz-panel h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.wiz-panel .wp-sub { font-size: 14px; color: var(--ink-soft); margin-top: 7px; line-height: 1.5; max-width: 52ch; }
.wiz-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 28px;
  padding-top: 20px; border-top: 1px solid var(--rule);
}
.wiz-foot .sp { flex: 1; }
.help-txt { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.input-suffix-wrap { position: relative; }
.dice-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  border: 1px solid var(--rule-strong); background: #fff; border-radius: 7px;
  width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink-soft); transition: all .14s;
}
.dice-btn:hover { border-color: var(--red); color: var(--red); }
.dice-btn svg { width: 16px; height: 16px; }
.char-count { font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 5px; }

/* ════════════════════ 4 · CEREBRO ══════════════════════════════ */
.brain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brain {
  position: relative; text-align: left; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 14px; padding: 20px;
  background: #fff; transition: border-color .16s, box-shadow .16s, transform .12s;
  display: flex; flex-direction: column; gap: 4px;
}
.brain:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.brain.sel { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.brain .br-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brain .br-logo {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.brain .br-name { font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.brain .br-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.brain .br-meta { font-size: 12px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.brain .br-check {
  position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rule-strong); display: grid; place-items: center; transition: all .16s;
}
.brain .br-check svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.brain.sel .br-check { background: var(--red); border-color: var(--red); }
.brain.sel .br-check svg { opacity: 1; }
.brain .br-badge { position: absolute; top: 16px; right: 16px; }
.brain.sel .br-badge { display: none; }
.br-badge-inline { align-self: flex-start; margin-bottom: 12px; padding-right: 38px; }

/* ════════════════════ 5 · SUPERPODERES ═════════════════════════ */
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  border: 1px solid var(--rule); border-radius: 13px; background: #fff;
  transition: border-color .14s, box-shadow .14s;
}
.tool-card.on { border-color: var(--pos); box-shadow: 0 0 0 3px var(--pos-tint); }
.tool-card .tc-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
}
.tool-card .tc-main { flex: 1; min-width: 0; }
.tool-card .tc-name { font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.tool-card .tc-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }
.tool-card .tc-foot { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.tc-connect {
  font-family: var(--sans); font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--rule-strong); background: #fff; color: var(--navy);
  padding: 5px 12px; border-radius: 7px; transition: all .14s;
}
.tc-connect:hover { border-color: var(--navy-soft); background: var(--fill); }
.tc-connect.is-on { background: var(--pos); border-color: var(--pos); color: #fff; }
.skip-note {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px; margin-bottom: 20px;
  background: var(--fill); border: 1px solid var(--rule); border-radius: 12px;
}
.skip-note svg { width: 20px; height: 20px; color: var(--navy-soft); flex-shrink: 0; }
.skip-note p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ════════════════════ 6 · PROVISIONING ═════════════════════════ */
.prov-screen {
  min-height: 100vh; background: var(--navy);
  display: flex; overflow-y: auto; padding: 30px 22px;
}
.prov-screen .prov-card { margin: auto; }
.prov-card {
  width: 100%; max-width: 480px; background: #fff; border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden;
}
.prov-head { padding: 32px 32px 22px; text-align: center; }
.prov-orb {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center; color: #fff;
}
.prov-orb svg { width: 34px; height: 34px; }
.prov-orb .ring {
  position: absolute; inset: -6px; border-radius: 26px;
  border: 2px solid transparent; border-top-color: var(--red); border-right-color: var(--red);
  animation: spin 1.1s linear infinite;
}
.prov-card.is-done .prov-orb { background: linear-gradient(135deg, var(--pos), #15694a); }
.prov-card.is-done .prov-orb .ring { display: none; }
.prov-card.is-error .prov-orb { background: linear-gradient(135deg, var(--neg), #9c1e30); }
.prov-card.is-error .prov-orb .ring { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.prov-head h1 { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.prov-head p { font-size: 13.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.55; }
.prov-agent {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: var(--fill); border: 1px solid var(--rule); padding: 6px 14px; border-radius: 30px; white-space: nowrap;
}
.prov-agent .pa-ava { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,var(--red),#b3163a); color:#fff; display:grid; place-items:center; font-size:10px; font-weight:800; }
.prov-steps { padding: 8px 24px 22px; }
.prov-step { display: flex; align-items: center; gap: 13px; padding: 10px 8px; border-radius: 10px; transition: background .2s; }
.prov-step .ps-ic {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; position: relative;
  display: grid; place-items: center; background: var(--fill-2); color: var(--muted);
  transition: all .3s;
}
.prov-step .ps-ic svg { width: 14px; height: 14px; }
.prov-step .ps-ic .mini-spin {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--red); animation: spin .9s linear infinite; opacity: 0;
}
.prov-step .ps-label { font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .3s; flex: 1; }
.prov-step .ps-state { font-size: 11px; font-weight: 700; color: var(--muted); }
.prov-step.active { background: var(--fill); }
.prov-step.active .ps-ic { background: var(--red-tint); color: var(--red); }
.prov-step.active .ps-ic .mini-spin { opacity: 1; }
.prov-step.active .ps-label { color: var(--navy); font-weight: 700; }
.prov-step.active .ps-state { color: var(--red); }
.prov-step.done .ps-ic { background: var(--pos); color: #fff; }
.prov-step.done .ps-label { color: var(--ink); }
.prov-step.done .ps-state { color: var(--pos); }
.prov-foot { padding: 0 32px 30px; }
.prov-foot .btn { width: 100%; justify-content: center; }
.prov-err-box {
  margin: 0 24px 18px; padding: 13px 15px; background: var(--neg-tint);
  border: 1px solid rgba(210,48,74,.25); border-radius: 11px;
  font-size: 13px; color: var(--neg); font-weight: 600; display: none;
}
.prov-card.is-error .prov-err-box { display: block; }
.prov-replay {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; background: rgba(255,255,255,.1); border-radius: 30px; padding: 5px;
}
.prov-replay button { font: inherit; font-size: 11px; font-weight: 700; color: #aab8d0; background: none; border: none; cursor: pointer; padding: 5px 11px; border-radius: 22px; }
.prov-replay button:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ════════════════════ 7 · CHAT ═════════════════════════════════ */
.chat-shell {
  display: flex; flex-direction: column;
  height: calc(100vh - 60px);
}
.chat-head {
  display: flex; align-items: center; gap: 13px; padding: 14px 22px;
  border-bottom: 1px solid var(--rule); background: #fff; flex-shrink: 0;
}
.chat-head .ch-ava {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #b3163a); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.chat-head .ch-name { font-size: 15.5px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.chat-head .ch-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.chat-head .live { display: inline-flex; align-items: center; gap: 5px; color: var(--pos); font-weight: 700; }
.chat-head .live .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-tint); }
.chat-head .ch-site { font-family: var(--mono); }
.chat-head .ch-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-mini {
  font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--rule); background: #fff; color: var(--ink-soft);
  padding: 6px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s; white-space: nowrap;
}
.chat-mini:hover { border-color: var(--navy-soft); color: var(--navy); }
.chat-mini svg { width: 14px; height: 14px; }

.chat-body { flex: 1; overflow-y: auto; background: var(--backdrop); padding: 22px 0; }
.chat-inner { max-width: 760px; margin: 0 auto; padding: 0 22px; display: flex; flex-direction: column; gap: 14px; }
.cmsg { display: flex; gap: 11px; max-width: 86%; }
.cmsg.user { align-self: flex-end; flex-direction: row-reverse; }
.cmsg .cm-ava {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff;
}
.cmsg.bot .cm-ava { background: linear-gradient(135deg, var(--red), #b3163a); }
.cmsg.user .cm-ava { background: var(--navy-soft); }
.cmsg .cm-bubble {
  padding: 12px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
}
.cmsg.bot .cm-bubble { border-top-left-radius: 4px; }
.cmsg.user .cm-bubble { background: var(--navy); color: #fff; border: none; border-top-right-radius: 4px; }
.cmsg .cm-bubble b { font-weight: 700; }
.cmsg.bot .cm-bubble b { color: var(--navy); }

.chat-foot { flex-shrink: 0; border-top: 1px solid var(--rule); background: #fff; padding: 12px 0 14px; }
.chat-foot-inner { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.quick-chip {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--navy-soft); background: var(--fill); border: 1px solid var(--rule);
  border-radius: 30px; padding: 7px 14px; transition: all .14s;
}
.quick-chip:hover { border-color: var(--red); color: var(--red); background: #fff; }
.chat-input {
  display: flex; align-items: flex-end; gap: 9px;
  border: 1.5px solid var(--rule-strong); border-radius: 14px; padding: 8px 8px 8px 15px; background: #fff;
  transition: border-color .15s;
}
.chat-input:focus-within { border-color: var(--navy); }
.chat-input textarea {
  flex: 1; border: none; outline: none; resize: none; font-family: var(--sans);
  font-size: 14px; color: var(--ink); line-height: 1.5; max-height: 120px; background: none; padding: 4px 0;
}
.chat-input .send {
  width: 38px; height: 38px; border-radius: 10px; background: var(--red); border: none;
  cursor: pointer; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: background .14s;
}
.chat-input .send:hover { background: var(--red-2); }
.chat-input .send svg { width: 18px; height: 18px; }
.typing span { display: inline-block; animation: blink 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100%{opacity:.25} 50%{opacity:1} }

/* ════════════════════ 8 · PORTAL HOME ══════════════════════════ */
.portal-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.agent-hero {
  display: flex; align-items: center; gap: 18px; padding: 24px; grid-column: 1 / -1;
  background: var(--navy); color: #fff; border: none;
}
.agent-hero .ah-ava {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #b3163a); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 24px;
}
.agent-hero .ah-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.agent-hero .ah-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 13px; color: #aeb9d0; flex-wrap: wrap; }
.agent-hero .ah-meta .live { display: inline-flex; align-items: center; gap: 5px; color: #3fce8e; font-weight: 700; }
.agent-hero .ah-meta .live .ld { width: 7px; height: 7px; border-radius: 50%; background: #3fce8e; }
.agent-hero .ah-meta .ah-site { font-family: var(--mono); color: #c7d0e2; }
.agent-hero .ah-cta { margin-left: auto; }
.agent-hero .ah-cta .btn-red { box-shadow: 0 8px 24px rgba(232,35,74,.35); }

.home-card-title { font-size: 13.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.home-card-title svg { width: 16px; height: 16px; color: var(--navy-soft); flex-shrink: 0; }
.ctx-summary { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.next-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.next-step:last-child { border-bottom: none; }
.next-step .ns-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--rule-strong);
  display: grid; place-items: center;
}
.next-step.done .ns-check { background: var(--pos); border-color: var(--pos); }
.next-step .ns-check svg { width: 12px; height: 12px; color: #fff; }
.next-step .ns-main { flex: 1; min-width: 0; }
.next-step .ns-t { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.next-step.done .ns-t { color: var(--muted); text-decoration: line-through; }
.next-step .ns-d { font-size: 12px; color: var(--muted); margin-top: 1px; }
.next-step .ns-go { font-size: 12px; font-weight: 700; color: var(--red); cursor: pointer; background: none; border: none; font-family: var(--sans); white-space: nowrap; }
.next-step .ns-go:hover { text-decoration: underline; }

.tool-mini { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tool-mini:last-child { border-bottom: none; }
.tool-mini .tm-logo { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; }
.tool-mini .tm-name { font-size: 13px; font-weight: 600; color: var(--navy); flex: 1; }

.activity { position: relative; padding-left: 22px; }
.activity::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.act-item { position: relative; padding: 0 0 16px; }
.act-item:last-child { padding-bottom: 0; }
.act-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--rule-strong); }
.act-item.hot::before { background: var(--red); border-color: var(--red); }
.act-time { font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.act-text { font-size: 13px; color: var(--ink); margin-top: 2px; line-height: 1.45; }

/* ════════════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 920px) {
  .benefits, .tool-grid { grid-template-columns: 1fr 1fr; }
  .simple-block { grid-template-columns: 1fr; gap: 30px; padding: 38px 28px; }
  .auth-grid { grid-template-columns: 1fr; }
  .steps-aside { order: -1; }
  .wizard-grid { grid-template-columns: 1fr; }
  .stepper { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }
  .step-item { padding: 8px 12px; }
  .step-item .si-t { display: none; }
  .step-item.current .si-t { display: block; }
  .brain-grid, .tool-list { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .agent-hero { flex-wrap: wrap; }
  .agent-hero .ah-cta { margin-left: 0; width: 100%; }
  .agent-hero .ah-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .land, .pub-top { padding-left: 18px; padding-right: 18px; }
  .pub-top { gap: 10px; }
  .hero { padding: 48px 0 36px; }
  .benefits, .tool-grid { grid-template-columns: 1fr; }
  .appwrap { padding: 18px 16px 48px; }
  .wiz-panel, .auth-card, .steps-aside { padding: 22px 20px; }
  .appbar { padding: 0 16px; }
  .appbar .ab-step { display: none; }
  .chat-inner, .chat-foot-inner { padding: 0 16px; }
  .cmsg { max-width: 94%; }
}

/* ════════════════════════════════════════════════════════════
   PRICING / PLANES / CHECKOUT / PAGO  (ampliación)
   ════════════════════════════════════════════════════════════ */

/* ── Pricing en landing (3 cards) ── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 24px 60px rgba(13,27,53,.28); transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-3px); }
.pc-badge {
  display: inline-flex; align-self: flex-start; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 4px 11px; border-radius: 30px;
  background: var(--fill-2); color: var(--navy-soft); margin-bottom: 16px;
}
.price-card.featured .pc-badge { background: var(--red); color: #fff; }
.pc-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.price-card.featured .pc-name { color: #fff; }
.pc-price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.pc-price .pc-cur { font-size: 15px; font-weight: 700; color: var(--muted); }
.pc-price .pc-num { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pc-price .pc-per { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-card.featured .pc-num { color: #fff; }
.price-card.featured .pc-cur, .price-card.featured .pc-per { color: #aab8d0; }
.pc-desc { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 6px 0 18px; min-height: 58px; }
.price-card.featured .pc-desc { color: #c7d0e2; }
.pc-cta { width: 100%; justify-content: center; margin-bottom: 20px; }
.pc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.price-card.featured .pc-list li { color: #dbe2f0; }
.pc-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.pc-list li.yes svg { color: var(--pos); }
.pc-list li.no { color: var(--faint); }
.price-card.featured .pc-list li.no { color: #6f7d9c; }
.pc-list li.no svg { color: var(--faint); }
.price-card.featured .pc-list li.no svg { color: #6f7d9c; }
.pc-divider { height: 1px; background: var(--rule); margin: 16px 0; }
.price-card.featured .pc-divider { background: rgba(255,255,255,.12); }
.pc-sublabel { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.price-card.featured .pc-sublabel { color: #8493b0; }
.pricing-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 24px; line-height: 1.5; }

/* ── Tabla comparativa ── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
table.cmp th, table.cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
table.cmp thead th { background: var(--fill); font-size: 12px; font-weight: 800; color: var(--navy); letter-spacing: -.1px; }
table.cmp thead th.col-plan { text-align: center; }
table.cmp thead th.is-featured { color: var(--red); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover td { background: var(--fill); }
table.cmp .cmp-feat { font-size: 13px; font-weight: 600; color: var(--ink); }
table.cmp td.cell { text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.cmp td.is-featured { background: rgba(232,35,74,.035); }
table.cmp tbody tr:hover td.is-featured { background: rgba(232,35,74,.06); }
.cell-yes { display: inline-flex; align-items: center; gap: 5px; color: var(--pos); font-weight: 700; }
.cell-yes svg { width: 15px; height: 15px; }
.cell-no { color: var(--faint); font-weight: 600; }
.cell-txt { color: var(--ink-soft); font-weight: 600; }
.cell-strong { color: var(--navy); font-weight: 800; }

/* ── Cards de selección de plan (onboarding) ── */
.plan-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.plan-opt {
  position: relative; text-align: left; cursor: pointer; display: flex; flex-direction: column;
  border: 1.5px solid var(--rule); border-radius: 15px; padding: 18px 18px 20px; background: #fff;
  transition: border-color .16s, box-shadow .16s, transform .12s;
}
.plan-opt:hover { transform: translateY(-2px); border-color: var(--rule-strong); }
.plan-opt.sel { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.plan-opt .po-badge {
  position: absolute; top: -10px; left: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 3px 10px; border-radius: 30px;
  background: var(--fill-2); color: var(--navy-soft);
}
.plan-opt.is-rec .po-badge { background: var(--red); color: #fff; }
.plan-opt .po-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.plan-opt .po-price { display: flex; align-items: baseline; gap: 3px; margin: 7px 0 3px; }
.plan-opt .po-num { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan-opt .po-cur { font-size: 13px; font-weight: 700; color: var(--muted); }
.plan-opt .po-per { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-opt .po-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin: 6px 0 13px; }
.plan-opt .po-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; flex: 1; }
.plan-opt .po-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink); line-height: 1.35; }
.plan-opt .po-list li svg { width: 14px; height: 14px; color: var(--pos); flex-shrink: 0; margin-top: 1px; }
.plan-opt .po-select {
  width: 100%; justify-content: center; font-family: var(--sans); font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--rule-strong); background: #fff; color: var(--navy);
  padding: 9px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: all .14s;
}
.plan-opt:hover .po-select { border-color: var(--navy-soft); }
.plan-opt.sel .po-select { background: var(--red); border-color: var(--red); color: #fff; }

/* ── 'Tu selección' resumen ── */
.sel-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px 20px; background: var(--fill); border: 1px solid var(--rule); border-radius: 14px;
}
.sel-summary .ss-label { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.sel-summary .ss-item { display: flex; flex-direction: column; gap: 2px; }
.sel-summary .ss-val { font-size: 14px; font-weight: 700; color: var(--navy); }
.sel-summary .ss-val.price { color: var(--red); }
.sel-summary .ss-sp { flex: 1; }

/* ── Checkout ── */
.co-card { padding: 30px 32px; max-width: 560px; margin: 0 auto; }
.co-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.co-sub { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.co-summary { margin: 24px 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.co-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.co-row:last-child { border-bottom: none; }
.co-row .co-k { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.co-row .co-v { font-size: 13.5px; color: var(--navy); font-weight: 700; text-align: right; min-width: 0; word-break: break-word; }
.co-row.total { background: var(--fill); }
.co-row.total .co-k { font-size: 13px; color: var(--navy); font-weight: 800; }
.co-row.total .co-v { font-size: 18px; color: var(--red); font-weight: 800; }
.co-row.total .co-v small { font-size: 12px; color: var(--muted); font-weight: 600; }
.co-secure { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; justify-content: center; }
.co-secure svg { width: 15px; height: 15px; color: var(--pos); }
.co-micro { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.co-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.co-actions .btn { width: 100%; justify-content: center; }
.stripe-mark {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #635bff;
  font-size: 12.5px; letter-spacing: -.2px;
}
.demo-strip {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule-strong);
}
.demo-strip .dl-label { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.demo-strip button {
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 7px;
  border: 1px solid var(--rule-strong); background: #fff; color: var(--ink-soft); padding: 5px 11px;
}
.demo-strip button:hover { border-color: var(--navy-soft); color: var(--navy); }

/* ── Estados de pago (aprobado / fallido) ── reusa prov-screen ── */
.pay-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #fff;
}
.pay-ok .pay-icon { background: linear-gradient(135deg, var(--pos), #15694a); }
.pay-fail .pay-icon { background: linear-gradient(135deg, var(--neg), #9c1e30); }
.pay-icon svg { width: 36px; height: 36px; }
.pay-card { max-width: 460px; }

/* ── Tool locked (superpoderes por plan) ── */
.tool-card.locked { background: var(--fill); border-style: dashed; }
.tool-card.locked .tc-logo { filter: grayscale(1); opacity: .55; }
.tool-card.locked .tc-name { color: var(--ink-soft); }
.tc-lock {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; background: var(--warn-tint); color: var(--warn); white-space: nowrap;
}
.tc-lock svg { width: 12px; height: 12px; }
.tc-connect:disabled { opacity: .5; cursor: not-allowed; }
.upgrade-inline {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 18px;
  padding: 15px 18px; border-radius: 13px;
  background: linear-gradient(100deg, var(--navy), var(--navy-soft)); color: #fff;
}
.upgrade-inline .ui-txt { font-size: 13px; color: #dbe2f0; flex: 1; min-width: 180px; line-height: 1.45; }
.upgrade-inline .ui-txt b { color: #fff; }

/* ── Plan badge (chat / portal) ── */
.plan-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; background: var(--fill-2); color: var(--navy-soft);
}
.plan-pill .pp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.plan-pill.on-navy { background: rgba(255,255,255,.1); color: #dbe2f0; }

/* ── Portal: plan actual + upgrade ── */
.plan-now { display: flex; flex-direction: column; gap: 3px; }
.plan-now .pn-name { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.plan-now .pn-price { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-now .pn-price b { color: var(--red); font-weight: 800; font-size: 15px; }
.meter { height: 7px; border-radius: 5px; background: var(--fill-2); overflow: hidden; margin-top: 4px; }
.meter > span { display: block; height: 100%; border-radius: 5px; background: var(--navy-soft); }
.upgrade-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border: none;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.upgrade-card .uc-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.upgrade-card .uc-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.upgrade-card .uc-desc { font-size: 13px; color: #c7d0e2; line-height: 1.5; }
.upgrade-card .btn { align-self: flex-start; margin-top: 4px; }
.tool-mini.locked .tm-logo { filter: grayscale(1); opacity: .5; }
.tool-mini.locked .tm-name { color: var(--muted); }

@media (max-width: 920px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; order: -1; }
  .price-card.featured:hover { transform: translateY(-3px); }
  .plan-select { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sel-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sel-summary .ss-sp { display: none; }
  .sel-summary [data-go] { width: 100%; }
  .sel-summary [data-go] .btn, .sel-summary .btn { width: 100%; justify-content: center; }
  .co-card { padding: 22px 18px; }
}

/* ════════════════════════════════════════════════════════════
   LOGIN (SPA)
   ════════════════════════════════════════════════════════════ */
.login-wrap-spa { max-width: 420px; margin: 10px auto 0; }
.login-card-spa { padding: 32px 32px; }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.or-divider span { flex: 1; height: 1px; background: var(--rule); }

/* ════════════════════════════════════════════════════════════
   HERO · split + mocks por canal (estilo captura real)
   ════════════════════════════════════════════════════════════ */
.hero-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 50px 0 36px; max-width: none; }
.hero-split .hero-copy { max-width: 510px; }
.hero-split h1 { font-size: clamp(31px, 4vw, 47px); }
.hero-split .lede { margin-top: 18px; }
.hero-split .cta-row { margin-top: 28px; }
.hero-visual { position: relative; min-width: 0; }

/* tabs de canal */
.channel-tabs { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.ch-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 30px; border: 1px solid var(--rule); background: #fff; cursor: pointer; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); transition: border-color .15s, box-shadow .15s, color .15s; }
.ch-tab:hover { border-color: var(--rule-strong); color: var(--navy); }
.ch-tab.on { border-color: var(--ch); color: var(--navy); box-shadow: 0 5px 14px rgba(13,27,53,.09); }
.ch-tab .cht-ic { width: 20px; height: 20px; border-radius: 6px; background: var(--ch); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.ch-tab .cht-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 3px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(232,35,74,.16); }
.cs-cap { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.5; }
.cs-cap b { color: var(--ink-soft); font-weight: 700; }

.channel-mock { position: relative; min-height: 466px; display: flex; align-items: center; justify-content: center; }
.cm-frame { width: 100%; margin: 0 auto; transform-origin: top center; animation: cm-in .42s var(--ease); }
.cm-frame .ph { width: 270px; }
@keyframes cm-in { from { transform: translateY(10px); } to { transform: none; } }

/* ── chrome de ventana desktop (Mac) ── */
.win { border-radius: 12px; overflow: hidden; box-shadow: 0 32px 74px rgba(13,27,53,.24); border: 1px solid rgba(13,27,53,.10); background: #fff; }
.macbar { height: 24px; background: linear-gradient(#3a3a3d,#2c2c2f); display: flex; align-items: center; gap: 14px; padding: 0 11px; color: #e9e9ec; font-size: 11px; }
.macbar .apple { font-size: 12px; opacity: .92; }
.macbar .mb-app { font-weight: 800; }
.macbar .mb-menus { display: flex; gap: 13px; color: #c9c9cd; font-weight: 500; }
.macbar .mb-right { margin-left: auto; display: flex; gap: 10px; align-items: center; color: #cfcfd3; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; }
.lr { background: #ff5f57; } .ly { background: #febc2e; } .lg { background: #28c840; }

/* ── Slack ── */
.slk2 .slk2-bar { height: 38px; background: #350d36; display: flex; align-items: center; gap: 12px; padding: 0 13px; }
.slk2 .slk2-nav { display: inline-flex; gap: 12px; color: #b9a7b9; font-size: 13px; }
.slk2 .slk2-search { flex: 1; max-width: 320px; margin: 0 auto; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #cbbccb; font-size: 11.5px; padding: 5px 11px; }
.slk2 .slk2-body { display: grid; grid-template-columns: 50px 150px 1fr; min-height: 372px; }
.slk2 .slk2-rail { background: #3f0e40; display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 12px 0; }
.slk2 .slk2-rail .rico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.slk2 .slk2-rail .rico.home { background: #fff; color: #3f0e40; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.slk2 .slk2-rail .rico.dim { background: rgba(255,255,255,.12); color: #d7c7d7; font-size: 15px; }
.slk2 .slk2-side { background: #3f0e40; color: #cdbccd; padding: 10px 0; }
.slk2 .slk2-ws { display: flex; align-items: center; justify-content: space-between; padding: 0 13px 11px; border-bottom: 1px solid rgba(255,255,255,.10); margin-bottom: 9px; }
.slk2 .slk2-ws b { color: #fff; font-size: 14px; font-weight: 800; }
.slk2 .slk2-ws .ed { width: 22px; height: 22px; border-radius: 6px; background: #fff; color: #3f0e40; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.slk2 .si { font-size: 13px; padding: 5px 14px; color: #d2c4d2; display: flex; align-items: center; gap: 8px; }
.slk2 .si .ph { opacity: .8; }
.slk2 .si.sec { font-size: 11px; color: #9d8a9d; font-weight: 700; padding-top: 9px; }
.slk2 .si.active { background: #1164a3; color: #fff; font-weight: 700; }
.slk2 .si .unread { margin-left: auto; background: #cd2553; color: #fff; font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 9px; }
.slk2 .slk2-main { background: #fff; display: flex; flex-direction: column; min-width: 0; }
.slk2 .ch-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.slk2 .ch-head .ct { font-size: 14px; font-weight: 800; color: var(--navy); }
.slk2 .ch-head .cm { font-size: 11px; color: var(--muted); margin-left: 2px; }
.slk2 .feed { padding: 13px 16px; display: flex; flex-direction: column; gap: 15px; overflow: hidden; min-width: 0; }
.slk2 .smsg { display: flex; gap: 9px; min-width: 0; }
.slk2 .smsg > div { min-width: 0; flex: 1; }
.slk2 .smsg .av { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; background-size: cover; }
.slk2 .smsg .nm { font-size: 13px; font-weight: 800; color: #1d1c1d; display: flex; align-items: center; gap: 7px; }
.slk2 .smsg .slkapp { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; background: #e8e8e8; color: #616061; padding: 1px 5px; border-radius: 4px; }
.slk2 .smsg .tm { font-size: 11px; color: #8d8d8d; font-weight: 500; }
.slk2 .smsg .tx { font-size: 13px; line-height: 1.55; color: #1d1c1d; margin-top: 2px; overflow-wrap: anywhere; }
.slk2 .smsg .tx code { background: #f4eef5; color: #c0386b; font-family: var(--mono); font-size: 11.5px; padding: 1px 5px; border-radius: 4px; }
.slk2 .react { display: inline-flex; gap: 6px; margin-top: 8px; }
.slk2 .react span { display: inline-flex; align-items: center; gap: 5px; background: #f0f6ff; border: 1px solid #c6dcfb; color: #1164a3; border-radius: 12px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.slk2 .thread { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #1164a3; font-weight: 700; }
.slk2 .thread .ta { display: inline-flex; }
.slk2 .thread .ta i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; margin-right: -4px; border: 1.5px solid #fff; background-size: cover; }

/* ── Chrome (browser) para web + gmail ── */
.cbar { height: 36px; background: #dde1e7; display: flex; align-items: flex-end; gap: 7px; padding: 7px 10px 0; }
.cbar .ctab { background: #f6f8fc; border-radius: 9px 9px 0 0; padding: 7px 11px; font-size: 11px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; max-width: 168px; white-space: nowrap; overflow: hidden; }
.cbar .ctab .fav { width: 13px; height: 13px; border-radius: 3px; flex-shrink: 0; }
.cbar .ctab.bg { background: #cdd2da; color: #6b7280; max-width: 120px; }
.caddr { height: 38px; background: #f6f8fc; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid #e2e6ec; }
.caddr .nav { color: #80868b; font-size: 13px; display: inline-flex; gap: 9px; }
.caddr .url { flex: 1; background: #e8eaed; border-radius: 16px; padding: 6px 14px; font-size: 11.5px; color: #5f6368; font-family: var(--mono); display: flex; align-items: center; gap: 7px; }
.caddr .url .lock { font-size: 10px; }

/* ── Gmail ── */
.gm2 { background: #f6f8fc; }
.gm2 .gm-top { display: flex; align-items: center; gap: 14px; padding: 9px 16px; background: #fff; }
.gm2 .gm-logo { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 500; color: #5f6368; }
.gm2 .gm-logo .gx { color: #ea4335; font-weight: 800; }
.gm2 .gm-search { flex: 1; max-width: 320px; background: #eaf1fb; border-radius: 9px; padding: 7px 13px; font-size: 11.5px; color: #5f6368; }
.gm2 .gm-card { background: #fff; margin: 12px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.gm2 .gm-tools { display: flex; align-items: center; gap: 15px; padding: 9px 16px; border-bottom: 1px solid #eef0f3; color: #5f6368; }
.gm2 .gm-tools svg { width: 16px; height: 16px; }
.gm2 .gm-in { padding: 16px 18px; }
.gm2 .gm-subj { font-size: 17px; font-weight: 500; color: #202124; display: flex; align-items: center; gap: 9px; }
.gm2 .gm-subj .lbl { font-size: 10px; font-weight: 600; background: #e8eaed; color: #5f6368; padding: 2px 8px; border-radius: 4px; }
.gm2 .gm-snd { display: flex; align-items: center; gap: 11px; margin: 15px 0 13px; }
.gm2 .gm-snd .av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,#e8710a,#c85d00); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; background-size: cover; }
.gm2 .gm-snd .nm { font-size: 13px; color: #202124; font-weight: 700; }
.gm2 .gm-snd .nm span { font-weight: 400; color: #5f6368; }
.gm2 .gm-snd .to { font-size: 11.5px; color: #5f6368; }
.gm2 .gm-snd .dt { margin-left: auto; font-size: 11px; color: #5f6368; }
.gm2 .gm-txt { font-size: 13.5px; line-height: 1.7; color: #202124; }
.gm2 .gm-txt p { margin-bottom: 11px; }
.gm2 .gm-sign { color: #5f6368; }
.gm2 .gm-act { display: flex; gap: 10px; margin-top: 18px; }
.gm2 .gm-btn { font-size: 13px; font-weight: 500; color: #444746; border: 1px solid #dadce0; border-radius: 20px; padding: 7px 18px; display: inline-flex; align-items: center; gap: 8px; }
.gm2 .gm-btn svg { width: 15px; height: 15px; }

/* ── Web (producto propio) en browser ── */
.cm-web2 .cm-head { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--rule); background: #fff; }
.cm-web2 .cm-ava { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--red), #b3163a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cm-web2 .cm-nm { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.cm-web2 .cm-sub { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cm-web2 .cm-sub .lv { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.cm-web2 .cm-body { background: var(--backdrop); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 264px; }
.cm-web2 .wb { display: flex; gap: 9px; max-width: 86%; }
.cm-web2 .wb.me { align-self: flex-end; flex-direction: row-reverse; }
.cm-web2 .wb .a { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--red), #b3163a); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; flex-shrink: 0; }
.cm-web2 .wb.me .a { background: var(--navy-soft); }
.cm-web2 .wb .t { background: #fff; border: 1px solid var(--rule); border-radius: 13px; border-top-left-radius: 4px; padding: 9px 12px; font-size: 12px; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow-sm); }
.cm-web2 .wb.me .t { background: var(--navy); color: #fff; border: none; border-top-right-radius: 4px; border-top-left-radius: 13px; }
.cm-web2 .cm-input { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-top: 1px solid var(--rule); }
.cm-web2 .cm-input span { flex: 1; color: var(--muted); font-size: 12.5px; }
.cm-web2 .cm-input b { width: 30px; height: 30px; border-radius: 8px; background: var(--red); display: grid; place-items: center; }
.cm-web2 .cm-input b svg { width: 15px; height: 15px; color: #fff; }

/* ── Teléfono (WhatsApp / Telegram) ── */
.ph { width: 270px; margin: 0 auto; border-radius: 38px; background: #0d1b35; padding: 9px; box-shadow: 0 32px 64px rgba(13,27,53,.34); }
.ph-screen { border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; font-size: 11px; font-weight: 700; color: #fff; }
.ph-status .rt { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; }
.ph-head { display: flex; align-items: center; gap: 9px; padding: 6px 12px 11px; color: #fff; }
.ph-head .bk { font-size: 19px; font-weight: 600; opacity: .9; }
.ph-head .av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; background-size: cover; }
.ph-head .nm { font-size: 13.5px; font-weight: 700; line-height: 1.1; }
.ph-head .st { font-size: 10.5px; opacity: .85; }
.ph-head .ico { margin-left: auto; display: inline-flex; gap: 14px; opacity: .92; }
.ph-head .ico svg { width: 17px; height: 17px; }
.ph-body { padding: 12px 11px; min-height: 270px; display: flex; flex-direction: column; gap: 6px; }
.pb { max-width: 80%; padding: 7px 10px 5px; font-size: 12px; line-height: 1.42; border-radius: 11px; position: relative; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.pb .tt { font-size: 9.5px; opacity: .55; margin-left: 9px; white-space: nowrap; }
.pb .ck { color: #4fc3f7; font-weight: 700; }
.ph-input { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }

/* WhatsApp */
.cm-wa2 .ph-status, .cm-wa2 .ph-head { background: #075e54; }
.cm-wa2 .ph-head .av { background: linear-gradient(135deg,#25d366,#0c8b5a); color: #053d31; }
.cm-wa2 .ph-body { background: #e4ddd4; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 13px 13px; }
.cm-wa2 .pb { color: #0b1f1c; }
.cm-wa2 .pb.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.cm-wa2 .pb.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.cm-wa2 .ph-input { background: #f0f0f0; }
.cm-wa2 .ph-input .box { flex: 1; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 11.5px; color: var(--muted); }
.cm-wa2 .ph-input .snd { width: 34px; height: 34px; border-radius: 50%; background: #075e54; display: grid; place-items: center; color: #fff; }
.cm-wa2 .ph-input .snd svg { width: 16px; height: 16px; }

/* Telegram */
.cm-tg2 .ph-status, .cm-tg2 .ph-head { background: #4c7da4; }
.cm-tg2 .ph-head .av { background: linear-gradient(135deg,#4fc3f7,#2aabee); color: #fff; }
.cm-tg2 .ph-body { background: #cdd9e3; }
.cm-tg2 .pb { color: #1a2733; }
.cm-tg2 .pb.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.cm-tg2 .pb.out { align-self: flex-end; background: #effdde; border-top-right-radius: 3px; }
.cm-tg2 .pb.out .ck { color: #5aab4f; }
.cm-tg2 .ph-input { background: #fff; border-top: 1px solid var(--rule); }
.cm-tg2 .ph-input .box { flex: 1; color: var(--muted); font-size: 12px; }
.cm-tg2 .ph-input .snd { color: #2aabee; font-size: 15px; font-weight: 800; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 20px; }
  .hero-split .hero-copy { max-width: 640px; }
  .channel-mock { min-height: 0; display: block; }
  .cm-frame { width: max-content; max-width: none; }
  .cm-frame .win { width: 440px; }
  .cm-frame .ph { margin: 0 auto; }
}
