/* ============ Componentes de CRM Escena Agency (pipeline, bandeja, tareas, facturación, administración) ============ */
.accent { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.barcode { display: inline-block; width: 34px; height: 18px; opacity: .7; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px); vertical-align: middle; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.page-head h1 .accent { font-size: 1.15em; color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: .76rem; font-weight: 500; color: var(--text-2); background: transparent; white-space: nowrap; }
.pill.brand { border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--brand); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kv-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; } .kv-line:last-child { border: 0; } .kv-line span:first-child { color: var(--text-2); }
.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* chips, puntaje, etiquetas */
.score { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.score.hot { background: color-mix(in srgb, #ff3b30 18%, transparent); color: #fc3d3f; } .score.warm { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .score.cold { background: var(--hover); color: var(--text-2); }
.tchip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .7rem; font-weight: 600; color: #fff; white-space: nowrap; }
.tags-row { display: flex; flex-wrap: wrap; gap: 4px; }
.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta { font-size: .74rem; font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--danger); }

/* banners */
.banners { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: var(--blur); font-size: .86rem; flex-wrap: wrap; }
.banner > span:first-of-type, .banner .bt { flex: 1; min-width: 200px; }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 12%, var(--glass)); }
.banner.danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 13%, var(--glass)); }
.banner.promo { border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 11%, var(--glass)); }
.banner.imp { background: var(--grad); color: #fff; border: 0; }
.banner.imp .btn { background: rgba(255, 255, 255, .2); border-color: transparent; color: #fff; }

/* pipeline kanban */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: 60vh; scroll-snap-type: x proximity; }
.kcol { flex: 0 0 300px; max-width: 86vw; background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 230px); scroll-snap-align: start; transition: box-shadow .15s, border-color .15s; }
.kcol.over { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent), var(--shadow); }
.khead { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.khead .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; letter-spacing: .02em; } .khead .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.khead .sub { font-size: .75rem; color: var(--text-2); margin-top: 3px; display: flex; justify-content: space-between; }
.kbody { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 80px; }
.kcard { background: var(--field); border: 1px solid var(--line); border-radius: 16px; padding: 12px 13px; cursor: grab; transition: transform .12s, border-color .12s, box-shadow .12s; user-select: none; }
.kcard:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); } .kcard.dragging { opacity: .35; }
.kcard .n { font-weight: 600; font-size: .88rem; display: block; color: var(--text); margin-bottom: 2px; } .kcard .m { font-size: .75rem; color: var(--text-2); }
.kcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: .74rem; color: var(--text-2); }
.kcard .own { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #fff; background: var(--grad); flex: none; }
.kempty { text-align: center; color: var(--text-3); font-size: .8rem; padding: 18px 8px; border: 1px dashed var(--line-strong); border-radius: 14px; }

/* línea de tiempo */
.timeline { position: relative; display: flex; flex-direction: column; gap: 2px; }
.titem { display: flex; gap: 12px; padding: 9px 0; position: relative; }
.titem::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -6px; width: 1px; background: var(--line); } .titem:last-child::before { display: none; }
.titem .ti { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--hover); color: var(--text-2); } .titem .ti svg { width: 15px; height: 15px; }
.titem .ti.note { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .titem .ti.status_changed { background: var(--brand-soft); color: var(--brand); } .titem .ti.task_done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .titem .ti.email_sent, .titem .ti.message { background: color-mix(in srgb, var(--info) 18%, transparent); color: var(--info); } .titem .ti.created { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .titem .ti.returned { background: color-mix(in srgb, #ff3b30 18%, transparent); color: #fc3d3f; }
.titem .tb { min-width: 0; flex: 1; font-size: .86rem; overflow-wrap: anywhere; } .titem .tb small { display: block; color: var(--text-3); font-size: .72rem; margin-top: 1px; }

/* tareas */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); } .task:last-child { border: 0; } .task:hover { background: var(--hover); }
.task .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; color: transparent; transition: .15s; } .task .chk:hover { border-color: var(--ok); color: var(--ok); } .task.done .chk { background: var(--ok); border-color: var(--ok); color: #fff; } .task .chk svg { width: 13px; height: 13px; stroke-width: 3; }
.task .tt { flex: 1; min-width: 0; } .task .tt b { font-weight: 600; font-size: .88rem; display: block; } .task.done .tt b { text-decoration: line-through; color: var(--text-3); } .task .tt small { color: var(--text-2); font-size: .75rem; }
.due { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--hover); color: var(--text-2); } .due.late { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); } .due.soon { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ttype { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }

/* bandeja */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; gap: 0; height: calc(100vh - 150px); min-height: 520px; overflow: hidden; padding: 0; }
.inbox > * { min-width: 0; min-height: 0; display: flex; flex-direction: column; } .inbox .col1 { border-right: 1px solid var(--line); } .inbox .col3 { border-left: 1px solid var(--line); overflow-y: auto; }
.ilist { overflow-y: auto; flex: 1; } .iitem { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; } .iitem:hover { background: var(--hover); } .iitem.sel { background: var(--brand-soft); }
.iitem .av2 { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.iitem .ib { flex: 1; min-width: 0; } .iitem .ib b { font-size: .86rem; display: flex; justify-content: space-between; gap: 6px; } .iitem .ib b small { font-weight: 500; color: var(--text-3); font-size: .7rem; white-space: nowrap; } .iitem .ib p { font-size: .78rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.iitem .unread { min-width: 20px; height: 20px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; flex: none; }
.thread { overflow-y: auto; flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.compose { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-end; } .compose textarea { min-height: 44px; max-height: 120px; resize: none; }
.ihead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.back-mobile { display: none; }

/* planes y facturación */
.cycle { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line); } .cycle button { border: 0; background: transparent; padding: 8px 20px; border-radius: 99px; font-weight: 600; font-size: .84rem; color: var(--text-2); cursor: pointer; } .cycle button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); } .cycle small { font-size: .68rem; opacity: .85; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { position: relative; padding: 26px 24px; border-radius: 24px; background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; transition: transform .2s; } .plan:hover { transform: translateY(-4px); }
.plan.pop { border-color: color-mix(in srgb, var(--brand) 65%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 30px 60px -28px var(--brand); }
.plan .ptag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 4px 14px; border-radius: 99px; text-transform: uppercase; }
.plan h3 { font-size: 1.25rem; font-weight: 700; } .plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.012em; line-height: 1; } .plan .price small { font-size: .85rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .86rem; } .plan li { display: flex; gap: 9px; align-items: flex-start; } .plan li svg { color: var(--ok); margin-top: 3px; flex: none; }
.plan.current { outline: 2px solid var(--ok); outline-offset: 2px; }
.meter { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; margin-top: 6px; } .meter i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .4s; } .meter.full i { background: var(--danger); } .meter.warn i { background: var(--warn); }
.usage-row { margin-bottom: 14px; font-size: .84rem; } .usage-row .u-top { display: flex; justify-content: space-between; }
.paybtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--field); cursor: pointer; text-align: left; margin-bottom: 10px; transition: .15s; } .paybtn:hover { border-color: var(--brand); transform: translateY(-1px); }
.paybtn .pi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; } .paybtn b { display: block; font-size: .9rem; } .paybtn small { color: var(--text-2); }
.paybtn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lock-card { text-align: center; padding: 34px 20px; } .lock-card .big { width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 16px 34px -14px var(--brand); } .lock-card .big svg { width: 28px; height: 28px; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .gate .card { max-width: 560px; width: 100%; padding: 36px; text-align: center; }

/* administración */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi2 { padding: 18px 20px; position: relative; overflow: hidden; } .kpi2 .l { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; } .kpi2 .l svg { color: var(--brand); }
.kpi2 .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.012em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; } .kpi2 .s { font-size: .76rem; color: var(--text-2); }
.kpi2.hero { background: var(--grad); color: #fff; border: 0; } .kpi2.hero .l, .kpi2.hero .s { color: rgba(255, 255, 255, .88); } .kpi2.hero .l svg { color: #fff; }
.spark { display: block; width: 100%; height: 38px; margin-top: 6px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-active { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); } .st-trial { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); } .st-past_due { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .st-suspended, .st-canceled, .st-void { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); } .st-paid { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); } .st-pending, .st-review { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .st-refunded { background: var(--hover); color: var(--text-2); } .st-succeeded { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.hbars .hb { display: grid; grid-template-columns: 130px 1fr 80px; gap: 10px; align-items: center; font-size: .82rem; margin: 9px 0; } .hbars .bar { height: 10px; border-radius: 99px; background: var(--hover); overflow: hidden; } .hbars .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); } .hbars span:last-child { text-align: right; font-weight: 700; }
.heat { display: grid; grid-template-columns: 38px repeat(24, 1fr); gap: 3px; font-size: .62rem; color: var(--text-3); align-items: center; } .heat i { aspect-ratio: 1; border-radius: 4px; background: var(--hover); } .heat span { text-align: right; padding-right: 4px; }
.funnel { display: flex; flex-direction: column; gap: 8px; } .fstep { display: grid; grid-template-columns: 120px 1fr 90px; gap: 12px; align-items: center; font-size: .84rem; } .fstep .fbar { height: 34px; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 700; min-width: 40px; transition: width .4s; }
.client-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem; box-shadow: 0 16px 34px -14px var(--brand); flex: none; }
.codebox { position: relative; font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: .78rem; line-height: 1.6; padding: 14px 16px; border-radius: 14px; background: #0b0204; color: #f3d7d9; border: 1px solid var(--line); overflow-x: auto; white-space: pre-wrap; word-break: break-all; } .codebox .copy { position: absolute; top: 8px; right: 8px; }

/* paleta de comandos */
.cmdk { position: fixed; inset: 0; z-index: 400; background: rgba(8, 0, 2, .6); backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; animation: fade .15s; }
.cmdk .box { width: 100%; max-width: 620px; background: var(--glass-strong); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk input { width: 100%; padding: 18px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 1rem; outline: none; }
.cmdk .res { max-height: 52vh; overflow-y: auto; padding: 8px; } .cmdk .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: 10px 12px 4px; font-weight: 700; }
.cmdk .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: .88rem; } .cmdk .it.sel, .cmdk .it:hover { background: var(--brand-soft); } .cmdk .it svg { color: var(--brand); } .cmdk .it small { margin-left: auto; color: var(--text-3); }
kbd { font-family: inherit; font-size: .68rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--hover); }
.search-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); color: var(--text-3); cursor: pointer; min-width: 220px; font-size: .84rem; } .search-btn:hover { border-color: var(--line-strong); } .search-btn kbd { margin-left: auto; }

