:root {
  --navy: #121316; --navy-2: #1d1f23; --blue: #ff5a1f; --blue-2: #ff7440; --sky: #ff9a6b;
  --green: #ff5a1f; --green-ink: #b23a0b; --ok: #12a565; --amber: #b86e00; --red: #c62b3b;
  --bg: #f5f4f1; --surface: #fff; --ink: #121316; --muted: #66645f; --faint: #8f8d88;
  --line: #e7e5e0; --line-2: #f0eeea;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif; --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; word-spacing: .06em; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-2); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.page-title { font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.h2 { font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.num { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--navy) 252px, var(--bg) 252px); }
.side { background: var(--navy); color: #fff; position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 26px 16px 18px; }
.brand { padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; text-decoration: none; color: #fff; display: block; }
.brand .mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.brand .mark svg { width: 32px; height: 32px; flex: none; }
.brand .mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 4px rgba(0,226,129,.18); }
.brand .sub { display: block; font-size: 12px; color: #8b8e96; margin-top: 2px; letter-spacing: .02em; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.nav-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #6f727a; padding: 16px 12px 6px; font-weight: 600; }
.item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: #a3a6ad; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; border: 0; background: transparent; text-align: left; width: 100%; }
.item:hover { background: rgba(255,255,255,.07); color: #fff; }
.item.active { background: rgba(255,255,255,.08); color: #fff; }
.item.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.item span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.add { color: #8b8e96; } .item.add:hover { color: #fff; }
.side-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.side-foot .live { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8b8e96; padding-left: 10px; }
.side-foot .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,226,129,.5); } 70% { box-shadow: 0 0 0 8px rgba(0,226,129,0); } 100% { box-shadow: 0 0 0 0 rgba(0,226,129,0); } }
.side-foot button { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d8dadf; border-radius: 8px; height: 32px; padding: 0 12px; font-size: 13px; }
.side-foot button:hover { background: rgba(255,255,255,.08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 36px; background: rgba(245,244,241,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar .lead { color: var(--muted); font-size: 14px; margin-top: 2px; }
.topbar .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page { padding: 24px 32px 40px; width: 100%; }
.mobilebar, .scrim { display: none; }

/* ---------- piezas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.kpi .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.dark .label, .kpi.dark .hint { color: #8b8e96; }
.kpi.dark .value em { color: var(--green); font-style: normal; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--line-2); border-color: #d9d6cf; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-2); border-color: var(--blue-2); }
.btn.accent { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.accent:hover:not(:disabled) { background: #ff7440; border-color: #ff7440; }
.btn.danger { color: var(--red); } .btn.danger:hover:not(:disabled) { background: #fdecee; border-color: #f3b6bd; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover:not(:disabled) { background: var(--line-2); }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: #fdecee; color: var(--red); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--blue); }
.tabs a .count { font-size: 12px; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; background: #fff; border: 1px solid #dcd9d2; border-radius: 9px; font-size: 14.5px; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue-2); outline-offset: -1px; border-color: transparent; }
.input::placeholder, .textarea::placeholder { color: #a5a29b; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316163f' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select.sm { height: 32px; font-size: 13px; padding: 0 28px 0 10px; width: auto; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.nodot::before { display: none; }
.chip.s-pendiente, .chip.s-borrador { background: #eef0f7; color: #5f6080; }
.chip.s-conectada, .chip.s-publicado, .chip.s-aprobado { background: #d6f8e8; color: #00704a; }
.chip.s-pausada, .chip.s-programado { background: #fff1d6; color: #8a5300; }
.chip.s-fallido { background: #fde3e6; color: #a8202f; }
.chip.k-principal { background: #ffe8de; color: #b23a0b; }
.chip.countdown { background: var(--navy); color: #fff; }
.chip.countdown::before { background: var(--green); }

.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; object-fit: cover; background: var(--navy); }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

.net { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.net svg { width: 16px; height: 16px; }
.net.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.net.facebook { background: #1877f2; }
.net.tiktok { background: #111; }
.net.youtube { background: #ff0000; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .h2 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.r, table.list th.r { text-align: right; }
.handle { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.handle small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }

/* proyectos */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
.pcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--blue)); }
.pcard:hover { border-color: #d9d6cf; box-shadow: 0 8px 24px rgba(18,19,22,.08); transform: translateY(-1px); }
.pcard .top { display: flex; gap: 12px; align-items: center; }
.pcard .name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.pcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pcard .stats div { background: var(--bg); border-radius: 9px; padding: 8px 10px; }
.pcard .stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.pcard .stats span { font-size: 12px; color: var(--muted); }
.pcard.new { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); min-height: 200px; background: transparent; font-weight: 600; }
.pcard.new::before { display: none; }
.pcard.new:hover { color: var(--blue); border-color: var(--blue-2); background: #fff; }

/* reels */
.drop { display: block; border: 2px dashed #d6d2ca; border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); background: #fff; transition: border-color .15s, background .15s; cursor: pointer; }
.drop.over { border-color: var(--blue-2); background: #fff1ea; color: var(--ink); }
.drop b { color: var(--ink); }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0d0d26; display: block; }
.reel .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.reel .title { font-weight: 600; font-size: 14px; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; width: calc(100% + 12px); background: transparent; }
.reel .title:hover { background: var(--line-2); }
.reel .title:focus { background: #fff; outline: 2px solid var(--blue-2); }
.reel .meta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.reel .meta span { white-space: nowrap; }
.reel .row { flex-wrap: nowrap; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--blue-2); width: 0; transition: width .2s; }

/* calendario */
.day { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.day:last-child { border-bottom: 0; }
.day .date b { display: block; font-size: 15px; }
.day .date span { font-size: 12.5px; color: var(--muted); }
.slot { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; }
.slot:hover { background: var(--bg); }
.slot .time { font-variant-numeric: tabular-nums; font-weight: 600; width: 48px; flex: none; }
.slot .what { flex: 1; min-width: 0; }
.slot .what b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .what span { font-size: 12.5px; color: var(--muted); }
.slot video { width: 34px; height: 60px; object-fit: cover; border-radius: 6px; background: #0d0d26; flex: none; }

/* pauta */
.slider { display: grid; gap: 8px; }
.slider .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.slider .lbl span { color: var(--blue); font-variant-numeric: tabular-nums; }
.slider input[type=range] { width: 100%; accent-color: var(--blue); }
.slider p { font-size: 12.5px; color: var(--muted); }
.presets { display: flex; gap: 8px; }
.presets button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; text-align: left; }
.presets button b { display: block; font-size: 14px; }
.presets button span { font-size: 12.5px; color: var(--muted); }
.presets button[aria-pressed=true] { border-color: var(--blue); background: #fff1ea; box-shadow: inset 0 0 0 1px var(--blue); }
.funnel { display: grid; gap: 10px; }
.funnel .bar { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; font-size: 14px; }
.funnel .track { height: 26px; background: var(--line-2); border-radius: 7px; overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 7px; background: var(--blue-2); transition: width .3s; }
.funnel .track i.g { background: var(--green); }
.funnel .bar b { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; line-height: 1.55; }
.note b { color: var(--ink); }

/* diálogo */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(18,19,22,.55); }
dialog .dh { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
dialog .db { padding: 18px 22px; }
dialog .df { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.acc-pick { display: grid; gap: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.acc-pick label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.acc-pick label:hover { background: var(--bg); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #2a2c31 0, var(--navy) 55%); padding: 16px; }
.login form { width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 32px 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login .mark { font-weight: 800; font-size: 36px; letter-spacing: -.05em; display: flex; align-items: center; gap: 12px; }
.login .mark svg { width: 44px; height: 44px; }
.login .mark i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.err { color: var(--red); font-size: 13.5px; min-height: 20px; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: tin .2s ease; }
.toast.err { background: var(--red); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .mobilebar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; font-weight: 800; font-size: 20px; }
  .burger { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; border-radius: 8px; display: grid; place-items: center; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(18,19,22,.55); z-index: 40; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; z-index: 50; height: auto; transform: translateX(-100%); transition: transform .22s ease; visibility: hidden; }
  .side.open { transform: none; visibility: visible; }
  .topbar { position: static; padding: 14px 16px; min-height: 0; flex-wrap: wrap; }
  .page { padding: 20px 16px 48px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .form .two { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 6px; }
  .funnel .bar { grid-template-columns: 1fr 90px; } .funnel .bar .track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpi .value { font-size: 24px; } .presets { flex-direction: column; } }
@media (max-width: 560px) {
  .slot .chip { display: none; }
  .slot { flex-wrap: wrap; gap: 8px 10px; }
  .slot .what { min-width: 120px; }
  .slot .select { margin-left: auto; }
}

.chip.v-poco, .chip.v-de-mas { background: #fde3e6; color: #a8202f; }
.chip.v-justo { background: #fff1d6; color: #8a5300; }
.chip.v-bien { background: #d6f8e8; color: #00704a; }
.big-input { height: 52px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.datos { background: var(--bg); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.datos .dato-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.datos div:not(.dato-head) { display: flex; justify-content: space-between; gap: 12px; }
.datos span { color: var(--muted); }
.datos b { font-variant-numeric: tabular-nums; }
.datos p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.nowrap { white-space: nowrap; }
.chip.s-error { background: #fde3e6; color: #a8202f; }

/* panel de conexión (como las integraciones de Efaysto) */
.cp-scrim { position: fixed; inset: 0; background: rgba(18,19,22,.45); z-index: 60; }
.cp { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(1080px, 96vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(18,19,22,.18); animation: cpin .2s ease-out; }
@keyframes cpin { from { transform: translateX(24px); opacity: 0; } }
.cp-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cp-h .net { width: 36px; height: 36px; border-radius: 10px; } .cp-h .net svg { width: 20px; height: 20px; }
.cp-h .t { flex: 1; min-width: 0; }
.cp-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; }
.cp-f { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #faf9f7; flex-wrap: wrap; }
.banner { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 18px; }
.banner.ok { background: #d6f8e8; color: #00573a; }
.banner.err { background: #fdecee; color: #8c1c29; border: 1px solid #f3b6bd; }
.cp-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.cp-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 0; }
.cp-steps li { position: relative; padding-left: 44px; }
.cp-steps li::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: -4px; width: 2px; background: var(--line); }
.cp-steps li:last-child::before { display: none; }
.cp-steps button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 0 18px; position: relative; }
.cp-steps .dot { position: absolute; left: -44px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--line-2); color: var(--muted); display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.cp-steps .on .dot { background: var(--navy); color: #fff; border-color: var(--navy); }
.cp-steps .done .dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.cp-steps .st { font-weight: 500; padding-top: 5px; line-height: 1.3; font-size: 14.5px; color: var(--muted); }
.cp-steps .on .st { color: var(--ink); font-weight: 600; }
.cp-steps .done .st { color: var(--ink); }
.cp-detail { background: #faf9f7; border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; min-height: 340px; display: flex; flex-direction: column; gap: 6px; }
.cp-detail h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 8px; }
.cp-content { display: flex; flex-direction: column; gap: 12px; padding: 2px 0 20px; }
.cp-content > p { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.cp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips li { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--line-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.cp-note { background: #fff8e5; border: 1px solid #f1deaa; color: #6b5200; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; }
.cp-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 20px; }
.field .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.field .row { flex-wrap: nowrap; }
.masked { -webkit-text-security: disc; }
.res-ok { color: #00704a; font-weight: 600; font-size: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rot .7s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .cp { width: 100vw; animation: none; }
  .cp-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cp-steps { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .cp-steps li { padding-left: 0; flex: none; } .cp-steps li::before { display: none; }
  .cp-steps button { padding: 0; } .cp-steps .dot { position: static; } .cp-steps .st { display: none; }
  .cp-h, .cp-body, .cp-f { padding-left: 16px; padding-right: 16px; }
  .cp-detail { padding: 18px 16px; }
}

/* agregar cuenta: elegir red */
.net-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.net-pick button { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.net-pick button:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(18,19,22,.08); transform: translateY(-1px); }
.net-pick .net { width: 44px; height: 44px; border-radius: 12px; }
.net-pick .net svg { width: 24px; height: 24px; }

/* resumen */
.rs { display: grid; gap: 16px; }
.rs-hero { display: grid; grid-template-columns: 1fr 1fr 1.6fr; background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.rs-hero > div { padding: 24px 26px; }
.rs-hero > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.rs-count .small, .rs-next .small { color: #8b8e96; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; }
.rs-count b { display: block; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.05em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.rs-count:first-child b { color: var(--blue); }
.rs-count span:last-child { color: #a3a6ad; font-size: 13.5px; }
.rs-next { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.03); justify-content: center; }
.rs-next p { color: #a3a6ad; }
.rs-next .btn { align-self: flex-start; }
.rs-next-row { display: flex; gap: 14px; align-items: center; }
.rs-next-row .net { width: 36px; height: 36px; border-radius: 10px; } .rs-next-row .net svg { width: 19px; height: 19px; }
.rs-next-row span { font-size: 13px !important; }
.rs-next-row b { display: block; font-size: 16px; letter-spacing: -.01em; }
.rs-next-row span { color: #a3a6ad; font-size: 14px; }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.rs-stat:hover { border-color: #d9d6cf; box-shadow: 0 6px 18px rgba(18,19,22,.06); }
.rs-stat .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.rs-stat b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rs-stat b small { font-size: 18px; color: var(--faint); font-weight: 600; }
.rs-stat .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rs-stat .sub .chip { height: 20px; font-size: 11.5px; }
.rs-stat .nets .net { width: 22px; height: 22px; border-radius: 6px; } .rs-stat .nets .net svg { width: 13px; height: 13px; }
.rs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.rs-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--bg); text-decoration: none; color: inherit; transition: background .15s; }
.rs-day:hover { background: var(--line-2); }
.rs-day .wd { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.rs-day .dn { font-size: 20px; font-weight: 700; }
.rs-day.today { background: #fff1ea; box-shadow: inset 0 0 0 1px var(--blue); }
.rs-day.elec { background: var(--navy); color: #fff; } .rs-day.elec .wd { color: #a3a6ad; }
.rs-day .bar { width: 10px; height: 54px; background: rgba(18,19,22,.06); border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; margin-top: 4px; }
.rs-day .bar i { display: block; width: 100%; background: var(--blue); border-radius: 5px; }
.rs-day .n { font-size: 13px; font-weight: 700; min-height: 18px; font-variant-numeric: tabular-nums; }
.rs-day .dots { display: flex; gap: 3px; min-height: 7px; }
.nd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.nd.instagram { background: #d6249f; } .nd.facebook { background: #1877f2; } .nd.tiktok { background: #111; box-shadow: 0 0 0 1px #fff; } .nd.youtube { background: #ff0000; }

/* calendario de mes */
.cal { padding: 0; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cal-head .h2 { font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 118px; padding: 6px 6px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #faf9f7; } .cal-day.out .cal-dn span { color: #c2bfb8; }
.cal-day.past:not(.today) .cal-dn span { color: var(--faint); }
.cal-day.veda { background: repeating-linear-gradient(135deg, #faf9f7 0 6px, #f1efea 6px 12px); }
.cal-day.elec { background: #fff1ea; }
.cal-dn { display: flex; align-items: center; gap: 6px; padding: 2px 4px 4px; min-height: 28px; flex-wrap: wrap; }
.cal-dn span { font-weight: 600; font-size: 13.5px; }
.cal-day.today .cal-dn span { background: var(--blue); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; }
.tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.tag.e { background: var(--navy); color: #fff; } .tag.l { background: #fde3e6; color: #a8202f; }
.cal-ev { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; border-radius: 6px; padding: 3px 6px; font-size: 12px; text-align: left; background: #fff1d6; color: #6b4300; min-width: 0; }
.cal-ev:hover { filter: brightness(.96); }
.cal-ev.s-publicado { background: #d6f8e8; color: #00573a; }
.cal-ev.s-fallido { background: #fde3e6; color: #8c1c29; }
.cal-ev .t { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.cal-ev .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-more { border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 2px 6px; }
.cal-more:hover { color: var(--ink); }
.cal-legend { display: flex; gap: 18px; padding: 12px 20px; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lgd { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lgd.prog { background: #fff1d6; box-shadow: inset 0 0 0 1px #e8c98a; } .lgd.pub { background: #d6f8e8; box-shadow: inset 0 0 0 1px #8fd9b6; } .lgd.fail { background: #fde3e6; box-shadow: inset 0 0 0 1px #f3b6bd; }
.lgd.veda { background: repeating-linear-gradient(135deg, #faf9f7 0 3px, #e4e1da 3px 6px); }
dialog.wide { width: min(640px, calc(100vw - 32px)); }
.pd { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pd:last-child { border-bottom: 0; }
.pd video { width: 120px; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; background: #0d0d0f; flex: none; }
.pd-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-info b { font-size: 16px; }
@media (max-width: 760px) {
  .cal-day { min-height: 64px; } .cal-ev .r, .cal-ev .t { display: none; } .cal-ev { width: auto; padding: 4px; } .cal-day { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
  .cal-dn { width: 100%; } .tag { display: none; }
}

/* pauta */
.pz { display: grid; gap: 16px; }
.pz-in { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.pz-sentence { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pz-money { display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid var(--blue); padding: 0 4px; color: var(--blue); }
.pz-money input { border: 0; background: transparent; font: inherit; color: var(--ink); width: 6.5ch; padding: 0; outline: none; -moz-appearance: textfield; }
.pz-money input::-webkit-outer-spin-button, .pz-money input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pz-date { border: 0; border-bottom: 3px solid var(--line); background: transparent; font: inherit; font-size: 22px; color: var(--ink); padding: 0 2px; }
.pz-date:focus, .pz-money:focus-within { outline: none; border-color: var(--ink); }
.pz-datos { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pz-out { display: grid; gap: 16px; }
.pz-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.pz-big > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pz-big > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.pz-big .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.pz-big b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pz-big > div:nth-child(2) b { color: var(--blue); }
.pz-big .sub { font-size: 13px; color: #a3a6ad; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pz-big .sub .chip { height: 20px; font-size: 11.5px; }
.pz-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.pz-chart .axis { stroke: var(--line); stroke-width: 1; }
.pz-chart .ref { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; }
.pz-chart .ref-t { font-size: 11px; fill: var(--muted); }
.pz-chart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.pz-bar rect:not(.hit) { fill: var(--blue); transition: opacity .15s; }
.pz-bar .hit { fill: transparent; cursor: default; }
.pz-bar:hover rect:not(.hit) { fill: var(--blue-2); }

/* padrón en ajustes */
.pad-ok { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.pad-ok div { display: flex; flex-direction: column; }
.pad-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pad-nums div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pad-nums b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pad-nums span { font-size: 12px; color: var(--muted); }
.pad-drop { padding: 22px; }

@media (max-width: 1100px) { .rs-stats, .pz-big { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pz-big > div:nth-child(3) { border-left: 0; } .rs-hero { grid-template-columns: 1fr 1fr; } .rs-next { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.08); } }
@media (max-width: 560px) { .rs-count b { font-size: 44px; } .rs-week { gap: 4px; } .rs-day { padding: 8px 2px; } .pz-sentence { font-size: 20px; } .pz-date { font-size: 17px; } .pz-big b { font-size: 28px; } .pad-nums { grid-template-columns: repeat(2, 1fr); } .net-pick { grid-template-columns: 1fr; } }

/* pauta v3 */
.pz2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.pz-ctl { display: flex; flex-direction: column; gap: 14px; }
.pz-ctl .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-ctl .input { padding: 0 8px; font-size: 14px; }
.pz-money2 { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 14px; border: 1px solid #dcd9d2; border-radius: 10px; background: #fff; }
.pz-money2:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.pz-money2 span { font-weight: 700; color: var(--blue); font-size: 18px; }
.pz-money2 input { border: 0; outline: none; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.03em; width: 100%; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.pz-money2 input::-webkit-outer-spin-button, .pz-money2 input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pz-dl { margin: 0; background: var(--bg); border-radius: 10px; padding: 6px 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.pz-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pz-dl div:last-child { border-bottom: 0; }
.pz-dl dt { color: var(--muted); } .pz-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pz-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pz-chart-card { flex: 1; display: flex; flex-direction: column; }
.pz-chart-card .pz-chart { flex: 1; min-height: 180px; max-height: none; height: 100%; }
.pz-xl { display: grid; text-align: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pz-xl b { display: block; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.pz-ref-t { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pz-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.pz-table td:first-child { white-space: nowrap; }
@media (max-width: 1100px) { .pz2 { grid-template-columns: minmax(0, 1fr); } }

/* resumen: cuentas y reels */
.rs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.rs-acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rs-acc li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rs-acc li:last-child { border-bottom: 0; }
.rs-acc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.rs-acc .fl { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-reels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rs-reels a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #0d0d0f; }
.rs-reels span { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-reels em { font-style: normal; font-size: 11.5px; color: var(--muted); }
@media (max-width: 980px) { .rs-row { grid-template-columns: minmax(0, 1fr); } .rs-reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* inicio */
.home { display: grid; gap: 16px; }
.home-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.home-kpis > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.home-kpis > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.home-kpis .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.home-kpis b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-kpis b small { font-size: 18px; color: #6f727a; }
.home-kpis > div:first-child b { color: var(--blue); }
.home-kpis .sub { font-size: 12.5px; color: #a3a6ad; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: stretch; }
.home-projects { display: flex; flex-direction: column; gap: 10px; }
.home-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; }
.home-projects { grid-column: 1; }
.home-act { grid-column: 1; }
.home-side { grid-column: 2; grid-row: 1 / span 2; }
.hp { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.hp:hover { box-shadow: 0 6px 18px rgba(18,19,22,.07); }
.hp-who { display: flex; align-items: center; gap: 12px; }
.hp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-name b { font-size: 17px; } .hp-name span { font-size: 13px; color: var(--muted); }
.hp-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hp-stats > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.hp-stats .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.hp-stats b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-stats > div > span:last-child { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-nets { display: flex; gap: 3px; align-items: center; }
.hp-nets .net { width: 18px; height: 18px; border-radius: 5px; } .hp-nets .net svg { width: 11px; height: 11px; }
.hp-nets small { margin-right: 4px; }
.home-act { display: flex; flex-direction: column; }
.ha { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: stretch; flex: 1; }
.ha-d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ha-d .ha-bar { flex: 1; min-height: 110px; height: auto; }
.ha-bar { width: 100%; max-width: 34px; height: 110px; background: var(--bg); border-radius: 6px; display: flex; flex-direction: column-reverse; overflow: hidden; gap: 2px; }
.ha-bar i { display: block; width: 100%; border-radius: 4px; }
.ha-d b { font-size: 13px; min-height: 18px; font-variant-numeric: tabular-nums; }
.ha-d span { font-size: 11.5px; color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.ha-d.today span { color: var(--blue); font-weight: 700; }
.ha-leg { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.ha-leg span { display: inline-flex; align-items: center; gap: 6px; } .ha-leg i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 1250px) { .hp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .home-side, .home-projects, .home-act { grid-column: 1; grid-row: auto; } }
@media (max-width: 560px) { .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-who .chip { display: none; } .ha { gap: 2px; } .ha-d span { font-size: 10px; } }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-agenda { flex: 1; }
.hn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hn { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.hn b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; } .hn div span { font-size: 12px; color: var(--muted); }
.ag { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.ag:last-child { border-bottom: 0; }
.ag-t { width: 64px; flex: none; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; text-transform: capitalize; }
.ag-t b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-w { min-width: 0; display: flex; flex-direction: column; }
.ag-w b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-w span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.ag-w .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 1250px) { .hp { grid-template-columns: 1fr 1fr 1fr; } .hp-who { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-kpis > div { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.08); } }

/* cuentas en dos columnas */
.ac { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.ac-side { display: flex; flex-direction: column; gap: 16px; }
.ac-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-add button { min-width: 0; }
.ac-add button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-add button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; }
.ac-add button span { flex: 1; text-align: left; }
.ac-add button svg:last-child { color: var(--muted); }
.ac-add button:hover { border-color: var(--blue); }
.ac-nets { display: flex; flex-direction: column; gap: 10px; }
.ac-nets > div { display: grid; grid-template-columns: 28px 80px 1fr 40px; align-items: center; gap: 10px; font-size: 14px; }
.ac-nets .bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.ac-nets .bar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.ac-nets b { text-align: right; font-variant-numeric: tabular-nums; }
.ac-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ac-tot div { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.ac-tot b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; } .ac-tot span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .ac { grid-template-columns: minmax(0, 1fr); } }

/* reels en dos columnas */
.rl { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.rl-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.rl-side .drop { padding: 34px 18px; }
.rl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rl-stats b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .rl-stats span { font-size: 12.5px; color: var(--muted); }
.up-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.reels { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rl-empty { min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .rl { grid-template-columns: minmax(0, 1fr); } .rl-side { position: static; } }

.cal-ev.s-publicando { background: #e3e6ff; color: #2a35c9; }
.lgd.publ { background: #e3e6ff; box-shadow: inset 0 0 0 1px #b8bff5; }
.chip.s-publicando { background: #e3e6ff; color: #2a35c9; }
.pd-info a.btn { align-self: flex-start; }

/* Meta Ads */
.ads { margin-top: 16px; }
.ads .card-head .net { width: 36px; height: 36px; border-radius: 10px; } .ads .card-head .net svg { width: 20px; height: 20px; }
.ads-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.ads-step { display: flex; gap: 12px; background: var(--bg); border-radius: 12px; padding: 16px; }
.ads-step > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.ads-step .dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--navy); color: #fff; }
.ads-step.done .dot { background: var(--ok); }
.ads-step .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ads-step code { font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.ads-step .row { flex-wrap: wrap; }
@media (max-width: 1250px) { .ads-grid { grid-template-columns: minmax(0, 1fr); } }

/* laboratorio */
.lab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.lab-trace { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.lab-t tr[data-act] { cursor: pointer; }
.lab-t tr[data-act]:hover td { background: var(--bg); }
.lab-t tr.sel td { background: #fff1ea; }
.lab-sum { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chip.s-run-ok { background: #d6f8e8; color: #00704a; } .chip.s-run-error { background: #fde3e6; color: #a8202f; }
.chip.s-run-corriendo { background: #e3e6ff; color: #2a35c9; } .chip.s-run-cortada { background: #eef0f7; color: #5f6080; }
.tr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tr li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.tr li.bad { border-color: #f3b6bd; background: #fffafa; }
.tr-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tr-h code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr-k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--line-2); border-radius: 5px; padding: 2px 6px; flex: none; }
.tr-caso .tr-k { background: var(--navy); color: #fff; }
.tr-s { font-weight: 700; font-variant-numeric: tabular-nums; }
.tr pre { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; background: var(--bg); border-radius: 8px; padding: 8px 10px; max-height: 180px; overflow: auto; }
.lab-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bk-hero { display: grid; grid-template-columns: 220px 1fr; background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
.bk-hero > div { padding: 22px 24px; }
.bk-hero > div:first-child { border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.bk-hero .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #8b8e96; font-weight: 600; }
.bk-hero b { font-size: 48px; font-weight: 800; letter-spacing: -.04em; color: var(--blue); line-height: 1.05; }
.bk-hero .sub { font-size: 12.5px; color: #a3a6ad; }
.bk-txt { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.bk-txt p { color: #c9cbd1; font-size: 14px; } .bk-txt b { color: #fff; font-size: inherit; letter-spacing: 0; } .bk-txt .btn { align-self: flex-start; }
.bk-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-cases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk-cases li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.bk-cases li:last-child { border-bottom: 0; }
.bk-cases .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.bk-cases li.bad .ic { background: var(--red); }
.bk-cases li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.bk-cases li > div span { font-size: 12.5px; color: var(--red); }
.lab-hist { position: sticky; top: 100px; }
.bk-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.bk-hist button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; text-align: left; }
.bk-hist button.sel { border-color: var(--blue); background: #fff1ea; }
.rv-t video { width: 30px; height: 54px; object-fit: cover; border-radius: 5px; background: #0d0d0f; flex: none; }
.rv-t th.c, .rv-t td.c { text-align: center; } .rv-t th.c .net { width: 24px; height: 24px; border-radius: 7px; } .rv-t th.c .net svg { width: 14px; height: 14px; }
.rv { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: var(--ok); }
.rv.bad { background: var(--red); }
.rv-why { display: block; font-size: 11px; color: var(--red); max-width: 120px; margin: 4px auto 0; line-height: 1.3; }
@media (max-width: 1100px) { .lab { grid-template-columns: minmax(0, 1fr); } .lab-trace, .lab-hist { position: static; max-height: none; } .bk-groups { grid-template-columns: minmax(0, 1fr); } .bk-hero { grid-template-columns: 1fr; } .bk-hero > div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,19,22,.12); }
.lab { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); }
.lab-t td { padding: 10px 10px; }
.lab-t .handle > div { white-space: nowrap; }
.lab-t td.small { white-space: nowrap; }
.lab-sum { max-width: 220px; }
.lab.bk { align-items: stretch; }
.lab.bk .lab-hist { position: static; }

.lab:not(.bk) { align-items: stretch; }
.lab-list, .lab:not(.bk) .lab-trace { min-height: calc(100vh - 210px); }
.lab-t .handle > div.lab-what { white-space: normal; min-width: 0; }
.lab-what small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.lab-what .lab-err { color: var(--red); }
.tr-h .small { white-space: nowrap; }
.lab-t { table-layout: fixed; }
.lab-t th:nth-child(1) { width: 120px; } .lab-t th:nth-child(3) { width: 96px; } .lab-t th:nth-child(4) { width: 70px; }
.lab-t .handle { min-width: 0; } .lab-t .handle > div.lab-what { overflow: hidden; }
.lab-what small { max-width: 100%; }
