/* Landing Wabog · rediseño claro con shaders
   Tokens de la paleta oficial (design system Wabog Legal Flow). */
:root {
  --primary-100: #1454fa;
  --primary-200: #6e80ff;
  --primary-300: #e5e2ff;
  --accent-100: #71c4ef;
  --accent-200: #003f8f;
  --text-100: #1d1c1c;
  --text-200: #313d44;
  --bg-100: #fffefb;
  --bg-200: #f5f4f1;
  --bg-300: #cccbc8;
  --ring: #0a3671;
  --font-main: 'Inter', system-ui, sans-serif;
  --title: #313d44;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg-100);
  color: var(--text-100);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
/* Las entradas con desplazamiento lateral (reveal) no deben ensanchar la página en móvil. */
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--title); text-wrap: balance; }
.lp-cta h2 { color: #fff; }
.lp-card-app h3, .ag-head h3 { color: #111827; }
ul { list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; font-size: clamp(36px, 5vw, 68px); }
.lp-hl { color: inherit; } /* el título va completo del mismo color */
.lp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-100); }
.lp-sub { color: var(--text-200); }
.tnum { font-variant-numeric: tabular-nums; }


/* Sombreado de fondo (shaders). Sin WebGPU queda el degradado CSS. */
.shader-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.shader-bg > canvas { opacity: 0; transition: opacity .9s ease; }
.shader-bg.is-live > canvas { opacity: 1; }
.lp-hero .shader-bg.is-live > canvas { opacity: .7; }

/* ---------- Header + hero ---------- */
.lp-hero { position: relative; overflow: hidden; min-height: 900px; background: var(--bg-100); isolation: isolate; }
.lp-hero .shader-bg {
  background:
    radial-gradient(60% 55% at 18% 18%, rgba(229, 226, 255, .6) 0%, transparent 70%),
    radial-gradient(55% 50% at 86% 28%, rgba(113, 196, 239, .14) 0%, transparent 70%),
    var(--bg-100);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.lp-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 380px; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(113, 196, 239, .26) 0%, rgba(110, 128, 255, .10) 40%, rgba(255, 254, 251, 0) 72%); }
.lp-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 254, 251, 0), var(--bg-100)); }


