/* Choices Consulting - Saboteadores app */
:root {
  --navy:#1F4E78;
  --navy-dark:#183D5C;
  --sky:#2E75B6;
  --teal:#5FB4AA;
  --green:#D4EDDA;
  --yellow:#FFF3CD;
  --red:#F8D7DA;
  --ink:#222;
  --muted:#666;
  --bg:#F7FAFC;
  --card:#fff;
  --border:#DBE4EE;
  --shadow:0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(31,78,120,.06);
}
* { box-sizing:border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.5;
}
.page { min-height:100vh; display:flex; flex-direction:column; }
.site-header {
  background:var(--navy); color:#fff; padding:14px 22px;
}
.site-header .brand strong { font-size:16px; letter-spacing:.3px; }
.site-header .brand .tag { margin-left:10px; opacity:.8; font-size:13px; }
.content { flex:1; max-width:880px; margin:0 auto; padding:24px; width:100%; }
.card {
  background:var(--card); border:1px solid var(--border); border-radius:10px;
  box-shadow:var(--shadow); padding:28px 30px; margin:18px 0;
}
h1 { color:var(--navy); margin-top:0; line-height:1.2; }
h1.big { font-size:28px; }
h2 { color:var(--navy); margin-top:1.3em; border-bottom:1px solid var(--border); padding-bottom:6px; }
a { color:var(--navy); }
.progress {
  height:6px; background:#e7eef5; border-radius:4px; overflow:hidden; margin:12px 0 8px;
}
.progress > span { display:block; height:100%; background:linear-gradient(90deg,var(--navy),var(--sky)); transition:width .3s ease; }
.progress-label { color:var(--muted); font-size:12px; margin-bottom:14px; }
.btn {
  display:inline-block; padding:11px 22px; border-radius:8px; background:var(--teal); color:#fff;
  text-decoration:none; font-weight:600; border:0; cursor:pointer; font-size:15px;
  transition:transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(95,180,170,.35); }
.btn.primary { background:var(--navy); }
.btn.primary:hover { box-shadow:0 6px 16px rgba(31,78,120,.35); }
.btn.ghost { background:transparent; color:var(--navy); border:1px solid var(--navy); }
.btn.ghost:hover { background:var(--navy); color:#fff; }
.btn[disabled] { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.row { display:flex; flex-wrap:wrap; gap:12px; }
.row > * { flex:1 1 220px; }
label { display:block; font-weight:600; margin:14px 0 6px; color:var(--ink); }
input[type=text], input[type=email], input[type=password] {
  width:100%; padding:11px 13px; border:1px solid var(--border); border-radius:8px; font-size:15px;
  background:#fff;
}
input:focus { outline:2px solid var(--sky); outline-offset:1px; border-color:var(--sky); }
.likert {
  display:grid; grid-template-columns: repeat(5, 1fr); gap:10px; margin:20px 0;
}
.likert label {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:18px 8px; border:2px solid var(--border); border-radius:10px; cursor:pointer;
  background:#fff; transition:all .12s ease;
  text-align:center; min-height:110px;
}
.likert label:hover { border-color:var(--sky); transform:translateY(-2px); }
.likert input[type=radio] { display:none; }
.likert label .num { font-size:28px; font-weight:700; color:var(--navy); line-height:1; margin-bottom:6px; }
.likert label .txt { font-size:11px; color:var(--muted); line-height:1.2; }
.likert input[type=radio]:checked + .num { /* no-op */ }
.likert label.selected, .likert label:has(input:checked) {
  border-color:var(--navy); background:var(--navy); color:#fff;
}
.likert label.selected .num, .likert label:has(input:checked) .num { color:#fff; }
.likert label.selected .txt, .likert label:has(input:checked) .txt { color:#e6eef8; }
.likert-scale {
  display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin-top:-6px; padding:0 4px;
}
.site-footer {
  padding:22px; text-align:center; color:var(--muted); font-size:12px;
  border-top:1px solid var(--border); background:#fff; margin-top:30px;
}
.question-text { font-size:20px; color:var(--navy); font-weight:500; line-height:1.35; }
.nav-row { display:flex; justify-content:space-between; align-items:center; margin-top:22px; }
.alert { padding:12px 16px; border-radius:8px; margin:10px 0; }
.alert.error { background:var(--red); color:#721c24; }
.alert.success { background:var(--green); color:#155724; }
.alert.info { background:#E8F1FB; color:#0C3B65; }

/* Admin */
.admin-grid { display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width:900px) { .admin-grid { grid-template-columns: 2fr 1fr; } }
table.data { width:100%; border-collapse:collapse; background:#fff; }
table.data th, table.data td { padding:9px 11px; border:1px solid var(--border); text-align:left; font-size:13px; }
table.data th { background:var(--navy); color:#fff; font-weight:600; }
table.data tr:nth-child(even) td { background:#f7fafc; }
.kpi-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:14px 0; }
.kpi { background:#F0F6FC; border:1px solid var(--navy); border-radius:8px; padding:14px; text-align:center; }
.kpi .val { font-size:24px; font-weight:700; color:var(--navy); display:block; }
.kpi .lbl { font-size:12px; color:var(--muted); }
.badge { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; }
.lvl-high { background:var(--red); color:#721c24; }
.lvl-mid { background:var(--yellow); color:#856404; }
.lvl-low { background:var(--green); color:#155724; }
.chart-bar {
  display:grid; grid-template-columns: 160px 1fr 50px; align-items:center; gap:10px; margin:6px 0;
}
.chart-bar .bar-wrap {
  height:22px; background:#eef3f8; border-radius:4px; overflow:hidden;
}
.chart-bar .bar {
  height:100%; background:linear-gradient(90deg,var(--navy),var(--sky));
}
.chart-bar .val { font-weight:700; color:var(--navy); text-align:right; }