/* nav del sidebar con secciones */
.nav-sec { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); padding: 14px 12px 4px; font-weight: 600; } .shell.collapsed .nav-sec { visibility: hidden; height: 8px; padding: 0; }
.nav a .nb { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; } .shell.collapsed .nav a .nb { display: none; }
.badge-role { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.brand .tag { font-size: .58rem; letter-spacing: .16em; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 600; margin-left: 2px; }

/* acceso */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(120% 90% at 20% 0, #fc3d3f 0, #8a0020 45%, #1a0001 100%); }
.auth-art::before { content: ''; position: absolute; inset: 0; background: url('/img/art-rock.webp') right bottom / cover no-repeat; opacity: .55; mix-blend-mode: screen; } .auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 1, 2, .55), rgba(10, 1, 2, .1) 40%, rgba(10, 1, 2, .8)); }
.auth-art > * { position: relative; z-index: 1; } .auth-art h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.012em; line-height: 1.05; } .auth-art h2 .accent { font-weight: 500; color: #ffb199; font-size: 1.1em; } .auth-art p { max-width: 420px; opacity: .88; font-size: .95rem; }
.auth-form { display: grid; place-items: center; padding: 28px; } .auth-card { width: 100%; max-width: 440px; padding: 34px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.012em; margin-bottom: 4px; } .auth-card .sub { color: var(--text-2); font-size: .9rem; margin-bottom: 22px; }
.link { color: var(--brand); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; } .link:hover { text-decoration: underline; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; } .plan-pick label { cursor: pointer; } .plan-pick input { display: none; } .plan-pick span { display: block; text-align: center; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line-strong); font-size: .78rem; background: var(--field); } .plan-pick b { display: block; font-size: .86rem; } .plan-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); }

