:root { --bg: #0b1020; --bg2: #121a33; --card: #151c36; --ink: #f1f5f9; --mute: #94a3b8; --line: rgba(255,255,255,.1); --a: #fbbf24; --b: #22d3ee; --v: #7c3aed; --danger: #f87171; --r: 16px; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 'Inter', system-ui, sans-serif; }
a { color: var(--b); }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.err { color: #fca5a5; min-height: 1.2em; margin: 6px 0 0; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.wrap.narrow, .narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 12px; border: 0; background: var(--a); color: #111827; font: 700 15px 'Inter', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.full { width: 100%; }
.btn.danger, .btn.ghost.danger { color: var(--danger); }
.btn.danger:not(.ghost) { background: var(--danger); color: #111; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.warn { box-shadow: 0 0 0 3px rgba(251,191,36,.35); }
button.link { background: none; border: 0; color: var(--mute); cursor: pointer; font: inherit; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-bottom: 18px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,16,32,.9); backdrop-filter: blur(10px); z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px 'Space Grotesk', sans-serif; color: var(--ink); text-decoration: none; }
.logo { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo i { width: 6px; border-radius: 2px; background: var(--b); height: 45%; }
.logo i:nth-child(2) { background: var(--a); height: 72%; } .logo i:nth-child(3) { background: var(--v); height: 100%; }
.topbar nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--mute); text-decoration: none; font-weight: 500; }
.topbar nav a.on, .topbar nav a:hover { color: var(--ink); }
.topbar nav a.btn { color: #111827; }

/* Landing */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 60px 22px 40px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(34,211,238,.12); color: var(--b); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 16px 0; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--a), #f472b6, var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 560px; }
.hero .row { margin-top: 24px; flex-wrap: wrap; }
.hero-demo { position: relative; min-height: 360px; }
.demo-screen { background: linear-gradient(160deg, #18213f, #0b1020); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: 0 40px 80px rgba(0,0,0,.45); position: relative; overflow: hidden; }
.demo-stripe { position: absolute; inset: 0 0 auto; height: 7px; display: flex; }
.demo-stripe i { flex: 1; } .demo-stripe i:nth-child(1) { background: #7c3aed; } .demo-stripe i:nth-child(2) { background: #2563eb; } .demo-stripe i:nth-child(3) { background: #06b6d4; } .demo-stripe i:nth-child(4) { background: #10b981; } .demo-stripe i:nth-child(5) { background: #f59e0b; }
.demo-screen small { color: var(--a); font-weight: 800; letter-spacing: .2em; font-size: 11px; }
.demo-screen > b { display: block; font: 700 24px 'Space Grotesk', sans-serif; margin: 6px 0 16px; }
.demo-bar { margin: 10px 0; font-size: 13px; }
.demo-bar i { display: block; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--v), var(--b)); width: var(--w); margin-top: 4px; animation: grow 2.4s ease-out; }
@keyframes grow { from { width: 0; } }
.demo-phone { position: absolute; right: -6px; bottom: -40px; width: 190px; background: #0f172a; border: 6px solid #1e293b; border-radius: 28px; padding: 16px 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5); font-size: 12px; }
.demo-phone small { color: var(--mute); } .demo-phone b { display: block; font: 700 16px 'Space Grotesk', sans-serif; margin: 6px 0; color: var(--a); }
.demo-phone span { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; margin: 5px 0; }
.demo-phone span.on { border-color: var(--a); background: rgba(251,191,36,.12); }
.block { max-width: 1180px; margin: 0 auto; padding: 50px 22px; }
.block > h2 { font-size: 34px; margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; }
.steps .n { position: absolute; top: 14px; right: 16px; font: 700 28px 'Space Grotesk', sans-serif; color: rgba(255,255,255,.12); }
.steps .ic, .feat .ic { font-size: 30px; }
.steps h3, .feat h3 { font-size: 18px; margin: 10px 0 6px; }
.steps p, .feat p { color: var(--mute); margin: 0; font-size: 14px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.center-note { text-align: center; color: var(--mute); margin-top: 26px; }
.tabs { display: flex; gap: 6px; background: rgba(255,255,255,.05); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--mute); font: 600 15px 'Inter', sans-serif; cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.form label { display: block; margin-bottom: 14px; font-size: 14px; color: #cbd5e1; font-weight: 500; }
input, textarea, select { font: inherit; }
.form input, .fields input:not([type=checkbox]):not([type=file]), .fields textarea, .fields select, select { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.form input:focus, .fields input:focus, .fields textarea:focus, .fields select:focus { outline: none; border-color: var(--b); }
.foot-site { text-align: center; color: var(--mute); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid var(--line); }

/* Catálogo */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; }
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 20px; }
.deck { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; position: relative; }
.deck h3 { margin: 10px 0 4px; font-size: 20px; cursor: text; }
.deck-top { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.deck-top i { flex: 1; background: var(--b); }
.pal-aurora i:nth-child(1){background:#7c3aed}.pal-aurora i:nth-child(2){background:#2563eb}.pal-aurora i:nth-child(3){background:#06b6d4}.pal-aurora i:nth-child(4){background:#10b981}.pal-aurora i:nth-child(5){background:#f59e0b}
.pal-atardecer i:nth-child(1){background:#f97316}.pal-atardecer i:nth-child(2){background:#ef4444}.pal-atardecer i:nth-child(3){background:#ec4899}.pal-atardecer i:nth-child(4){background:#a855f7}.pal-atardecer i:nth-child(5){background:#facc15}
.pal-oceano i:nth-child(1){background:#0ea5e9}.pal-oceano i:nth-child(2){background:#0284c7}.pal-oceano i:nth-child(3){background:#14b8a6}.pal-oceano i:nth-child(4){background:#22d3ee}.pal-oceano i:nth-child(5){background:#a7f3d0}
.pal-bosque i:nth-child(1){background:#15803d}.pal-bosque i:nth-child(2){background:#22c55e}.pal-bosque i:nth-child(3){background:#84cc16}.pal-bosque i:nth-child(4){background:#eab308}.pal-bosque i:nth-child(5){background:#a3e635}
.pal-neon i:nth-child(1){background:#e879f9}.pal-neon i:nth-child(2){background:#a78bfa}.pal-neon i:nth-child(3){background:#22d3ee}.pal-neon i:nth-child(4){background:#4ade80}.pal-neon i:nth-child(5){background:#fde047}
.pal-fuego i:nth-child(1){background:#991b1b}.pal-fuego i:nth-child(2){background:#dc2626}.pal-fuego i:nth-child(3){background:#f97316}.pal-fuego i:nth-child(4){background:#f59e0b}.pal-fuego i:nth-child(5){background:#fde047}
.pal-pastel i:nth-child(1){background:#fb7185}.pal-pastel i:nth-child(2){background:#fb923c}.pal-pastel i:nth-child(3){background:#facc15}.pal-pastel i:nth-child(4){background:#4ade80}.pal-pastel i:nth-child(5){background:#60a5fa}
.pal-sobrio i:nth-child(1){background:#1e293b}.pal-sobrio i:nth-child(2){background:#475569}.pal-sobrio i:nth-child(3){background:#64748b}.pal-sobrio i:nth-child(4){background:#0f766e}.pal-sobrio i:nth-child(5){background:#b45309}
.deck p { margin: 0 0 14px; font-size: 13px; }
.share-url { font-size: 12px !important; margin-top: 12px !important; word-break: break-all; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; right: 0; top: 40px; background: #1d2647; border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 5; min-width: 240px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.more .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; font: inherit; }
.more .menu button:hover { background: rgba(255,255,255,.07); }
.more .menu .danger { color: var(--danger); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px; border: 2px dashed var(--line); border-radius: 20px; }
.danger-zone { border-color: rgba(248,113,113,.3); }

/* Editor */
body.editor { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.ed-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d1428; }
.icon-btn { color: var(--ink); text-decoration: none; font-size: 20px; padding: 4px 10px; border-radius: 8px; }
.icon-btn:hover { background: rgba(255,255,255,.07); }
.deck-name { flex: 1; min-width: 160px; max-width: 420px; background: transparent; border: 1px solid transparent; color: var(--ink); font: 700 18px 'Space Grotesk', sans-serif; padding: 6px 10px; border-radius: 8px; }
.deck-name:hover, .deck-name:focus { border-color: var(--line); outline: none; }
.ed-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.ed { flex: 1; display: grid; grid-template-columns: 290px 1fr; min-height: 0; }
.ed-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #0c1226; }
.ed-list-head { padding: 12px 14px; font-size: 12px; }
.ed-list ol { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1; }
.ed-list li { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 3px; }
.ed-list li:hover { background: rgba(255,255,255,.04); }
.ed-list li.on { background: rgba(34,211,238,.09); border-color: rgba(34,211,238,.35); }
.ed-list li .grip { cursor: grab; color: var(--mute); font-size: 16px; padding: 0 2px; }
.ed-list li .num { font: 700 13px 'Space Grotesk', sans-serif; color: var(--mute); width: 20px; text-align: right; }
.ed-list li div { min-width: 0; }
.ed-list li small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--b); font-weight: 700; }
.ed-list li b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-list li.sortable-ghost { opacity: .4; }
.ed-list-foot { padding: 10px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.ed-panel { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; min-height: 0; }
.ed-form { overflow-y: auto; padding: 18px 20px 40px; border-right: 1px solid var(--line); }
.ed-form-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ed-form-head small { color: var(--b); font-weight: 700; letter-spacing: .12em; font-size: 11px; }
.ed-form-head b { display: block; font: 700 20px 'Space Grotesk', sans-serif; }
.fields label, .fields .lbl { display: block; margin: 14px 0; font-size: 13px; color: #cbd5e1; font-weight: 600; }
.fields label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.fields label.check input { margin-top: 3px; accent-color: var(--a); width: 16px; height: 16px; }
.fields .help { display: block; font-weight: 400; color: var(--mute); font-size: 12px; margin-top: 4px; }
.fields .inline { display: flex; gap: 6px; align-items: center; }
.fields .inline .btn { margin-top: 6px; }
.frame-msg { display: block; font-size: 12px; font-weight: 500; margin-top: 4px; }
.frame-msg.ok { color: #86efac; } .frame-msg.bad { color: #fca5a5; }
.rt-tools { display: flex; gap: 4px; margin-top: 6px; }
.rt-tools button { background: #0d1428; border: 1px solid var(--line); color: var(--ink); padding: 4px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.seg { display: flex; gap: 4px; background: #0d1428; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-top: 6px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--mute); padding: 8px; border-radius: 7px; cursor: pointer; font: 600 13px 'Inter', sans-serif; }
.seg button.on { background: var(--a); color: #111827; }
.seg.steps { margin-top: 12px; max-width: 620px; }
.opts { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.opt { display: flex; gap: 6px; }
.opt input { margin-top: 0 !important; }
.opt button { width: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; font-size: 18px; }
.upl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-weight: 400; }
.upl img { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.upl audio { height: 34px; max-width: 220px; }
.upl label.btn { margin: 0; }
.ed-preview { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #070b17; overflow-y: auto; }
.stage-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.stage-wrap.full { position: fixed; inset: 0; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.intro-empty { grid-column: 1 / -1; max-width: 620px; margin: 60px auto; padding: 30px; background: var(--card); border-radius: 22px; border: 1px solid var(--line); }
.intro-empty li { margin: 10px 0; color: #cbd5e1; }
.mobile-block { display: none; }
@media (max-width: 900px) {
  body.editor .mobile-block { display: flex; position: fixed; inset: 0; z-index: 100; background: var(--bg); align-items: center; justify-content: center; padding: 30px; text-align: center; }
}
.modal { position: fixed; inset: 0; background: rgba(2,6,23,.72); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #141b35; border: 1px solid var(--line); border-radius: 22px; padding: 26px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; position: relative; }
.modal.wide .modal-box { width: min(900px, 100%); }
.modal-box h2 { margin-top: 0; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--mute); font-size: 26px; cursor: pointer; }
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.types button { background: #0d1428; border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 12.5px 'Inter', sans-serif; }
.types button span { font-size: 24px; }
.types button:hover { border-color: var(--a); background: rgba(251,191,36,.08); }
.type-desc { min-height: 2.6em; margin-bottom: 0; }
.pick { max-height: 44vh; overflow-y: auto; list-style: none; padding: 0; margin: 12px 0; }
.pick li label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; user-select: none; }
.pick li label:hover { background: rgba(255,255,255,.05); }
.pick small { color: var(--b); font-size: 11px; min-width: 110px; }
.palettes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.palettes button { border: 2px solid transparent; border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; font: 600 14px 'Inter', sans-serif; }
.palettes button.on { border-color: var(--a); }
.palettes .sw { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.palettes .sw i { flex: 1; }
.qr-modal { width: 280px; height: 280px; margin: 10px auto; background: #fff; padding: 14px; border-radius: 16px; }
.qr-modal svg { width: 100%; height: 100%; }
.code-big { font: 800 34px 'Space Grotesk', sans-serif; letter-spacing: .06em; }
.coach { position: fixed; z-index: 70; width: 340px; background: #fef3c7; color: #1f2937; border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.coach small { color: #92400e; font-weight: 700; }
.coach b { display: block; font: 700 18px 'Space Grotesk', sans-serif; margin: 2px 0 4px; }
.coach p { margin: 0 0 10px; font-size: 14px; }
.coach .row { justify-content: flex-end; }
.coach .btn.ghost { color: #1f2937; border-color: rgba(0,0,0,.2); }
.coach-target { position: relative; z-index: 65; box-shadow: 0 0 0 4px #fbbf24 !important; border-radius: 10px; }

/* Proyector */
body.projector { background: #000; overflow: hidden; cursor: default; }
body.projector .stage-wrap.full { background: #000; }
.edge { position: fixed; top: 0; bottom: 0; width: 7vw; z-index: 8; cursor: pointer; }
.edge.left { left: 0; } .edge.right { right: 0; }
.host-ctl { position: fixed; top: 18px; right: 18px; z-index: 12; display: flex; gap: 6px; align-items: center; opacity: .12; transition: opacity .3s; }
body.mouse .host-ctl, .host-ctl:hover { opacity: 1; }
.host-ctl button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(15,23,42,.8); color: #fff; font-size: 18px; cursor: pointer; }
.host-ctl button:hover { background: #1e293b; }
.host-ctl .net { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; margin-right: 6px; }
.host-ctl .net.off { background: #ef4444; }
.fs-btn { position: fixed; left: 18px; bottom: 50px; z-index: 12; background: rgba(15,23,42,.8); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 12px; cursor: pointer; opacity: 0; transition: opacity .3s; }
body.mouse .fs-btn { opacity: 1; }
:fullscreen .fs-btn { display: none; }
.notice { position: fixed; top: 18px; left: 18px; z-index: 13; background: #fef3c7; color: #1f2937; border-radius: 14px; padding: 14px; max-width: 360px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.notice button { text-align: left; background: #fff; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.notice button.link { background: none; border: 0; color: #6b7280; }
.fatal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #e2e8f0; font-size: 20px; padding: 30px; }
.fatal b { font-size: 50px; }
.viewer .edge { width: 12vw; }

/* PDF */
.pdf-status { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pdf-render { position: fixed; left: -4000px; top: 0; width: 1920px; height: 1080px; overflow: hidden; }
.pdf-render *, .pdf-render *::before, .pdf-render *::after { animation: none !important; transition: none !important; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--a); margin: 0 auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 22px; flex: 1; align-content: start; }
.rblock { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.rblock small { color: var(--b); font-weight: 700; letter-spacing: .1em; }
.rblock h3 { font-size: 26px; margin: 6px 0 10px; }
.rblock p { margin: 4px 0; }
.rr { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.rr b { color: var(--a); white-space: nowrap; }

/* Avisos */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1e293b; color: #f8fafc; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .4s, transform .4s; font-size: 14px; }
.toast.err { background: #7f1d1d; }
.toast.out { opacity: 0; transform: translateY(10px); }

/* Manual */
.manual h2 { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.manual table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.manual th, .manual td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.manual th { color: var(--mute); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.manual kbd { background: #1e293b; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.manual .tip { background: rgba(251,191,36,.08); border-left: 4px solid var(--a); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.toc { columns: 2; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-demo { margin: 0 10px 60px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .demo-phone { display: none; }
  .topbar nav { gap: 10px; font-size: 14px; }
}

/* Asistente con IA */
.btn.ai { background: linear-gradient(90deg, #a78bfa, #22d3ee); color: #0b1020; }
.btn.ai-ghost { border-color: rgba(167,139,250,.5); color: #c4b5fd; }
.drop { display: flex !important; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 22px; border: 2px dashed rgba(167,139,250,.45); border-radius: 16px; cursor: pointer; background: rgba(167,139,250,.06); }
.drop.over { background: rgba(167,139,250,.16); }
.drop ul { list-style: none; padding: 0; margin: 6px 0 0; text-align: left; width: 100%; }
.drop li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 8px; background: rgba(255,255,255,.05); border-radius: 8px; margin-top: 4px; font-weight: 500; }
.drop li button { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 18px; }
.ai-form textarea, .ai-form select, .ai-form input:not([type=checkbox]) { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.ai-form label.check { display: flex; gap: 8px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips button { background: rgba(167,139,250,.1); border: 1px solid rgba(167,139,250,.35); color: #ddd6fe; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.modal-box.busy > :not(.busy-msg):not(.modal-x) { opacity: .25; pointer-events: none; }
.modal-box .busy-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; font-weight: 600; }
.ai-form label.check input { width: auto; margin: 0; flex: none; accent-color: #a78bfa; }
.ok-msg { color: #86efac; font-weight: 600; text-align: center; padding: 20px 0; }

/* Administración */
.wrap.wide { max-width: 1320px; }
.admin-tabs { max-width: 560px; }
.adm-tools { margin-bottom: 12px; }
.adm-tools input, .adm-tools select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.adm-tools input { flex: 1; min-width: 240px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
table.adm { width: 100%; border-collapse: collapse; font-size: 14px; }
table.adm th, table.adm td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.adm th { color: var(--mute); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
table.adm .acts { white-space: nowrap; text-align: right; }
table.adm .acts .btn { margin-left: 4px; }
table.plans input:not([type=checkbox]):not([type=radio]) { width: 100%; min-width: 70px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.tag { font-size: 11px; background: rgba(167,139,250,.18); color: #c4b5fd; padding: 1px 7px; border-radius: 999px; }
.pill-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.pill-st.ok { background: rgba(34,197,94,.15); color: #86efac; }
.pill-st.warn { background: rgba(251,191,36,.15); color: #fcd34d; }
.pill-st.bad { background: rgba(248,113,113,.15); color: #fca5a5; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.adm-grid .card h3 { margin-top: 0; }
.form select { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.form textarea { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--ink); }
.quota-note { background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.25); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
