/* Portada · CRM WTP */
.lp { overflow-x: hidden; }
.lp .section { padding: 96px 24px; }
.kicker { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-600); background: var(--emerald-50); border: 1px solid rgba(16, 185, 129, .25); padding: 6px 12px; border-radius: 30px; }
[data-theme="dark"] .kicker { color: #34d399; }
.kicker.indigo { color: var(--indigo); background: var(--indigo-50); border-color: rgba(99, 102, 241, .3); }
.big-title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; font-weight: 800; line-height: 1.05; margin-top: 14px; }
.grad { background: linear-gradient(90deg, var(--emerald), #34d399 40%, var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* HERO */
.hin { animation: hin .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hin { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) { .hin { animation: none; } }
.lp-hero { position: relative; padding: 140px 24px 60px; overflow: hidden;
  background: radial-gradient(900px 600px at 78% 20%, rgba(16, 185, 129, .22), transparent 60%), radial-gradient(700px 500px at 0% 90%, rgba(99, 102, 241, .16), transparent 60%); }
.lp-hero .lp-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.lp-hero h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.02; letter-spacing: -.05em; font-weight: 850; }
.lp-hero .lead { font-size: 19px; color: var(--text-2); margin: 22px 0 28px; max-width: 560px; }
.ticks { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 22px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.ticks span { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { color: var(--emerald); }
.facts { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.facts b { display: block; font-size: 34px; letter-spacing: -.03em; font-weight: 800; }
.facts span { color: var(--muted); font-size: 13px; }
.bot-stage { position: relative; height: 540px; display: grid; place-items: center; perspective: 1200px; }
.bot-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .45), rgba(16, 185, 129, .06) 55%, transparent 70%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
.bot-ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(16, 185, 129, .35); animation: spin 40s linear infinite; }
.bot-ring.r2 { width: 500px; height: 500px; border-color: rgba(99, 102, 241, .25); animation-duration: 60s; animation-direction: reverse; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.bot { position: relative; width: 330px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: hover 4.5s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); }
@keyframes hover { 50% { translate: 0 -14px; } }
.bot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.bot .wave { transform-box: view-box; transform-origin: 224px 272px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(-22deg); } 30% { transform: rotate(8deg); } }
.bot .antenna { animation: pulse-a 1.8s ease-in-out infinite; }
@keyframes pulse-a { 50% { opacity: .55; } }
.chip { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; white-space: nowrap; z-index: 2; }
.chip .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.chip.c1 { top: 70px; left: 0; animation: float 6s ease-in-out infinite; }
.chip.c2 { top: 210px; right: -10px; animation: float 6s -2s ease-in-out infinite; }
.chip.c3 { bottom: 70px; left: 30px; animation: float 6s -4s ease-in-out infinite; }

/* países */
.marquee { border-block: 1px solid var(--border); background: linear-gradient(90deg, var(--emerald-50), var(--indigo-50)); padding: 22px 0; overflow: hidden; }
.marquee .t { text-align: center; margin-bottom: 14px; }
.marquee .t b { font-size: 20px; letter-spacing: -.02em; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 13.5px; }
.track span i { font-style: normal; font-weight: 800; font-size: 12px; color: var(--muted); }
.track span em { font-style: normal; color: var(--emerald); }
@keyframes slide { to { transform: translateX(-50%); } }

/* problema */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pain .card { padding: 24px; }
.pain .x { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); font-size: 20px; margin-bottom: 14px; }

/* bandeja en vivo */
.split { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr .9fr; }
.mock { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 230px 1fr; height: 440px; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s; }
.mock:hover { transform: none; }
.mock .ml { border-right: 1px solid var(--border); overflow: hidden; }
.mock .ml .h { padding: 12px 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.mock .it { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; transition: background .3s; }
.mock .it.on { background: var(--emerald-50); }
.mock .it .avatar { width: 30px; height: 30px; font-size: 11px; }
.mock .it small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.mock .mc { display: flex; flex-direction: column; min-width: 0; }
.mock .mh { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mock .mb { flex: 1; padding: 14px; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.mock .b { max-width: 78%; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; background: var(--bubble-in); box-shadow: 0 1px .5px rgba(0, 0, 0, .12); animation: bubble-in .4s cubic-bezier(.2, .9, .3, 1.3); }
.mock .b.o { align-self: flex-end; background: var(--bubble-out); }
.mock .b small { display: block; font-size: 10px; font-weight: 700; color: var(--indigo); }
.mock .mf { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-4px); opacity: .5; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.bento .card { padding: 24px; position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; }
.bento .card.wide { grid-column: span 2; }
.bento .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.bento h3 { font-size: 17px; }
.bento p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.bento .viz { margin-top: auto; padding-top: 18px; }
.avs { display: flex; }
.avs .avatar { width: 38px; height: 38px; border: 3px solid var(--surface); margin-left: -10px; font-size: 12px; }
.avs .avatar:first-child { margin-left: 0; }
.mini-bars { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.mini-bars div { display: grid; grid-template-columns: 70px 1fr 36px; gap: 8px; align-items: center; }
.mini-bars span.b { height: 8px; border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.mini-bars span.b i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--indigo)); border-radius: 10px; width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.reveal.in .mini-bars span.b i { width: var(--w); }
.mini-phone { width: 92px; height: 150px; border-radius: 18px; border: 3px solid var(--border-strong); margin-left: auto; padding: 8px 6px; background: var(--chat-bg); display: flex; flex-direction: column; gap: 5px; transform: rotate(8deg); }
.mini-phone i { display: block; height: 14px; border-radius: 6px; background: var(--bubble-in); }
.mini-phone i.o { background: var(--bubble-out); margin-left: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: 11px; text-align: center; color: var(--muted); }
.cal b { padding: 6px 0; border-radius: 7px; background: var(--bg-2); font-weight: 600; color: var(--text-2); }
.cal b.on { background: var(--emerald); color: #fff; }

/* agente IA */
.ai-box { max-width: 1180px; margin: 0 auto; border-radius: 28px; padding: 54px; color: #eafff6; position: relative; overflow: hidden;
  background: radial-gradient(600px 400px at 90% 10%, rgba(99, 102, 241, .35), transparent 60%), radial-gradient(600px 500px at 0% 100%, rgba(16, 185, 129, .35), transparent 60%), #08110e; border: 1px solid rgba(16, 185, 129, .25); }
.ai-box .split { gap: 40px; }
.ai-box p, .ai-box li { color: #b8d8cb; }
.ai-box ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ai-box li { display: flex; gap: 10px; align-items: flex-start; }
.ai-box li .icon { color: #34d399; margin-top: 3px; }
.ai-chat { background: #0d1916; border: 1px solid #1f3a31; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 340px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.ai-chat .b { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; background: #1a2a25; color: #e6fff5; animation: bubble-in .4s cubic-bezier(.2, .9, .3, 1.3); }
.ai-chat .b.o { align-self: flex-end; background: #0f5a43; }
.ai-chat .b small { display: block; font-size: 10.5px; font-weight: 700; color: #a5b4fc; margin-bottom: 2px; }
.ai-chat .sys { align-self: center; font-size: 11.5px; color: #8fb7a8; background: rgba(255, 255, 255, .06); padding: 4px 10px; border-radius: 20px; }

/* integraciones */
.hub { max-width: 1080px; margin: 44px auto 0; display: grid; grid-template-columns: 1fr 200px 1fr; gap: 24px; align-items: center; }
.hub .col { display: grid; gap: 12px; }
.hub .col h4 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hub .node { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; }
.hub .node .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); }
.hub .node b { display: block; font-size: 14px; }
.hub .node small { color: var(--muted); }
.hub .core { width: 170px; height: 170px; margin: 0 auto; border-radius: 40px; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 800; background: conic-gradient(from 200deg, #10b981, #34d399, #6366f1, #10b981); box-shadow: 0 30px 70px -20px rgba(16, 185, 129, .7); transform: perspective(600px) rotateX(12deg); animation: spin-y 8s ease-in-out infinite; position: relative; }
.hub .core::after { content: ""; position: absolute; inset: -16px; border-radius: 52px; border: 2px dashed rgba(16, 185, 129, .4); animation: spin 18s linear infinite; }
@keyframes spin-y { 50% { transform: perspective(600px) rotateX(-6deg) rotateY(14deg); } }
.flow { height: 2px; background: repeating-linear-gradient(90deg, var(--emerald) 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: flowmove 1s linear infinite; position: absolute; top: 50%; width: 24px; }
.hub .col.l .flow { right: -26px; } .hub .col.r .flow { left: -26px; }
@keyframes flowmove { to { background-position: 32px 0; } }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; counter-reset: s; }
.steps .card { padding: 26px; }
.steps .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--indigo)); margin-bottom: 14px; box-shadow: 0 12px 24px -10px rgba(16, 185, 129, .8); }

/* precios */
.bill { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); margin-top: 22px; }
.bill button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.bill button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.bill .save { background: var(--emerald); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.price .per { color: var(--muted); font-size: 13px; min-height: 20px; }

@media (max-width: 1000px) {
  .lp-hero .lp-wrap, .split, .split.rev { grid-template-columns: 1fr; }
  .bot-stage { height: 460px; }
  .pain, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .hub { grid-template-columns: 1fr; }
  .hub .flow { display: none; }
  .mock { grid-template-columns: 1fr; transform: none; }
  .mock .ml { display: none; }
  .ai-box { padding: 30px 20px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card.wide { grid-column: auto; }
  .ticks { grid-template-columns: 1fr; }
  .bot { width: 260px; }
  .chip.c2 { right: 0; } .chip.c1 { left: 4px; }
}
@media (max-width: 560px) {
  .pub-nav { gap: 8px; padding: 6px 6px 6px 10px; }
  .pub-nav .brand { white-space: nowrap; font-size: 14px; }
  .pub-nav .btn.ghost, .pub-nav #themeToggle { display: none; }
  .lp-hero { padding-top: 110px; }
  .facts { gap: 22px; }
  .facts b { font-size: 26px; }
}

/* Íconos con degradé (tiles) */
.g1 { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .9); }
.g2 { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .9); }
.g3 { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .9); }
.g4 { background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .9); }
.chip .dot { color: #fff; }
.stats { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); transition: transform .25s; }
.stat:hover { transform: translateY(-3px); }
.stat .si { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span:not(.si) { color: var(--muted); font-size: 12.5px; }
.hub .node .i { color: #fff; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .9); }
.hub .col.r .node .i { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .9); }

/* Línea de tiempo «de hola a venta» */
.mini-bot { width: 110px; margin: 0 auto 6px; }
.mini-bot .bot { width: 110px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 44px; position: relative; text-align: center; }
.timeline::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--emerald) 0 50%, var(--border) 50% 100%); }
.timeline.in::before { animation: tlfill 2.4s ease forwards; background-size: 200% 100%; }
@keyframes tlfill { from { background-position: 100% 0; } }
.tl { position: relative; padding: 0 6px; }
.tl .tc { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); position: relative; z-index: 1; transition: all .4s; }
.tl.on .tc { border-color: var(--emerald); color: #fff; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 0 0 7px rgba(16, 185, 129, .15), 0 14px 30px -12px rgba(16, 185, 129, .9); }
.tl b { display: block; font-size: 15px; color: var(--text); }
.tl.on b { color: var(--emerald-600); }
[data-theme="dark"] .tl.on b { color: #34d399; }
.tl p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* Precios estilo tarjeta */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pcard { border-radius: 26px; padding: 10px 10px 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s; }
.pcard:hover { transform: translateY(-6px); }
.pcard.hot { background: linear-gradient(180deg, #0e6b4e, #0a4a37); border-color: rgba(52, 211, 153, .5); color: #eafff6; box-shadow: 0 40px 80px -30px rgba(16, 185, 129, .7); }
.pcard .ptop { border-radius: 18px; padding: 22px; background: var(--bg-2); }
.pcard.hot .ptop { background: rgba(255, 255, 255, .08); }
.pcard h3 { font-size: 20px; display: flex; align-items: center; gap: 6px; }
.pbadge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #14532d; background: #a3e635; padding: 4px 10px; border-radius: 20px; }
.pprice { font-size: 46px; font-weight: 850; letter-spacing: -.04em; margin-top: 10px; }
.pprice small { font-size: 14px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.pcompare { font-size: 13px; min-height: 20px; }
.pcompare s { opacity: .6; }
.pcompare b { color: #a3e635; margin-left: 6px; }
.pcard:not(.hot) .pcompare b { color: var(--emerald-600); }
.pcard ul { list-style: none; padding: 18px 14px 6px; margin: 0; flex: 1; display: grid; gap: 11px; }
.pcard li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.pcard .ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: #fff; flex: none; }
.pcard.hot .ck { background: #a3e635; color: #14532d; }
.pcard .ck .icon { width: 12px; height: 12px; stroke-width: 3; }
.pcard .btn { margin: 12px 12px 0; width: auto; }
.btn.lime { background: #a3e635; color: #14532d; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(163, 230, 53, .9); }
.btn.lime:hover { background: #bef264; }
.paylist { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 8px; font-size: 13px; color: var(--muted); }
.paylist b { font-size: 11px; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-2); }
@media (max-width: 1000px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .timeline { grid-template-columns: 1fr; text-align: left; gap: 18px; }
  .timeline::before { left: 29px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, var(--emerald) 0 55%, var(--border) 55% 100%); }
  .tl { display: grid; grid-template-columns: 60px 1fr; column-gap: 14px; }
  .tl .tc { margin: 0; grid-row: span 2; }
}