@media (max-width: 1280px) { .inbox { grid-template-columns: 300px minmax(0, 1fr); } .inbox .col3 { display: none; } .split { grid-template-columns: 1fr; } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } .search-btn span, .search-btn kbd { display: none; } .search-btn { min-width: 0; width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 820px) {
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - 130px); } .inbox .col1 { border-right: 0; } .inbox.thread-open .col1 { display: none; } .inbox:not(.thread-open) .col2 { display: none; } .back-mobile { display: inline-grid; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; } .kcol { flex-basis: 82vw; } .hbars .hb { grid-template-columns: 90px 1fr 64px; } .fstep { grid-template-columns: 90px 1fr 70px; }
}
@media (min-width: 2200px) { .kcol { flex-basis: 340px; } .inbox { height: calc(100vh - 170px); } }

/* ajustes de compactación */
.brand { font-size: 1rem; gap: 9px; white-space: nowrap; } .brand img { width: 36px; } .brand .tag { font-size: .52rem; letter-spacing: .12em; padding: 2px 6px; margin-left: 0; }
.sidebar-inner { gap: 10px; } .nav { gap: 2px; } .nav a { padding: 6px 10px; font-size: .9rem; } .nav a .ico { width: 30px; height: 30px; border-radius: 9px; } .nav-sec { padding: 10px 12px 3px; }
.profile-chip { padding: 8px; } .profile-chip .avatar { width: 34px; height: 34px; }
.inbox .tabs button { padding: 7px 4px; font-size: .78rem; } .inbox .tabs { gap: 2px; }
#as, #tg, #src { min-width: 170px; }
@media (max-height: 820px) { .nav a { padding: 5px 10px; } .nav a .ico { width: 28px; height: 28px; } }