.lp-hero-body { position: relative; z-index: 5; padding-top: calc(clamp(72px, 9vw, 128px) + 82px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bg-300); background: rgba(255, 254, 251, .9); font-size: 14px; font-weight: 600; color: var(--text-200); }
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-100); box-shadow: 0 0 0 4px rgba(20, 84, 250, .15); }
.lp-hero h1 { margin-top: 40px; font-size: clamp(34px, 4.3vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; max-width: 1100px; }
.lp-hero-sub { text-wrap: balance; margin-top: 32px; max-width: 800px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-200); }
.hero-buttons { margin-top: 48px; width: min(660px, 100%); }
.sync-process-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px; border-radius: 30px; background: #fff; border: 1px solid var(--bg-300); box-shadow: 0 20px 60px rgba(20, 84, 250, .16); }
.sync-process-input { flex: 1 1 240px; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; font-family: inherit; font-size: 16px; color: var(--text-100); min-width: 0; }
.sync-process-input::placeholder { color: #6b7280; }
.sync-process-submit { min-height: 54px; padding: 0 30px; }
.sync-process-error { margin-top: 12px; font-size: 14px; font-weight: 600; color: #b91c1c; }
.sync-process-success { margin-top: 0; padding: 22px 26px; border-radius: 24px; background: #fff; border: 1px solid #bbf7d0; box-shadow: 0 20px 60px rgba(20, 84, 250, .12); text-align: left; }
.sync-process-success h3 { font-size: 20px; font-weight: 700; }
.sync-process-success p { margin-top: 6px; font-size: 15px; color: var(--text-200); }
.lp-hero-note { margin-top: 24px; line-height: 1.5; font-size: 14px; color: var(--text-200); }

/* ---------- Excel vs Wabog ---------- */
.lp-section { padding: clamp(72px, 9vw, 128px) 0; }
.lp-section.alt { background: var(--bg-200); }
.lp-section.has-shader { position: relative; isolation: isolate; }
.lp-section.has-shader > .lp-wrap { position: relative; z-index: 1; }
.lp-section.has-shader .shader-bg { background: radial-gradient(50% 60% at 85% 20%, rgba(229, 226, 255, .8) 0%, transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(113, 196, 239, .22) 0%, transparent 70%); }
.lp-compare { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; justify-content: space-between; }
.lp-compare-col { min-width: 0; }
.lp-compare-col.sheet { flex: 1 1 380px; }
.lp-compare-col.app { flex: 0 1 666px; max-width: 100%; }
.lp-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lp-label::after { content: ""; height: 1px; flex: 1; background: var(--bg-300); }
.lp-label.blue { color: var(--primary-100); }
.lp-label.blue::after { background: var(--primary-100); opacity: .4; }
.lp-rel { position: relative; }
.lp-float { position: absolute; max-width: 240px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: #1f2328; }
.lp-float.amber { background: #fef3c7; border: 1px solid #f59e0b; box-shadow: 0 14px 34px rgba(29, 28, 28, .18); }
.lp-float.blue { background: #fff; border: 1px solid var(--primary-100); box-shadow: 0 14px 34px rgba(20, 84, 250, .28); color: var(--text-100); }

.xl { background: #fff; border: 1px solid #c8ccd0; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(29, 28, 28, .10); font-size: 12px; color: #1f2328; }
.xl-title { background: #1e6e42; color: #fff; padding: 8px 14px; display: flex; justify-content: space-between; font-weight: 600; gap: 12px; }
.xl-title span:last-child { opacity: .85; white-space: nowrap; }
.xl-formula { display: flex; border-bottom: 1px solid #d9dce1; background: #f8f9fa; color: #4b5563; }
.xl-formula div:first-child { padding: 6px 12px; border-right: 1px solid #d9dce1; min-width: 48px; text-align: center; }
.xl-formula div:last-child { padding: 6px 12px; flex: 1; font-style: italic; }
.xl-row { display: grid; grid-template-columns: 30px 1.15fr 1.5fr 1fr 1fr 1fr; border-bottom: 1px solid #e5e7eb; }
.xl-row.head { background: #f3f4f6; border-bottom-color: #d9dce1; color: #4b5563; font-weight: 600; text-align: center; }
.xl-row > div { padding: 7px 8px; border-left: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-row > div:first-child { border-left: 0; background: #f3f4f6; color: #6b7280; text-align: center; font-weight: 600; padding: 7px 0; }
.xl-row.head > div { padding: 6px 0; border-left-color: #d9dce1; }
.xl-hdr > div:not(:first-child) { background: #e8f0e8; font-weight: 700; }
.xl-y { background: #fff2a8 !important; font-weight: 700; }
.xl-r { background: #ffd6d6 !important; color: #b42318; }
.xl-late { color: #b42318; }
.xl-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #f3f4f6; border-top: 1px solid #d9dce1; font-size: 11px; }
.xl-tabs span { padding: 6px 12px; color: #4b5563; }
.xl-tabs span:first-child { background: #fff; border: 1px solid #d9dce1; border-bottom: 0; border-radius: 6px 6px 0 0; font-weight: 600; color: #1e6e42; }

.shot-wrap { width: 100%; max-width: 666px; position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 70px rgba(20, 84, 250, .22); aspect-ratio: 900 / 556; }
.shot { position: absolute; left: 0; top: 0; width: 900px; height: 556px; transform: scale(.74); transform-origin: top left; }
.shot .app { width: 900px; height: 556px; display: flex; background: #f8f9fa; border: 1px solid #d9dce1; border-radius: 20px; overflow: hidden; color: #111827; text-align: left; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.shot .rail { flex: 0 0 64px; background: #fff; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; }
.shot .rail span { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.shot .rail span.menu { color: #6b7280; margin-bottom: 12px; border-radius: 10px; }
.shot .rail span.on { background: #ebf5ff; color: #1e3a8a; }
.shot .main { flex: 1 1 0; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.shot .sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.shot .sum > div { padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }
.shot .sum > div + div { border-left: 1px solid #e5e7eb; }
.shot .sum small { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.shot .sum small i { width: 6px; height: 6px; border-radius: 9999px; background: #f59e0b; }
.shot .sum b { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -.02em; }
.shot .tbl { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.shot .tr { display: grid; grid-template-columns: 27fr 20fr 20fr 33fr; align-items: center; border-bottom: 1px solid #f3f4f6; }
.shot .tr.th { background: #f9fafb; border-bottom-color: #e5e7eb; }
.shot .tr > * { padding: 16px 20px; font-size: 14px; line-height: 20px; color: #374151; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .tr.th > * { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.shot .tr strong { display: block; font-weight: 600; color: #111827; }
.shot .tr code { display: block; margin-top: 2px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 16px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; }
.shot .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.shot .pill i { width: 6px; height: 6px; border-radius: 9999px; }
.pill.active { background: #dcfce7; color: #15803d; } .pill.active i { background: #22c55e; }
.pill.decision { background: #e0f2fe; color: #0369a1; } .pill.decision i { background: #0ea5e9; }
.pill.paused { background: #f3f4f6; color: #4b5563; } .pill.paused i { background: #9ca3af; }

/* ---------- Agente ---------- */
.lp-agent { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: space-between; }
.lp-agent-copy { flex: 1 1 380px; max-width: 540px; }
.lp-agent-copy h2 { margin-top: 18px; font-size: clamp(32px, 3.7vw, 52px); }
.lp-points { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.lp-points li { display: flex; gap: 14px; }
.lp-points svg { flex: 0 0 24px; margin-top: 2px; }
.lp-points b { display: block; color: var(--title); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lp-points span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-200); }
.lp-card-app { flex: 1 1 440px; max-width: 560px; min-width: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; padding: clamp(20px, 2.4vw, 28px); box-shadow: 0 30px 70px rgba(29, 28, 28, .12); color: #111827; text-align: left; }
.ag-status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #374151; }
.ag-status i { width: 9px; height: 9px; border-radius: 50%; background: #1455fa; }
.ag-status i.done { background: #16a34a; }
.ag-bar { margin-top: 12px; height: 6px; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.ag-bar div { height: 100%; width: 0; border-radius: 999px; background: #1455fa; transition: width .12s linear; }
.ag-head { margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #111827; }
.ag-count { padding: 2px 10px; border-radius: 999px; background: #ebf5ff; color: #1e3a8a; font-size: 12px; font-weight: 700; }
.ag-empty { margin-top: 14px; border: 1.5px dashed #d1d5db; border-radius: 16px; padding: 32px 20px; text-align: center; font-size: 14px; color: #6b7280; }
.ag-card { margin-top: 14px; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; animation: lp-rise .4s ease both; }
.ag-meta { font-size: 12px; color: #6b7280; }
.ag-sum { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.ag-act { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1e3a8a; }
.ag-why { margin-top: 10px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: #1455fa; text-decoration: underline; text-underline-offset: 3px; }
.ag-quote { margin-top: 10px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; padding: 12px 14px; }
.ag-quote p { font-size: 13px; line-height: 1.6; color: #374151; }
.ag-quote small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #6b7280; }
.ag-btns { margin-top: 14px; display: flex; gap: 10px; justify-content: flex-end; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ag-btn.ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.ag-btn.ghost:hover { background: #f3f4f6; }
.ag-btn.primary { background: #1455fa; color: #fff; border: 0; }
.ag-btn.primary:hover { background: #0543e1; }
.ag-done { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ag-done i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ag-replay { margin-top: 18px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: #4b5563; text-decoration: underline; text-underline-offset: 3px; }

@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Funcionalidades ---------- */
.lp-feats { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; }
.lp-feat { flex: 1 1 340px; padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; }
.lp-feat h3 { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.lp-feat p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--text-200); }
.lp-feat .demo { margin-top: auto; padding-top: 26px; }
.wa { border-radius: 18px; background: #efeae2; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wa div { max-width: 88%; padding: 10px 13px; font-size: 14px; line-height: 1.45; color: #111b21; background: #fff; border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.wa div.me { align-self: flex-end; background: #d9fdd3; border-radius: 14px 14px 4px 14px; }
.wa b { display: block; margin-bottom: 3px; font-size: 12px; color: #15803d; }
.wa .file { display: flex; gap: 8px; align-items: center; }
.cal { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 18px; padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head b { font-size: 15px; } .cal-head span { font-size: 12px; color: #6b7280; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #6b7280; }
.cal-grid .day { position: relative; height: 30px; border-radius: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; background: #fff; color: #111827; }
.cal-grid .day.a { background: #fef3c7; } .cal-grid .day.b { background: #dbeafe; }
.cal-grid .day i { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; }
.cal-grid .day.a i { background: #f59e0b; } .cal-grid .day.b i { background: #2563eb; }
.cal-legend { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #374151; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; }
.doc { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; }
.doc-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-200); }
.doc-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.doc-lines i { display: block; height: 9px; border-radius: 5px; background: #e5e7eb; }
.doc-chips { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chips span { padding: 5px 11px; border-radius: 999px; background: #ebf5ff; color: #1e3a8a; font-size: 12px; font-weight: 600; }
.doc-chips span.n { background: #f3f4f6; color: #374151; }

/* ---------- Calculadora ---------- */
.lp-calc { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.lp-calc-in { flex: 1 1 440px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 34px; background: #fff; border: 1px solid #e5e7eb; border-radius: 24px; }
.lp-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lp-calc-row label { font-size: 17px; font-weight: 500; }
.lp-calc-row output { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.lp-calc input[type=range] { width: 100%; accent-color: var(--primary-100); height: 28px; cursor: pointer; margin-top: 12px; }
.lp-calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: #4b5563; }
.lp-calc-note { font-size: 13px; line-height: 1.5; color: #4b5563; }
.lp-calc-out { flex: 1 1 440px; position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--primary-100); color: #fff; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.lp-calc-out .shader-bg { background: radial-gradient(70% 90% at 15% 0%, rgba(113, 196, 239, .55) 0%, transparent 70%), radial-gradient(60% 80% at 100% 100%, var(--accent-200) 0%, transparent 70%), var(--primary-100); }
.lp-calc-out > *:not(.shader-bg) { position: relative; z-index: 1; }
.lp-calc-out .k { font-size: 15px; font-weight: 600; color: var(--primary-300); }
.lp-calc-out .big { margin-top: 8px; font-size: clamp(64px, 8vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.lp-calc-out .big small { font-size: .4em; letter-spacing: -0.02em; margin-left: 8px; }
.lp-calc-out .eq { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.lp-calc-out .rec { margin-top: auto; padding-top: 28px; }
.lp-calc-out .rec div { border-radius: 18px; background: rgba(255, 254, 251, .16); padding: 16px 18px; font-size: 15px; line-height: 1.5; }
.lp-calc-out .rec a { margin-top: 16px; width: 100%; min-height: 54px; font-weight: 700; }

/* ---------- Precios ---------- */
.lp-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-pricing-toggle { margin-top: 34px; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-200); border: 1px solid var(--bg-300); }
.toggle-btn { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent; color: var(--text-200); font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; }
.toggle-btn.active { background: var(--text-100); color: var(--bg-100); }
.discount-badge { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--primary-300); color: var(--accent-200); font-size: 12px; font-weight: 700; }
.lp-plans { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.lp-plan { flex: 1 1 320px; position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: 28px; background: #fff; border: 1.5px solid var(--bg-300); }
.lp-plan.pro { background: var(--primary-100); color: #fff; border-color: var(--primary-100); box-shadow: 0 30px 70px rgba(20, 84, 250, .30); }
.lp-plan .name { font-size: 18px; font-weight: 600; }
.lp-plan .popular { position: absolute; top: 26px; right: 26px; padding: 5px 12px; border-radius: 999px; background: var(--bg-100); color: var(--primary-100); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.plan-price { margin-top: 20px; font-size: clamp(42px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.plan-price > div { flex-basis: 100%; }
.plan-price .text-sm { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .85; white-space: nowrap; }
.lp-plan .feat { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lp-plan .feat li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.lp-plan .feat svg { flex: 0 0 20px; margin-top: 1px; }
.lp-plan .cta { margin-top: 32px; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-weight: 700; font-size: 16px; background: var(--primary-100); color: #fff; }
.lp-plan.pro .cta { background: var(--bg-100); color: var(--primary-100); }
/* Team y Enterprise: mismos colores que la landing de producción */
.lp-plan.team { background: var(--accent-200); color: var(--bg-100); border-color: var(--accent-200); }
.lp-plan.team .cta { background: var(--bg-100); color: var(--accent-200); }
.lp-plan.ent { background: var(--bg-200); color: var(--text-100); border-color: var(--bg-200); }
.lp-plan.ent .cta { background: var(--text-100); color: var(--bg-200); }

/* ---------- FAQ ---------- */
.lp-faq { display: flex; flex-wrap: wrap; gap: 48px; }
.lp-faq-head { flex: 1 1 320px; }
.lp-faq-head h2 { margin-top: 0; font-size: clamp(36px, 4.4vw, 58px); }
.lp-faq-head p { margin-top: 22px; font-size: 17px; line-height: 1.55; max-width: 340px; }
.lp-faq-list { flex: 2 1 520px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 18px; font-weight: 500; color: var(--text-100); }
.faq-question svg { flex: 0 0 22px; transition: transform .2s ease; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; padding: 0 26px; font-size: 16px; line-height: 1.65; color: var(--text-200); transition: grid-template-rows .4s var(--ease); }
.faq-answer > div { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .3s ease, padding .4s var(--ease); }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-item.active .faq-answer > div { opacity: 1; padding-bottom: 24px; }

/* ---------- CTA final ---------- */
.lp-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; background: var(--primary-100); color: #fff; padding: clamp(48px, 7vw, 104px) clamp(24px, 5vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-cta .shader-bg { background: radial-gradient(60% 80% at 20% 0%, rgba(113, 196, 239, .55) 0%, transparent 70%), radial-gradient(60% 80% at 90% 100%, var(--accent-200) 0%, transparent 70%), var(--primary-100); }
.lp-cta > *:not(.shader-bg) { position: relative; z-index: 1; }
.lp-cta h2 { font-size: clamp(38px, 6vw, 84px); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em; max-width: 860px; }
.lp-cta p { margin-top: 24px; max-width: 600px; font-size: 19px; line-height: 1.55; color: var(--primary-300); }
.lp-cta .lp-btn { margin-top: 34px; min-height: 60px; padding: 0 40px; font-size: 18px; font-weight: 700; }



/* ================= Movimiento =================
   Todo lo que está bajo .js-motion solo existe si el usuario no pidió
   "reducir movimiento" (la clase la pone un script en <head>). */
@keyframes lp-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes lp-shine { 0% { transform: translateX(-130%) skewX(-20deg); } 55%, 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes lp-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 254, 251, .55); } 100% { box-shadow: 0 0 0 24px rgba(255, 254, 251, 0); } }
@keyframes lp-flash { 0% { box-shadow: inset 0 0 0 2px #f59e0b; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22); } }
@keyframes lp-pop { 0% { opacity: 0; transform: translateY(10px) scale(.92); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .lp-horizon { animation: lp-breathe 7s ease-in-out infinite; }
  .lp-hero-body { will-change: transform; }
  .lp-hero-body { transform: translate3d(0, var(--hy, 0px), 0); opacity: var(--ho, 1); }
  .lp-plan.pro { overflow: hidden; }
  .lp-plan.pro::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); animation: lp-shine 6s ease-in-out infinite; pointer-events: none; }
  .lp-cta .lp-btn { animation: lp-ring 2.6s ease-out infinite; }
  .lp-btn-blue:hover, .lp-btn-white:hover { transform: translateY(-2px); }
  .lp-btn { transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease; }
  .lp-feat, .lp-plan, .faq-item { transition: transform .3s var(--ease), box-shadow .3s ease, opacity .8s var(--ease); }
  .lp-feat:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(29, 28, 28, .10); }
  .lp-plan:not(.pro):hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(29, 28, 28, .10); }

  /* Aparición al hacer scroll */
  .js-motion [data-rv] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); }
  .js-motion [data-rv="left"] { transform: translate3d(-48px, 0, 0); }
  .js-motion [data-rv="right"] { transform: translate3d(48px, 0, 0); }
  .js-motion [data-rv="scale"] { transform: scale(.93); }
  .js-motion [data-rv="pop"] { transform: scale(.6); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  .js-motion [data-rv].in { opacity: 1; transform: none; }

  /* Títulos: palabra por palabra */
  .words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
  .words .w > i { display: inline-block; font-style: normal; transform: translateY(112%); transition: transform .95s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--wd, 0ms)); }
  .words.in .w > i { transform: none; }

  /* Secciones con fondo: el panel se expande al entrar */
  .js-motion .lp-section.alt { clip-path: inset(70px 36px 0 36px round 56px); transition: clip-path 1.1s var(--ease); }
  .js-motion .lp-section.alt.in { clip-path: inset(0 0 0 0 round 0); }

  /* Excel -> Wabog */
  .js-motion .lp-compare .xl-row { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--r) * 90ms); }
  .js-motion .lp-compare.in .xl-row { opacity: 1; transform: none; }
  .js-motion .lp-compare .xl-y, .js-motion .lp-compare .xl-r { }
  .js-motion .lp-compare.in .xl-y, .js-motion .lp-compare.in .xl-r { animation: lp-flash 1.1s ease both; animation-delay: calc(var(--r) * 90ms + 700ms); }
  .js-motion .lp-compare .shot-wrap { opacity: 0; transform: translateX(56px) scale(.96); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: 1.15s; }
  .js-motion .lp-compare.in .shot-wrap { opacity: 1; transform: none; }
  .js-motion .lp-compare .shot .tr:not(.th) { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(1.7s + var(--r) * 170ms); }
  .js-motion .lp-compare.in .shot .tr:not(.th) { opacity: 1; transform: none; }
  .js-motion .lp-compare .shot .pill { transform: scale(.4); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(2s + var(--r) * 170ms); }
  .js-motion .lp-compare.in .shot .pill { transform: none; }

  /* Funciones */
  .js-motion .lp-feat .wa > div { opacity: 0; }
  .js-motion .lp-feat.in .wa > div { animation: lp-pop .55s var(--ease) both; }
  .js-motion .lp-feat.in .wa > div:nth-child(1) { animation-delay: .5s; }
  .js-motion .lp-feat.in .wa > div:nth-child(2) { animation-delay: 1.5s; }
  .js-motion .lp-feat.in .wa > div:nth-child(3) { animation-delay: 2.4s; }
  .js-motion .lp-feat .cal-grid .day { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .4s var(--ease); transition-delay: calc(var(--i) * 18ms + .3s); }
  .js-motion .lp-feat.in .cal-grid .day { opacity: 1; transform: none; }
  .js-motion .lp-feat.in .cal-grid .day.a i, .js-motion .lp-feat.in .cal-grid .day.b i { animation: lp-pulse 1.6s ease-in-out 1.4s infinite; }
  .js-motion .lp-feat .doc-lines i { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
  .js-motion .lp-feat.in .doc-lines i { transform: none; }
  .js-motion .lp-feat.in .doc-lines i:nth-child(1) { transition-delay: .4s; }
  .js-motion .lp-feat.in .doc-lines i:nth-child(2) { transition-delay: .6s; }
  .js-motion .lp-feat.in .doc-lines i:nth-child(3) { transition-delay: .8s; }
  .js-motion .lp-feat .doc-chips span { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .js-motion .lp-feat.in .doc-chips span { opacity: 1; transform: none; }
  .js-motion .lp-feat.in .doc-chips span:nth-child(1) { transition-delay: 1.2s; }
  .js-motion .lp-feat.in .doc-chips span:nth-child(2) { transition-delay: 1.4s; }
  .js-motion .lp-feat.in .doc-chips span:nth-child(3) { transition-delay: 1.6s; }
}

/* CTA fijo (móvil) */
.sticky-cta { display: none; }

@media (prefers-reduced-motion: no-preference) {
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .lp-float { position: static; margin-top: 14px; max-width: none; }
  .sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--primary-100); color: #fff; font-weight: 700; box-shadow: 0 14px 40px rgba(20, 84, 250, .4); transform: translateY(140%); transition: transform .25s ease; }
  .sticky-cta.is-visible { transform: none; }
  .sync-process-submit { width: 100%; }
  /* En móvil el hero mide lo que ocupa su contenido: sin alto mínimo ni hueco antes de la sección siguiente. */
  .lp-hero { min-height: 0; padding-bottom: 72px; }
  /* Las columnas apiladas no pueden pedir más ancho que la pantalla (antes la tarjeta de agentes y la calculadora se salían ~24 px). */
  .lp-agent-copy, .lp-card-app, .lp-calc-in, .lp-calc-out { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .lp-section { padding: 96px 0; } /* más aire entre secciones en móvil (escritorio sigue en 72–128 px) */
  .lp-hero-body { padding-top: 112px; }
}

/* ---------- Modal de lead (misma lógica de producción, mismos IDs) ---------- */
.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(94, 103, 120, 0.72);
  backdrop-filter: blur(1.5px);
  z-index: 1400;
}

.lead-modal {
  box-sizing: border-box;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
  width: min(92vw, 512px);
  max-width: 512px;
  max-height: calc(100vh - 18px);
  overflow-y: auto;
  background: var(--bg-100);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 48px;
  gap: 32px;
  z-index: 1500;
}

.lead-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-200);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  border-radius: 8px;
}

.lead-modal-success-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-300);
  border: 4px solid var(--bg-100);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}

.lead-modal-success-icon i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-100);
  border: 2px solid var(--accent-100);
  color: var(--accent-200);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lead-modal-title {
  text-align: center;
  color: var(--text-100);
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.9px;
  font-weight: 700;
  width: 100%;
  align-self: stretch;
}

.lead-form-shell {
  background: var(--bg-200);
  border-radius: 32px;
  border: 1px solid var(--bg-300);
  padding: 40px 32px 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lead-form-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-form-head h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-100);
  line-height: 22px;
}

.lead-form-head p {
  font-size: 14px;
  color: var(--text-200);
  line-height: 20px;
}

.lead-form-whatsapp-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #25D366;
  color: var(--bg-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0px 10px 15px -3px rgba(37, 211, 102, 0.2), 0px 4px 6px -4px rgba(37, 211, 102, 0.2);
}

.lead-form-whatsapp-icon i {
  font-size: 24px;
}

.lead-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-200);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

.lead-phone-row {
  display: flex;
  align-items: center;
  background: var(--bg-100);
  box-shadow: 0px 0px 0px 1px var(--bg-300);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  height: 61px;
}

.lead-country-code {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-width: 100px;
  border-right: 1px solid var(--bg-300);
  padding: 0 14px;
}

.lead-country-code .flag {
  font-size: 24px;
  line-height: 1;
}

.lead-country-code .code {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-100);
}

.lead-phone-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-100);
  padding: 0 16px;
  background: transparent;
}

.lead-phone-input::placeholder {
  color: var(--text-200);
}

.lead-submit {
  width: 100%;
  height: 68px;
  border: none;
  border-radius: 24px;
  color: var(--bg-100);
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
  font-weight: 700;
  background: var(--primary-100);
  box-shadow: 0px 20px 25px -5px rgba(20, 84, 250, 0.3), 0px 8px 10px -6px rgba(20, 84, 250, 0.3);
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.lead-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.lead-submit:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.lead-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-200);
  padding: 8px 4px 0;
}

.lead-note i {
  margin-top: 1px;
  color: var(--text-200);
  font-size: 12px;
  flex-shrink: 0;
}

.lead-form-error,
.lead-form-success {
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
}

.lead-form-error {
  color: #313d44;
}

.lead-form-success {
  color: var(--accent-200);
}

.lead-success-anim {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.lead-success-anim h4 {
  font-size: 24px;
  color: #313D44;
  margin-top: 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4CAF50;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
}

.success-checkmark .check-icon::before, .success-checkmark .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: #FFFFFF;
  transform: rotate(-45deg);
}

.success-checkmark .icon-line {
  height: 5px;
  background-color: #4CAF50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, .5);
}

.success-checkmark .icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #FFFFFF;
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

.sync-process-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* ── Lead Modal ── */
  .lead-modal {
    width: min(94vw, 480px);
    border-radius: 32px;
    padding: 28px 24px;
    gap: 24px;
    max-height: calc(100vh - 16px);
  }

  .lead-modal-success-icon {
    width: 80px;
    height: 80px;
  }

  .lead-modal-success-icon i {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lead-modal-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.5px;
  }

  .lead-form-shell {
    border-radius: 24px;
    padding: 24px 20px 20px;
    gap: 20px;
  }

  .lead-form-head h4 {
    font-size: 16px;
  }

  .lead-form-head p {
    font-size: 13px;
  }

  .lead-phone-row {
    height: 56px;
    border-radius: 20px;
  }

  .lead-phone-input {
    font-size: 16px;
  }

  .lead-submit {
    height: 60px;
    font-size: 16px;
    border-radius: 20px;
  }

  .lead-note {
    font-size: 11px;
  }
}