/* ============================================================
   Clima360 · Design System v1.0.6
   Paleta corporativa Novazys: azul nocturno + verde turquesa
   ============================================================ */
:root {
  --bg:           #f3f5fb;
  --bg-soft:      #eef1f9;
  --surface:     #ffffff;
  --surface-2:   #fafbff;
  --line:        #e2e6f1;
  --line-strong: #cdd3e3;
  --ink:         #0f1d3d;
  --ink-2:       #2a3556;
  --muted:       #6c7693;
  --muted-2:     #9aa3bd;

  --brand:        #2e5bff;
  --brand-strong: #1c47e6;
  --brand-soft:   #e6ecff;
  --accent:       #00c2a8;
  --accent-soft:  #ddf7f0;
  --warn:         #f59e0b;
  --warn-soft:    #fef3c7;
  --danger:       #e0364c;
  --danger-soft:  #fde3e7;
  --success:      #1aa97e;
  --success-soft: #d8f5e8;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(15, 29, 61, .04);
  --shadow:    0 10px 30px rgba(15, 29, 61, .06);
  --shadow-lg: 0 24px 60px rgba(15, 29, 61, .10);

  --gradient-brand: linear-gradient(135deg, #2e5bff 0%, #6a4dff 60%, #00c2a8 100%);
  --gradient-soft:  linear-gradient(160deg, #f3f5fb 0%, #e6ecff 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p  { margin: 0 0 10px; color: var(--ink-2); }
a  { color: var(--brand); text-decoration: none; }
.muted { color: var(--muted); }

.boot { display: grid; place-items: center; min-height: 100vh; gap: 14px; color: var(--muted); }
.boot-logo {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff; font-weight: 800; font-size: 28px;
  font-family: 'Sora', sans-serif;
  box-shadow: var(--shadow);
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff; font-weight: 800; font-family: 'Sora';
  box-shadow: var(--shadow-sm);
}
.brand-title { font-family: 'Sora'; font-weight: 800; font-size: 16px; }
.brand-sub   { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-item {
  border: 0; background: transparent; padding: 9px 14px; border-radius: 10px;
  font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit; font-size: 14px;
  transition: background .15s;
}
.nav-item:hover { background: var(--bg-soft); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-strong); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  appearance: none; border: 0; border-radius: 12px; padding: 11px 18px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--bg-soft); color: var(--ink); transition: transform .05s, box-shadow .15s, background .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary    { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(46, 91, 255, .25); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.accent     { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(0, 194, 168, .25); }
.btn.accent:hover { filter: brightness(.95); }
.btn.ghost      { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.danger     { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small      { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.block      { width: 100%; justify-content: center; }

/* ============================================================
   Inputs
   ============================================================ */
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 91, 255, .15);
}
.textarea { resize: vertical; min-height: 90px; }
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Hero landing
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px;
  padding: 64px 8vw 48px; align-items: center;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(46, 91, 255, .12), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(0, 194, 168, .12), transparent 60%);
}
.hero h1 { font-size: 46px; line-height: 1.06; letter-spacing: -.02em; }
.hero h1 .gr {
  background: var(--gradient-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero p { font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.kpi-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.kpi-pill {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.kpi-pill .num { font-family: 'Sora'; font-size: 26px; font-weight: 800; color: var(--ink); }
.kpi-pill .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 8vw 64px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; margin-bottom: 10px;
}
.feature h3 { margin-bottom: 6px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 40px 6vw 32px; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; padding: 0 6vw 48px; }
}

/* ============================================================
   Cards & panels
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ============================================================
   Admin layout
   ============================================================ */
.layout { display: grid; grid-template-columns: 256px 1fr; min-height: calc(100vh - 68px); }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 4px;
}
.userbox {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.userbox .name { font-weight: 700; font-size: 14px; }
.userbox .role { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.side-btn {
  width: 100%; text-align: left; background: transparent; border: 0; border-radius: 11px;
  padding: 11px 13px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: background .15s, color .15s; display: flex; align-items: center; gap: 10px;
}
.side-btn:hover { background: var(--bg-soft); }
.side-btn.active { background: var(--brand-soft); color: var(--brand-strong); }
.side-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.side-btn.active .dot { background: var(--brand); }

.content { padding: 28px 32px; max-width: 1200px; }
.content-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   KPI grid
   ============================================================ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
}
.kpi .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .num { font-family: 'Sora'; font-size: 28px; font-weight: 800; color: var(--ink); display: block; margin-top: 4px; }
.kpi .delta { font-size: 12px; margin-top: 4px; color: var(--success); }
.kpi.accent .num { color: var(--brand); }
.kpi.green  .num { color: var(--success); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; }
  .side-btn { white-space: nowrap; flex: 0 0 auto; }
  .userbox { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 18px; }
}

/* ============================================================
   Table
   ============================================================ */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; }
.table th { background: var(--surface-2); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .num { font-variant-numeric: tabular-nums; font-weight: 600; }

.badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 11.5px; letter-spacing: .01em; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn    { background: var(--warn-soft);    color: var(--warn); }
.badge.danger  { background: var(--danger-soft);  color: var(--danger); }
.badge.brand   { background: var(--brand-soft);   color: var(--brand-strong); }

/* ============================================================
   Survey scale
   ============================================================ */
.question {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.question .qhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.qcode {
  flex: 0 0 auto; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; letter-spacing: .04em;
}
.qnum {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong);
  font-weight: 700; font-size: 13px;
}
.qtext { font-size: 15px; color: var(--ink); line-height: 1.45; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; font-weight: 700; color: var(--ink-2);
  transition: background .12s, color .12s, border-color .12s, transform .05s;
  font-family: inherit;
}
.scale button:hover { border-color: var(--brand); color: var(--brand); }
.scale button.selected { background: var(--brand); color: #fff; border-color: var(--brand); }

.dimension-block { margin-bottom: 28px; }
.dimension-block .dimhead {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.dimension-block .dimhead h2 { margin: 0; font-size: 18px; }
.dimension-block .dimhead .count {
  background: var(--bg-soft); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted);
}

.progress-bar {
  height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden;
}
.progress-bar > span { display: block; height: 100%; background: var(--gradient-brand); transition: width .3s; }

/* ============================================================
   Empty / error states
   ============================================================ */
.empty, .err-box {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; color: var(--muted);
}
.err-box { border: 1px solid var(--danger-soft); background: #fff7f8; color: var(--danger); }

/* ============================================================
   Bar chart (puro CSS para el dashboard)
   ============================================================ */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .label { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { background: var(--bg-soft); border-radius: 999px; height: 14px; overflow: hidden; }
.bar-row .fill  { height: 100%; border-radius: 999px; background: var(--gradient-brand); transition: width .3s; }
.bar-row .val   { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); text-align: right; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 110px 1fr 48px; } }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(60px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 9999; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ============================================================
   Modal / Drawer simple
   ============================================================ */
.modal-mask, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 29, 61, .35); backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 50; padding: 16px;
}
.modal {
  background: var(--surface); border-radius: var(--radius-xl); padding: 24px; width: min(640px, 100%);
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); gap: 12px;
}
.modal-header h3 { margin: 0; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.btn-icon {
  background: transparent; border: none; cursor: pointer; font-size: 18px;
  color: var(--ink-2); width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--bg-soft); color: var(--ink); }

/* Filas inactivas en tablas de catálogos */
.row-muted { opacity: 0.55; }
.row-muted code { opacity: 0.8; }

/* Celda de acciones de tabla */
td.actions { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   Vista previa de encuesta
   ============================================================ */
.preview-cover {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
}
.preview-cover-mark {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 800; font-size: 32px; color: #fff;
  flex-shrink: 0;
}
.preview-cover h1 { color: #fff; }
.preview-cover .muted, .preview-cover-eyebrow {
  color: rgba(255,255,255,.85);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}

.preview-dimension .dim-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.preview-dimension .dim-number {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}

.preview-questions { display: flex; flex-direction: column; gap: 16px; }
.preview-question {
  padding: 14px; background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.preview-question .qhead { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.preview-question .qcode {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: var(--line); color: var(--ink-2);
  font-family: ui-monospace, monospace; font-size: 11px; margin-bottom: 6px;
}
.preview-question .qnum {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand, #2563eb); color: #fff;
  font-weight: 700; font-size: 12px;
}
.preview-question .qtext { font-weight: 500; color: var(--ink); }

.preview-scale {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 10px 0 6px;
}
.preview-scale-btn {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px;
  cursor: default;
  transition: all .15s ease;
}
.preview-scale-btn:hover {
  border-color: var(--brand); color: var(--brand);
}
.preview-scale-legend {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 0 4px;
}

.foot { padding: 24px 8vw; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: var(--surface); }
.foot a { color: var(--brand); font-weight: 600; }

/* ============================================================
   Importación de preguntas (modal)
   ============================================================ */
.import-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.import-step-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand, #2563eb); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.filedrop {
  display: block; padding: 18px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong, #cbd5e1); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2);
  font-weight: 600; font-size: 14px; transition: all .15s ease;
}
.filedrop:hover { border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); }
.filedrop.dragging { border-color: var(--brand, #2563eb); background: var(--brand-soft, #eef2ff); color: var(--brand-strong, #1e40af); }

/* ============================================================
   Dashboard: tarjetas destacadas y lista de comentarios (v1.0.25)
   ============================================================ */
.highlight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px;
}
@media (max-width: 860px) { .highlight-grid { grid-template-columns: 1fr; } }
.highlight-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  border-left: 5px solid var(--line-strong);
}
.highlight-card.good { border-left-color: var(--success); }
.highlight-card.bad  { border-left-color: var(--danger); }
.highlight-card.lead { border-left-color: var(--brand); }
.highlight-card .hl-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-2); font-weight: 700; margin-bottom: 8px;
}
.highlight-card .hl-name { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.highlight-card .hl-score {
  font-family: 'Sora','Inter',sans-serif; font-size: 30px; font-weight: 800;
  color: var(--ink); margin-top: 4px; letter-spacing: -0.02em;
}
.highlight-card.good .hl-score { color: var(--success); }
.highlight-card.bad  .hl-score { color: var(--danger); }
.highlight-card.lead .hl-score { color: var(--brand); }
.highlight-card .hl-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.comments-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.comment-quote { color: var(--ink); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.comment-meta {
  margin-top: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ============================================================
   Dashboard ejecutivo: KPIs, FODA, plan de acción (v1.0.26)
   ============================================================ */
.exec-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 860px) { .exec-kpis { grid-template-columns: 1fr; } }
.exec-kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--line-strong);
}
.exec-kpi.band-good { border-top-color: var(--success); }
.exec-kpi.band-mid  { border-top-color: var(--accent); }
.exec-kpi.band-warn { border-top-color: #e8a33d; }
.exec-kpi.band-bad  { border-top-color: var(--danger); }
.exec-kpi .ek-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.exec-kpi .ek-value { font-family: 'Sora','Inter',sans-serif; font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 2px; }
.exec-kpi.band-good .ek-value { color: var(--success); }
.exec-kpi.band-warn .ek-value { color: #c47f1c; }
.exec-kpi.band-bad  .ek-value { color: var(--danger); }
.exec-kpi .ek-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.exec-kpi .ek-basis { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.exec-kpi .ek-empty { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* Dimensiones bajas por departamento */
.recurrent-note { background: #fff7ec; border: 1px solid #f3d9ad; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--ink); }
.dept-low-list { display: flex; flex-direction: column; gap: 10px; }
.dept-low-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.dept-low-name { font-weight: 700; color: var(--ink); min-width: 160px; }
.dept-low-items { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.chip.band-mid  { background: var(--accent-soft); color: #0a7d6c; border-color: #b6ece0; }
.chip.band-warn { background: #fdf0d9; color: #c47f1c; border-color: #f3d9ad; }
.chip.band-bad  { background: var(--danger-soft); color: var(--danger); border-color: #f5c2cb; }
.chip.warn { background: #fdf0d9; color: #c47f1c; border-color: #f3d9ad; }

/* FODA */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .swot-grid { grid-template-columns: 1fr; } }
.swot-quad { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); }
.swot-quad.good { background: #eafaf3; border-color: #b8ecd4; }
.swot-quad.mid  { background: var(--accent-soft); border-color: #b6ece0; }
.swot-quad.warn { background: #fdf6e9; border-color: #f3d9ad; }
.swot-quad.bad  { background: var(--danger-soft); border-color: #f5c2cb; }
.swot-title { font-family: 'Sora','Inter',sans-serif; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.swot-list { margin: 0; padding-left: 18px; }
.swot-list li { font-size: 14px; color: var(--ink); margin: 3px 0; }
.swot-score { color: var(--ink-2); font-weight: 700; font-size: 12px; }
.swot-empty { color: var(--ink-2); }

/* Plan de acción */
.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-item { display: flex; gap: 12px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.action-prio { flex: 0 0 auto; width: 86px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.action-item.prio-urgente .action-prio { background: var(--danger); }
.action-item.prio-alta    .action-prio { background: #e8a33d; }
.action-item.prio-media   .action-prio { background: var(--accent); }
.action-body { padding: 10px 14px; }
.action-area { font-weight: 700; color: var(--ink); font-size: 14px; }
.action-text { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
