/* Chats4AI — sistema visual
   Tinta profunda + degradado violeta→magenta→coral. Nada de verde WhatsApp. */

:root {
  --ink: #0d0b1f;
  --ink-2: #2a2747;
  --muted: #6b6889;
  --line: #e8e6f3;
  --bg: #fbfaff;
  --card: #ffffff;
  --soft: #f3f1ff;
  --violet: #7c5cff;
  --magenta: #c04cfd;
  --coral: #ff7a59;
  --mint: #19c39a;
  --amber: #f5a524;
  --red: #ef4565;
  --grad: linear-gradient(120deg, #7c5cff 0%, #c04cfd 55%, #ff7a59 100%);
  --grad-soft: linear-gradient(120deg, #efeaff 0%, #fbe9ff 55%, #fff0ea 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 11, 31, 0.04), 0 8px 24px rgba(13, 11, 31, 0.06);
  --shadow-lg: 0 2px 6px rgba(13, 11, 31, 0.05), 0 30px 60px -20px rgba(76, 45, 180, 0.28);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; flex: none; }
.i-lg { width: 26px; height: 26px; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(124, 92, 255, 0.6); }
.btn-primary:hover { box-shadow: 0 10px 28px -6px rgba(192, 76, 253, 0.6); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfcbe6; background: var(--soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #f6cbd5; }
.btn-danger:hover { background: #fff3f5; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- formularios ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field + .field { margin-top: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: 15px var(--font); color: var(--ink); outline: none; transition: border 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: #fff1f4; color: #b4183c; border: 1px solid #fbd0db; }
.alert-ok { background: #ebfbf5; color: #0b7a5e; border: 1px solid #bdeedd; }
.alert-info { background: var(--soft); color: var(--ink-2); border: 1px solid #e2dcff; }
.alert-warn { background: #fff8ea; color: #8a5a00; border: 1px solid #f8e2b2; }

/* ---------- etiquetas ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--ink-2); }
.pill-grad { background: var(--grad-soft); color: #5a3ad9; border: 1px solid #e6dcff; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.01em; }
.badge-ok { background: #e4f9f1; color: #0b7a5e; }
.badge-warn { background: #fff4dc; color: #8a5a00; }
.badge-off { background: #f0eff6; color: var(--muted); }
.badge-pro { background: var(--grad); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot-live { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 154, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(25, 195, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 154, 0); } }

/* ---------- web pública ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.6) blur(14px); background: rgba(251, 250, 255, 0.78); border-bottom: 1px solid rgba(232, 230, 243, 0.7); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; text-decoration: none !important; }
.brand b { font-weight: 800; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.lang:hover { background: var(--soft); text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 15% 30%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(520px 360px at 85% 20%, rgba(255, 122, 89, 0.16), transparent 70%),
    radial-gradient(500px 400px at 60% 70%, rgba(192, 76, 253, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 850; letter-spacing: -0.045em; margin: 20px 0 22px; }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 540px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust .i-sm { color: var(--mint); }

/* Ventana de chat con IA (animada) */
.demo { position: relative; }
.demo-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fcfbff; }
.demo-top i { width: 11px; height: 11px; border-radius: 50%; background: #e6e3f2; }
.demo-top span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-body { padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 430px; }
.b { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: rise 0.5s ease forwards; }
.b-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.b-ai { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 6px; }
.b-ai ul { margin: 6px 0 0; padding-left: 18px; }
.b-ai li + li { margin-top: 4px; }
.tool { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font: 600 12px var(--mono); color: #5a3ad9; background: #fff; border: 1px dashed #d7ccff; padding: 6px 10px; border-radius: 10px; opacity: 0; animation: rise 0.4s ease forwards; }
.tool .i-sm { color: var(--magenta); }
.sent { color: var(--mint); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.d1 { animation-delay: 0.3s; } .d2 { animation-delay: 1.1s; } .d3 { animation-delay: 1.7s; } .d4 { animation-delay: 3.0s; } .d5 { animation-delay: 3.8s; } .d6 { animation-delay: 4.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; animation: bob 5s ease-in-out infinite; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.float-a { left: -34px; bottom: 64px; }
.float-b { right: 24px; top: -22px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.logos { padding: 8px 0 24px; }
.logos .row { justify-content: center; gap: 10px; }
.logos .lbl { width: 100%; text-align: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 15px; }

section.block { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { font-size: 18px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow); }
.step .n { font-size: 54px; font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step .mini { margin-top: 18px; border-radius: 12px; background: var(--soft); padding: 12px 14px; font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: #6a45f0; margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .q { margin-top: 14px; font-size: 13.5px; font-style: italic; color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 8px 12px; }

.dark { background: var(--ink); color: #fff; border-radius: 32px; margin: 0 16px; position: relative; overflow: hidden; }
.dark::after { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(192, 76, 253, 0.35), transparent 65%); }
.dark .section-head p, .dark .muted { color: #b3afd1; }
.dark .eyebrow { color: #c9b8ff; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; position: relative; z-index: 1; }
.pv { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.pv .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #e5dcff; flex: none; }
.pv h3 { font-size: 17px; margin-bottom: 4px; }
.pv p { color: #b3afd1; font-size: 15px; }

.billing-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin: 0 auto 36px; }
.billing-toggle button { border: 0; background: none; height: 38px; padding: 0 18px; border-radius: 9px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.billing-toggle button.on { background: var(--ink); color: #fff; }
.billing-toggle .save { color: var(--mint); font-weight: 700; margin-left: 4px; }
.billing-toggle button.on .save { color: #7ff0cf; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.hot { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 20px; }
.plan .desc { color: var(--muted); font-size: 15px; margin: 6px 0 20px; min-height: 46px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price b { font-size: 48px; font-weight: 850; letter-spacing: -0.04em; }
.price span { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .i-sm { color: var(--mint); margin-top: 3px; }
.plan li.off { color: #a9a6c2; }
.plan li.off .i-sm { color: #cfcce0; }
[data-period="year"] .m-only, [data-period="month"] .y-only { display: none !important; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--violet); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }

.cta-band { margin: 0 16px 80px; border-radius: 32px; padding: 72px 24px; text-align: center; color: #fff; background: var(--grad); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 20% 0%, rgba(255, 255, 255, 0.25), transparent 70%); }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 850; position: relative; }
.cta-band p { font-size: 18px; opacity: 0.9; margin: 14px 0 30px; position: relative; }
.cta-band .btn { position: relative; background: #fff; color: var(--ink); }

footer.site { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
footer.site .row { justify-content: space-between; align-items: flex-start; gap: 32px; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--ink-2); }
.disclaimer { margin-top: 18px; font-size: 13px; max-width: 760px; }

/* ---------- acceso (login / registro / consentimiento) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 400px at 10% 90%, rgba(124, 92, 255, 0.45), transparent 70%), radial-gradient(500px 400px at 100% 10%, rgba(255, 122, 89, 0.35), transparent 70%); }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: 40px; font-weight: 800; max-width: 460px; }
.auth-side .quote { margin-top: 26px; display: grid; gap: 10px; max-width: 420px; }
.auth-side .quote .b { opacity: 1; transform: none; animation: none; }
.auth-side .quote .b-ai { background: rgba(255, 255, 255, 0.1); color: #fff; }
.auth-side .quote .b-user { background: #fff; color: var(--ink); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; }
.auth-box form { display: grid; gap: 16px; }
.auth-box .switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.consent { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.consent::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 20% 10%, rgba(124, 92, 255, 0.12), transparent 70%), radial-gradient(600px 400px at 90% 90%, rgba(255, 122, 89, 0.12), transparent 70%); }
.consent-card { width: 100%; max-width: 480px; background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 36px 32px; }
.consent-link { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; }
.consent-link .client-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--ink-2); }
.consent-link .dots { display: flex; gap: 4px; }
.consent-link .dots i { width: 5px; height: 5px; border-radius: 50%; background: #cfc6ff; }
.consent-card h1 { font-size: 23px; text-align: center; font-weight: 800; }
.consent-card .sub { text-align: center; color: var(--muted); margin: 8px 0 24px; }
.perm { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.perm .i { color: var(--violet); margin-top: 1px; }
.perm.locked { color: var(--muted); }
.perm.locked .i { color: #c9c5de; }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 600; margin: 0; }
.choice:has(input:checked) { border-color: var(--violet); background: #faf8ff; box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12); }
.choice input { accent-color: var(--violet); }

/* ---------- panel ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.side .brand { padding: 4px 10px 18px; }
.side a.nav-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.side a.nav-item:hover { background: var(--soft); }
.side a.nav-item.on { background: var(--ink); color: #fff; }
.side a.nav-item.on .i { color: #d8ccff; }
.side .plan-box { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--grad-soft); border: 1px solid #ece3ff; }
.side .plan-box b { display: block; font-size: 15px; }
.side .plan-box p { font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 12px; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.main { padding: 36px 44px 64px; max-width: 1100px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card .card-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 20px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.checklist { display: grid; gap: 10px; }
.check { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.check .c { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 13px; flex: none; }
.check.done .c { background: var(--mint); border-color: var(--mint); color: #fff; }
.check.done .t { color: var(--muted); text-decoration: line-through; }
.check .t { font-weight: 600; }
.check .btn { margin-left: auto; }
.hero-card { background: var(--ink); color: #fff; border: 0; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(192, 76, 253, 0.45), transparent 65%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .muted { color: #b3afd1; }

.link-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.qr-box { width: 300px; height: 300px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; position: relative; box-shadow: var(--shadow); }
.qr-box svg { width: 252px; height: 252px; }
.qr-box .center-logo { position: absolute; background: #fff; border-radius: 12px; padding: 4px; }
.qr-box.loading::after { content: ""; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.howto { counter-reset: h; display: grid; gap: 14px; margin: 18px 0 22px; padding: 0; list-style: none; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto li::before { counter-increment: h; content: counter(h); width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--violet); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.code-big { font: 800 34px/1 var(--mono); letter-spacing: 0.12em; padding: 22px 28px; border-radius: 16px; background: var(--soft); text-align: center; }
.connected { display: flex; gap: 18px; align-items: center; }
.connected .ph { width: 56px; height: 56px; border-radius: 16px; background: #e4f9f1; color: var(--mint); display: grid; place-items: center; }

.copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fcfbff; }
.copy code { flex: 1; overflow: auto; white-space: nowrap; font-size: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--violet); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
pre.snippet { margin: 12px 0 0; background: var(--ink); color: #e9e6ff; padding: 16px 18px; border-radius: 14px; overflow: auto; font: 13px/1.6 var(--mono); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 0 12px 10px; }
table.t td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #fcfbff; }
.tool-name { font: 600 12.5px var(--mono); background: var(--soft); color: #5a3ad9; padding: 3px 8px; border-radius: 8px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--violet); display: grid; place-items: center; margin: 0 auto 14px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg label { margin: 0; }
.seg .choice { height: 100%; align-items: flex-start; flex-direction: column; gap: 4px; font-weight: 500; }
.seg .choice b { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.seg .choice span { font-size: 13px; color: var(--muted); }
.chat-list { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; }
.chat-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; font-weight: 500; cursor: pointer; }
.chat-item:first-child { border-top: 0; }
.chat-item:hover { background: #fcfbff; }
.chat-item input { width: 18px; height: 18px; accent-color: var(--violet); }
.chat-item .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--violet); font-size: 14px; flex: none; }
.chat-item .meta { font-size: 12.5px; color: var(--muted); font-weight: 400; }

.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-cards .plan { padding: 24px; box-shadow: none; }
.plan-cards .plan.hot { transform: none; }
.plan-cards .price b { font-size: 36px; }
.current { outline: 3px solid rgba(25, 195, 154, 0.35); }
.trial-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; margin-top: 12px; }
.trial-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: 0.25s; pointer-events: none; z-index: 50; display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.mobile-bar { display: none; }

.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 38px; font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .auth, .link-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .steps, .features, .plans, .plan-cards, .grid-3 { grid-template-columns: 1fr; }
  .privacy-grid, .grid-2, .seg { grid-template-columns: 1fr; }
  .plan.hot { transform: none; }
  .nav-links { display: none; }
  .float-a, .float-b { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 40; height: auto; }
  .side.open { display: flex; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
  .mobile-bar button { background: none; border: 0; cursor: pointer; color: var(--ink); }
  .main { padding: 24px 18px 56px; }
  .qr-box { margin: 0 auto; }
  section.block { padding: 64px 0; }
  .dark, .cta-band { margin: 0 8px; border-radius: 24px; }
  .cta-band { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .b, .tool { opacity: 1; transform: none; }
}
.consent-card > svg { margin: 0 auto; }
.hint svg, p svg.i-sm { display: inline-block; vertical-align: -3px; }
.grid-2 > .card, .grid-3 > .card { margin-top: 0; }
.tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }

/* ---------- acceso con Google, Apple, Microsoft, GitHub ---------- */
.social { display: grid; gap: 10px; }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 15px var(--font);
  text-decoration: none !important; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-social:hover { background: var(--soft); border-color: #d6d0f0; }
.btn-social:active { transform: translateY(1px); }
.btn-social svg { flex: none; }
.btn-social-apple { background: #000; color: #fff; border-color: #000; }
.btn-social-apple:hover { background: #1d1d1f; border-color: #1d1d1f; }
.social .small { margin-top: 2px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- móvil: cabecera compacta, sin desbordes ---------- */
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .nav .wrap { gap: 12px; padding: 0 16px; height: 60px; }
  .brand { font-size: 17px; }
  .brand svg { width: 28px; height: 28px; }
  .nav-cta { gap: 6px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 64px; }
  .hero .lead { font-size: 17px; }
  .hero .ctas .btn { width: 100%; }
  .demo-body { min-height: 0; padding: 18px 14px 20px; }
  .b { max-width: 92%; font-size: 14px; }
  .logos .chip { height: 34px; padding: 0 12px; font-size: 14px; }
  .section-head { margin-bottom: 36px; }
  .faq summary { font-size: 16px; }
  .cta-band { padding: 52px 20px; }
  footer.site .row { flex-direction: column; }
  .auth-main { padding: 28px 18px; align-items: start; }
  .auth-box h1 { font-size: 28px; }
  .copy code { font-size: 12px; }
  .page-head h1 { font-size: 26px; }
  .card { padding: 18px; }
  .row[style*="nowrap"] { flex-wrap: wrap !important; }
  table.t { font-size: 13px; }
  .consent-card { padding: 28px 20px; }
}
.auth-mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 980px) { .auth-mobile-brand { display: block; } }
.chat-feed { margin-top: 16px; border-top: 1px solid var(--line); }
.feed-item { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--violet); flex: none; }
.feed-main { flex: 1; min-width: 0; }
.feed-top { display: flex; justify-content: space-between; gap: 10px; }
.feed-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-prev { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { min-width: 22px; height: 22px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; flex: none; }
/* Menú: enlaces en escritorio, desplegable en móvil */
section[id], div[id="connector"] { scroll-margin-top: 84px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 6px; border-radius: 10px; color: var(--ink); }
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 46px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--soft); }
@media (max-width: 980px) { .nav-menu { display: block; } }
@media (min-width: 981px) and (max-width: 1120px) { .nav-links { gap: 16px; } .nav-links a { font-size: 14px; } }
.mcp-box { margin-top: 28px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.75); border: 1px solid #e6dcff; box-shadow: var(--shadow); max-width: 560px; }
.mcp-box p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.mcp-box .copy { background: #fff; }
.mcp-box code { font-size: 13px; }

/* Modo gratis: tarjeta de mejora y "caja de respuesta" bloqueada */
.upsell { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.upsell h2 { font-size: 21px; margin: 12px 0 14px; }
.upsell .caps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 14.5px; }
.upsell .caps li { display: flex; gap: 8px; align-items: center; }
.upsell .caps li .i-sm { color: var(--mint); }
.upsell .caps li.off { color: var(--muted); }
.upsell .caps li.off .i-sm { color: var(--coral); }
.upsell-cta { background: var(--grad-soft); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.upsell-cta .price { margin: 0; justify-content: center; }
.upsell-cta .price b { font-size: 38px; }
.composer-locked { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #d7ccff; background: #faf8ff; color: var(--muted); font-size: 14px; text-decoration: none !important; }
.composer-locked .i-sm { color: var(--violet); }
.composer-locked b { margin-left: auto; color: var(--violet); white-space: nowrap; }
.composer-locked:hover { background: var(--soft); }
@media (max-width: 980px) { .upsell { grid-template-columns: 1fr; } .upsell .caps { grid-template-columns: 1fr; } }
.upsell { grid-template-columns: minmax(0, 1fr) 300px; }
.upsell-cta { min-width: 0; text-align: center; }
.upsell-cta .btn { white-space: normal; height: auto; min-height: 52px; padding: 12px 16px; }
@media (max-width: 980px) { .upsell { grid-template-columns: 1fr; } }
