/* ============================================================
   Goku Teléfono — Hoja de estilos principal
   Tema oscuro, layout lateral fijo, responsive.
   ============================================================ */

:root {
  --bg-900: #070b14;
  --bg-800: #0b1120;
  --bg-700: #111a2e;
  --bg-600: #17233d;
  --bg-500: #1e2c4a;
  --border: #23304d;
  --border-soft: #1a2540;

  --text-100: #f1f5f9;
  --text-200: #cbd5e1;
  --text-300: #94a3b8;
  --text-400: #64748b;

  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --cyan: #22d3ee;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;

  --sidebar-w: 264px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.goku-body {
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(245, 158, 11, 0.10), transparent 62%),
    radial-gradient(880px 520px at 6% 108%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg-900);
  color: var(--text-100);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Estructura ---------- */
.goku-shell { display: flex; min-height: 100vh; }

.goku-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-800), var(--bg-900));
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.goku-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.goku-content { padding: 26px 30px 48px; flex: 1; }

/* ---------- Marca ---------- */
.goku-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.goku-brand__logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  color: #1a1204;
  font-size: 19px;
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.34);
}
.goku-brand__text { line-height: 1.15; }
.goku-brand__title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.2px; }
.goku-brand__sub { font-size: 11px; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.9px; }

/* ---------- Navegación ---------- */
.goku-nav { padding: 14px 12px; flex: 1; }
.goku-nav__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px;
  color: var(--text-400); text-transform: uppercase;
  padding: 14px 10px 7px;
}
.goku-nav__link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-200);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background .16s, color .16s;
  border: 1px solid transparent;
}
.goku-nav__link i { width: 18px; text-align: center; font-size: 14px; color: var(--text-400); transition: color .16s; }
.goku-nav__link:hover { background: var(--bg-700); color: var(--text-100); }
.goku-nav__link:hover i { color: var(--accent); }
.goku-nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.28);
  font-weight: 600;
}
.goku-nav__link.is-active i { color: var(--accent); }
.goku-nav__badge {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff;
  border-radius: 20px; padding: 1px 7px;
}

/* ---------- Estado de conexión (sidebar) ---------- */
.goku-conn {
  margin: 12px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-700);
  border: 1px solid var(--border);
}
.goku-conn__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.goku-conn__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.17);
  flex-shrink: 0;
}
.goku-conn__dot.is-offline {
  background: var(--text-400);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}
