/* ── Portal Gobernanza de Datos — Design System ─────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --gd-navy:        #0f2542;
  --gd-accent:      #1d5bbf;
  --gd-accent-light:#e7eefb;
  --gd-border:      #e3e8ef;
  --gd-border-soft: #eef1f4;
  --gd-surface:     #f4f6f9;
  --gd-text:        #131c29;
  --gd-text-2:      #1c2430;
  --gd-muted:       #64748b;
  --gd-faint:       #8b97a8;
  --gd-green:       #1a7f4e;
  --gd-red:         #b3261e;
  --gd-amber:       #b45309;
  --gd-radius:      10px;
  --gd-shadow:      0 1px 3px rgba(0,0,0,.05);
  --gd-shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif !important;
}

/* ── LOGIN ──────────────────────────────────────────────────── */
.gd-login-bg {
  min-height: 100vh;
  background: linear-gradient(140deg, #0B1120 0%, #1a2e56 52%, #0f2542 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.gd-login-bg::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,91,191,.12) 0%, transparent 65%);
  top: -250px; right: -150px; pointer-events: none;
}
.gd-login-bg::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 65%);
  bottom: -150px; left: -100px; pointer-events: none;
}
.gd-login-card {
  background: white !important;
  border-radius: 20px !important;
  padding: 48px !important;
  width: 420px; max-width: 95vw;
  box-shadow: 0 28px 80px rgba(0,0,0,.32) !important;
  border: none !important;
  position: relative; z-index: 1;
}
.gd-logo-icon {
  width: 44px; height: 44px;
  background: #1d5bbf;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-weight: 800; letter-spacing: -.3px;
  flex-shrink: 0;
}
.gd-login-title { font-size: 22px; font-weight: 800; color: #0f2542; letter-spacing: -.3px; }
.gd-login-sub   { font-size: 13px; color: #64748b; }
.gd-field-label { font-size: 11px !important; font-weight: 700 !important; color: #374151 !important;
  text-transform: uppercase; letter-spacing: .6px; display: block; margin-bottom: 6px; }
.gd-input {
  border: 1.5px solid var(--gd-border) !important;
  border-radius: 8px !important;
  font-size: 14px !important; color: var(--gd-text) !important;
  background: #FAFAFA !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.gd-input:focus {
  border-color: var(--gd-accent) !important;
  box-shadow: 0 0 0 3px rgba(29,91,191,.12) !important;
  background: white !important;
}
.gd-btn-login {
  background: var(--gd-accent) !important;
  border: none !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 700 !important;
  padding: 12px !important; letter-spacing: .1px;
  transition: opacity .15s, transform .1s !important;
}
.gd-btn-login:hover { opacity: .91 !important; transform: translateY(-1px) !important; }
.gd-btn-login:active { transform: none !important; }

/* ── SIDEBAR ────────────────────────────────────────────────── */
#sidebar {
  background: var(--gd-navy) !important;
  box-shadow: 1px 0 0 rgba(255,255,255,.05);
}
.gd-sb-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important;
  cursor: pointer;
}
.gd-sb-logo-icon {
  width: 32px; height: 32px;
  background: var(--gd-accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  letter-spacing: -.3px; flex-shrink: 0;
}
.gd-sb-brand-name { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.gd-sb-brand-sub  { font-size: 9.5px; color: #7d93b5; letter-spacing: .12em; text-transform: uppercase; }
.gd-sb-section {
  font-size: 10px; font-weight: 700; color: #6b81a3;
  text-transform: uppercase; letter-spacing: .14em;
  padding: 8px 10px 6px;
  display: block;
}
.gd-nav-item {
  display: flex !important; align-items: center !important; gap: 9px !important;
  padding: 9px 10px !important; border-radius: 7px !important;
  color: #c6d2e4 !important; font-size: 13.5px !important; font-weight: 400 !important;
  transition: background .12s, color .12s !important;
  margin: 0 0 1px !important; text-decoration: none !important;
}
.gd-nav-item:hover { background: rgba(255,255,255,.06) !important; color: #c6d2e4 !important; }
.gd-nav-item.active { background: rgba(255,255,255,.12) !important; color: white !important; font-weight: 600 !important; }
.gd-nav-badge {
  margin-left: auto; background: #d64545; color: white;
  font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
}
.gd-sb-user {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.gd-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #dbe3ee;
  display: flex; align-items: center; justify-content: center;
  color: #3a4d68; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
#btn-logout {
  border-color: rgba(255,255,255,.18) !important; color: #94A3B8 !important;
  font-size: 11px !important; border-radius: 7px !important;
  transition: background .12s, color .12s !important;
}
#btn-logout:hover { background: rgba(255,255,255,.08) !important; color: white !important; }

/* ── TOPBAR ─────────────────────────────────────────────────── */
.gd-topbar {
  height: 50px; background: white;
  border-bottom: 1px solid var(--gd-border);
  display: flex; align-items: center; padding: 0 32px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.gd-crumb { font-size: 12.5px; color: var(--gd-muted); display: flex; align-items: center; gap: 4px; }
.gd-crumb-sep { color: #b0bac7; }
.gd-crumb-cur { font-weight: 500; color: var(--gd-text-2); }
.gd-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gd-topbar-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gd-border); background: white;
  color: var(--gd-muted); font-size: 15px; cursor: pointer;
  transition: background .12s;
}
.gd-topbar-icon:hover { background: var(--gd-surface); }
.gd-topbar-ts {
  font-size: 12px; color: var(--gd-muted);
  background: white; border: 1px solid var(--gd-border);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.gd-topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #dbe3ee; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #3a4d68; flex-shrink: 0;
}

/* ── HOME ───────────────────────────────────────────────────── */
.gd-home { padding: 32px; background: var(--gd-surface); min-height: calc(100vh - 50px); }
.gd-home-greeting { font-size: 13px; font-weight: 500; color: var(--gd-accent); margin-bottom: 2px; }
.gd-home-title { font-size: 23px; font-weight: 700; color: var(--gd-text); margin-bottom: 3px; }
.gd-home-sub   { font-size: 13px; color: var(--gd-muted); }

/* Area cards on home */
.gd-module-card {
  background: white !important; border-radius: var(--gd-radius) !important;
  border: 1px solid var(--gd-border) !important;
  box-shadow: none !important;
  cursor: pointer; height: 100%; overflow: hidden; position: relative;
  transition: box-shadow .15s, border-color .15s !important;
  display: flex; flex-direction: column;
}
.gd-module-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.07) !important;
  border-color: #c5d4ee !important;
}
.gd-module-card .card-body { display: flex; flex-direction: column; padding: 20px 22px !important; }
.gd-module-mono {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gd-accent-light); color: var(--gd-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.gd-module-mono-dark {
  background: var(--gd-navy) !important; color: white !important;
}
.gd-module-name  { font-size: 15px; font-weight: 600; color: var(--gd-text); }
.gd-module-desc  { font-size: 12.5px; color: var(--gd-muted); line-height: 1.55; flex: 1; }
.gd-module-arrow { font-size: 12.5px; font-weight: 600; color: var(--gd-accent); }

/* ── BOTTOM CARDS ───────────────────────────────────────────── */
.gd-bc {
  background: white; border-radius: var(--gd-radius);
  border: 1px solid var(--gd-border); overflow: hidden; height: 100%;
}
.gd-bc-head {
  padding: 14px 20px 12px; border-bottom: 1px solid var(--gd-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.gd-bc-title { font-size: 13.5px; font-weight: 600; color: var(--gd-text); }
.gd-bc-link  { font-size: 12px; color: var(--gd-accent); font-weight: 500; text-decoration: none; cursor: pointer; }
.gd-bc-link:hover { text-decoration: underline; }
.gd-bc-body  { padding: 4px 20px 14px; }
.gd-ri {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--gd-border-soft); cursor: pointer;
}
.gd-ri:last-child { border-bottom: none; }
.gd-ri-name { font-size: 13px; color: var(--gd-text); font-weight: 400; }
.gd-ri:hover .gd-ri-name { color: var(--gd-accent); }
.gd-ri-tag {
  font-size: 11px; font-weight: 500; color: #3a4d68;
  background: #eef2f7; padding: 3px 8px; border-radius: 5px;
  white-space: nowrap;
}

/* Anuncios — neutral (no yellow) */
.gd-annc {
  padding: 11px 0; border-bottom: 1px solid var(--gd-border-soft);
}
.gd-annc:last-child { border-bottom: none; }
.gd-annc-title { font-size: 12.5px; font-weight: 600; color: var(--gd-text); margin-bottom: 3px; }
.gd-annc-desc  { font-size: 12px; color: var(--gd-muted); line-height: 1.5; }

/* ── DASHBOARD CARDS — AREA PAGE ────────────────────────────── */
.gd-dash-card {
  background: white;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  height: 100%;
  transition: box-shadow .15s, border-color .15s;
}
.gd-dash-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border-color: #c5d4ee;
}
.gd-dash-upcoming {
  background: #fbfcfd;
  border: 1px dashed #d5dce5 !important;
  border-radius: var(--gd-radius);
  height: 100%;
}

/* ── PAGE CONTENT ───────────────────────────────────────────── */
.gd-page { padding: 0; background: var(--gd-surface); min-height: calc(100vh - 50px); }
.gd-page-inner { padding: 0 32px 32px; }

/* ── CELULARES — tabs ───────────────────────────────────────── */
.cel-tabs .nav-link {
  font-size: 13.5px !important; color: var(--gd-muted) !important;
  padding: 10px 2px !important; margin-right: 26px !important;
  border: none !important; border-bottom: 2px solid transparent !important;
  border-radius: 0 !important; background: transparent !important;
  font-weight: 400 !important;
}
.cel-tabs .nav-link.active {
  color: var(--gd-accent) !important;
  font-weight: 600 !important;
  border-bottom-color: var(--gd-accent) !important;
  background: transparent !important;
}
.cel-tabs { border-bottom: 1px solid var(--gd-border) !important; }

/* ── CELULARES — zone filter radio pills ────────────────────── */
.cel-zona-radio .form-check-inline { margin-right: 8px !important; }
.cel-zona-radio .form-check-input { display: none !important; }
.cel-zona-radio .form-check-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12.5px !important; font-weight: 500 !important;
  color: #334560 !important;
  background: white !important;
  border: 1px solid #cdd7e4 !important;
  border-radius: 999px !important;
  padding: 5px 13px !important;
  cursor: pointer !important; margin: 0 !important;
  user-select: none;
  transition: background .1s, color .1s;
}
.cel-zona-radio .form-check-label:hover { background: var(--gd-surface) !important; }
.cel-zona-radio .form-check-input:checked + .form-check-label {
  background: var(--gd-navy) !important;
  border-color: var(--gd-navy) !important;
  color: white !important;
  font-weight: 600 !important;
}

/* ── CELULARES — KPI cards ──────────────────────────────────── */
.cel-kpi-card {
  background: white;
  border: 1px solid var(--gd-border) !important;
  border-radius: var(--gd-radius) !important;
  box-shadow: none !important;
  height: 100%;
}
.cel-kpi-card .card-body { padding: 18px 20px !important; }
.cel-kpi-label {
  font-size: 11px; letter-spacing: .08em; font-weight: 600;
  color: var(--gd-muted); text-transform: uppercase;
}
.cel-kpi-number {
  font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin: 4px 0 10px;
  line-height: 1.15;
}
.cel-kpi-row {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-top: 1px solid var(--gd-border-soft);
}
.cel-kpi-zona  { font-size: 12.5px; color: var(--gd-muted); }
.cel-kpi-val   { font-size: 13px; font-weight: 600; color: var(--gd-text-2); font-variant-numeric: tabular-nums; }

/* ── CELULARES — total strip ────────────────────────────────── */
.cel-total-strip {
  display: flex; background: white;
  border: 1px solid var(--gd-border); border-radius: var(--gd-radius);
  overflow: hidden; margin-bottom: 16px;
}
.cel-total-half {
  flex: 1; display: flex;
  align-items: center; justify-content: space-between;
  padding: 20px 26px;
}
.cel-total-half + .cel-total-half { border-left: 1px solid var(--gd-border); }
.cel-total-label {
  font-size: 11px; letter-spacing: .1em; font-weight: 600;
  color: var(--gd-muted); text-transform: uppercase;
}
.cel-total-num {
  font-size: 38px; font-weight: 700; color: var(--gd-text);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.cel-total-breakdown { text-align: right; font-size: 12.5px; color: var(--gd-muted); line-height: 1.7; }

/* ── CELULARES — alert cards ────────────────────────────────── */
.cel-alert-card {
  background: white;
  border: 1px solid var(--gd-border) !important;
  border-radius: var(--gd-radius) !important;
  box-shadow: none !important;
  height: 100%;
}
.cel-alert-card .card-body {
  padding: 18px 20px !important;
  display: flex; align-items: center; justify-content: space-between;
}
.cel-alert-label {
  font-size: 11px; letter-spacing: .08em; font-weight: 600;
  color: var(--gd-muted); text-transform: uppercase;
}
.cel-alert-num {
  font-size: 28px; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-top: 2px; line-height: 1.2;
}
.cel-alert-badge {
  font-size: 11.5px; font-weight: 600;
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}

/* ── PAGE HEADER (Equipos Celulares) ────────────────────────── */
.gd-page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 24px 32px 4px;
}
.gd-page-header-title { font-size: 23px; font-weight: 700; color: var(--gd-text); }
.gd-page-header-sub   { font-size: 13px; color: var(--gd-muted); margin-top: 3px; }
.gd-page-header-btns  { display: flex; gap: 10px; }
.gd-btn-secondary {
  font-family: 'IBM Plex Sans', system-ui, sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  color: #334560 !important; background: white !important;
  border: 1px solid #cdd7e4 !important; border-radius: 7px !important;
  padding: 8px 15px !important; cursor: pointer;
}
.gd-btn-primary {
  font-family: 'IBM Plex Sans', system-ui, sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  color: white !important; background: var(--gd-accent) !important;
  border: 1px solid var(--gd-accent) !important; border-radius: 7px !important;
  padding: 8px 15px !important; cursor: pointer;
}
.gd-btn-secondary:hover { background: var(--gd-surface) !important; }
.gd-btn-primary:hover   { opacity: .9; }

/* ── AREA PAGE ──────────────────────────────────────────────── */
.gd-area-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 32px 22px; justify-content: space-between;
}
.gd-area-mono {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--gd-accent-light); color: var(--gd-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.gd-area-title { font-size: 23px; font-weight: 700; color: var(--gd-text); }
.gd-area-desc  { font-size: 13px; color: var(--gd-muted); margin-top: 2px; }
.gd-area-pill {
  font-size: 12px; font-weight: 600; color: var(--gd-accent);
  background: var(--gd-accent-light); border-radius: 999px; padding: 6px 14px;
  white-space: nowrap;
}
