:root{ --blue:#2563eb; --blue-dark:#1d4ed8; --blue-2:#38bdf8; --ink:#0b1220; --muted:#6b7a90; --line:#e6edf7; --bg:#f6faff; }
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; padding:0; }
body{ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color:var(--ink); min-height:100dvh;
  background:radial-gradient(1100px 560px at 50% -12%,#eaf2ff 0%,rgba(234,242,255,0) 60%),linear-gradient(180deg,#fff 0%,var(--bg) 100%); }
a{ color:var(--blue); text-decoration:none; }

.top{ position:sticky; top:0; z-index:20; background:rgba(255,255,255,.82); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.top .in{ max-width:1000px; margin:0 auto; padding:12px 18px; display:flex; align-items:center; gap:14px; }
.top .brand{ font-weight:900; letter-spacing:2px; font-size:13px; color:var(--blue); text-transform:uppercase; display:flex; align-items:center; gap:8px; }
.top .brand i{ width:28px; height:28px; border-radius:9px; background:linear-gradient(145deg,#3b82f6,var(--blue-dark)); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-style:normal; font-size:14px; }
.top nav{ margin-left:auto; display:flex; gap:6px; align-items:center; }
.top nav a{ padding:8px 12px; border-radius:10px; font-weight:700; font-size:13.5px; color:var(--muted); }
.top nav a.on,.top nav a:hover{ background:#eaf2ff; color:var(--blue); }

.wrap{ max-width:1000px; margin:0 auto; padding:26px 18px calc(40px + env(safe-area-inset-bottom)); }
.narrow{ max-width:460px; }
h1{ font-size:26px; letter-spacing:-.5px; margin:0 0 4px; font-weight:900; }
.lead{ color:var(--muted); margin:0 0 20px; font-size:14.5px; }
h2{ font-size:16px; margin:0 0 12px; font-weight:800; }

.card{ background:rgba(255,255,255,.86); border:1px solid rgba(37,99,235,.12); border-radius:22px; padding:20px; box-shadow:0 22px 50px -30px rgba(30,64,175,.35); }
.card + .card{ margin-top:16px; }

label.f{ display:block; margin-bottom:14px; }
label.f span{ display:block; font-size:12.5px; font-weight:700; color:#334155; margin-bottom:6px; }
label.f small{ display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.inp,select.inp,textarea.inp{ width:100%; font:inherit; font-size:16px; color:var(--ink); background:#fff; border:1.5px solid var(--line); border-radius:14px; padding:12px 14px; outline:none; transition:border-color .2s,box-shadow .2s; }
.inp:focus{ border-color:var(--blue); box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:620px){ .row{ grid-template-columns:1fr; } }
.slugbox{ display:flex; align-items:center; border:1.5px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
.slugbox b{ padding:12px 0 12px 14px; color:var(--muted); font-weight:600; font-size:14px; white-space:nowrap; }
.slugbox input{ border:0; outline:none; flex:1; font:inherit; font-size:16px; padding:12px 14px 12px 4px; min-width:0; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer; font:inherit; font-weight:800; font-size:15px; padding:13px 20px; border-radius:14px; color:#fff;
  background:linear-gradient(135deg,var(--blue-2),var(--blue),var(--blue-dark)); background-size:200% 100%; box-shadow:0 14px 30px -12px rgba(37,99,235,.7); transition:transform .15s; }
.btn:active{ transform:scale(.97); }
.btn.w{ width:100%; }
.btn.ghost{ background:#fff; color:var(--ink); border:1.5px solid var(--line); box-shadow:none; }
.btn.danger{ background:#fff; color:#dc2626; border:1.5px solid #fecaca; box-shadow:none; }
.btn.sm{ padding:9px 13px; font-size:13px; border-radius:11px; }

.err{ color:#dc2626; font-size:13px; margin:6px 0 0; font-weight:600; }
.flash{ background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; padding:12px 14px; border-radius:14px; margin-bottom:16px; font-weight:600; font-size:14px; }
.flash.bad{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

.walls{ display:grid; gap:14px; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
.wall{ background:#fff; border:1.5px solid var(--line); border-radius:20px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.wall .h{ display:flex; align-items:center; gap:12px; }
.wall .lg{ width:52px; height:52px; border-radius:15px; object-fit:cover; background:linear-gradient(145deg,#3b82f6,var(--blue-dark)); color:#fff; font-weight:900; font-size:22px; display:flex; align-items:center; justify-content:center; flex:none; }
.wall .t{ min-width:0; }
.wall .t b{ display:block; font-size:15px; }
.wall .t a{ font-size:13px; word-break:break-all; }
.wall .st{ display:flex; gap:14px; font-size:12.5px; color:var(--muted); }
.wall .st b{ color:var(--ink); }
.wall .ac{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{ font-size:11px; font-weight:800; padding:4px 9px; border-radius:99px; background:#ecfdf5; color:#047857; }
.pill.off{ background:#f1f5f9; color:#64748b; }

.tasks{ display:flex; flex-direction:column; gap:10px; }
.task-row{ display:grid; grid-template-columns:150px 1fr 40px; gap:8px; align-items:start; }
@media (max-width:620px){ .task-row{ grid-template-columns:1fr; } }
.task-row .x{ height:46px; border-radius:12px; border:1.5px solid #fecaca; background:#fff; color:#dc2626; font-weight:900; cursor:pointer; }
.colorrow{ display:flex; align-items:center; gap:10px; }
.colorrow input[type=color]{ width:52px; height:44px; border:1.5px solid var(--line); border-radius:12px; background:#fff; padding:3px; cursor:pointer; }
.logoprev{ display:flex; align-items:center; gap:14px; }
.logoprev img,.logoprev .ph{ width:72px; height:72px; border-radius:20px; object-fit:cover; border:1.5px solid var(--line); background:#f1f5f9; }
.empty{ text-align:center; padding:40px 18px; color:var(--muted); }

/* ── editor con vista previa ── */
.editor{ display:grid; gap:20px; grid-template-columns:1fr; align-items:start; }
@media (min-width:980px){ .editor{ grid-template-columns:1fr 380px; } .prev{ position:sticky; top:74px; } }
.prev-head{ display:flex; align-items:center; justify-content:space-between; margin:0 0 10px; font-size:14px; }
.phone{ position:relative; margin:0 auto; width:360px; max-width:100%; aspect-ratio:9/19; background:#0b1220; border-radius:44px; padding:12px; box-shadow:0 30px 60px -24px rgba(11,18,32,.6), inset 0 0 0 2px #1e293b; }
.phone .notch{ position:absolute; top:12px; left:50%; transform:translateX(-50%); width:120px; height:26px; background:#0b1220; border-radius:0 0 18px 18px; z-index:3; }
.phone iframe{ width:100%; height:100%; border:0; border-radius:34px; background:#f6faff; opacity:0; transition:opacity .3s; }
.prev-empty{ position:absolute; inset:12px; border-radius:34px; display:flex; align-items:center; justify-content:center; text-align:center; padding:28px; color:var(--muted); font-size:14px; background:#f6faff; line-height:1.5; }
.prev-empty small{ display:block; margin-top:8px; font-size:12px; }

/* ── admin ── */
.top nav a.adm{ color:#7c3aed; } .top nav a.adm.on{ background:#f3e8ff; color:#6d28d9; }
.subnav{ display:flex; gap:6px; flex-wrap:wrap; margin:-6px 0 18px; }
.subnav a{ padding:8px 13px; border-radius:11px; font-weight:700; font-size:13.5px; color:var(--muted); background:#fff; border:1.5px solid var(--line); }
.subnav a.on{ background:var(--blue); border-color:var(--blue); color:#fff; }
.kpis{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.kpi{ background:#fff; border:1.5px solid var(--line); border-radius:18px; padding:14px 16px; }
.kpi span{ display:block; font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.kpi b{ display:block; font-size:28px; font-weight:900; margin:4px 0 2px; }
.kpi small{ color:var(--muted); font-size:12px; }
.tbl{ width:100%; border-collapse:collapse; font-size:14px; }
.tbl th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); padding:8px 10px; border-bottom:1.5px solid var(--line); }
.tbl td{ padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl tr:last-child td{ border-bottom:0; }
.tbl tr.off td{ opacity:.55; }
.tbl small{ color:var(--muted); font-size:12px; }
.empty .big{ font-size:44px; margin-bottom:8px; }
.copy{ cursor:pointer; }
