/* ============================================================
   PLATAFORMA PL — Prototipo de diseño
   Sistema de marca por organismo (A13) + temas claro/noche
   ============================================================ */

:root {
  --brand-primary: #1e5eff;
  --brand-primary-soft: rgba(30, 94, 255, .14);
  --brand-secondary: #0a2a6b;
  --brand-accent: #f0a500;

  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #dde2ea;
  --text: #182133;
  --text-soft: #5a6577;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 4px 14px rgba(16,24,40,.06);
  --shadow-lg: 0 8px 30px rgba(16,24,40,.14);

  --morning: #dbeafe; --morning-tx: #1d4ed8;
  --evening: #fef3c7;  --evening-tx: #b45309;
  --night:   #e0e7ff;  --night-tx:  #4338ca;
  --free:    #f1f5f9;  --free-tx:   #64748b;
  --holiday: #dcfce7;  --holiday-tx:#15803d;
  --leave:   #fce7f3;  --leave-tx:  #be185d;
  --gap:     repeating-linear-gradient(45deg,#e5e7eb 0 6px,#f8fafc 6px 12px);
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
}

[data-theme="dark"] {
  --bg: #0d1420;
  --surface: #151f30;
  --surface-2: #1b2740;
  --border: #263450;
  --text: #e8edf6;
  --text-soft: #93a1b8;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.5);

  --morning: #14294d; --morning-tx: #7fb0ff;
  --evening: #3a2c10;  --evening-tx: #fbbf24;
  --night:   #232248;  --night-tx:  #a5b4fc;
  --free:    #1b2432;  --free-tx:   #8ea0b8;
  --holiday: #12321f;  --holiday-tx:#4ade80;
  --leave:   #3a1426;  --leave-tx:  #f472b6;
  --gap:     repeating-linear-gradient(45deg,#222b3d 0 6px,#161e2e 6px 12px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 650; }
h3 svg { width: 17px; height: 17px; flex: 0 0 17px; }

/* ---------- Barra prototipo ---------- */
.proto-banner {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  color: #fff; text-align: center; padding: 6px 12px;
  font-size: 12.5px; letter-spacing: .3px;
}
.proto-banner b { letter-spacing: .6px; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: calc(100vh - 30px); }

.sidebar {
  width: 232px; flex: 0 0 232px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 30px; height: calc(100vh - 30px);
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.brand img, .brand .brand-badge {
  width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: var(--brand-primary-soft);
  padding: 3px;
}
/* Logo PNG real (fondo blanco): placa con fondo claro y borde suave, legible en ambos temas */
.brand img, .big-logo img, .phone-head img, .brand-badge img {
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 2px;
}
.brand .brand-badge { display:flex; align-items:center; justify-content:center; }
.brand .brand-badge svg { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-soft); }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--text-soft); text-decoration: none; font-weight: 550;
  border: 0; background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--brand-primary-soft); color: var(--brand-primary); }
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-item .ico svg { width: 100%; height: 100%; }
.nav-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); padding: 12px 10px 4px; }

.main { flex: 1; padding: 20px 24px 60px; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.topbar h1 { font-size: 20px; }
.topbar .crumb { color: var(--text-soft); font-size: 12.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip.warn .dot { background: var(--warn); }
.chip.danger .dot { background: var(--danger); }

.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13px;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); background: var(--brand-primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color:#fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px;
}
.card h3 { font-size: 14.5px; margin-bottom: 10px; display:flex; align-items:center; gap:8px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--text-soft); }
.small { font-size: 12px; }

.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .kpi-num { font-size: 26px; font-weight: 750; }
.kpi .kpi-label { font-size: 12px; color: var(--text-soft); }
.kpi .kpi-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display:flex; align-items:center; justify-content:center; margin-bottom: 4px;
}
.kpi .kpi-ico svg { width: 18px; height: 18px; }

