/* Panel de administración — tema claro */
:root { --bg: #f3f5fa; --card: #fff; --tx: #101828; --mu: #667085; --mu2: #98a2b3; --ln: #eaecf0; --ln2: #f2f4f7; --soft: color-mix(in srgb, var(--brand) 9%, #fff); --sh: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04); }
body { background: var(--bg); color: var(--tx); font-size: 14px; }
.shell { display: flex; min-height: 100vh; }

/* Lateral */
.side { position: sticky; top: 0; height: 100vh; width: 252px; flex: none; background: #fff; border-right: 1px solid var(--ln); display: flex; flex-direction: column; padding: 18px 14px 14px; z-index: 30; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
.logo img, .logo .logo-fallback { width: 42px; height: 42px; object-fit: contain; }
.logo b { display: block; font-size: 16px; font-weight: 800; } .logo span { font-size: 12px; color: var(--mu); }
.side nav { flex: 1; overflow-y: auto; scrollbar-width: none; margin: 0 -6px; padding: 0 6px; }
.side nav h5 { font-size: 11px; font-weight: 800; color: var(--mu2); text-transform: uppercase; letter-spacing: .08em; margin: 14px 10px 6px; }
.side nav h5:first-child { margin-top: 0; }
.side nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #475467; transition: background .15s, color .15s; }
.side nav a:hover { background: var(--ln2); color: var(--tx); }
.side nav a.on { background: var(--soft); color: var(--brand); }
.side nav a .ic-i { width: 19px; height: 19px; }
.side nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fee4e2; color: #b42318; display: grid; place-items: center; }
.me { margin-top: 10px; padding: 10px; border-radius: 16px; background: var(--ln2); }
.me-row { display: flex; align-items: center; gap: 10px; }
.me .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); flex: none; }
.me b { display: block; font-size: 13.5px; } .me span { font-size: 12px; color: var(--mu); }
.me select { width: 100%; margin-top: 8px; height: 34px; border-radius: 10px; border: 1px solid var(--ln); background: #fff; padding: 0 8px; font-size: 12.5px; font-weight: 600; }

/* Principal */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--ln); }
.iconbtn.burger { display: none; }
body[data-view="panel"] .demo-bar { top: auto; bottom: 14px; }
.gsearch { flex: 1; max-width: 460px; position: relative; }
.gsearch input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 13px; border: 1px solid var(--ln); background: #fff; outline: 0; font-size: 14px; }
.gsearch input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.gsearch > i { position: absolute; left: 13px; top: 12px; color: var(--mu2); width: 18px; height: 18px; }
.gs-res { position: absolute; left: 0; right: 0; top: 48px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.14); border: 1px solid var(--ln); padding: 6px; display: none; max-height: 360px; overflow-y: auto; }
.gs-res.show { display: block; }
.gs-res button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 13.5px; }
.gs-res button:hover { background: var(--ln2); }
.gs-res button span { color: var(--mu); font-size: 12px; margin-left: auto; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.clock { font-size: 13px; color: var(--mu); font-weight: 600; white-space: nowrap; }
.livebtn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 99px; background: #fff; border: 1px solid var(--ln); font-size: 13px; font-weight: 700; color: var(--mu); }
.livebtn i.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mu2); }
.livebtn.on { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.livebtn.on i.dot { background: #17b26a; box-shadow: 0 0 0 3px rgba(23,178,106,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(23,178,106,0); } }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ln); color: #344054; }
.iconbtn b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #f04438; color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
.content { padding: 8px 28px 40px; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 20px; flex-wrap: wrap; }
.ph h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ph p { color: var(--mu); margin-top: 2px; }
.ph-act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; font-size: 13.5px; margin-bottom: 16px; }
.banner.warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.banner b { color: inherit; }
.banner .ic-i { margin-top: 1px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: #fff; border: 1px solid var(--ln); color: #344054; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: var(--ln2); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--brand); border-color: transparent; color: #fff; }
.btn.pri:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn.dark { background: #101828; border-color: transparent; color: #fff; }
.btn.danger { background: #d92d20; border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn:disabled, .btn.locked { opacity: .45; cursor: not-allowed; }
.btn .ic-i { width: 16px; height: 16px; }

/* Tarjetas y cuadrícula */
.g { 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)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mt { margin-top: 16px; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--sh); border: 1px solid var(--ln); padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 15.5px; font-weight: 800; }
.card-h p { font-size: 12.5px; color: var(--mu); width: 100%; margin-top: -8px; }
.card-h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-h { padding: 16px 18px 0; }
.kpi { position: relative; overflow: hidden; }
.kpi .k-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mu); font-weight: 600; }
.kpi .k-l .ic-i { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--soft); color: var(--brand); }
.kpi .k-v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .k-v small { font-size: 16px; color: var(--mu); font-weight: 700; }
.kpi .k-d { font-size: 12.5px; color: var(--mu); margin-top: 2px; font-weight: 600; }
.kpi .k-d .up { color: #067647; } .kpi .k-d .dn { color: #b42318; }
.kpi .k-sp { position: absolute; right: 16px; top: 18px; width: 64px; height: 26px; }
.kpi:has(.k-sp) .k-l { padding-right: 70px; }
.kpi.bump .k-v { animation: bump .7s var(--spring); }
@keyframes bump { 40% { transform: scale(1.06); color: #067647; } }

/* Tablas */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; font-weight: 800; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--ln); white-space: nowrap; background: #fcfcfd; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--ln2); vertical-align: middle; white-space: nowrap; }
.t tbody tr { transition: background .12s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover { background: #f9fafb; }
.t tbody tr.flash { animation: flash 2s; }
@keyframes flash { 0%, 30% { background: #ecfdf3; } }
.t td.n, .t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.t .sub { display: block; font-size: 12px; color: var(--mu); }
.t tfoot td { font-weight: 800; background: #fcfcfd; border-top: 1px solid var(--ln); }
.card.flush .t th:first-child, .card.flush .t td:first-child { padding-left: 18px; }
.card.flush .t th:last-child, .card.flush .t td:last-child { padding-right: 18px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; font-size: 13px; color: var(--mu); border-top: 1px solid var(--ln2); }
.pager div { display: flex; gap: 6px; }

/* Estados */
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.blue { background: #eff8ff; color: #175cd3; } .st.green { background: #ecfdf3; color: #067647; } .st.amber { background: #fffaeb; color: #b54708; }
.st.red { background: #fef3f2; color: #b42318; } .st.gray { background: #f2f4f7; color: #475467; } .st.violet { background: #f4f3ff; color: #5925dc; }
.occ { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.occ i { flex: 1; height: 7px; border-radius: 7px; background: #eef1f6; overflow: hidden; position: relative; }
.occ i::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--c, var(--brand)); border-radius: inherit; transition: width .6s var(--ease); }
.occ b { font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 46px; text-align: right; }
.meth { display: inline-flex; align-items: center; gap: 6px; color: #344054; }
.meth .ic-i { width: 15px; height: 15px; color: var(--mu); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters input, .filters select, .inp { height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--ln); background: #fff; font-size: 13.5px; outline: 0; }
.filters input:focus, .filters select:focus, .inp:focus { border-color: var(--brand); }
.filters .grow { flex: 1; min-width: 200px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #eef1f6; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--mu); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--tx); box-shadow: var(--sh); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ln); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 42px; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--mu); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button em { font-style: normal; margin-left: 6px; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: #f2f4f7; color: var(--mu); }

/* Gráficos */
.chart { width: 100%; display: block; overflow: visible; }
.chart .ax { font-size: 10.5px; fill: var(--mu2); font-family: var(--font); }
.chart .grid { stroke: #f2f4f7; }
.chart .bar { fill: var(--brand); }
.chart .bar2 { fill: color-mix(in srgb, var(--brand) 22%, #fff); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .line2 { fill: none; stroke: var(--brand2); stroke-width: 2; stroke-dasharray: 4 4; }
.chart .area { fill: url(#ga); }
.chart .tip { font-size: 11px; font-weight: 700; fill: var(--tx); font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mu); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-wrap svg { width: 132px; height: 132px; flex: none; }
.donut-wrap .legend { flex-direction: column; gap: 8px; flex: 1; }
.donut-wrap .legend span { justify-content: space-between; width: 100%; }
.donut-wrap .legend b { color: var(--tx); font-variant-numeric: tabular-nums; }
.hbar { display: flex; flex-direction: column; gap: 10px; }
.hbar div { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.hbar i { height: 9px; border-radius: 9px; background: #eef1f6; position: relative; overflow: hidden; }
.hbar i::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--c, var(--brand)); border-radius: inherit; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Feed */
.feed { display: flex; flex-direction: column; max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.feed > div { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ln2); font-size: 13px; }
.feed > div:last-child { border-bottom: 0; }
.feed .ic-i { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: var(--soft); color: var(--brand); flex: none; }
.feed .f-ab .ic-i { background: #ecfdf3; color: #067647; } .feed .f-al .ic-i { background: #fef3f2; color: #b42318; } .feed .f-re .ic-i { background: #f4f3ff; color: #5925dc; }
.feed time { margin-left: auto; color: var(--mu2); font-size: 12px; font-variant-numeric: tabular-nums; }
.feed .new { animation: flash 2s; }

/* Calendario de salidas */
.cal { display: grid; gap: 1px; background: var(--ln); border-radius: 14px; overflow: hidden; border: 1px solid var(--ln); font-size: 12px; }
.cal > div { background: #fff; padding: 8px; min-height: 44px; }
.cal .ch { background: #fcfcfd; font-weight: 800; color: var(--mu); text-align: center; font-size: 11px; min-height: 0; }
.cal .rh { font-weight: 700; font-size: 12.5px; display: flex; align-items: center; }
.cal .rh small { display: block; color: var(--mu); font-weight: 600; }
.cal .slot { display: flex; flex-direction: column; gap: 4px; }
.cal .ev { padding: 5px 7px; border-radius: 8px; background: var(--soft); border-left: 3px solid var(--brand); cursor: pointer; text-align: left; }
.cal .ev b { display: block; font-size: 12px; } .cal .ev span { color: var(--mu); font-size: 11px; }
.cal .ev.hi { background: #fffaeb; border-color: #f79009; } .cal .ev.full { background: #fef3f2; border-color: #f04438; } .cal .ev.done { background: #f2f4f7; border-color: #98a2b3; } .cal .ev.x { background: repeating-linear-gradient(135deg, #fff, #fff 5px, #f2f4f7 5px, #f2f4f7 10px); border-color: #98a2b3; text-decoration: line-through; }

/* Terminales */
.kio { display: flex; flex-direction: column; gap: 12px; }
.kio-h { display: flex; align-items: flex-start; gap: 12px; }
.kio-h > .ic-i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--soft); color: var(--brand); flex: none; }
.kio-h b { display: block; font-size: 14.5px; } .kio-h span { font-size: 12.5px; color: var(--mu); }
.kio-h .st { margin-left: auto; }
.kio-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kio-m div { background: #f9fafb; border-radius: 12px; padding: 9px 10px; }
.kio-m span { display: block; font-size: 11.5px; color: var(--mu); font-weight: 600; } .kio-m b { font-size: 15px; font-variant-numeric: tabular-nums; }
.paper-bar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); }
.paper-bar i { flex: 1; height: 8px; border-radius: 8px; background: #eef1f6; overflow: hidden; position: relative; }
.paper-bar i::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--c); border-radius: inherit; }
.kio-a { display: flex; gap: 6px; flex-wrap: wrap; }

/* Mapa */
.map { width: 100%; height: auto; display: block; background: linear-gradient(180deg, #eaf2fb, #f4f8fd); border-radius: 16px; }
.map .sea { fill: #d6e6f7; }
.map .land { fill: #f7f9fc; stroke: #dbe4ef; stroke-width: 1.5; }
.map .rt { fill: none; stroke: #c3d1e3; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map .rt.on { stroke: color-mix(in srgb, var(--brand) 35%, #fff); }
.map .city circle { fill: #fff; stroke: var(--tx); stroke-width: 2.5; }
.map .city text { font-size: 13px; font-weight: 800; fill: var(--tx); font-family: var(--font); paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; }
.map .stop circle { fill: #fff; stroke: var(--mu2); stroke-width: 2; }
.map .stop text { font-size: 11.5px; font-weight: 600; fill: var(--mu); font-family: var(--font); paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; }
.map .busm { transition: transform 1.2s linear; cursor: pointer; }
.map .busm circle { fill: var(--brand); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 6px rgba(16,24,40,.25)); }
.map .busm.off circle { fill: #f79009; }
.map .busm text { font-size: 10.5px; font-weight: 800; fill: var(--tx); font-family: var(--font); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.map .sea-t { font-size: 13px; fill: #7a9cc6; font-style: italic; font-family: var(--font); }

/* Matriz */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.pm { display: inline-grid; place-items: center; width: 34px; height: 28px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.pm.l0 { background: #f2f4f7; color: #98a2b3; } .pm.l1 { background: #eff8ff; color: #175cd3; } .pm.l2 { background: #ecfdf3; color: #067647; }
button.pm:hover { outline: 2px solid var(--brand); }

/* Formularios */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fld label { display: block; font-size: 12.5px; font-weight: 700; color: #344054; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid #d0d5dd; background: #fff; font-size: 14px; outline: 0; }
.fld textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.fld small { display: block; font-size: 12px; color: var(--mu); margin-top: 5px; }
.fld input[type=color] { padding: 3px; width: 56px; cursor: pointer; }
.fld .row { display: flex; gap: 8px; align-items: center; }
.fld input:disabled { background: #f9fafb; color: var(--mu); }
.toggle { position: relative; width: 40px; height: 24px; border-radius: 99px; background: #d0d5dd; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: #17b26a; } .toggle.on::after { transform: translateX(16px); }

/* Panel lateral de detalle y modal */
.ov { position: fixed; inset: 0; z-index: 90; background: rgba(16,24,40,.42); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ov.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 91; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; box-shadow: -20px 0 50px rgba(16,24,40,.15); transform: translateX(105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.show { transform: none; }
.dr-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--ln); }
.dr-h h2 { font-size: 19px; font-weight: 800; } .dr-h p { color: var(--mu); font-size: 13px; margin-top: 2px; }
.dr-h .x { margin-left: auto; }
.dr-b { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }
.dr-f { padding: 14px 22px; border-top: 1px solid var(--ln); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ln); border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.kv div { background: #fff; padding: 10px 12px; }
.kv span { display: block; font-size: 11.5px; color: var(--mu); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .kv b { font-size: 14px; }
.sec-t { font-size: 13px; font-weight: 800; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 10px; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--ln); }
.tl div { position: relative; padding: 2px 0 14px; font-size: 13.5px; }
.tl div::before { content: ''; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #d0d5dd; box-shadow: 0 0 0 3px #fff; }
.tl div.ok::before { background: #17b26a; } .tl div.bad::before { background: #f04438; } .tl div.cur::before { background: #f79009; }
.tl span { display: block; font-size: 12px; color: var(--mu); }
.modal { position: fixed; z-index: 92; left: 50%; top: 50%; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(16,24,40,.3); transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
.modal.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.modal > p { color: var(--mu); font-size: 14px; margin-bottom: 14px; }
.modal .fld { margin-bottom: 12px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.empty { text-align: center; padding: 40px 20px; color: var(--mu); }
.empty .ic-i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--ln2); margin: 0 auto 10px; }

/* Vista previa marca blanca */
.bprev { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-app { border-radius: 22px; background: #07090d; color: #fff; padding: 16px; }
.bp-app .bal { border-radius: 18px; padding: 14px; background: linear-gradient(135deg, var(--pc1), color-mix(in srgb, var(--pc1) 50%, #0a0f1f)); }
.bp-app .bal span { font-size: 11px; opacity: .85; } .bp-app .bal b { display: block; font-size: 30px; font-weight: 800; }
.bp-app .btn2 { margin-top: 10px; height: 36px; border-radius: 12px; background: var(--pc1); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.bp-app .ok { margin-top: 8px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--pc2) 20%, transparent); color: var(--pc2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.bp-tk { border-radius: 16px; background: #fdfdfb; border: 1px dashed #d0d5dd; padding: 14px; font-family: var(--mono); font-size: 12px; text-align: center; }
.bp-tk .lg { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; color: #fff; font-family: var(--font); font-weight: 800; background: linear-gradient(135deg, var(--pc1), var(--pc2)); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--ln); font-size: 13px; font-weight: 700; background: #fff; }
.swatches button i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--a), var(--b)); }

@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g21, .g12 { grid-template-columns: 1fr; } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .side { position: fixed; left: 0; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: 20px 0 50px rgba(16,24,40,.15); }
  .side.open { transform: none; }
  .iconbtn.burger { display: grid; }
  .top { padding: 0 16px; } .content { padding: 8px 16px 90px; }
  .clock, .livebtn span { display: none; }
  .g2, .g3, .form, .bprev { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .g4, .g6 { grid-template-columns: 1fr 1fr; } .kpi .k-v { font-size: 22px; } .kpi .k-sp { display: none; } .gsearch { display: none; } }
