/* ============ Página de venta de la plataforma ============ */
:root {
  --p: #6d28d9; --p2: #a855f7; --p-soft: #6d28d914; --ink: #120f1d; --text: #1d1a29; --muted: #6b6879;
  --bg: #ffffff; --soft: #f6f4fb; --line: #ebe8f2; --ok: #10b981; --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg.lucide { width: 20px; height: 20px; stroke-width: 2; flex: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--p); color: #fff; box-shadow: 0 8px 24px -8px var(--p); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.white { background: #fff; color: var(--p); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.brand-ic { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--p), var(--p2)); display: grid; place-items: center; color: #fff; }
.brand-ic svg.lucide { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-cta .ghost { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(900px 400px at 85% 0%, #a855f71f, transparent), radial-gradient(700px 400px at 0% 20%, #6d28d914, transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--p-soft); color: var(--p); font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 16px; color: var(--ink); }
.hero h1 span { background: linear-gradient(90deg, var(--p), var(--p2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0 0 26px; max-width: 560px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note svg.lucide { color: var(--ok); width: 16px; height: 16px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .phone { margin: 0 auto; } }

/* Mockup de teléfono */
.phone { width: 300px; height: 600px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px #3b0d7a88; position: relative; }
.screen { width: 100%; height: 100%; border-radius: 34px; background: #f6f6f8; overflow: hidden; position: relative; }
.m-banner { height: 120px; background: linear-gradient(135deg, #f97316, #e11d48); }
.m-card { margin: -34px 12px 0; background: #fff; border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); position: relative; }
.m-logo { width: 44px; height: 44px; border-radius: 12px; background: #e11d48; color: #fff; display: grid; place-items: center; font-weight: 800; }
.m-card b { display: block; font-size: 14px; } .m-card small { color: #10b981; font-weight: 700; font-size: 11px; }
.m-chips { display: flex; gap: 6px; padding: 12px; }
.m-chips span { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid #eee; }
.m-chips span.on { background: #e11d48; color: #fff; border-color: #e11d48; }
.m-item { margin: 0 12px 8px; background: #fff; border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.m-item .ph { width: 54px; height: 54px; border-radius: 10px; background: #fde4e8; display: grid; place-items: center; font-size: 26px; }
.m-item b { font-size: 12px; display: block; } .m-item small { font-size: 10px; color: #888; display: block; } .m-item i { font-style: normal; font-weight: 800; font-size: 12px; }
.m-bar { position: absolute; left: 12px; right: 12px; bottom: 14px; background: #e11d48; color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.float-card { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 34px -10px rgba(30,10,60,.3); font-size: 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.float-card svg.lucide { color: var(--p); }
.fc1 { left: -70px; top: 140px; } .fc2 { right: -60px; top: 330px; }
@media (max-width: 520px) { .fc1, .fc2 { display: none; } }

/* Secciones */
section { padding: 80px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; margin: 12px 0; color: var(--ink); line-height: 1.1; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; line-height: 1.6; }
.alt { background: var(--soft); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step3 { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step3::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 10px; background: var(--p); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step3 h3 { margin: 0 0 6px; } .step3 p { margin: 0; color: var(--muted); line-height: 1.55; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; } .feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .features, .steps3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features, .steps3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; margin: 12px 0; color: var(--ink); line-height: 1.15; }
.split p { color: var(--muted); line-height: 1.65; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks svg.lucide { color: var(--ok); margin-top: 1px; }
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fee { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fee svg.lucide { color: var(--p); } .fee b { display: block; margin: 6px 0 2px; } .fee small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.hl { border-color: var(--p); box-shadow: 0 24px 50px -24px #6d28d966; }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--p); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 20px; } .plan .desc { color: var(--muted); font-size: 14px; margin: 0; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); } .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; } .plan li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.plan li.off { color: #aaa; text-decoration: line-through; } .plan li.off::before { content: '–'; color: #bbb; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::after { content: '+'; color: var(--p); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

.cta { background: linear-gradient(135deg, var(--p), #3b0d7a); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 10px; letter-spacing: -.03em; }
.cta p { opacity: .85; margin: 0 0 24px; font-size: 17px; }
footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 30; }
.wa-float svg.lucide { width: 28px; height: 28px; }

/* Registro */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--p), #2e0a63); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.auth-side .checks li { color: #fff; } .auth-side .checks svg.lucide { color: #86efac; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; outline: 0; width: 100%; }
.field input:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--p-soft); }
.field small { color: var(--muted); font-size: 12px; }
.slug-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.slug-box span { padding: 0 4px 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.slug-box input { border: 0; padding-left: 0; box-shadow: none !important; }
.slug-box:focus-within { border-color: var(--p); }
.ok-t { color: #059669 !important; font-weight: 700; } .bad-t { color: #dc2626 !important; font-weight: 700; }
.err { background: #fee2e2; color: #b91c1c; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--p); margin-top: 1px; flex: none; }

/* Páginas legales */
.legal { max-width: 820px; padding-top: 30px; padding-bottom: 60px; line-height: 1.7; }
.legal h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 4px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.legal ul { padding-left: 20px; }
.legal .muted { color: var(--muted); }
.legal mark { background: #fef08a; padding: 0 4px; border-radius: 4px; }
.note-box { padding: 12px 16px; border-radius: 12px; background: var(--p-soft); margin: 14px 0; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