/* ---------- Tablas / cuadrantes ---------- */
table { border-collapse: collapse; width: 100%; }
.shift-grid th, .shift-grid td {
  border: 1px solid var(--border); text-align: center;
  padding: 5px 4px; font-size: 12px; min-width: 30px;
}
.shift-grid th { background: var(--surface-2); font-weight: 650; position: sticky; top: 0; }
.shift-grid td.agent { text-align: left; white-space: nowrap; font-weight: 600; padding: 5px 10px; background: var(--surface); position: sticky; left: 0; }
.shift-grid .wk { background: var(--surface-2); font-weight: 700; }
.cell { border-radius: 5px; padding: 3px 0; font-weight: 700; cursor: pointer; }
.cell.M { background: var(--morning); color: var(--morning-tx); }
.cell.T { background: var(--evening); color: var(--evening-tx); }
.cell.N { background: var(--night); color: var(--night-tx); }
.cell.L { background: var(--free); color: var(--free-tx); }
.cell.V { background: var(--holiday); color: var(--holiday-tx); }
.cell.P { background: var(--leave); color: var(--leave-tx); }
.cell.gap {
  background: var(--gap); color: var(--text-soft);
  outline: 2px dashed var(--warn); outline-offset: -2px; cursor: pointer;
}
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--text-soft); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* Cuadrante semanal de puestos */
.week-grid { display: grid; grid-template-columns: 150px repeat(7, 1fr); gap: 4px; }
.week-grid > div { border-radius: 8px; }
.wk-head { background: var(--surface-2); padding: 8px 6px; text-align: center; font-weight: 700; font-size: 12px; }
.wk-head .dow { display: block; font-size: 10.5px; color: var(--text-soft); font-weight: 600; }
.wk-label { background: var(--surface); border: 1px solid var(--border); padding: 10px 8px; font-weight: 700; font-size: 12px; }
.wk-label small { display:block; font-weight:500; color: var(--text-soft); }
.wk-cell {
  background: var(--surface); border: 1px solid var(--border);
  min-height: 74px; padding: 5px; display: flex; flex-direction: column; gap: 3px;
}
.slot {
  border-radius: 6px; padding: 3px 6px; font-size: 11.5px; font-weight: 650;
  display: flex; justify-content: space-between; align-items: center; gap: 4px;
}
.slot.M { background: var(--morning); color: var(--morning-tx); }
.slot.T { background: var(--evening); color: var(--evening-tx); }
.slot.N { background: var(--night); color: var(--night-tx); }
.slot .who { font-weight: 500; opacity: .85; }
.slot .tag { font-size: 9.5px; background: rgba(0,0,0,.12); border-radius: 4px; padding: 1px 5px; }
.slot.gap { background: var(--gap); color: var(--text-soft); outline: 2px dashed var(--warn); outline-offset: -2px; justify-content: center; cursor: pointer; font-weight: 700; }
.puesto-row { display: flex; gap: 4px; flex-wrap: wrap; }
.puesto-title { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-soft); font-weight: 700; margin-bottom: 2px; }

