/* ============================================================
   ARMA BROKER — Landing de ventas
   Design tokens espejados del dashboard (Manrope · navy · blue · gold)
   ============================================================ */

:root {
  /* Neutros */
  --ink: #1c1917;
  --ink-soft: #292524;
  --paper: #fafaf9;
  --paper-pure: #ffffff;
  --paper-edge: #f5f5f4;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --muted: #78716c;

  /* Marca */
  --navy: #0a1628;
  --navy-700: #122036;
  --navy-600: #1a2c47;
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --blue-soft: #a6cfe8;
  --gold: #c2840a;
  --gold-bright: #f5a623;
  --gold-deep: #e08c00;

  /* Estados / colores de lead */
  --green: #16a34a;
  --yellow: #eab308;
  --red: #dc2626;
  --black-dot: #1c1917;
  --slate: #475569;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.04);
  --shadow-md: 0 10px 30px -10px rgba(10,22,40,.18);
  --shadow-lg: 0 30px 60px -20px rgba(10,22,40,.35);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Foco visible accesible (no existía ninguno: al tabular no se veía nada) */
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .why :focus-visible,
.final-cta :focus-visible, .color-system :focus-visible,
.includes-extra :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.hl { color: var(--gold-bright); }
.hl-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #2a1a02; box-shadow: 0 8px 20px -6px rgba(224,140,0,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -6px rgba(224,140,0,.6); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.ic-wa { width: 20px; height: 20px; fill: currentColor; }
.btn-primary .ic-wa { fill: #128c7e; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,22,40,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.18rem; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  box-shadow: 0 4px 12px -2px rgba(30,136,229,.5);
}
.brand-name { letter-spacing: -.02em; }
.brand-accent { color: var(--gold-bright); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.78); font-weight: 600; font-size: .92rem; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 14px 24px 22px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a { color: rgba(255,255,255,.85); font-weight: 600; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* overflow-x:clip recorta el sangrado horizontal del glow, pero deja que la
     statbar (margin-bottom negativo) se monte sobre la sección de abajo sin cortarse. */
  position: relative; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(30,136,229,.22), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(245,166,35,.10), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0c1a30 60%, #0e1e38 100%);
  color: #fff; padding: 56px 0 0;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 80% 30%, rgba(30,136,229,.18), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; padding-bottom: 56px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-bright);
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.14rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 30px; }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.72); font-weight: 600; }
.hero-microtrust { margin: -8px 0 22px; font-size: .82rem; color: rgba(255,255,255,.66); font-weight: 600; }
.ic { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; max-width: 88vw; background: #0b141a;
  border-radius: 38px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0b141a; border-radius: 0 0 14px 14px; z-index: 3; }