.goku-conn__title { font-size: 12.5px; font-weight: 600; }
.goku-conn__value { font-size: 11px; color: var(--text-400); margin-bottom: 9px; }
.goku-conn__btn {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-600);
  color: var(--text-200);
  cursor: pointer;
  transition: all .16s;
}
.goku-conn__btn:hover { background: var(--accent); color: #1a1204; border-color: var(--accent); }

/* ---------- Barra superior ---------- */
.goku-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 30px;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; z-index: 40;
}
.goku-topbar__title { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.goku-topbar__sub { font-size: 12.5px; color: var(--text-400); margin: 1px 0 0; }
.goku-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.goku-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600;
  color: var(--text-200);
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

.goku-menu-btn {
  display: none;
  background: var(--bg-700); border: 1px solid var(--border);
  color: var(--text-100); border-radius: 8px;
  width: 38px; height: 38px; cursor: pointer; font-size: 15px;
}

/* ---------- Tarjetas ---------- */
.goku-card {
  background: linear-gradient(180deg, rgba(23, 35, 61, 0.72), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 19px;
}
.goku-card__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 15px;
}
.goku-card__title { font-size: 14.5px; font-weight: 700; margin: 0; }
.goku-card__sub { font-size: 12px; color: var(--text-400); margin: 1px 0 0; }
.goku-card__action { margin-left: auto; }

/* ---------- Rejillas ---------- */
.goku-grid { display: grid; gap: 16px; }
.goku-grid--4 { grid-template-columns: repeat(4, 1fr); }
.goku-grid--3 { grid-template-columns: repeat(3, 1fr); }
.goku-grid--2 { grid-template-columns: repeat(2, 1fr); }
.goku-grid--sidebar { grid-template-columns: 2fr 1fr; }

/* ---------- KPI ---------- */
.goku-kpi {
  background: linear-gradient(180deg, rgba(23, 35, 61, 0.8), rgba(15, 23, 42, 0.72));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 17px;
  position: relative;
  overflow: hidden;
}
.goku-kpi::after {
  content: ''; position: absolute; right: -28px; top: -28px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--kpi-color, var(--accent));
  opacity: 0.07;
}
.goku-kpi__icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--kpi-bg, var(--accent-soft));
  color: var(--kpi-color, var(--accent));
  font-size: 17px; margin-bottom: 12px;
}
.goku-kpi__value {
  font-size: 27px; font-weight: 750;
  line-height: 1.1; letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.goku-kpi__label {
  font-size: 12px; color: var(--text-400);
  text-transform: uppercase; letter-spacing: 0.7px;
  font-weight: 600; margin-top: 3px;
}
.goku-kpi__meta { font-size: 12px; color: var(--text-300); margin-top: 9px; }
.goku-kpi__meta b { color: var(--green); }

/* ---------- Botones ---------- */
.goku-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-600);
  color: var(--text-100);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
}
.goku-btn:hover { background: var(--bg-500); border-color: #2f3f63; }
.goku-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  border-color: var(--accent);
  color: #1a1204;
}
.goku-btn--primary:hover { filter: brightness(1.09); }
.goku-btn--danger { background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.36); color: #fca5a5; }
.goku-btn--danger:hover { background: rgba(239, 68, 68, 0.22); }
.goku-btn--success { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.38); color: #6ee7b7; }
.goku-btn--success:hover { background: rgba(16, 185, 129, 0.23); }
.goku-btn--sm { padding: 5px 10px; font-size: 12px; }
.goku-btn--icon { padding: 6px 9px; }
.goku-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Formularios ---------- */
.goku-field { margin-bottom: 14px; }
.goku-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-300); margin-bottom: 6px;
}
.goku-input, .goku-select, .goku-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-800);
  color: var(--text-100);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.goku-input:focus, .goku-select:focus, .goku-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.goku-input::placeholder { color: var(--text-400); }
.goku-textarea { resize: vertical; min-height: 78px; }
.goku-select { cursor: pointer; }

/* ---------- Interruptor ---------- */
.goku-switch { display: flex; align-items: center; gap: 12px; }
.goku-switch__track {
  width: 50px; height: 27px; border-radius: 20px;
  background: var(--bg-500); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: background .22s, border-color .22s;
  flex-shrink: 0;
}
.goku-switch__track.is-on { background: rgba(16, 185, 129, 0.24); border-color: var(--green); }
.goku-switch__thumb {
  position: absolute; top: 2px; left: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--text-300);
  transition: transform .22s, background .22s;
}
.goku-switch__track.is-on .goku-switch__thumb {
  transform: translateX(23px);
  background: var(--green);
}
.goku-switch__text { font-size: 13.5px; }
.goku-switch__hint { font-size: 12px; color: var(--text-400); margin-top: 2px; }

/* ---------- Tablas ---------- */
.goku-table-wrap { overflow-x: auto; }
.goku-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.goku-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-400);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.goku-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.goku-table tbody tr:hover { background: rgba(30, 44, 74, 0.42); }
.goku-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Avatares ---------- */
.goku-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13.5px;
  color: #fff; flex-shrink: 0;
}
.goku-user-cell { display: flex; align-items: center; gap: 11px; }
.goku-user-cell__name { font-weight: 600; font-size: 13.5px; }
.goku-user-cell__meta { font-size: 11.5px; color: var(--text-400); }