/* móvil pequeño: barra superior compacta */
@media (max-width: 560px) {
  .topbar { gap: 4px; padding: 0 8px; margin: 8px 8px 0; } .topbar .crumb { display: none; } .user-btn svg, .user-btn .online { display: none; } .user-btn { padding: 3px; }
  .icon-btn { width: 36px; height: 36px; } .search-btn { width: 36px; height: 36px; }
  .content { padding-left: 8px; padding-right: 8px; } .main { min-width: 0; }
}
.card-head { flex-wrap: wrap; } code { overflow-wrap: anywhere; }

/* ===== Responsivo: ajustes de la auditoría ===== */
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-chat { width: min(290px, 100%); } .preview-box { padding: 16px; }
@media (max-width: 1024px) { .two { grid-template-columns: minmax(0, 1fr); } .grid.two, .grid.c2, .grid.c3 { min-width: 0; } .grid > * { min-width: 0; } }
/* tablet con menú compacto: sin rótulos de sección y con insignias flotantes */
@media (min-width: 821px) and (max-width: 1024px) {
  .nav-sec { display: none; } .nav a { position: relative; } .nav a .nb { position: absolute; top: 0; right: 2px; min-width: 16px; height: 16px; font-size: .6rem; padding: 0 4px; margin: 0; }
  .shell .sidebar-foot { display: none; } .sidebar-inner { padding: 10px; }
}
/* columnas secundarias de las tablas anchas se ocultan en tablet vertical */
@media (min-width: 641px) and (max-width: 1100px) { .hide-md { display: none !important; } }
/* objetivos táctiles cómodos */
@media (pointer: coarse), (max-width: 820px) {
  .icon-btn { min-width: 38px; min-height: 38px; } .btn.sm { height: 36px; } .pill { min-height: 32px; }
  .task .chk { width: 28px; height: 28px; } .kcard .icon-btn, .kcard [data-card-menu] { width: 34px !important; height: 34px !important; }
  [data-mv] { width: 34px !important; height: 30px !important; } button.link { padding: 8px 4px; } .stars button { padding: 3px; } .notes-btn { padding: 6px 10px; }
  .titem .tb small button.link { padding: 6px 4px; }
}
@media (max-width: 640px) {
  .toolbar > .select { flex: 1 1 calc(50% - 8px); min-width: 0; width: auto !important; } .toolbar > .input-icon, .toolbar > .grow { flex: 1 1 100%; width: 100% !important; max-width: none; } .toolbar > .btn { flex: 1 1 auto; }
  .client-hero { flex-wrap: nowrap; gap: 12px; } .client-hero > div { min-width: 0; } .avatar-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.1rem; } .client-hero h1 { font-size: 1.2rem !important; line-height: 1.25; }
  .page-actions { width: 100%; } .page-actions .btn { flex: 1 1 auto; } .page-head > div:first-child { min-width: 0; }
  .plan { padding: 22px 18px; } .cycle button { padding: 8px 14px; } .plans { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi2 { padding: 14px; } .kpi2 .v { font-size: 1.45rem; }
  .modal-foot { flex-wrap: wrap; } .modal-foot .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) { .kpi-grid { grid-template-columns: 1fr; } .stat .num { font-size: 1.5rem; } .search-btn, .live { display: none; } }
@media (max-width: 820px) { .table-wrap { -webkit-overflow-scrolling: touch; } }

/* ── Subsistemas: marca, agentes IA, landings ── */
.up-box { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 12px; min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--hover); }
.nav a .nb.lock { background: transparent; color: var(--text-3, var(--text-2)); min-width: 0; width: 18px; height: 18px; } .nav a .nb.lock svg { width: 13px; height: 13px; }
