:root {
  --bg: #f7f9fa; --surface: #fff; --text: #0f172a; --muted: #5b6577; --border: #e3e8ee;
  --teal: #0d9488; --teal-2: #2dd4bf; --teal-soft: #e6f6f4; --amber: #fbbf24; --navy: #0b1424;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(13, 148, 136, .3); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-dark { background: var(--text); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 20, 36, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.logo i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--teal-2), var(--teal)); font-style: normal; color: #06201d; font-weight: 800; }
nav.top .links { display: flex; gap: 20px; margin-left: 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
nav.top .links a { text-decoration: none; }
nav.top .links a:hover { color: #fff; }
nav.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
nav.top .login { color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; color: #e6fffb; background: radial-gradient(120% 120% at 10% 0%, #0f4744 0%, #0b1424 55%, #070c16 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask: radial-gradient(70% 90% at 30% 20%, #000 30%, transparent 75%); mask: radial-gradient(70% 90% at 30% 20%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal-2); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .3); padding: 6px 12px; border-radius: 999px; }
.pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 10px var(--teal-2); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 16px; color: #fff; }
.hero h1 span { background: linear-gradient(90deg, var(--teal-2), #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: rgba(230, 255, 251, .78); max-width: 560px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: rgba(230, 255, 251, .7); }
.trust span::before { content: "✓ "; color: var(--teal-2); font-weight: 800; }

/* teléfono animado */
.phone { position: relative; justify-self: center; width: 330px; max-width: 100%; border-radius: 40px; padding: 14px; background: linear-gradient(160deg, #1f2937, #0b1020); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.screen { border-radius: 30px; background: #0b1424; padding: 18px 16px; min-height: 520px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.call-top { display: flex; align-items: center; gap: 10px; color: #fff; }
.call-top .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-2), var(--teal)); font-weight: 800; color: #06201d; }
.call-top small { display: block; color: rgba(230, 255, 251, .6); font-size: 12px; }
.call-top .t { margin-left: auto; font-family: ui-monospace, Menlo, monospace; color: var(--amber); font-weight: 700; }
.wave { display: flex; gap: 4px; align-items: center; justify-content: center; height: 46px; margin: 6px 0; }
.wave i { width: 5px; height: 8px; border-radius: 3px; background: var(--teal-2); box-shadow: 0 0 8px rgba(45, 212, 191, .6); animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.35s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(5n) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: all .35s ease; }
.bubble.show { opacity: 1; transform: none; }
.bubble.a { background: rgba(45, 212, 191, .13); color: #ccfbf1; border-bottom-left-radius: 4px; }
.bubble.c { align-self: flex-end; background: rgba(251, 191, 36, .14); color: #fde68a; border-bottom-right-radius: 4px; }
.ticket { margin-top: auto; background: #fbf8ef; color: #1d1c1a; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; opacity: 0; transform: scale(.96); transition: all .45s ease; }
.ticket.show { opacity: 1; transform: none; }
.ticket b { font-size: 15px; }
.ticket .ok { color: #047857; font-weight: 700; font-family: "Plus Jakarta Sans", sans-serif; }

/* secciones */
section { padding: 88px 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.strip { background: var(--navy); color: rgba(230, 255, 251, .75); padding: 18px 0; overflow: hidden; }
.strip .row { display: flex; gap: 42px; white-space: nowrap; font-weight: 700; animation: slide 30s linear infinite; width: max-content; }
.strip .row span::before { content: "● "; color: var(--teal-2); }
@keyframes slide { to { transform: translateX(-50%); } }

.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.problem .big { font-size: 22px; font-weight: 700; line-height: 1.4; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-weight: 700; color: var(--text); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feat .ic { font-size: 26px; }
.feat h3 { margin: 8px 0 4px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* panel mock */
.panelmock { margin-top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .08); }
.live { border-radius: 16px; padding: 18px; color: #e6fffb; background: radial-gradient(120% 160% at 0% 0%, #4a3410 0%, #14121f 55%, #0a0f1a 100%); }
.live .h { display: flex; align-items: center; gap: 14px; }
.orb { width: 44px; height: 44px; border-radius: 50%; position: relative; }
.orb::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); animation: ring 1.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.2); opacity: 0; } }
.live .h b { font-size: 18px; } .live .h small { display: block; color: rgba(230, 255, 251, .65); }
.live .stats { margin-left: auto; display: flex; gap: 22px; text-align: right; } .live .stats b { display: block; font-size: 20px; } .live .stats span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(230, 255, 251, .55); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.steps span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: rgba(230, 255, 251, .5); }
.steps .d { color: #99f6e4; background: rgba(45, 212, 191, .14); } .steps .o { color: #0b1220; background: var(--amber); }
.mockrow { display: grid; grid-template-columns: 120px 1fr 1fr 120px; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--border); font-size: 14px; align-items: start; }
.mockrow:last-child { border-bottom: 0; }
.mockrow .f { font-weight: 800; font-size: 18px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }

/* calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.calc label { display: block; font-weight: 700; margin-bottom: 18px; }
.calc input[type=range] { width: 100%; accent-color: var(--teal); }
.calc .val { float: right; color: var(--teal); }
.calc .res { background: var(--navy); color: #e6fffb; border-radius: 16px; padding: 22px; display: grid; gap: 12px; align-content: center; }
.calc .res div { display: flex; justify-content: space-between; gap: 10px; }
.calc .res .save { font-size: 28px; font-weight: 800; color: var(--teal-2); }
.calc small { color: var(--muted); }

/* comparativa */
.cmp-wrap { overflow-x: auto; margin-top: 36px; border-radius: 18px; }
table.cmp { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
table.cmp th { background: #f1f5f9; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cmp td:nth-child(2) { font-weight: 700; color: var(--teal); }

/* precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan.pop { border: 2px solid var(--teal); box-shadow: 0 20px 50px rgba(13, 148, 136, .15); position: relative; }
.plan.pop::before { content: "El más elegido"; position: absolute; top: -13px; left: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 8px; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.plan .btn { margin-top: auto; }
.offer { margin-top: 22px; text-align: center; font-weight: 700; }

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { background: radial-gradient(120% 140% at 0% 0%, #0f4744 0%, #0b1424 60%); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(230, 255, 251, .75); font-size: 18px; margin: 0 0 26px; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* demo */
dialog#demo { border: 0; border-radius: 24px; padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--navy); color: #e6fffb; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog#demo::backdrop { background: rgba(5, 10, 20, .7); backdrop-filter: blur(4px); }
.demo-in { padding: 24px; display: grid; gap: 14px; }
.demo-in h3 { margin: 0; font-size: 20px; color: #fff; }
.demo-in p { margin: 0; color: rgba(230, 255, 251, .7); font-size: 14px; }
.demo-status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.demo-status i { width: 10px; height: 10px; border-radius: 50%; background: #64748b; }
.demo-status.live i { background: var(--teal-2); box-shadow: 0 0 10px var(--teal-2); }
.demo-status.talk i { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink .8s infinite; }
.demo-tr { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.demo-tr .bubble { opacity: 1; transform: none; }
.demo-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 900px) {
  nav.top .links { display: none; }
  .hero .wrap, .problem, .calc { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 44px; padding-bottom: 60px; }
  .cards3, .features, .plans { grid-template-columns: 1fr; }
  .mockrow { grid-template-columns: 1fr 1fr; }
  .live .stats { display: none; }
  section { padding: 64px 0; }
  .phone { width: 300px; }
  table.cmp th, table.cmp td { padding: 11px 10px; font-size: 14px; }
  .screen { min-height: 470px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* páginas de contenido */
.wrap.narrow { max-width: 820px; }
.hero.hero-sm .wrap { display: block; padding-top: 56px; padding-bottom: 56px; }
.hero.hero-sm h1 { font-size: clamp(30px, 4.4vw, 48px); }
section.doc { padding: 40px 0; }
section.doc h2 { font-size: clamp(24px, 3vw, 32px); }
section.doc p, section.doc li { font-size: 17px; color: #334155; }
section.doc ul { padding-left: 22px; display: grid; gap: 6px; }
section.doc .faq { margin-top: 18px; }
section.doc .plans { margin-top: 18px; }
.convo { display: grid; gap: 8px; background: var(--navy); border-radius: 18px; padding: 20px; }
.convo p { margin: 0; padding: 9px 13px; border-radius: 14px; max-width: 88%; font-size: 15px !important; }
.convo .a { background: rgba(45, 212, 191, .14); color: #ccfbf1 !important; }
.convo .c { background: rgba(251, 191, 36, .16); color: #fde68a !important; justify-self: end; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--teal); }
