:root{
  /* Paleta DMARCONE (según tus imágenes) */
  --teal: #18C7CE;        /* color principal */
  --teal-100:#E9FBFC;     /* fondo suave teal */
  --ink:  #161E2F;        /* texto fuerte */
  --muted:#5D6678;
  --line: #E6E9EF;
  --bg:   #FFFFFF;

  /* Riesgo */
  --risk-high: #F23B3B;
  --risk-med:  #F5A623;
  --risk-low:  #2ECC71;

  /* UI */
  --radius: 14px;
  --shadow: 0 18px 45px rgba(22,30,47,.12);

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --font-head: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

:root[data-theme="dark"]{
  --bg: #0B1220;
  --ink:#EAF0FF;
  --muted:#A7B0C4;
  --line: rgba(255,255,255,.12);
  --teal-100: rgba(24,199,206,.12);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--ink);
}

/* NAV */
.nav{
  position:sticky; top:0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index:10;
}
:root[data-theme="dark"] .nav{
  background: rgba(11,18,32,.75);
}
.nav__inner{
  max-width: 1100px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  text-decoration:none;
  color:var(--ink);
  font-family:var(--font-head);
  font-weight:800;
  letter-spacing:.3px;
}
.brand__accent{ color:var(--teal); }
.menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.menu__link{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
}
.menu__link:hover{ color:var(--ink); }

.iconbtn{
  width:40px; height:40px;
  border-radius:999px;
  border: 2px solid var(--teal);
  background:transparent;
  color:var(--ink);
  display:grid;
  place-items:center;
  cursor:pointer;
}

/* LAYOUT */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:36px 20px 60px;
}

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: var(--teal-100);
  border:1px solid rgba(24,199,206,.25);
  color:var(--teal);
  font-size:14px;
  font-weight:500;
}
.pill__dot{
  width:18px; height:18px;
  border-radius:10px;
  background: rgba(24,199,206,.15);
  border:1px solid rgba(24,199,206,.25);
}

.hero__title{
  font-family:var(--font-head);
  font-size:56px;
  line-height:1.05;
  margin:16px 0 12px;
  letter-spacing:-.8px;
}
@media (max-width: 520px){
  .hero__title{ font-size:42px; }
}
.hero__accent{ color:var(--teal); }

.hero__desc{
  margin:0 0 18px;
  color:var(--muted);
  max-width: 520px;
}

.scanbox{
  margin-top:10px;
}
.scanbox__label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:8px;
}
.scanbox__row{
  display:flex;
  gap:10px;
  align-items:center;
}
.input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: transparent;
  color:var(--ink);
  outline:none;
}
.input:focus{
  border-color: rgba(24,199,206,.6);
  box-shadow: 0 0 0 4px rgba(24,199,206,.12);
}
.hint{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}

/* Buttons */
.btn{
  border-radius: 12px;
  padding: 12px 16px;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  font-family:var(--font-body);
}
.btn--primary{
  background: var(--teal);
  color:white;
  box-shadow: 0 12px 26px rgba(24,199,206,.25);
}
.btn--primary:hover{ filter: brightness(.98); }
.btn--ghost{
  background: transparent;
  border:1px solid var(--line);
  color:var(--ink);
}
.btn--ghost:hover{ background: rgba(0,0,0,.03); }
:root[data-theme="dark"] .btn--ghost:hover{ background: rgba(255,255,255,.05); }

/* Bullets */
.bullets{
  margin-top:18px;
  display:grid;
  gap:10px;
}
.bullet{ color:var(--muted); display:flex; gap:10px; align-items:center; }
.check{
  width:18px; height:18px;
  display:grid; place-items:center;
  border-radius:999px;
  border:1px solid rgba(24,199,206,.35);
  color:var(--teal);
  font-weight:800;
  font-size:12px;
}

/* Card / Dashboard */
.card{
  background: rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .card{
  background: rgba(255,255,255,.04);
}

.dash{
  padding: 14px;
}
.dash__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 4px 6px 14px;
}
.macdots{ display:flex; gap:8px; }
.macdot{ width:10px; height:10px; border-radius:999px; }
.macdot.red{ background:#FF5F57; }
.macdot.yellow{ background:#FEBC2E; }
.macdot.green{ background:#28C840; }
.dash__title{ color:var(--muted); font-weight:600; font-size:14px; }

.dash__body{ display:grid; gap:14px; }
.metric{
  background: rgba(0,0,0,.02);
  border-radius: 12px;
  padding: 14px;
}
:root[data-theme="dark"] .metric{ background: rgba(255,255,255,.03); }
.metric__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.metric__label{ color:var(--muted); font-size:14px; }
.metric__value{ font-weight:700; }
.metric__value.teal{ color:var(--teal); }
.metric__value.green{ color:var(--risk-low); }

.bar{
  width:100%;
  height:8px;
  background: rgba(22,30,47,.12);
  border-radius:999px;
  overflow:hidden;
}
:root[data-theme="dark"] .bar{ background: rgba(255,255,255,.10); }
.bar__fill{
  height:100%;
  border-radius:999px;
  width:0%;
  background: var(--ink);
}
.bar__fill.teal{ background: var(--teal); }
.bar__fill.green{ background: var(--risk-low); }

/* Results */
.results{ margin-top: 26px; }
.results__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 920px){
  .results__grid{ grid-template-columns:1fr; }
}
.card{ padding: 16px; }

.card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.card__title{
  margin:0;
  font-family:var(--font-head);
  font-size:18px;
}
.sub{
  margin:0 0 8px;
  font-family:var(--font-head);
  font-size:16px;
}
.muted{ color:var(--muted); }

.kpis{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.kpi{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background: rgba(0,0,0,.01);
}
:root[data-theme="dark"] .kpi{ background: rgba(255,255,255,.03); }
.kpi__label{ color:var(--muted); font-size:13px; margin-bottom:6px; }
.kpi__value{ font-weight:700; }

.divider{
  height:1px;
  background: var(--line);
  margin:14px 0;
}

/* Badge riesgo */
.badge{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  font-weight:700;
  font-size:13px;
}
.badge--neutral{ color: var(--muted); background: rgba(0,0,0,.02); }
.badge--high{ color: var(--risk-high); background: rgba(242,59,59,.08); border-color: rgba(242,59,59,.25); }
.badge--med { color: var(--risk-med);  background: rgba(245,166,35,.10); border-color: rgba(245,166,35,.25); }
.badge--low { color: var(--risk-low);  background: rgba(46,204,113,.10); border-color: rgba(46,204,113,.25); }

.list{ margin:0; padding-left: 18px; color: var(--ink); }
.list li{ margin:6px 0; }

.actions{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.statusline{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--ink);
  margin-bottom: 10px;
}

.statusdot{
  width:10px; height:10px;
  border-radius:999px;
  background: #B8C0D0;
}
.statusdot.ok{ background: var(--risk-low); }
.statusdot.warn{ background: var(--risk-med); }
.statusdot.bad{ background: var(--risk-high); }

.codeblock{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background: rgba(0,0,0,.015);
  margin-bottom: 12px;
}
:root[data-theme="dark"] .codeblock{ background: rgba(255,255,255,.03); }
.codeblock__label{
  font-size:12px;
  color: var(--muted);
  font-weight:600;
  margin-bottom: 8px;
}
pre{
  margin:0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}