/* ---------- Insignias ---------- */
.goku-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 650;
  border: 1px solid transparent;
}
.goku-badge--green  { background: rgba(16,185,129,.14);  color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.goku-badge--red    { background: rgba(239,68,68,.14);   color: #fca5a5; border-color: rgba(239,68,68,.3); }
.goku-badge--amber  { background: rgba(245,158,11,.14);  color: #fcd34d; border-color: rgba(245,158,11,.3); }
.goku-badge--blue   { background: rgba(59,130,246,.14);  color: #93c5fd; border-color: rgba(59,130,246,.3); }
.goku-badge--purple { background: rgba(139,92,246,.15);  color: #c4b5fd; border-color: rgba(139,92,246,.3); }
.goku-badge--gray   { background: rgba(100,116,139,.15); color: var(--text-300); border-color: rgba(100,116,139,.3); }

/* ---------- Búsqueda ---------- */
.goku-search { position: relative; flex: 1; max-width: 340px; }
.goku-search i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-400); font-size: 13px;
}
.goku-search input { padding-left: 35px; }

/* ---------- Estado vacío ---------- */
.goku-empty { text-align: center; padding: 46px 20px; color: var(--text-400); }
.goku-empty i { font-size: 40px; opacity: 0.32; margin-bottom: 13px; display: block; }
.goku-empty p { margin: 0; font-size: 14px; }

/* ---------- Modal ---------- */
.goku-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 7, 15, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.goku-modal__box {
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
  animation: gokuPop .18s ease-out;
}
@keyframes gokuPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.goku-modal__head {
  display: flex; align-items: center; gap: 11px;
  padding: 17px 20px; border-bottom: 1px solid var(--border-soft);
}
.goku-modal__title { font-size: 15.5px; font-weight: 700; margin: 0; }
.goku-modal__close {
  margin-left: auto; background: none; border: none;
  color: var(--text-400); font-size: 17px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
}
.goku-modal__close:hover { background: var(--bg-600); color: var(--text-100); }
.goku-modal__body { padding: 19px 20px; }
.goku-modal__foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 15px 20px; border-top: 1px solid var(--border-soft);
}

/* ---------- Métricas de dispositivo ---------- */
.goku-meter { height: 6px; border-radius: 4px; background: var(--bg-500); overflow: hidden; margin-top: 5px; }
.goku-meter__fill { height: 100%; border-radius: 4px; transition: width .35s; }
.goku-meter__fill.is-good { background: var(--green); }
.goku-meter__fill.is-warn { background: var(--accent); }
.goku-meter__fill.is-bad  { background: var(--red); }

/* ---------- Registro de actividad ---------- */
.goku-feed { display: flex; flex-direction: column; gap: 2px; }
.goku-feed__item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 4px; border-bottom: 1px solid var(--border-soft);
}
.goku-feed__item:last-child { border-bottom: none; }
.goku-feed__icon {
  width: 31px; height: 31px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px; flex-shrink: 0;
}
.goku-feed__body { min-width: 0; flex: 1; }
.goku-feed__title { font-size: 13px; font-weight: 600; }
.goku-feed__meta { font-size: 11.5px; color: var(--text-400); }

/* ---------- Barra de progreso de sincronización ---------- */
.goku-progress { height: 8px; background: var(--bg-500); border-radius: 5px; overflow: hidden; }
.goku-progress__fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width .4s;
}

/* ---------- Secciones de ajustes ---------- */
.goku-section + .goku-section { margin-top: 16px; }
.goku-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border-soft);
}
.goku-row:last-child { border-bottom: none; }
.goku-row__body { flex: 1; min-width: 0; }
.goku-row__title { font-size: 13.5px; font-weight: 600; }
.goku-row__desc { font-size: 12.5px; color: var(--text-400); margin-top: 2px; }

