:root { --dek-azul:#0B4A1E; --dek-acento:#1a7a34; }
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; background:#f4f6f9; margin:0; padding:2rem; color:#1a1a1a; }
.dek-card { max-width:560px; margin:0 auto; background:#fff; border-radius:14px;
  padding:2rem 2.4rem; box-shadow:0 6px 24px rgba(0,0,0,.08); }
h1 { color:var(--dek-azul); font-size:1.5rem; margin:0 0 .3rem; }
.dek-sub { color:#666; margin:0 0 1.5rem; }
label { display:block; margin-bottom:1rem; font-weight:600; font-size:.9rem; }
input, select { width:100%; padding:.6rem .7rem; margin-top:.35rem; border:1px solid #ccd;
  border-radius:8px; font-size:1rem; font-weight:400; }
.dek-check { font-weight:400; display:flex; gap:.5rem; align-items:flex-start; }
.dek-check input { width:auto; margin-top:.2rem; }
.dek-btn { background:var(--dek-azul); color:#fff; border:0; padding:.8rem 1.4rem;
  border-radius:8px; font-size:1rem; cursor:pointer; width:100%; margin-top:.5rem; }
.dek-btn:hover { background:var(--dek-acento); }
.dek-alert { background:#fff3f3; border:1px solid #ffc9c9; color:#a12; padding:.8rem 1rem;
  border-radius:8px; margin-bottom:1rem; font-size:.9rem; }
.dek-alert p { margin:.2rem 0; }

/* ===== Diagnóstico ===== */
.dek-wide { max-width: 720px; }
.dek-progress { background:#e6eaf0; border-radius:99px; height:8px; overflow:hidden; margin-bottom:.5rem; }
.dek-progress-bar { background:#1a7a34; height:100%; transition:width .3s ease; }
.dek-step { color:#888; font-size:.85rem; font-weight:600; margin:0 0 1rem; }
.dek-q { border:1px solid #e2e6ee; border-radius:12px; padding:1rem 1.2rem; margin-bottom:1.2rem; }
.dek-q legend { font-weight:700; color:#0B4A1E; padding:0 .4rem; font-size:1rem; }
.dek-help { background:#eef7f0; border-left:3px solid #1a7a34; color:#334; font-size:.85rem;
  padding:.6rem .8rem; border-radius:6px; margin:.4rem 0 .9rem; font-weight:400; }
.dek-scale { display:flex; flex-direction:column; gap:.45rem; }
.dek-opt { display:flex; align-items:center; gap:.6rem; padding:.5rem .7rem; border:1px solid #dde;
  border-radius:8px; cursor:pointer; font-weight:400; transition:background .15s, border-color .15s; }
.dek-opt:hover { background:#f0f8f2; border-color:#1a7a34; }
.dek-opt input { width:auto; margin:0; }
.dek-opt-num { font-weight:700; color:#0B4A1E; min-width:1.2rem; }
.dek-opt-lbl { color:#333; font-size:.92rem; }
.dek-note { background:#f4f6f9; border-radius:8px; padding:.8rem 1rem; color:#555; font-size:.9rem; }

/* ===== Reporte ===== */
.dek-indice { display:flex; align-items:center; gap:1.2rem; border:2px solid; border-radius:14px;
  padding:1rem 1.4rem; margin:1.2rem 0 1.6rem; background:#fbfcfe; }
.dek-indice-num { font-size:2.6rem; font-weight:800; line-height:1; }
.dek-indice-num span { font-size:1rem; font-weight:600; color:#999; }
.dek-indice-lbl { font-size:.95rem; color:#333; }
.dek-radar-wrap { max-width:560px; margin:0 auto 1.8rem; }
.dek-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1.8rem; }
.dek-panel { border-radius:12px; padding:1rem 1.2rem; }
.dek-panel h2 { font-size:1rem; margin:0 0 .6rem; }
.dek-panel ul { margin:0; padding-left:1.1rem; }
.dek-panel li { margin:.3rem 0; font-size:.92rem; }
.dek-panel li span { color:#888; font-weight:600; }
.dek-panel-ok { background:#f0fbf4; border:1px solid #c6f0d4; }
.dek-panel-gap { background:#fff5f5; border:1px solid #ffd4d4; }
.dek-h2 { color:#0B4A1E; font-size:1.2rem; margin:1.4rem 0 .8rem; }
.dek-cap { border-left:4px solid #ccc; background:#fafbfc; border-radius:8px;
  padding:.8rem 1rem; margin-bottom:.8rem; }
.dek-cap-head { display:flex; justify-content:space-between; align-items:baseline; gap:.6rem;
  flex-wrap:wrap; margin-bottom:.3rem; }
.dek-cap-title { font-weight:700; color:#0B4A1E; }
.dek-cap-score { font-weight:700; font-size:.85rem; white-space:nowrap; }
.dek-cap-reco { margin:.2rem 0 0; font-size:.9rem; color:#444; line-height:1.5; }
.dek-cta { background:#0B4A1E; color:#fff; border-radius:14px; padding:1.6rem; text-align:center;
  margin:2rem 0 1rem; }
.dek-cta h2 { color:#fff; margin:0 0 .5rem; font-size:1.2rem; }
.dek-cta p { color:#cfe0f5; margin:0 0 1.1rem; font-size:.95rem; }
.dek-cta .dek-btn { display:inline-block; width:auto; text-decoration:none; background:#1a7a34; }
.dek-cta .dek-btn:hover { background:#2e9e4f; }
@media (max-width:600px){ .dek-grid2 { grid-template-columns:1fr; } }

/* ===== Panel Admin ===== */
.dek-admin-top { display:flex; justify-content:space-between; align-items:center; }
.dek-logout { font-size:.85rem; color:#e53e3e; text-decoration:none; font-weight:600; }
.dek-logout:hover { text-decoration:underline; }
.dek-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:1.2rem 0; }
.dek-metric { background:#f4f6f9; border-radius:12px; padding:1rem; text-align:center; }
.dek-metric-num { display:block; font-size:1.8rem; font-weight:800; color:#0B4A1E; }
.dek-metric-lbl { display:block; font-size:.8rem; color:#777; margin-top:.2rem; }
.dek-filtros { display:flex; gap:.5rem; margin-bottom:1rem; }
.dek-chip { padding:.4rem .9rem; border-radius:99px; border:1px solid #ccd; text-decoration:none;
  color:#555; font-size:.85rem; font-weight:600; }
.dek-chip-on { background:#0B4A1E; color:#fff; border-color:#0B4A1E; }
.dek-table-wrap { overflow-x:auto; }
.dek-table { width:100%; border-collapse:collapse; font-size:.88rem; }
.dek-table th { text-align:left; padding:.6rem .5rem; border-bottom:2px solid #e2e6ee; color:#0B4A1E;
  font-size:.78rem; text-transform:uppercase; letter-spacing:.03em; white-space:nowrap; }
.dek-table td { padding:.6rem .5rem; border-bottom:1px solid #eef1f5; vertical-align:top; }
.dek-table tr:hover { background:#fafbfd; }
.dek-center { text-align:center; }
.dek-mini { color:#999; font-size:.78rem; }
.dek-link { color:#1a7a34; text-decoration:none; font-weight:600; white-space:nowrap; }
.dek-link:hover { text-decoration:underline; }

/* ===== Logotipo Kineos (todas las pantallas) ===== */
.dek-card::before {
  content: "";
  display: block;
  width: 170px;
  height: 53px;
  margin: 0 auto 1.4rem;
  background: url('/static/img/kineos_logo.png') no-repeat center center;
  background-size: contain;
}

/* Ocultar el logo cuando DEK esta embebido en Odoo (el header ya lo trae) */
html.dek-embedded .dek-card::before { display: none; }

/* Ocultar el logo cuando DEK esta embebido en Odoo (el header ya lo trae) */
html.dek-embedded .dek-card::before { display: none; }
