/* Brandz Studio — panel de administración */
:root {
  --ink: #14161a;
  --ink-2: rgba(20, 22, 26, .72);
  --ink-3: rgba(20, 22, 26, .5);
  --line: rgba(20, 22, 26, .09);
  --line-2: rgba(20, 22, 26, .14);
  --bg: #f4f5f7;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --accent: #3cb5f7;
  --accent-2: #c4dbfd;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --night: #0e0f11;
  --ok: #16a37a;
  --warn: #e59a12;
  --danger: #e2453c;
  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 10px 30px rgba(20, 22, 26, .06);
  --shadow-lg: 0 26px 60px rgba(20, 22, 26, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sidebar: 248px;
  --display: Archivo, Helvetica, sans-serif;
  --body: Poppins, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.03em; margin: 0; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; padding-right: .08em; }

/* ───────── Shell ───────── */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand img { height: 24px; width: auto; }
.brand .pill { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .group { margin: 16px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-size: 13.5px; transition: background .25s, color .25s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav a.on svg { color: var(--accent); }
.nav a .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.nav a.on .badge { background: #fff; color: var(--ink); }
.side-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: left; }
.side-foot a:hover, .side-foot button:hover { background: var(--soft); color: var(--ink); }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 32px); background: rgba(244, 245, 247, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; }
.topbar .spacer { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.draft .dot { background: var(--warn); animation: pulse 2s ease-in-out infinite; }
.status.saving .dot { background: var(--accent); animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.4); } }
.content { padding: 8px clamp(16px, 3vw, 32px) 48px; flex: 1; min-width: 0; }
.page-enter { animation: enter .55s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

/* ───────── Botones ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--grad); color: var(--ink); border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(60, 181, 247, .3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(20, 22, 26, .05); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: rgba(226, 69, 60, .06); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .i { width: 16px; height: 16px; }

/* ───────── Tarjetas ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card-h h3 { font-size: 16px; font-weight: 700; }
.card-b { padding: 18px 20px 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.g2s { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ───────── Formularios ───────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .flabel { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.flabel .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 2px 7px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }
.flabel .count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.flabel .count.over { color: var(--danger); }
.input, .textarea, .select { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; line-height: 1.5; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { resize: vertical; min-height: 44px; field-sizing: content; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 181, 247, .18); }
.input::placeholder, .textarea::placeholder { color: rgba(20, 22, 26, .32); }
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.missing-en { border-style: dashed; background: #fbfcfd; }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(60, 181, 247, .35); border-color: var(--accent); } }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(20, 22, 26, .06); gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, box-shadow .25s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(20, 22, 26, .1); }
.seg button .i { width: 15px; height: 15px; }

.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: rgba(20, 22, 26, .16); border: 0; cursor: pointer; transition: background .25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }

.search { position: relative; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 16px; height: 16px; }
.search .input { padding-left: 38px; border-radius: 999px; }

/* ───────── Media ───────── */
.media-field { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.thumb { position: relative; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; }
.thumb .play { position: absolute; inset: auto 5px 5px auto; width: 20px; height: 20px; border-radius: 50%; background: rgba(20, 22, 26, .75); color: #fff; display: grid; place-items: center; font-size: 8px; }
.media-field .meta { flex: 1; min-width: 0; }
.media-field .meta b { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-field .meta span { font-size: 11px; color: var(--ink-3); }
.media-field.missing { border-color: var(--warn); background: #fffaf0; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mitem { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.mitem:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mitem .ph { aspect-ratio: 1; background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.mitem .ph img, .mitem .ph video { width: 100%; height: 100%; object-fit: cover; }
.mitem .cap { padding: 8px 10px 10px; }
.mitem .cap b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem .cap span { font-size: 10.5px; color: var(--ink-3); }
.mitem .kind { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(20, 22, 26, .72); color: #fff; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.mitem.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 181, 247, .3); }
.mitem.sel::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f3faff; }
.drop .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: var(--ink); }
.drop b { font-family: var(--display); font-size: 15px; }
.progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* ───────── Listas ordenables ───────── */
.list { display: flex; flex-direction: column; gap: 10px; }
.litem { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .3s, border-color .25s, opacity .25s, transform .3s var(--ease); }
.litem:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.litem.dragging { opacity: .4; }
.litem.drop-target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 181, 247, .2); }
.litem.off { opacity: .5; }
.litem .grip { cursor: grab; color: var(--ink-3); padding: 4px; }
.litem .body { flex: 1; min-width: 0; }
.litem .body b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.litem .body span { font-size: 12px; color: var(--ink-3); }
.litem .acts { display: flex; gap: 2px; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.wcard { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: #141518; color: #f6f5f3; border: 1px solid var(--line); cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s, opacity .3s; }
.wcard:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.wcard img, .wcard video { width: 100%; height: 100%; object-fit: cover; }
.wcard .ov { position: absolute; inset: auto 0 0 0; padding: 30px 14px 13px; background: linear-gradient(to top, rgba(10, 11, 13, .92), rgba(10, 11, 13, 0)); display: flex; flex-direction: column; gap: 4px; }
.wcard .ov span { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 245, 243, .6); }
.wcard .ov b { font-family: var(--display); font-size: 14px; letter-spacing: -.01em; }
.wcard .tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease); }
.wcard:hover .tools, .wcard:focus-within .tools { opacity: 1; transform: none; }
.wcard .tools button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wcard .tools button:hover { background: #fff; color: var(--accent); }
.wcard .tools .i { width: 15px; height: 15px; }
.wcard .type { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(20, 22, 26, .6); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.wcard.off { opacity: .45; }
.wcard.add { display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1.5px dashed var(--line-2); box-shadow: none; }
.wcard.add:hover { border-color: var(--accent); color: var(--ink); }
.wcard.add .plus { width: 54px; height: 54px; border-radius: 18px; background: var(--grad); color: var(--ink); display: grid; place-items: center; margin: 0 auto 10px; }
.wcard.drop-target { box-shadow: 0 0 0 3px var(--accent); }
.wcard.dragging { opacity: .35; }

/* ───────── Editor visual ───────── */
.editor { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; gap: 16px; height: calc(100vh - 84px); padding-bottom: 16px; }
.ed-panel { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ed-head { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ed-scroll { position: relative; flex: 1; overflow-y: auto; padding: 10px 10px 30px; scroll-behavior: smooth; }
.sec { border-radius: 14px; margin-bottom: 6px; transition: background .25s; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 12px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; transition: background .2s; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary:hover { background: var(--soft); }
.sec > summary .n { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.sec > summary .chev { transition: transform .3s var(--ease); color: var(--ink-3); }
.sec[open] > summary .chev { transform: rotate(90deg); }
.sec[open] { background: var(--soft); }
.sec-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 12px 16px; }
.sec-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; cursor: pointer; }
.sec-link:hover { background: #000; }
.sec-link .i { color: var(--accent); }
.preview { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv-url { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--ink-3); overflow: hidden; white-space: nowrap; }
.pv-url .lock { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.pv-stage { position: relative; flex: 1; min-height: 0; background: repeating-linear-gradient(45deg, #f3f4f6 0 10px, #eef0f3 10px 20px); display: flex; justify-content: center; overflow: auto; }
.pv-frame { width: 100%; height: 100%; border: 0; background: #fff; transition: width .45s var(--ease), border-radius .45s, margin .45s; }
.pv-stage.tablet .pv-frame { width: 820px; max-width: calc(100% - 32px); margin: 16px; border-radius: 22px; box-shadow: var(--shadow-lg); height: calc(100% - 32px); }
.pv-stage.mobile .pv-frame { width: 390px; max-width: calc(100% - 32px); margin: 16px; border-radius: 30px; box-shadow: var(--shadow-lg); height: calc(100% - 32px); }
.pv-loading { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.pv-loading.on { opacity: 1; }
.pv-loading::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--grad); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.pick-tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); pointer-events: none; animation: enter .5s var(--ease) both; }
.pick-tip .i { width: 15px; height: 15px; color: var(--accent); }
.ed-tabs { display: none; }

/* ───────── Dashboard ───────── */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(24px, 4vw, 44px); background: var(--night); color: #f6f5f3; }
.hero::before { content: ''; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(60, 181, 247, .35), transparent 70%); pointer-events: none; }
.hero h2 { position: relative; font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; max-width: 640px; }
.hero p { position: relative; margin: 14px 0 22px; max-width: 520px; color: rgba(246, 245, 243, .6); line-height: 1.6; }
.hero .row { position: relative; }
.hero .btn { border-color: rgba(246, 245, 243, .2); background: transparent; color: #fff; }
.hero .btn:hover { border-color: #fff; }
.hero .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn.primary:hover { background: var(--grad); }
.hero .live { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(246, 245, 243, .08); border: 1px solid rgba(246, 245, 243, .12); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 245, 243, .7); }
.hero .live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.stat .ic.blue { background: var(--grad); }
.stat .num { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat .lbl { font-size: 12.5px; color: var(--ink-3); }
.shortcut { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.shortcut:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.shortcut .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.shortcut b { display: block; font-family: var(--display); font-size: 14.5px; }
.shortcut span { font-size: 12px; color: var(--ink-3); }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff8ea; border: 1px solid #f6dfae; font-size: 13px; line-height: 1.5; }
.alert .i { color: var(--warn); margin-top: 1px; }
.alert.info { background: #f1f9ff; border-color: #cfe9fb; }
.alert.info .i { color: var(--accent); }

/* ───────── Mensajes ───────── */
.inbox { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; min-height: calc(100vh - 140px); }
.msg { display: flex; gap: 12px; padding: 14px; border-radius: 14px; cursor: pointer; transition: background .2s; position: relative; }
.msg:hover { background: var(--soft); }
.msg.on { background: var(--ink); color: #fff; }
.msg.on .muted, .msg.on .snip { color: rgba(255, 255, 255, .6); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; background: var(--grad); color: var(--ink); }
.msg .body { flex: 1; min-width: 0; }
.msg .l1 { display: flex; gap: 8px; align-items: baseline; }
.msg .l1 b { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .l1 span { font-size: 11px; }
.msg .snip { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.msg.unread::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.bubble { padding: 18px 20px; border-radius: 4px 18px 18px 18px; background: var(--soft); border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.65; font-size: 14px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 50px 20px; text-align: center; color: var(--ink-3); }
.empty .ic { width: 60px; height: 60px; border-radius: 20px; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); }
.empty b { font-family: var(--display); font-size: 17px; color: var(--ink); }

/* ───────── Marca / SEO ───────── */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .25s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.color-in { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; }
.color-in input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.color-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-in input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-in input[type=text] { border: 0; outline: none; width: 90px; font-family: var(--mono); font-size: 12.5px; }
.grad-bar { height: 64px; border-radius: 16px; background: var(--grad); display: flex; align-items: flex-end; padding: 12px 14px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.gpreview { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-family: Arial, sans-serif; }
.gpreview .u { font-size: 12px; color: #202124; display: flex; align-items: center; gap: 8px; }
.gpreview .u img { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; padding: 4px; }
.gpreview .t { margin-top: 6px; font-size: 19px; color: #1a0dab; line-height: 1.3; }
.gpreview .d { margin-top: 4px; font-size: 13.5px; color: #4d5156; line-height: 1.55; }
.ogpreview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ogpreview .img { aspect-ratio: 1.91/1; background: var(--soft) center/cover no-repeat; }
.ogpreview .tx { padding: 12px 14px; background: #f2f3f5; }
.ogpreview .tx span { font-size: 11px; text-transform: uppercase; color: #65676b; }
.ogpreview .tx b { display: block; margin-top: 3px; font-size: 15px; }

/* ───────── Overlays ───────── */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(14, 15, 17, .48); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.scrim.on { opacity: 1; }
.modal { position: fixed; z-index: 91; left: 50%; top: 50%; width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .25); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.modal.on { transform: translate(-50%, -50%); opacity: 1; }
.modal.sm { width: min(460px, calc(100% - 24px)); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 18px; font-weight: 800; flex: 1; }
.modal-b { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.drawer { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(520px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: -30px 0 80px rgba(0, 0, 0, .18); transform: translateX(104%); transition: transform .5s var(--ease); }
.drawer.on { transform: none; }

.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease) both; }
.toast .i { width: 16px; height: 16px; color: var(--accent); }
.toast.err .i { color: #ff8a80; }
.toast.out { animation: toastOut .35s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ───────── Login ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--night); color: #f6f5f3; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ''; position: absolute; inset: 40% -20% -40% -10%; background: radial-gradient(50% 50% at 50% 50%, rgba(60, 181, 247, .42), transparent 70%); }
.auth-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(246, 245, 243, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 245, 243, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art img { height: 30px; width: auto; align-self: flex-start; }
.auth-art h1 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.auth-art p { color: rgba(246, 245, 243, .55); max-width: 420px; line-height: 1.6; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 22px; }
.auth-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; animation: enter .7s var(--ease) both; }
.auth-form h2 { font-size: 30px; font-weight: 800; }
.auth-form .btn { height: 48px; font-size: 14px; }
.err { color: var(--danger); font-size: 12.5px; min-height: 18px; }

/* ───────── Móvil ───────── */
.bottomnav, .mob-top { display: none; }
@media (max-width: 1100px) {
  .editor { grid-template-columns: minmax(300px, 360px) 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding-bottom: 100px; }
  .topbar { padding: 12px 14px; gap: 8px; }
  .topbar .brand-m { display: none; }
  .topbar h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topbar .status { padding: 6px 10px; }
  #pub-btn { padding: 0 14px; height: 38px; }
  #discard-btn { display: none; }
  .bottomnav { display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(20, 22, 26, .14); }
  .bottomnav a, .bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 0; background: none; border-radius: 16px; font-size: 10.5px; color: var(--ink-3); position: relative; cursor: pointer; }
  .bottomnav .on { color: var(--ink); background: var(--soft); }
  .bottomnav .on svg { color: var(--accent); }
  .bottomnav .badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9.5px; display: grid; place-items: center; padding: 0 4px; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .ed-tabs { display: flex; margin-bottom: 12px; }
  .editor .ed-panel, .editor .preview { height: calc(100vh - 210px); }
  .editor:not(.show-preview) .preview { display: none; }
  .editor.show-preview .ed-panel { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.reading .inbox-list { display: none; }
  .inbox:not(.reading) .inbox-read { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 34vh; }
  .wcard .tools { opacity: 1; transform: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wcard .tools button { width: 26px; height: 26px; }
  .wcard .ov b { font-size: 12.5px; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .modal.on { transform: none; }
  .modal.sm { width: 100%; }
  .hide-m { display: none !important; }
}
@media (min-width: 901px) { .show-m { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ═════════════ BrandzMKT Online ═════════════ */
.ws-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); cursor: pointer; text-align: left; transition: border-color .25s, background .25s; }
.ws-switch:hover { border-color: var(--line-2); background: #fff; }
.ws-logo { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; overflow: hidden; font-size: 14px; }
.ws-logo img { width: 100%; height: 100%; object-fit: cover; }
.ws-switch b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-switch span { font-size: 11px; color: var(--ink-3); }
.av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-grid; place-items: center; font: 700 12px var(--display); color: #fff; border: 2px solid #fff; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 16px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip.solid { border: 0; color: #fff; }
.chip.pick { cursor: pointer; height: 32px; padding: 0 13px; font-size: 12.5px; transition: background .2s, color .2s, border-color .2s; }
.chip.pick.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.net { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font: 700 9px var(--display); color: #fff; flex: 0 0 auto; }
.net.ig { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.net.fb { background: #1877f2; } .net.tt { background: #111; } .net.li { background: #0a66c2; } .net.yt { background: #ff0000; } .net.x { background: #000; } .net.web { background: #10b981; }
.bell { position: relative; }
.bell .n { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }
.notif-list { display: flex; flex-direction: column; }
.notif { display: flex; gap: 10px; padding: 12px; border-radius: 12px; cursor: pointer; font-size: 13px; line-height: 1.45; }
.notif:hover { background: var(--soft); }
.notif.unread { background: #f1f9ff; }
.notif .when { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Calendario */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-head h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; text-transform: capitalize; min-width: 180px; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.cal-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-dows div { padding: 10px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { position: relative; min-height: 124px; padding: 8px 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #fafbfc; }
.cal-day.out .num { opacity: .4; }
.cal-day.today .num { background: var(--ink); color: #fff; }
.cal-day.drop { background: #eef8ff; box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day .num { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 600 12.5px var(--display); }
.cal-day .add { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.cal-day:hover .add { opacity: 1; }
.pchip { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 8px; background: var(--soft); border-left: 3px solid var(--c, #3cb5f7); font-size: 11.5px; line-height: 1.25; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.pchip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20,22,26,.1); background: #fff; }
.pchip b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip .t { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }
.pchip .cdot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.pchip.dragging { opacity: .4; }
.more-link { font-size: 11px; color: var(--ink-3); padding: 0 4px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }

/* Estado (stepper) */
.steps { display: flex; gap: 4px; flex-wrap: wrap; }
.steps button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 11.5px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.steps button i { width: 7px; height: 7px; border-radius: 50%; }
.steps button.on { color: #fff; border-color: transparent; }

/* Vista previa tipo Instagram */
.igp { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.igp-h { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; }
.igp-m { aspect-ratio: 4/5; background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 18px 18px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.igp-m > * { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.igp-m .ph { display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; padding: 20px; }
.igp-a { display: flex; gap: 12px; padding: 10px 12px 2px; font-size: 18px; }
.igp-c { padding: 4px 12px 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.igp-c b { margin-right: 5px; }
.igp-c .tags { color: #00376b; }
.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.up { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.up img, .up video { width: 100%; height: 100%; object-fit: cover; }
.up button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(20,22,26,.75); color: #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.up.add { display: grid; place-items: center; cursor: pointer; border-style: dashed; color: var(--ink-3); font-size: 22px; }
.up.add:hover { border-color: var(--accent); color: var(--accent); }
.up .file { display: grid; place-items: center; height: 100%; font-size: 10.5px; padding: 6px; text-align: center; color: var(--ink-2); word-break: break-all; }

/* Comentarios */
.thread { display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 10px; }
.cmt .bub { flex: 1; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--soft); font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cmt .bub.int { background: #fff8ea; border: 1px dashed #f6dfae; }
.cmt .meta { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: rgba(20,22,26,.035); border-radius: 18px; padding: 10px; min-height: 300px; display: flex; flex-direction: column; gap: 8px; transition: background .2s, box-shadow .2s; }
.kcol.drop { background: #eef8ff; box-shadow: inset 0 0 0 2px var(--accent); }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; font: 700 13.5px var(--display); }
.kcol-h .n { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-3); }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, opacity .2s; }
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tcard.dragging { opacity: .4; }
.tcard b { font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.tcard .foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.tcard .foot .avs { margin-left: auto; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.due.late { color: #ef4444; font-weight: 600; }
.due.soon { color: #e59a12; font-weight: 600; }
.prio { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.prio.alta { background: #ef4444; } .prio.media { background: #f59e0b; } .prio.baja { background: #9aa3ad; }

/* Mi semana */
.week-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.week-progress { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; }
.week-progress .bar { flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.week-progress .bar div { height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s var(--ease); }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.wday { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60,181,247,.15); }
.wday-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 4px; }
.wday-h b { font: 800 22px var(--display); letter-spacing: -.03em; }
.wday-h span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.todo { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border-radius: 12px; background: var(--soft); font-size: 12.5px; line-height: 1.35; cursor: pointer; transition: background .2s, opacity .3s; }
.todo:hover { background: #eef1f4; }
.todo.done { opacity: .55; }
.todo.done .tt { text-decoration: line-through; }
.todo .tt { flex: 1; min-width: 0; word-break: break-word; }
.todo .sub { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.check { width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; flex: 0 0 auto; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.check:hover { border-color: var(--accent); }
.check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.check.on::after { content: '✓'; font-size: 12px; font-weight: 700; }
.check:active { transform: scale(.85); }
.todo.post { background: #f6f2ff; }
.quick-add { display: flex; gap: 6px; margin-top: auto; }
.quick-add input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; font-size: 12px; outline: none; }
.quick-add input:focus { border-style: solid; border-color: var(--accent); background: #fff; }

/* Listas / tablas */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--soft); }
.scroll-x { overflow-x: auto; }
.ccard { position: relative; overflow: hidden; padding: 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ccard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.ccard .top { display: flex; align-items: center; gap: 12px; }
.ccard .lg { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 800 18px var(--display); overflow: hidden; flex: 0 0 auto; }
.ccard .lg img { width: 100%; height: 100%; object-fit: cover; }
.ccard h3 { font-size: 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 8px 10px; border-radius: 12px; background: var(--soft); }
.mini-stats b { display: block; font: 800 18px var(--display); }
.mini-stats span { font-size: 10.5px; color: var(--ink-3); }
.creds { padding: 16px; border-radius: 14px; background: var(--night); color: #f6f5f3; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.creds b { color: var(--accent); font-weight: 400; }
.workbar { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.workbar .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.workbar .bar div { height: 100%; background: var(--grad); border-radius: 999px; }
.workbar .bar div.hot { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.sla { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef8ff; color: #0b7cc0; }
.sla.late { background: #fdecec; color: #d33; }
.sla.soon { background: #fff4e0; color: #b7700b; }
.sla.ok { background: #e8f8f1; color: #0f8a5f; }
.xp { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(120deg, #ffcf3f, #ff8a00); color: #3b2300; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.optcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.optcard.on { border-color: var(--ink); background: var(--soft); }
.optcard .r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: 0 0 auto; margin-top: 2px; }
.optcard.on .r { border: 5px solid var(--ink); }
.optcard b { display: block; font-size: 13.5px; }
.optcard span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) {
  .cal-day { min-height: 86px; padding: 5px; }
  .pchip { padding: 3px 4px; font-size: 10px; border-left-width: 2px; }
  .pchip .t, .pchip .net { display: none; }
  .cal-dows div { padding: 8px 4px; font-size: 9px; letter-spacing: .06em; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
}

/* ═════════════ Tableros de inspiración ═════════════ */
.bcard { position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bcover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16/10; background: var(--soft); }
.bcover > * { width: 100%; height: 100%; object-fit: cover; background: #eceff3; min-height: 0; }
.bcover > :first-child { grid-row: span 2; }
.bcover.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.bcover.one > :first-child { grid-row: auto; }
.bcover .ph { display: grid; place-items: center; color: #fff; font: 800 30px var(--display); letter-spacing: -.03em; }
.bcard .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.bcard h3 { font-size: 16px; }
.addbar { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.addbar .link-in { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 13px; background: var(--soft); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.addbar .link-in:focus-within { border-color: var(--accent); background: #fff; }
.addbar .link-in input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14.5px; }
.prov-row { display: flex; gap: 5px; }
.masonry { columns: 4 270px; column-gap: 14px; margin-top: 16px; }
.mc { break-inside: avoid; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; position: relative; display: block; width: 100%; }
.mc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mc .media { position: relative; background: #0e0f11; overflow: hidden; }
.mc .media.v { aspect-ratio: 9/16; } .mc .media.h { aspect-ratio: 16/9; } .mc .media.sq { aspect-ratio: 1; }
.mc .media img, .mc .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc .media.auto img { height: auto; }
.mc .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.mc .play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #14161a; font-size: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s var(--ease); pointer-events: none; }
.mc:hover .play { transform: scale(1.1); }
.mc .badge-p { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 999px; background: rgba(14,15,17,.7); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 600; }
.mc .dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(14,15,17,.7); color: #fff; font: 500 10.5px var(--mono); }
.mc .pin { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; }
.mc .cap { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; }
.mc .cap b { font-size: 13px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc .cap .n { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc .meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.mc .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mc .tags span { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.mc.note { background: #fff8d6; border-color: #f3e3a0; }
.mc.note .cap { padding: 16px; }
.mc.note .cap .n { font-size: 14px; color: #3d3410; -webkit-line-clamp: 10; white-space: pre-wrap; }
.mc .ph-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 20px; text-align: center; color: #fff; }
.mc .ph-link .pl { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 800 18px var(--display); }
.mc.uploading { cursor: default; }
.mc.uploading .media { display: grid; place-items: center; aspect-ratio: 9/14; background: linear-gradient(160deg, #14161a, #1d2a36); color: #fff; }
.upl { width: 70%; display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 12.5px; text-align: center; }
.upl .progress { width: 100%; background: rgba(255,255,255,.15); }
.pv-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.pv-tt { background: linear-gradient(135deg, #111, #2b2b2b); box-shadow: inset 3px 0 0 #25f4ee, inset -3px 0 0 #fe2c55; }
.pv-yt { background: #ff0000; } .pv-pin { background: #e60023; } .pv-fb { background: #1877f2; } .pv-vim { background: #1ab7ea; } .pv-web { background: linear-gradient(135deg, #14161a, #3cb5f7); }
.drop-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(60,181,247,.16); backdrop-filter: blur(3px); border: 3px dashed var(--accent); display: none; place-items: center; font: 800 28px var(--display); color: var(--ink); }
.drop-overlay.on { display: grid; }
.viewer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.viewer .stage { position: relative; border-radius: 16px; overflow: hidden; background: #0e0f11; display: grid; place-items: center; min-height: 320px; }
.viewer .stage video, .viewer .stage img { width: 100%; max-height: 74vh; object-fit: contain; display: block; }
.viewer .stage iframe { width: 100%; height: 74vh; max-height: 760px; border: 0; background: #fff; }
.viewer .stage.v iframe { max-width: 420px; }
@media (max-width: 900px) { .viewer { grid-template-columns: 1fr; } .viewer .stage iframe { height: 70vh; } .masonry { columns: 2 150px; column-gap: 10px; } .mc { margin-bottom: 10px; border-radius: 14px; } .mc .cap { padding: 9px 10px 10px; } .addbar .link-in { min-width: 100%; } }
/* Tablero de solo videos: muro de reels 9:16 uniforme */
.masonry.reels { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; align-items: start; }
.masonry.reels .mc { margin: 0; }
.masonry.reels .mc .media { aspect-ratio: 9/16; height: auto !important; }
.masonry.reels .mc .media.h { aspect-ratio: 9/16; }
.masonry.reels .mc .media.h img, .masonry.reels .mc .media.h video { object-fit: cover; }
@media (max-width: 900px) { .masonry.reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.nav .bsub { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 41px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); border: 0; background: none; cursor: pointer; text-align: left; width: 100%; font-family: inherit; transition: background .2s, color .2s; }
.nav .bsub:hover { background: var(--soft); color: var(--ink); }
.nav .bsub.on { background: var(--soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav .bsub .bdot { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 auto; }
.nav .bsub .bname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .bsub .bico { font-size: 9px; color: var(--ink-3); }
.nav .bsub.more, .nav .bsub.new { color: var(--ink-3); font-size: 12px; }
.nav .bsub.new:hover { color: var(--accent); }
.mc .media.r img, .mc .media.r video { height: 100%; }