/* ---------- Avisos ---------- */
.goku-alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid transparent;
}
.goku-alert i { font-size: 15px; margin-top: 1px; }
.goku-alert--info  { background: rgba(59,130,246,.10);  border-color: rgba(59,130,246,.3);  color: #bfdbfe; }
.goku-alert--warn  { background: rgba(245,158,11,.10);  border-color: rgba(245,158,11,.32); color: #fde68a; }
.goku-alert--ok    { background: rgba(16,185,129,.10);  border-color: rgba(16,185,129,.32); color: #a7f3d0; }
.goku-alert--error { background: rgba(239,68,68,.10);   border-color: rgba(239,68,68,.32);  color: #fecaca; }

/* ---------- Notificaciones flotantes ---------- */
#goku-toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.goku-toast {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-700); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 13.5px;
  animation: gokuSlide .22s ease-out;
  min-width: 260px; max-width: 380px;
}
@keyframes gokuSlide { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.goku-toast--ok    { border-left: 3px solid var(--green); }
.goku-toast--error { border-left: 3px solid var(--red); }
.goku-toast--info  { border-left: 3px solid var(--blue); }

/* ---------- Utilidades ---------- */
.goku-flex { display: flex; }
.goku-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goku-flex-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.goku-mb-0 { margin-bottom: 0; }
.goku-mb-1 { margin-bottom: 10px; }
.goku-mb-2 { margin-bottom: 16px; }
.goku-mb-3 { margin-bottom: 24px; }
.goku-mt-2 { margin-top: 16px; }
.goku-text-dim { color: var(--text-400); }
.goku-text-sm { font-size: 12.5px; }
.goku-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.goku-hidden { display: none !important; }
.goku-loading { text-align: center; padding: 34px; color: var(--text-400); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .goku-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .goku-grid--sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .goku-sidebar {
    position: fixed; left: 0; top: 0; z-index: 90;
    transform: translateX(-100%);
    transition: transform .24s;
  }
  .goku-sidebar.is-open { transform: translateX(0); }
  .goku-menu-btn { display: grid; place-items: center; }
  .goku-grid--3, .goku-grid--2 { grid-template-columns: 1fr; }
  .goku-content { padding: 18px 15px 40px; }
  .goku-topbar { padding: 13px 15px; }
  .goku-clock { display: none; }
}
@media (max-width: 560px) {
  .goku-grid--4 { grid-template-columns: 1fr; }
  .goku-topbar__title { font-size: 16px; }
}

/* ============================================================
   v4.0.0 — Login, dropzone, campañas y conocimiento
   ============================================================ */

/* ---------- Pantalla de login ---------- */
.goku-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(139,92,246,.16), transparent 60%),
              radial-gradient(900px 500px at 90% 110%, rgba(245,158,11,.10), transparent 55%),
              var(--bg, #070b14);
}
.goku-login__box {
  width: 100%; max-width: 400px;
  background: var(--card, #0d1526);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 34px 30px 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.goku-login__brand { text-align: center; margin-bottom: 26px; }
.goku-login__logo {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1204; font-size: 28px;
  box-shadow: 0 10px 30px rgba(245,158,11,.35);
}
.goku-login__title { font-size: 22px; font-weight: 800; margin: 0; }
.goku-login__sub { color: var(--text-400, #94a3b8); font-size: 13px; margin-top: 4px; }
.goku-login__form { display: grid; gap: 14px; }
.goku-login__hint {
  margin-top: 20px; font-size: 12px; color: var(--text-400, #94a3b8);
  display: flex; gap: 8px; align-items: center; justify-content: center;
}

/* ---------- Dropzone (importar / subir) ---------- */
.goku-dropzone {
  border: 2px dashed rgba(148,163,184,.35);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--text-300, #cbd5e1);
  display: grid; gap: 6px; place-items: center;
}
.goku-dropzone:hover, .goku-dropzone.is-drag {
  border-color: var(--accent, #f59e0b);
  background: rgba(245,158,11,.05);
}
.goku-dropzone i { font-size: 34px; color: var(--accent, #f59e0b); }
.goku-dropzone p { margin: 0; font-weight: 600; }

/* ---------- Badges extra ---------- */
.goku-badge--cyan { background: rgba(34,211,238,.13); color: #67e8f9; border-color: rgba(34,211,238,.3); }

/* ---------- Botones extra ---------- */
.goku-btn--amber {
  background: rgba(245,158,11,.16); color: #fcd34d;
  border: 1px solid rgba(245,158,11,.35);
}
.goku-btn--amber:hover { background: rgba(245,158,11,.26); }
.goku-btn--lg { padding: 13px 20px; font-size: 15px; border-radius: 12px; }

/* ---------- Feed items con hover para documentos ---------- */
#kb-docs-list .goku-feed__item { align-items: center; }
#kb-docs-list .goku-feed__item:hover { background: rgba(148,163,184,.05); }

/* ---------- Tabla de campañas compacta ---------- */
.goku-table-wrap { overflow-x: auto; }
.goku-table th { white-space: nowrap; }

/* ============================================================
   v4.1 — Tipografía Poppins, utilidades y tema claro
   ============================================================ */

:root {
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body.goku-body,
.goku-input,
.goku-textarea,
.goku-select,
.goku-btn,
.goku-modal,
.goku-table {
  font-family: var(--font-ui);
}

/* Encabezados un punto más marcados con Poppins */
.goku-card__title,
.goku-kpi__value,
.goku-topbar__title,
.goku-brand__title,
.goku-modal__title,
.goku-login__title {
  letter-spacing: -0.2px;
}

/* ---------- Utilidades de espaciado / rejilla ---------- */
.goku-grid--1 { grid-template-columns: 1fr; }
.goku-mt-1 { margin-top: 8px; }

/* ---------- Botón cian ---------- */
.goku-btn--cyan {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.38);
  color: #67e8f9;
}
.goku-btn--cyan:hover { background: rgba(34, 211, 238, 0.23); }

/* ---------- Auditoría ---------- */
.goku-row__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(148, 163, 184, 0.12); font-size: 14px;
}
.goku-row__value { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.goku-feed__side {
  margin-left: auto; font-size: 11.5px; color: var(--text-400);
  white-space: nowrap; padding-left: 10px;
}
#audit-list .goku-feed__body { min-width: 0; }
#audit-actions .goku-meter { background: rgba(148, 163, 184, 0.14); }

/* ============================================================
   Tema claro (Ajustes → Apariencia → Tema)
   Se activa con <html data-theme="light">
   ============================================================ */
html[data-theme='light'] {
  --bg-900: #f4f6fb;
  --bg-800: #ffffff;
  --bg-700: #eef1f7;
  --bg-600: #e6eaf3;
  --bg-500: #dde3ee;
  --border: #d6dcea;
  --border-soft: #e3e8f1;

  --text-100: #0f172a;
  --text-200: #334155;
  --text-300: #475569;
  --text-400: #64748b;

  --accent: #d97706;
  --accent-600: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] body.goku-body {
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(217, 119, 6, 0.08), transparent 62%),
    radial-gradient(880px 520px at 6% 108%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg-900);
}

html[data-theme='light'] .goku-sidebar {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

html[data-theme='light'] .goku-topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

html[data-theme='light'] .goku-card,
html[data-theme='light'] .goku-kpi,
html[data-theme='light'] .goku-modal__box {
  background: #ffffff;
  border-color: var(--border);
}

html[data-theme='light'] .goku-table th { background: var(--bg-700); color: var(--text-300); }
html[data-theme='light'] .goku-table td { border-bottom-color: var(--border-soft); }
html[data-theme='light'] .goku-feed__item { border-bottom-color: var(--border-soft); }
html[data-theme='light'] .goku-row { border-bottom-color: var(--border-soft); }
html[data-theme='light'] .goku-input,
html[data-theme='light'] .goku-textarea,
html[data-theme='light'] .goku-select {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-100);
}
html[data-theme='light'] .goku-toast {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-100);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
html[data-theme='light'] .goku-meter { background: var(--bg-600); }

/* Selector de tema en la barra superior */
.goku-theme-btn { }