.wa { background: #0b141a; border-radius: 28px; overflow: hidden; }
.wa-head {
  display: flex; align-items: center; gap: 8px; padding: 30px 14px 10px;
  background: #1f2c33; color: #e9edef;
}
.wa-back { font-size: 1.2rem; color: #8696a0; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#25d366,#128c7e); display: grid; place-items: center; font-weight: 800; color: #fff; }
.wa-id { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.wa-id strong { font-size: .92rem; }
.wa-status { font-size: .72rem; color: #8696a0; display: flex; align-items: center; gap: 5px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #25d366; display: inline-block; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2.4s infinite; }
.wa-icons { font-size: .78rem; letter-spacing: 4px; opacity: .7; }
.wa-body {
  padding: 14px 12px 16px; background:
    linear-gradient(rgba(11,20,26,.94), rgba(11,20,26,.94)),
    repeating-linear-gradient(45deg, #11202a 0 12px, #0e1b24 12px 24px);
  display: flex; flex-direction: column; gap: 7px; height: 430px; overflow: hidden;
  /* El chat "scrolleado" se desvanece arriba en vez de cortarse a la mitad (se ve pro). */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34px);
}
.wa-day { align-self: center; font-size: .64rem; color: #8696a0; background: #182229; padding: 4px 10px; border-radius: 8px; margin-bottom: 4px; }
.bubble { max-width: 84%; padding: 7px 10px 16px; border-radius: 10px; font-size: .8rem; position: relative; color: #e9edef; box-shadow: 0 1px 1px rgba(0,0,0,.2); }
.bubble .t { position: absolute; right: 8px; bottom: 4px; font-size: .58rem; color: rgba(233,237,239,.55); }
.bubble.in { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: #056162; border-top-right-radius: 3px; }
.wa-system { align-self: center; text-align: center; font-size: .68rem; color: #b9f5c9; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25); padding: 6px 12px; border-radius: 10px; margin-top: 6px; }

/* Aparición secuencial de los mensajes (como conversación real) — SOLO con JS.
   Sin JS, las burbujas se ven todas de una (el failsafe del <head> les pone .wa-show). */
.js .wa-body .bubble,
.js .wa-body .wa-system { display: none; }
.js .wa-body .bubble.wa-show,
.js .wa-body .wa-system.wa-show { display: block; }
.wa-show.wa-pop { animation: waPop .26s ease-out both; }
@keyframes waPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
/* Indicador de "escribiendo…" de Matilde */
.wa-typing { display: inline-flex !important; align-items: center; gap: 5px; padding: 12px 13px !important; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(233,237,239,.75); display: inline-block; animation: waDot 1.1s infinite ease-in-out; }
.wa-typing i:nth-child(2) { animation-delay: .18s; }
.wa-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes waDot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }

.card-float {
  position: absolute; background: var(--paper-pure); color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px;
  animation: floaty 4s ease-in-out infinite;
}
.card-float b { color: var(--blue-dark); }
.card-float .cf-dot { width: 9px; height: 9px; border-radius: 50%; }
.card-float .green { background: var(--green); }
/* En las esquinas del teléfono: no tapan el header ("Matilde") ni los mensajes */
.f1 { top: -26px; left: -22px; }
.f2 { bottom: -14px; right: -16px; animation-delay: 1.2s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Stat bar */
.statbar {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 26px 18px; margin-bottom: -44px; z-index: 5;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.stat { text-align: center; padding: 0 10px; }
.stat-num { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--gold-bright); letter-spacing: -.02em; }
.stat-lbl { font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.35; display: block; margin-top: 4px; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 96px 0; }
/* Que el header pegajoso no tape el título al saltar desde el menú */
section[id] { scroll-margin-top: 84px; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-cta { text-align: center; margin-top: 44px; }
.section-head.light h2, .section-head.light .lead { color: #fff; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-dark); background: rgba(30,136,229,.1);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.kicker-red { color: var(--red); background: rgba(220,38,38,.08); }
.kicker-gold { color: var(--gold-deep); background: rgba(245,166,35,.14); }
.section-head h2 { margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section-head.light .lead { color: rgba(255,255,255,.78); }

/* ============================================================
   DOLORES
   ============================================================ */
.pains { background: linear-gradient(180deg, var(--paper) 0%, #faf7f5 100%); padding-top: 120px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  background: var(--paper-pure); border: 1px solid var(--border); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-ic { font-size: 1.7rem; margin-bottom: 14px; }
.pain-quote { font-size: 1.04rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.pain-cost { font-size: .9rem; color: var(--red); font-weight: 600; }
.pains-bridge { text-align: center; font-size: 1.25rem; color: var(--ink-soft); max-width: 760px; margin: 48px auto 0; }
.pains-bridge strong { color: var(--blue-dark); }
.brand-pop {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-deep);
  font-weight: 800; font-size: 1.12em; letter-spacing: -.01em;
  white-space: nowrap;
}

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.solution { background: var(--paper-pure); }
.how-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.how-steps { display: flex; flex-direction: column; gap: 14px; }
.how-step {
  display: flex; gap: 18px; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.how-step:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.how-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.how-step h3 { margin-bottom: 6px; }
.how-step p { color: var(--muted); font-size: .96rem; }

.color-system {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg); position: sticky; top: 90px;
}
.cs-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 20px; color: var(--gold-bright); }
.cs-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.cs-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; color: rgba(255,255,255,.82); }
.cs-list b { color: #fff; }
.cs-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; display: inline-block; }
.cs-dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.cs-dot.yellow { background: var(--yellow); box-shadow: 0 0 0 4px rgba(234,179,8,.18); }
.cs-dot.red { background: var(--red); box-shadow: 0 0 0 4px rgba(220,38,38,.18); }
.cs-dot.black { background: #3a3a3a; box-shadow: 0 0 0 4px rgba(120,120,120,.18); }
.cs-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem; color: rgba(255,255,255,.85); display: flex; gap: 10px; align-items: flex-start;
}
.cs-foot b { color: var(--gold-bright); }
.cs-foot .ic { stroke: var(--green); }

/* ============================================================
   BROWSER / DASHBOARD MOCKUP
   ============================================================ */
.browser {
  background: var(--paper-pure); border: 1px solid var(--border-strong); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-lg); margin: 0 auto; max-width: 1040px;
}
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--paper-edge); border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); }
.dots i:nth-child(1){ background:#ff5f57; } .dots i:nth-child(2){ background:#febc2e; } .dots i:nth-child(3){ background:#28c840; }
.url { font-size: .8rem; color: var(--muted); background: var(--paper-pure); border: 1px solid var(--border); padding: 5px 14px; border-radius: 8px; flex: 1; max-width: 320px; }

.dash { display: grid; grid-template-columns: 190px 1fr; min-height: 460px; }
.dash-side { background: var(--navy); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.ds-brand { font-weight: 800; font-size: 1rem; }
.ds-brand span { color: var(--gold-bright); }
.ds-user { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 10px; }
.ds-av { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.ds-user b { font-size: .82rem; display: block; } .ds-user small { font-size: .68rem; color: var(--blue-soft); }
.ds-agent { font-size: .76rem; color: #b9f5c9; display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: rgba(37,211,102,.1); border-radius: 8px; }
.ds-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.ds-nav a { font-size: .82rem; color: rgba(255,255,255,.7); padding: 9px 11px; border-radius: 8px; font-weight: 600; }
.ds-nav a.active { background: var(--blue); color: #fff; }

.dash-main { padding: 22px 24px; background: var(--paper); overflow: hidden; }
.dash-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.dash-h h4 { font-size: 1.3rem; font-weight: 800; }
.dash-h small { color: var(--muted); font-size: .82rem; }
.dash-range { display: flex; gap: 4px; background: var(--paper-pure); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.dash-range span { font-size: .76rem; padding: 5px 11px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.dash-range span.on { background: var(--ink); color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--paper-pure); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-sm); }
.kpi-l { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; display: block; }
.kpi-v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; display: block; margin: 3px 0 1px; }
.kpi-v.blue { color: var(--blue-dark); } .kpi-v.gold { color: var(--gold); } .kpi-v.green { color: var(--green); } .kpi-v.ink { color: var(--ink); }
.kpi-d { font-size: .68rem; color: var(--muted); font-weight: 600; }
.kpi-d.up { color: var(--green); }

.dash-charts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.panel { background: var(--paper-pure); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.panel-h { font-size: .82rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; }
.fn-lbl { font-size: .72rem; color: var(--muted); font-weight: 600; }
.fn-bar {
  height: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  width: var(--w); display: flex; align-items: center; padding: 0 10px; min-width: 42px;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.fn-bar b { color: #fff; font-size: .74rem; font-weight: 700; }
.fn-bar.gold { background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep)); }
.fn-bar.green { background: linear-gradient(90deg, #22c55e, var(--green)); }

/* Line chart */
.linechart { width: 100%; height: 150px; }
.linechart .grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; }
.linechart polyline { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ln-visitas { stroke: var(--blue); }
.ln-leads { stroke: var(--gold); }
.chart-legend { display: flex; gap: 18px; margin-top: 8px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.chart-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.lg-blue { background: var(--blue); } .lg-gold { background: var(--gold); }

/* Result highlights */
.result-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.rh { text-align: center; padding: 22px; background: var(--paper-pure); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rh-n { display: block; font-size: 2.2rem; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.rh-l { font-size: .92rem; color: var(--muted); }
.disclaimer { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 22px; font-style: italic; }

/* ============================================================
   PIPELINE TABLE
   ============================================================ */
.pipeline-sec { background: var(--paper-pure); }
.pill-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-legend span { font-size: .72rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pill-legend .cs-dot { width: 10px; height: 10px; box-shadow: none; margin: 0; }

.leads-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--paper-pure); }
.lt-head, .lt-row {
  display: grid; grid-template-columns: 40px 1.6fr 1fr .7fr 1fr 1fr .9fr; align-items: center; gap: 8px;
  padding: 11px 16px;
}
.lt-head { background: var(--paper-edge); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.lt-row { border-top: 1px solid var(--border); font-size: .82rem; transition: background .15s; }
.lt-row:hover { background: var(--paper-edge); }
.lt-name { font-weight: 700; color: var(--ink); display: flex; flex-direction: column; line-height: 1.25; }
.lt-name small { font-weight: 500; color: var(--muted); font-size: .7rem; }
.lt-row .cs-dot { width: 12px; height: 12px; box-shadow: none; margin: 0; }
.badge { font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.st-cal { background: rgba(22,163,74,.12); color: var(--green); }
.st-ag { background: rgba(30,136,229,.12); color: var(--blue-dark); }
.st-qf { background: rgba(217,119,6,.14); color: #b45309; }
.st-new { background: var(--paper-edge); color: var(--slate); }
.si { color: var(--green); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.muted { color: var(--muted); }
.m-on { font-size: .72rem; color: var(--green); font-weight: 700; white-space: nowrap; }
.m-reac { font-size: .72rem; color: var(--blue-dark); font-weight: 700; background: rgba(30,136,229,.1); padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.lt-note { font-size: .84rem; color: var(--muted); margin-top: 16px; padding-left: 4px; }
.lt-note b { color: var(--blue-dark); }

/* ============================================================
   QUÉ INCLUYE / FEATURES
   ============================================================ */
.includes { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-pure) 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--paper-pure); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-soft); }
.ft-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.ft-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ft-ic.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.ft-ic.gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); }
.ft-ic.green { background: linear-gradient(135deg, #22c55e, var(--green)); }
.ft-ic.ink { background: linear-gradient(135deg, #44403c, var(--ink)); }
.feature h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { color: var(--muted); font-size: .94rem; }
.feature.soon { border-style: dashed; }
.soon-tag { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-deep); background: rgba(245,166,35,.15); padding: 3px 8px; border-radius: 999px; }

/* Proyectos */
.includes-extra {
  margin-top: 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center;
  background: var(--navy); border-radius: 20px; padding: 38px; color: #fff;
}
.ie-copy h3 { font-size: 1.5rem; margin-bottom: 12px; }
.ie-copy p { color: rgba(255,255,255,.78); font-size: 1rem; }
.proj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proj-card { background: var(--paper-pure); border-radius: 12px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-md); }
.proj-img { height: 84px; }
.proj-img.g1 { background: linear-gradient(135deg,#1e88e5,#0a1628); }
.proj-img.g2 { background: linear-gradient(135deg,#22c55e,#15803d); }
.proj-img.g3 { background: linear-gradient(135deg,#f5a623,#b45309); }
.proj-body { padding: 12px 13px; }
.proj-body b { font-size: .85rem; }
.proj-body small { display: block; font-size: .68rem; color: var(--muted); margin: 2px 0 8px; }
.proj-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-tags span { font-size: .6rem; background: var(--paper-edge); color: var(--slate); padding: 3px 7px; border-radius: 6px; font-weight: 600; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; border-top: 1px solid var(--border); padding-top: 9px; }
.proj-foot b { color: var(--blue-dark); }

/* ============================================================
   WHY / ROI
   ============================================================ */
.why { background: linear-gradient(160deg, var(--navy) 0%, #0c1c34 100%); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, background .2s;
}
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.why-ic { font-size: 1.8rem; margin-bottom: 14px; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.74); font-size: .92rem; }
.roi-band {
  margin-top: 38px; background: linear-gradient(135deg, rgba(245,166,35,.16), rgba(30,136,229,.12));
  border: 1px solid rgba(245,166,35,.3); border-radius: 20px; padding: 32px 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.roi-eyebrow { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-bright); }
.roi-line { font-size: 1.35rem; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.roi-line b { color: var(--gold-bright); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper-pure); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 22px; transition: border-color .2s, box-shadow .2s;
}
.faq-list details[open] { border-color: var(--blue-soft); box-shadow: var(--shadow-sm); }
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform .2s; line-height: 1; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 20px; font-size: .96rem; }
.faq-list details p b { color: var(--ink); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(245,166,35,.18), transparent 60%),
    radial-gradient(700px 400px at 80% 100%, rgba(30,136,229,.2), transparent 60%),
    linear-gradient(180deg, #0c1a30, var(--navy));
}
.final-cta h2 { margin: 14px 0 18px; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.final-sub { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 620px; margin: 0 auto 30px; }
.final-trust { margin-top: 22px; font-size: .86rem; color: rgba(255,255,255,.78); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #060f1d; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { margin-bottom: 14px; }
.footer-tag { font-size: .92rem; max-width: 380px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-h { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); font-weight: 800; margin-bottom: 4px; }
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.72); transition: color .15s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.7); flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
/* Solo se ocultan si hay JS (clase .js que pone el <head>). Sin JS, el contenido SIEMPRE se ve. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-float, .dot-online, .wa-typing i, .wa-show.wa-pop { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 70px; }
  /* En el teléfono va primero lo que es Arma Broker (titular y botones) y después el chat de ejemplo:
     quien abre el link que le mandaste tiene que entender en la primera pantalla de qué se trata. */
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; margin-bottom: -40px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .color-system { position: static; }
  .pain-grid, .feature-grid, .why-grid, .result-highlights { grid-template-columns: repeat(2, 1fr); }
  .includes-extra { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Dashboard mockups: ocultar sidebar y permitir scroll */
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
  .lt-head .hide-sm, .lt-row .hide-sm { display: none; }
  .lt-head, .lt-row { grid-template-columns: 30px 1.6fr 1fr .9fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .pain-grid, .feature-grid, .why-grid, .result-highlights, .proj-cards { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .roi-band { padding: 26px; }
  .roi-line { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 36px; }
  .btn-lg { width: 100%; }
  .hero-actions, .hero-actions.center { width: 100%; }
  /* En celular las tarjetitas flotantes tapan el chat: las ocultamos */
  .card-float { display: none; }
}

/* ============================================================
   MEJORAS DE CONVERSIÓN (v2)
   ============================================================ */

/* Dato de autoridad (speed-to-lead) en Dolores */
.pain-fact {
  margin: 36px auto 0; max-width: 860px;
  display: flex; gap: 16px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold-bright);
}
.pf-badge {
  flex-shrink: 0; align-self: flex-start; font-size: .66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--gold-bright);
  background: rgba(245,166,35,.14); border: 1px solid rgba(245,166,35,.3);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.pain-fact p { font-size: 1.04rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.pain-fact p b { color: var(--gold-bright); }

/* Sección "Para quién es" (segmentos) */
.segments { background: var(--paper-pure); }
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seg-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-bright); }
.seg-ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.55rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(30,136,229,.12), rgba(245,166,35,.14));
}
.seg-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.seg-card p { color: var(--muted); font-size: .96rem; }

/* Barra CTA fija (solo móvil) */
.mobile-cta-bar { display: none; }

@media (max-width: 900px) {
  .seg-grid { grid-template-columns: 1fr; }
  .pain-fact { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 760px) {
  .mobile-cta-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    background: rgba(10,22,40,.94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.12);
    transform: translateY(120%); transition: transform .3s ease;
  }
  .mobile-cta-bar.show { transform: translateY(0); }
  .mobile-cta-bar .btn { flex: 1; margin: 0; }
  .btn-wa-mini {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; background: #25d366; color: #fff;
  }
  .btn-wa-mini svg { width: 24px; height: 24px; fill: currentColor; }
}

/* ============================================================
   PARA CORREDORAS / EQUIPOS (mando del jefe)
   — Clona el lenguaje visual de .why / .roi-band.
   ============================================================ */
.team-power { background: linear-gradient(160deg, var(--navy) 0%, #0c1c34 100%); color: #fff; }
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tp-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--gold-bright); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, background .2s, border-color .2s;
}
.tp-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.tp-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245,166,35,.18), rgba(30,136,229,.14));
}
.tp-card h3 { margin-bottom: 10px; font-size: 1.18rem; color: #fff; }
.tp-card p { color: rgba(255,255,255,.76); font-size: .94rem; line-height: 1.55; }
.tp-band {
  margin-top: 38px; background: linear-gradient(135deg, rgba(245,166,35,.16), rgba(30,136,229,.12));
  border: 1px solid rgba(245,166,35,.3); border-radius: 20px; padding: 30px 38px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between;
}
.tp-eyebrow { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-bright); flex-basis: 100%; }
.tp-line { flex: 1; min-width: 280px; font-size: 1.18rem; font-weight: 600; line-height: 1.45; color: #fff; }
.tp-band .btn { flex-shrink: 0; }

@media (max-width: 900px) {
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-band { padding: 26px; }
  .tp-line { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .tp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v3 (nov 2026): siete colores, métricas, inmobiliarias, asesores
   ============================================================ */
.cs-dot.blue { background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.cs-dot.orange { background: #ea580c; box-shadow: 0 0 0 4px rgba(234,88,12,.2); }
.cs-dot.purple { background: #9333ea; box-shadow: 0 0 0 4px rgba(147,51,234,.2); }
.cs-list.siete { gap: 11px; }
.cs-list li small { display: block; color: rgba(255,255,255,.62); font-size: .8rem; margin-top: 1px; }

.fn-bar.red { background: linear-gradient(90deg, #f87171, var(--red)); }
.panel-note { font-size: .74rem; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.m-call { font-size: .72rem; color: var(--gold-deep); font-weight: 700; background: rgba(245,166,35,.15); padding: 4px 8px; border-radius: 7px; white-space: nowrap; }

/* Métricas: lo que ves → lo que decides */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.metric-card {
  background: var(--paper-pure); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.metric-card h3 { font-size: 1.08rem; }
.mc-ves { color: var(--muted); font-size: .94rem; }
.mc-decides { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; font-size: .94rem; color: var(--ink-soft); font-weight: 600; }
.mc-decides b { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 3px; }

/* Para inmobiliarias */
.inmo { background: var(--paper-pure); }

/* Para asesores */
.join { background: linear-gradient(180deg, var(--paper) 0%, #faf7f5 100%); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.join-copy h2 { margin-bottom: 14px; }
.join-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 26px; padding: 0; }
.join-list li {
  display: flex; gap: 12px; align-items: flex-start; background: var(--paper-pure);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .96rem;
}
.join-list .ic { margin-top: 3px; }

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRECIO (los montos salen de sales/pricing.md)
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.price-card {
  background: var(--paper-pure); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.price-tag {
  display: inline-block; font-size: .8rem; font-weight: 800; color: var(--blue-dark);
  background: rgba(30,136,229,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.price-num { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.price-num small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card > p:last-child { color: var(--muted); font-size: .96rem; }
.price-ia {
  max-width: 820px; margin: 22px auto 0; padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,166,35,.12), rgba(30,136,229,.08));
  border: 1px solid rgba(245,166,35,.3);
}
.price-ia p { color: var(--ink-soft); }
.price-ia b { color: var(--ink); }
.price-ia .price-note { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.price-note a, .faq-list details p a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card, .price-ia { padding: 24px 22px; }
}

/* ============================================================
   PÁGINAS DE TEXTO (privacidad)
   ============================================================ */
.legal-header { background: var(--navy); padding: 18px 0; }
.legal-header .brand { color: #fff; }
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .legal-date { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .82rem; padding: 22px 0; }

/* Pipeline de ejemplo en el teléfono: el teléfono del cliente partía el nombre en tres líneas. */
@media (max-width: 600px) {
  .lt-name small { display: none; }
}
