:root {
  --ink: #1b2233; --ink-2: #3d475c; --muted: #6b7489; --paper: #fbf8f3; --card: #fff; --line: #e9e3d8;
  --coral: #ff6b4a; --coral-d: #e2522f; --green: #1f9d6b; --wa: #25d366; --wa-d: #075e54; --wa-bg: #efe7dd;
  --gold: #f5b83d; --violet: #6d5dfc; --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 34, 51, .08); --shadow-lg: 0 24px 60px rgba(27, 34, 51, .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
fieldset.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.fs[disabled] { opacity: .75; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--coral), var(--gold)); display: grid; place-items: center; color: #fff; font-size: 1.05rem; flex: none; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--coral-d); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, .3); }
.btn-primary:hover { background: var(--coral-d); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff1ec; color: var(--coral-d); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero-points span::before { content: "✓ "; color: var(--green); font-weight: 900; }
.hero-art { position: relative; min-height: 420px; }
.bubble-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: .92rem; max-width: 290px; }
.bubble-card b { display: block; margin-bottom: 4px; }
.bc1 { top: 10px; left: 0; } .bc2 { top: 120px; right: 0; background: #dcf8c6; } .bc3 { top: 235px; left: 30px; }
.bc4 { bottom: 0; right: 20px; background: var(--ink); color: #fff; } .bc4 .muted { color: #b9c0d0; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.15; margin: 10px 0; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.kicker { color: var(--coral-d); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--coral); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-weight: 800; font-size: .76rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.plan-icon { font-size: 1.8rem; }
.plan h3 { margin: 6px 0 2px; font-size: 1.45rem; letter-spacing: -.02em; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 48px; margin: 0 0 14px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 2.4rem; letter-spacing: -.04em; }
.price span { color: var(--muted); font-weight: 600; }
.price-note { font-size: .85rem; color: var(--green); font-weight: 700; min-height: 40px; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; font-size: .95rem; }
.plan li small { display: block; color: var(--muted); font-size: .83rem; }
.plan .btn { width: 100%; white-space: normal; }
.plan-sep { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; display: block !important; }

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: #fff7f2; font-size: .88rem; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp td:first-child, .cmp th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp thead th:first-child { background: #fff7f2; }
.cmp tr.group td { background: #faf7f1; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.yes { color: var(--green); font-weight: 900; } .nope { color: #c4c9d4; }

/* ---------- demo ---------- */
#demo { background: linear-gradient(180deg, #fff 0%, #fdf1ea 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-note { text-align: center; max-width: 720px; margin: 22px auto 0; }
.demo-note a { color: var(--coral-d); font-weight: 700; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 16px; }
.seg { display: inline-flex; background: #f3efe8; border-radius: 999px; padding: 4px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 13px; font-weight: 700; color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.seg button.on.p-emprende { color: var(--green); } .seg button.on.p-negocio { color: var(--coral-d); } .seg button.on.p-pro { color: var(--violet); }
.preset { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.preset select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.save-state { font-weight: 700; font-size: .85rem; color: var(--green); }
.cfg-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pane-switch { display: none; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.col-panel { min-width: 0; }
.pane-title { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.pane-title.center { justify-content: center; }
.pane-title .dot { width: 10px; height: 10px; border-radius: 50%; }

/* owner panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: #fff; }
.panel-top .logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; flex: none; }
.pt-txt { min-width: 0; }
.panel-top .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-top .s { color: #aeb6c8; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-top .plan-tag { margin-left: auto; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #f6f3ee; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 10px 13px; border-radius: 10px 10px 0 0; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .88rem; flex: none; }
.tabs button.on { background: #fff; color: var(--ink); }
.tabs button .lock { font-size: .72rem; }
.tab-body { padding: 18px; min-height: 480px; max-height: 700px; overflow-y: auto; }
.hint { background: #fff8e6; border: 1px solid #f6e2a8; border-radius: 12px; padding: 10px 14px; font-size: .88rem; color: #6b5310; margin-bottom: 14px; }
.hint b { color: #4f3c05; } .hint a { color: var(--coral-d); font-weight: 700; }
.hint.big { font-size: 1rem; padding: 14px 18px; margin: 18px 0 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-weight: 700; font-size: .84rem; color: var(--ink-2); }
.field input, .field textarea, .field select, .row input, .row select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; width: 100%; min-width: 0; font-size: 16px; }
.field textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.styles button, .daypick button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 6px; font-weight: 700; font-size: .84rem; }
.styles button.on, .daypick button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.list { display: grid; gap: 8px; margin-bottom: 10px; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px 36px; gap: 8px; align-items: center; }
.row.faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 36px; }
.row.emp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; height: 40px; width: 36px; display: grid; place-items: center; }
.icon-btn:hover { background: #fff1ec; }
.add-btn { border: 1px dashed #d4cbbb; background: #fbf8f3; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .86rem; color: var(--ink-2); margin-top: 4px; }
h4.sub { margin: 18px 0 10px; font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.locked { border: 1px dashed #d9d1c3; border-radius: 14px; padding: 16px; background: repeating-linear-gradient(-45deg, #fbf9f5, #fbf9f5 10px, #f6f2ea 10px, #f6f2ea 20px); text-align: center; margin: 10px 0; }
.locked b { display: block; margin-bottom: 4px; } .locked .btn { margin-top: 10px; white-space: normal; }
.toggle { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin: 8px 0; }
.toggle input { width: 18px; height: 18px; accent-color: var(--coral); flex: none; margin-top: 2px; }
.orders { display: grid; gap: 10px; }
.order { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; background: #fff; }
.order .who { font-weight: 800; } .order .meta { font-size: .84rem; color: var(--muted); }
.order .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.status { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.st-pendiente { background: #fff4d6; color: #8a6200; } .st-confirmado { background: #e3f7ee; color: var(--green); }
.st-cancelado { background: #f1f2f5; color: var(--muted); text-decoration: line-through; } .st-prueba { background: #eef0ff; color: var(--violet); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 10px 0 16px; }
.day { border: 1px solid var(--line); border-radius: 10px; min-height: 88px; padding: 5px; font-size: .72rem; background: #fff; min-width: 0; }
.day .dn { font-weight: 800; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.day.today { border-color: var(--coral); }
.ev { background: #fff1ec; color: var(--coral-d); border-radius: 6px; padding: 2px 4px; margin-bottom: 3px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.ok { background: #e3f7ee; color: var(--green); }
.meter { height: 12px; background: #f1ede6; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 999px; transition: width .4s; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.kpi b { display: block; font-size: 1.3rem; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: .78rem; color: var(--muted); }
.plan-ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.plan-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.convo-list { display: grid; gap: 8px; }
.convo { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.convo .av { width: 36px; height: 36px; border-radius: 50%; background: #e9e3d8; display: grid; place-items: center; font-weight: 800; flex: none; }
.convo .txt { flex: 1; min-width: 0; }
.convo .txt div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; color: var(--muted); }
.takeover-on { background: #fff1ec; border-color: var(--coral); }
.human-form { display: flex; gap: 8px; margin-top: 12px; }
.human-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 16px; }
.log { font-size: .82rem; color: var(--ink-2); border-left: 3px solid var(--line); padding-left: 10px; display: grid; gap: 4px; }
.assist { border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; height: 430px; }
.assist-msgs { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 8px; align-content: start; background: #f8f7fd; border-radius: 14px 14px 0 0; }
.am { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; white-space: pre-wrap; }
.am.me { justify-self: end; background: var(--violet); color: #fff; }
.am.bot { background: #fff; border: 1px solid #e4e1f5; }
.am .draft { margin-top: 8px; background: #f4f2ff; border-radius: 10px; padding: 8px; font-size: .85rem; }
.am .draft .btn { margin-top: 6px; }
.assist-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.assist-quick button { border: 1px solid #ddd8fb; background: #fff; color: var(--violet); border-radius: 999px; padding: 5px 10px; font-size: .8rem; font-weight: 700; }
.assist form { display: flex; gap: 8px; padding: 10px; }
.assist input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 16px; }

/* phone */
.phone-col { position: sticky; top: 84px; min-width: 0; }
.view-switch { display: flex; justify-content: center; margin-bottom: 10px; }
.phone { width: 360px; max-width: 100%; height: min(720px, calc(100vh - 150px)); min-height: 560px; margin: 0 auto; border-radius: 44px; background: #11141c; padding: 11px; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 999px; background: #000; z-index: 5; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
.statusbar { height: 38px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 4px; font-size: .74rem; font-weight: 700; }

/* whatsapp */
.wa { display: flex; flex-direction: column; height: 100%; background: var(--wa-bg); }
.wa-head { background: var(--wa-d); color: #fff; flex: none; padding-bottom: 8px; }
.wa-bar { display: flex; align-items: center; gap: 10px; padding: 4px 12px 0; }
.wa-back { font-size: 1.4rem; line-height: 1; }
.wa-x { background: none; border: 0; color: #fff; font-size: 1.1rem; padding: 4px; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: #fff; flex: none; }
.wa-who { flex: 1; min-width: 0; }
.wa-name { font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #25d366; color: #fff; font-size: .55rem; vertical-align: 1px; }
.wa-sub { font-size: .74rem; color: #cfe9e2; }
.wa-pill { background: rgba(255, 255, 255, .15); border: 0; color: #fff; border-radius: 999px; width: 32px; height: 32px; font-weight: 800; flex: none; }
.wa-body { flex: 1; overflow-y: auto; background: var(--wa-bg); padding: 12px 10px; display: flex; flex-direction: column; gap: 5px;
  background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; overscroll-behavior: contain; }
.wa-day { align-self: center; background: #e1f3fb; color: #4a5a63; font-size: .7rem; border-radius: 8px; padding: 4px 10px; margin: 4px 0; }
.wa-sys { align-self: center; background: #fff5c4; color: #5c4a00; font-size: .72rem; border-radius: 8px; padding: 6px 10px; text-align: center; max-width: 92%; }
.msg { max-width: 84%; padding: 7px 10px 18px; border-radius: 10px; font-size: .9rem; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); animation: pop .18s ease-out; min-width: 64px; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.msg.human { background: #fff3e0; }
.msg .tm { position: absolute; right: 8px; bottom: 3px; font-size: .64rem; color: #7a8a8f; }
.tick { font-style: normal; letter-spacing: -3px; color: #9aa6ab; }
.tick.read { color: #34b7f1; }
.msg .tag { display: block; font-size: .68rem; font-weight: 800; color: var(--coral-d); margin-bottom: 2px; }
.typing { align-self: flex-start; background: #fff; border-radius: 10px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6ab; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.wa-quick { display: flex; gap: 6px; overflow-x: auto; padding: 6px 8px; background: var(--wa-bg); flex: none; scrollbar-width: none; }
.wa-quick::-webkit-scrollbar { display: none; }
.wa-quick button { flex: none; border: 1px solid #cfd8d3; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: .78rem; color: var(--wa-d); font-weight: 700; }
.wa-quick button.play { background: var(--wa-d); color: #fff; border-color: var(--wa-d); }
.wa-input { display: flex; gap: 6px; padding: 8px; background: #f0f0f0; flex: none; }
.wa-input input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 10px 14px; background: #fff; font-size: 16px; }
.wa-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--wa-d); color: #fff; font-size: 1.05rem; flex: none; }

/* ---------- página del negocio (en el teléfono y a pantalla completa) ---------- */
.site { height: 100%; overflow-y: auto; font-size: 14px; position: relative; }
.site .statusbar { position: sticky; top: 0; z-index: 3; }
.s-url { position: sticky; top: 38px; z-index: 3; background: #f1f1f4; color: #444; font-size: .7rem; text-align: center; padding: 5px 10px; border-bottom: 1px solid #e3e3e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-wrap { width: min(1080px, 100%); margin: 0 auto; }
.s-hero { padding: 26px 20px 28px; color: #fff; text-align: center; }
.s-logo { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 10px; }
.s-hero h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.s-hero p { margin: 6px 0 14px; opacity: .92; }
.s-open { font-size: .75rem; margin-top: 10px; opacity: .9; }
.s-btn { display: inline-block; background: #fff; color: #111; font-weight: 800; border-radius: 999px; padding: 10px 18px; font-size: .86rem; border: 0; }
.s-sec { padding: 18px; }
.s-sec h2 { font-size: 1.05rem; margin: 0 0 10px; }
.s-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.s-prod { border-radius: 14px; padding: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 2px; }
.s-prod .e { font-size: 1.8rem; }
.s-prod b { display: block; font-size: .86rem; line-height: 1.2; overflow-wrap: anywhere; }
.s-prod .p { font-weight: 800; margin-top: 2px; }
.s-add { align-self: flex-start; background: none; border: 1px solid; border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 800; margin-top: 6px; }
.s-info { display: grid; gap: 8px; font-size: .88rem; }
.s-info div { display: flex; gap: 8px; }
.s-faq details { background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: .85rem; }
.s-faq summary { font-weight: 700; cursor: pointer; }
.s-foot { text-align: center; font-size: .7rem; color: #999; padding: 16px 16px 80px; }
.s-wa-float { position: sticky; bottom: 16px; margin: -76px 16px 16px auto; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); border: 0; z-index: 4; }
.s-pwa { margin: 14px 18px 0; border-radius: 12px; padding: 10px 12px; font-size: .8rem; display: flex; gap: 8px; align-items: center; }
.style-calido { background: #fff8f1; }
.style-calido .s-sec h2, .style-calido .s-hero h1 { font-family: Georgia, "Times New Roman", serif; }
.style-moderno { background: #f4f6fb; }
.style-moderno .s-hero { text-align: left; border-radius: 0 0 28px 28px; }
.style-moderno .s-logo { margin: 0 0 10px; border-radius: 16px; }
.style-moderno .s-prod { border-radius: 8px; }
.style-minimal { background: #fff; }
.style-minimal .s-hero { color: #111; background: #fff !important; border-bottom: 1px solid #eee; }
.style-minimal .s-prod { box-shadow: none; border: 1px solid #eee; }
/* pantalla completa (/demo/x/web) */
.site-full { height: auto; overflow: visible; font-size: 16px; min-height: 100vh; }
.site-full .s-hero { padding: 56px 20px 60px; }
.site-full .s-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.site-full .s-hero p { font-size: 1.1rem; }
.site-full .s-logo { width: 84px; height: 84px; font-size: 2.6rem; }
.site-full .s-sec { padding: 28px 20px; }
.site-full .s-sec h2 { font-size: 1.4rem; }
.site-full .s-prods { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.site-full .s-prod { padding: 16px; }
.site-full .s-prod b { font-size: .98rem; }
.site-full .s-info { font-size: 1rem; }
.site-full .s-faq details { font-size: .95rem; padding: 12px 14px; }
.site-full .s-pwa { margin: 18px 20px 0; font-size: .9rem; }
.s-wa-fixed { position: fixed; right: 20px; bottom: 20px; z-index: 40; border: 0; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 800; padding: 14px 20px; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.s-wa-fixed span { font-size: .95rem; }
.chat-box { position: fixed; right: 20px; bottom: 20px; width: 380px; height: min(640px, calc(100vh - 100px)); z-index: 60; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); display: none; }
.chat-box.open { display: block; }
.chat-box .wa-head { padding-top: 8px; }
.chat-open .s-wa-fixed { display: none; }
.demo-banner { position: sticky; top: 0; z-index: 70; background: #1b2233; color: #e6e9f2; font-size: .8rem; padding: 7px 14px; display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: center; }
.demo-banner b { color: #fff; }
.db-links { display: inline-flex; gap: 10px; }
.db-links a { color: #ffb4a3; font-weight: 700; text-decoration: none; }
.mode-hub .nav, .mode-config .nav { top: 34px; }

/* ---------- resumen de la demo ---------- */
.hub { padding-bottom: 40px; }
.hub-hero { display: flex; gap: 20px; align-items: center; padding: 34px 0 10px; }
.hub-logo { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 2.6rem; flex: none; box-shadow: var(--shadow); }
.hub-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.hub-hero p { margin: 6px 0 10px; }
.hub-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-plan, .tag-exp { font-size: .8rem; font-weight: 800; border-radius: 999px; padding: 5px 12px; background: #fff1ec; color: var(--coral-d); }
.tag-exp { background: #eef0f5; color: var(--ink-2); }
.hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 34px; }
.hub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; display: grid; gap: 6px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--coral); }
.hub-card .hc-i { font-size: 1.8rem; } .hub-card b { font-size: 1.1rem; } .hub-card span:last-child { color: var(--muted); font-size: .92rem; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.hub-grid h2 { letter-spacing: -.02em; margin-top: 0; }
.hub-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 1rem; }
.hub-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.hub-cta { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; }
.hub-cta h3 { margin: 0 0 6px; } .hub-cta p { color: #c4cad8; margin: 0 0 14px; }

/* ---------- configurador ---------- */
.cfg { padding: 20px 0 40px; }
.cfg-title { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 18, 28, .55); z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 22px; padding: 24px; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.modal-x { position: absolute; top: 12px; right: 12px; border: 0; background: #f3efe8; border-radius: 50%; width: 34px; height: 34px; }
.slug-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.slug-in span { padding: 9px 0 9px 11px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.slug-in input { border: 0 !important; padding-left: 2px !important; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* ---------- how / faq / footer ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; } .step p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq-list summary { font-weight: 800; cursor: pointer; } .faq-list p { color: var(--ink-2); margin: 10px 0 0; }
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; letter-spacing: -.02em; } .cta-band p { margin: 0; color: #c4cad8; }
footer { padding: 30px 20px 50px; color: var(--muted); font-size: .85rem; text-align: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; transition: transform .3s; z-index: 300; box-shadow: var(--shadow-lg); width: max-content; max-width: 90vw; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================= responsive ================= */
@media (max-width: 1000px) {
  .demo-grid, .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .pane-switch { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 14px; position: sticky; top: 72px; z-index: 20; box-shadow: var(--shadow); }
  .mode-config .pane-switch { top: 106px; }
  .pane-switch button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 10px 8px; font-weight: 800; color: var(--muted); font-size: .92rem; }
  .pane-switch button.on { background: var(--ink); color: #fff; }
  .pane-panel .phone-col { display: none; }
  .pane-phone .col-panel { display: none; }
  .phone-col { position: static; }
  .pane-title { display: none; }
  .hub-phone .pane-title { display: flex; }
}
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 30px; }
  .plan.featured { transform: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hub-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 28px); }
  .nav .wrap { height: 58px; gap: 10px; }
  .brand { font-size: 1rem; } .brand-mark { width: 30px; height: 30px; }
  .hero { padding: 30px 0 34px; }
  .hero h1 { font-size: 1.95rem; margin: 12px 0 12px; }
  .hero p.lead { font-size: 1rem; }
  .eyebrow { font-size: .76rem; padding: 5px 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-points { font-size: .88rem; }
  .hero-art { min-height: 0; display: grid; gap: 10px; }
  .bubble-card { position: static; max-width: 88%; font-size: .86rem; padding: 11px 13px; box-shadow: var(--shadow); }
  .bc2, .bc4 { justify-self: end; }
  section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head p { font-size: .96rem; }
  .plan { padding: 24px 18px; border-radius: 20px; }
  .plan .for { min-height: 0; }
  .price strong { font-size: 2.1rem; }
  .price-note { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 26px 20px; border-radius: 22px; }
  .cta-band .btn { width: 100%; }
  .demo-bar { padding: 10px; gap: 8px; }
  .demo-bar > * { flex: 1 1 100%; }
  .demo-bar .seg { display: flex; }
  .demo-bar .seg button { flex: 1; padding: 8px 6px; font-size: .84rem; }
  .demo-bar .btn { width: 100%; }
  .preset select { flex: 1; }
  .hide-xs { display: none; }
  .cfg-links .btn { flex: 1; }
  .tab-body { padding: 14px; min-height: 0; max-height: none; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 84px 36px; gap: 6px; }
  .row.faq { grid-template-columns: minmax(0, 1fr) 36px; }
  .row.faq input[data-k="a"] { grid-column: 1 / 2; grid-row: 2; }
  .row.faq .icon-btn { grid-row: 1 / 3; grid-column: 2; height: auto; align-self: stretch; }
  .styles button { font-size: .78rem; }
  .daypick { gap: 4px; } .daypick button { padding: 8px 0; font-size: .74rem; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .order { grid-template-columns: 1fr; }
  .order .actions { justify-content: flex-start; }
  .kpi b { font-size: 1.05rem; }
  .phone { width: 100%; max-width: 400px; height: 74vh; min-height: 480px; border-radius: 36px; padding: 8px; }
  .phone::before { top: 12px; width: 72px; height: 18px; }
  .screen { border-radius: 30px; }
  .assist { height: 400px; }
  .hub-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; }
  .hub-logo { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
  .chat-box { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .s-wa-fixed { right: 14px; bottom: 14px; padding: 13px 16px; }
  .site-full .s-hero { padding: 36px 18px 40px; }
  .site-full .s-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-full .s-prod { padding: 12px; }
  .demo-banner { font-size: .72rem; padding: 6px 10px; }
  .mode-hub .nav, .mode-config .nav { top: 46px; }
  .mode-config .pane-switch { top: 112px; }
  .cfg-title { display: none; }
  .modal-card { padding: 20px 16px; }
  .slug-in span { font-size: .72rem; }
}
.hub > section, .site section { padding-top: 0; padding-bottom: 0; }
.site .s-sec { padding: 18px; } .site-full .s-sec { padding: 28px 20px; }