/* ---------- Cobertura ---------- */
.pipeline { display: flex; align-items: stretch; gap: 10px; }
.pipe-step { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; position: relative; }
.pipe-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--text-soft); font-size: 16px; z-index: 2;
}
.pipe-step h4 { font-size: 12.5px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.cand { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 6px; background: var(--surface-2); }
.cand .rank { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.cand .meta { margin-left: auto; font-size: 11px; color: var(--text-soft); text-align: right; }
.cand.selected { border-color: var(--brand-primary); box-shadow: 0 0 0 2px var(--brand-primary-soft); }

/* ---------- Centro de control ---------- */
.cc-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.map-card { padding: 0; overflow: hidden; position: relative; }
.map-card svg { display: block; width: 100%; height: auto; }
.unit-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); }
.unit-row .u-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }
.sos-flash { animation: sosflash 1s infinite; }
@keyframes sosflash { 0%,100% { fill: var(--danger); } 50% { fill: #ff6b6b; } }

/* ---------- Misiones / partes ---------- */
.mission { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.mission .m-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-primary-soft); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.mission .m-ico svg { width: 19px; height: 19px; }
.badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.badge.ok { background: rgba(22,163,74,.15); color: var(--ok); }
.badge.warn { background: rgba(217,119,6,.15); color: var(--warn); }
.badge.info { background: var(--brand-primary-soft); color: var(--brand-primary); }
.badge.danger { background: rgba(220,38,38,.15); color: var(--danger); }
.badge.roadmap { background: var(--surface-2); color: var(--text-soft); border: 1px dashed var(--border); }

.checkline { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.checkline:last-child { border-bottom: 0; }
.checkbox { width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--border); flex: 0 0 17px; display:flex; align-items:center; justify-content:center; }
.checkbox.done { background: var(--ok); border-color: var(--ok); color:#fff; }

/* ---------- Módulos roadmap ---------- */
.mod-card { text-align: center; padding: 22px 14px; }
.mod-card .m-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; background: var(--brand-primary-soft); color: var(--brand-primary); display:flex; align-items:center; justify-content:center; }
.mod-card .m-ico svg { width: 26px; height: 26px; }
.mod-card.ghost { opacity: .85; border-style: dashed; }

/* ---------- Flota ---------- */
.veh { display: flex; gap: 12px; align-items: center; }
.veh .v-plate { font-family: "Courier New", monospace; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; letter-spacing: 1px; }

/* ---------- App agente (phone) ---------- */
.phone-stage { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.phone {
  width: 330px; flex: 0 0 330px; border-radius: 34px; padding: 12px;
  background: #0b0f17; box-shadow: var(--shadow-lg);
}
.phone-screen {
  border-radius: 24px; overflow: hidden; background: var(--bg);
  min-height: 620px; display: flex; flex-direction: column; position: relative;
}
.phone-status { height: 26px; display:flex; justify-content: space-between; align-items:center; padding: 0 18px; font-size: 11px; color: var(--text-soft); }
.phone-head { padding: 12px 16px 10px; display:flex; align-items:center; gap: 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.phone-head img, .phone-head .brand-badge { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; background: var(--brand-primary-soft); padding: 2px; }
.phone-body { flex: 1; padding: 14px; overflow-y: auto; }
.phone-nav { display: flex; border-top: 1px solid var(--border); background: var(--surface); }
.phone-nav a { flex: 1; text-align: center; padding: 9px 0 8px; color: var(--text-soft); font-size: 10px; font-weight: 600; text-decoration: none; }
.phone-nav a.active { color: var(--brand-primary); }
.phone-nav svg { width: 19px; height: 19px; display: block; margin: 0 auto 2px; }

.sos-btn {
  width: 100%; border: 0; border-radius: 16px; padding: 18px;
  background: linear-gradient(160deg, #ef4444, #b91c1c); color: #fff;
  font-size: 17px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(220,38,38,.4);
}
.sos-btn small { display:block; font-weight: 500; font-size: 11px; letter-spacing: 0; opacity: .9; margin-top: 2px; }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - 30px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-card { width: 420px; max-width: 100%; padding: 34px; text-align: center; }
.login-card .big-logo { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 20px; object-fit: contain; background: var(--brand-primary-soft); padding: 8px; }
.login-card .big-logo.has-img { background: transparent; padding: 0; border-radius: 0; }
.login-card .big-logo.has-img img { border-radius: 18px; padding: 3px; }
.login-card h1 { font-size: 21px; margin-bottom: 2px; }
.login-card .sub { color: var(--text-soft); font-size: 13px; margin-bottom: 22px; }
.field { text-align: left; margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 4px; color: var(--text-soft); }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit;
}
.muni-picker { display: flex; gap: 8px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.muni-pick { border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 650; color: var(--text-soft); }
.muni-pick.active { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-primary-soft); }

/* ---------- Marca / personalización ---------- */
.color-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.color-row input[type=color] { width: 46px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); padding: 2px; }
.preview-strip { display: flex; gap: 8px; margin-top: 8px; }
.preview-strip div { flex: 1; height: 42px; border-radius: 8px; display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight: 700; }

/* ---------- Panel lateral (detalle celda) ---------- */
.side-panel {
  position: fixed; top: 30px; right: 0; bottom: 0; width: 330px;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 18px; z-index: 50;
  transform: translateX(105%); transition: transform .25s ease;
  overflow-y: auto;
}
.side-panel.open { transform: translateX(0); }
.side-panel h3 { margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.kv b { text-align: right; }
.overlay { position: fixed; inset: 0; background: rgba(8,12,20,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.show { opacity: 1; pointer-events: all; }

/* ---------- Selector de tema (icono sol/luna) ---------- */
.theme-btn {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center;
}
.theme-btn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.theme-btn svg { width: 18px; height: 18px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.footer-note { margin-top: 26px; color: var(--text-soft); font-size: 11.5px; text-align: center; }

@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cc-wrap { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: 110px repeat(7, minmax(90px, 1fr)); overflow-x: auto; }
  .sidebar { width: 66px; flex-basis: 66px; }
  .brand-name, .brand-sub, .nav-item span.txt, .nav-sep { display: none; }
  .nav-item { justify-content: center; }
}

/* ============================================================
   SKINS DE INTERFAZ — tres propuestas comparables
   (selector en la barra superior y en el login)
   ============================================================ */

/* ---------- Selector de estilo ---------- */
.skin-wrap { position: relative; }
.skin-menu {
  position: absolute; right: 0; top: 44px; z-index: 70;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; min-width: 190px;
}
.skin-menu.open { display: block; }
.skin-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; background: transparent; color: var(--text-soft);
  padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 650; text-align: left;
}
.skin-menu button:hover { background: var(--surface-2); color: var(--text); }
.skin-menu button.active { color: var(--brand-primary); background: var(--brand-primary-soft); }
.skin-swatch { width: 16px; height: 16px; border-radius: 5px; flex: 0 0 16px; }
.sw-estandar { background: linear-gradient(135deg, #1e5eff 0 50%, #0a2a6b 50% 100%); }
.sw-mando    { background: linear-gradient(135deg, #f97316 0 50%, #0a0f1a 50% 100%); }
.sw-consola  { background: linear-gradient(135deg, #14b8a6 0 50%, #08111a 50% 100%); }

/* ---------- SKIN 2 · MANDO (adaptado de Protección Civil) ---------- */
[data-skin="mando"][data-theme="dark"] {
  --bg: #030509;
  --surface: #0a0f1a;
  --surface-2: #0f1624;
  --border: #1b2438;
  --text: #eef2fa;
  --text-soft: #93a0b8;
  --brand-primary: #f97316;
  --brand-secondary: #7c2d12;
  --brand-accent: #f97316;
  --brand-primary-soft: rgba(249,115,22,.14);
  --shadow: 0 1px 3px rgba(0,0,0,.55);
  --shadow-lg: 0 12px 36px rgba(0,0,0,.7);
  --morning: #111a2e; --morning-tx: #7fb0ff;
  --evening: #241a0c;  --evening-tx: #fbbf24;
  --night:   #181a33;  --night-tx:  #a5b4fc;
  --free:    #10161f;  --free-tx:   #8ea0b8;
  --holiday: #0e2418;  --holiday-tx:#4ade80;
  --leave:   #2a1020;  --leave-tx:  #f472b6;
  --gap:     repeating-linear-gradient(45deg,#151d2b 0 6px,#0b111c 6px 12px);
}
[data-skin="mando"][data-theme="light"] {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #eceef5;
  --border: #d9dEE9;
  --text: #0f1728;
  --text-soft: #3d4a63;               /* contraste corregido (AA) */
  --brand-primary: #ea580c;
  --brand-secondary: #7c2d12;
  --brand-accent: #f97316;
  --brand-primary-soft: rgba(234,88,12,.12);
  --morning: #dbeafe; --morning-tx: #1d4ed8;
  --evening: #fef3c7;  --evening-tx: #b45309;
  --night:   #e0e7ff;  --night-tx:  #4338ca;
  --free:    #f1f5f9;  --free-tx:   #52627a;
  --holiday: #dcfce7;  --holiday-tx:#15803d;
  --leave:   #fce7f3;  --leave-tx:  #be185d;
}
[data-skin="mando"] h1#page-title {
  font-family: "Arial Black","Segoe UI",system-ui,sans-serif;
  font-style: italic; text-transform: uppercase; letter-spacing: .4px; font-size: 19px;
}
[data-skin="mando"] .brand-name {
  font-family: "Arial Black","Segoe UI",sans-serif; font-style: italic;
  text-transform: uppercase; font-size: 11.5px; letter-spacing: .4px;
}
[data-skin="mando"] .sidebar { background: transparent; }
[data-skin="mando"] .card { border-radius: 18px; transition: border-color .15s ease, transform .15s ease; }
[data-skin="mando"] .card:hover { border-color: var(--brand-primary); }
[data-skin="mando"] .nav-item { font-family: "Segoe UI",sans-serif; letter-spacing: .3px; }
[data-skin="mando"] .nav-item.active { background: var(--brand-primary-soft); color: var(--brand-primary); }
[data-skin="mando"] .wk-head { text-transform: uppercase; letter-spacing: .5px; }
[data-skin="mando"] .btn { border-radius: 10px; letter-spacing: .2px; }
[data-skin="mando"] .kpi-num { font-family: "Arial Black","Segoe UI",sans-serif; font-style: italic; }

/* ---------- SKIN 3 · CONSOLA (propuesta densa y operativa) ---------- */
[data-skin="consola"] {
  --brand-accent: #22d3ee;
  --shadow: none;
  --shadow-lg: 0 10px 30px rgba(0,0,0,.25);
}
[data-skin="consola"][data-theme="dark"] {
  --bg: #0a0f14;
  --surface: #101820;
  --surface-2: #15202b;
  --border: #22303f;
  --text: #e6edf4;
  --text-soft: #8fa3b8;
  --brand-primary: #22d3ee;
  --brand-secondary: #155e75;
  --brand-primary-soft: rgba(34,211,238,.12);
  --morning: #122a3d; --morning-tx: #7dd3fc;
  --evening: #3a2c10;  --evening-tx: #fbbf24;
  --night:   #1d2340;  --night-tx:  #a5b4fc;
  --free:    #16202a;  --free-tx:   #8ea0b8;
  --holiday: #0f2e1e;  --holiday-tx:#4ade80;
  --leave:   #331626;  --leave-tx:  #f472b6;
  --gap:     repeating-linear-gradient(45deg,#1a2631 0 6px,#101820 6px 12px);
}
[data-skin="consola"][data-theme="light"] {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-2: #e6ecf1;
  --border: #cfdae4;
  --text: #0e1a24;
  --text-soft: #41566b;
  --brand-primary: #0e7490;
  --brand-secondary: #155e75;
  --brand-primary-soft: rgba(14,116,144,.12);
  --morning: #e0f2fe; --morning-tx: #0369a1;
  --evening: #fef3c7;  --evening-tx: #b45309;
  --night:   #e0e7ff;  --night-tx:  #4338ca;
  --free:    #f1f5f9;  --free-tx:   #52627a;
  --holiday: #dcfce7;  --holiday-tx:#15803d;
  --leave:   #fce7f3;  --leave-tx:  #be185d;
}
[data-skin="consola"] body, [data-skin="consola"] { font-size: 13.5px; }
[data-skin="consola"] .sidebar { width: 200px; flex-basis: 200px; padding: 10px 8px; }
[data-skin="consola"] .card { border-radius: 8px; padding: 12px 14px; }
[data-skin="consola"] .main { padding: 14px 18px 50px; }
[data-skin="consola"] .topbar { margin-bottom: 12px; }
[data-skin="consola"] h1#page-title { font-size: 17px; letter-spacing: .2px; }
[data-skin="consola"] .nav-item { padding: 6px 9px; border-radius: 6px; font-size: 13px; }
[data-skin="consola"] .shift-grid th, [data-skin="consola"] .shift-grid td { padding: 3px 3px; font-size: 11.5px; }
[data-skin="consola"] .wk-cell { min-height: 60px; }
[data-skin="consola"] .btn { border-radius: 6px; }
[data-skin="consola"] .grid { gap: 10px; }
[data-skin="consola"] .kpi .kpi-num { font-size: 22px; }

/* Buscador global (solo consola) */
.global-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 12px; min-width: 250px; color: var(--text-soft);
}
.global-search input { border: 0; background: transparent; color: var(--text); font: inherit; width: 100%; outline: none; }
.global-search svg { width: 15px; height: 15px; flex: 0 0 15px; }
.global-search kbd {
  font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
  background: var(--surface); color: var(--text-soft);
}

/* Chips de estado (solo mando) */
.status-chip {
  font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase;
  border-color: var(--border); font-weight: 800;
}

/* Ajustes comunes por skin en el login */
.skin-picker-login { display: flex; gap: 8px; justify-content: center; margin: 12px 0 2px; flex-wrap: wrap; }
