/* Infografía cálida. Fuentes redondas del sistema: sin archivos externos. */
:root {
  color-scheme: light;
  --bg: #fff4ea;
  --bg-2: #ffe4cc;
  --panel: #fffdfb;
  --ink: #3a2418;
  --muted: #8d5b3e;
  --line: #f0d3ba;
  --sun: #e36b2c;
  --sun-deep: #b84e1c;
  --on-sun: #3a2418;
  --cream: #fff7f0;
  --leaf: #1f8a68;
  --gold: #e0a12e;
  --berry: #c44b45;
  --sand: #e7cbb6;
  --track: #f6dcc8;
  --ok-bg: #e5f6ef;
  --warn-bg: #fff1d6;
  --off-bg: #f6ebe3;
  --bad-bg: #fde8e6;
  --shadow: 0 16px 40px rgba(120, 62, 24, 0.08);
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #2a1b14;
    --bg-2: #3a261c;
    --panel: #3c291f;
    --ink: #fff4ea;
    --muted: #f0c7ae;
    --line: #6a4634;
    --sun: #ffb15a;
    --sun-deep: #ff8a3d;
    --on-sun: #3a2418;
    --cream: #4a3124;
    --leaf: #7ddec0;
    --gold: #ffd27a;
    --berry: #ffb1a8;
    --sand: #8a6550;
    --track: #5a3b2c;
    --ok-bg: #1d4638;
    --warn-bg: #5a4318;
    --off-bg: #4a3428;
    --bad-bg: #5c2c28;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 420px at 0% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
}
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 18px; font-weight: 750; }
p { margin: 0; }
.kicker { display: block; font-size: 13px; font-weight: 700; color: var(--sun-deep); margin-bottom: 4px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }
.head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.head p { color: var(--muted); max-width: 62ch; }
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.stamp { font-size: 13px; color: var(--muted); text-align: right; }
.sel { display: flex; flex-wrap: wrap; gap: 8px; }
.sel button {
  font: 700 15px var(--font);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.sel button[aria-selected="true"] { color: var(--on-sun); background: var(--sun); border-color: var(--sun); }
.sel button:focus-visible, .btn:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible, .logout:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.view, .panel { display: flex; flex-direction: column; gap: 14px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.live { display: flex; flex-direction: column; gap: 6px; }
.gauge { position: relative; width: min(240px, 70vw); aspect-ratio: 1; }
.gauge-svg { width: 100%; height: 100%; display: block; }
.gauge-track { fill: none; stroke: var(--track); stroke-width: 12; }
.gauge-value { fill: none; stroke: var(--sun); stroke-width: 12; stroke-linecap: round; }
.gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.gauge-num small { font-size: 28px; margin-left: 2px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 8px solid var(--sun);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.card.ok { border-top-color: var(--leaf); }
.card.warn { border-top-color: var(--gold); }
.card.off { border-top-color: var(--sand); }
.card.bad { border-top-color: var(--berry); }
.card-top { display: flex; gap: 12px; align-items: center; }
.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--sun-deep);
  flex: none;
}
.card h3 { font-size: 20px; }
.card .detalle, .card .falta { color: var(--muted); font-size: 15px; }
.big-pct { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.bar { height: 14px; background: var(--off-bg); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sun); border-radius: 999px; }
.bar.ok i { background: var(--leaf); }
.bar.warn i { background: var(--gold); }
.bar.off i { background: var(--sand); }
.bar.bad i { background: var(--berry); }
.ask { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 28px 0 0;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 4%;
  right: 4%;
  height: 6px;
  border-radius: 999px;
  background: var(--sand);
}
.journey li { position: relative; text-align: center; min-width: 0; }
.journey h3 { font-size: 15px; margin-bottom: 4px; }
.journey p { font-size: 13px; color: var(--muted); }
.dot {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--panel);
  border: 4px solid var(--sun);
  display: grid;
  place-items: center;
  color: var(--sun-deep);
  position: relative;
  z-index: 1;
}
.locks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lock {
  background: var(--cream);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.lock-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.orbit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sun-ball {
  flex: 1 1 260px;
  min-height: 230px;
  border-radius: 46%;
  background: radial-gradient(circle at 32% 28%, #ffe7bf, #f08a32 68%, #d4652f);
  color: #3a2418;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.planet {
  flex: 1 1 200px;
  min-height: 180px;
  border-radius: 36px;
  border: 3px solid var(--line);
  background: var(--cream);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.planet p, .sun-ball p { font-size: 15px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.team li { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 22px; padding: 14px; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--on-sun);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.solicitudes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.solicitud { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: var(--cream); border-radius: 16px; padding: 10px 12px; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.pill.ok { color: var(--leaf); background: var(--ok-bg); }
.pill.warn { color: var(--sun-deep); background: var(--warn-bg); }
.pill.off { color: var(--muted); background: var(--off-bg); }
.pill.bad { color: var(--berry); background: var(--bad-bg); }
label { font-weight: 700; font-size: 14px; color: var(--muted); display: block; }
textarea, select, input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: 16px var(--font);
}
textarea { min-height: 96px; resize: vertical; }
.btn, .gate button, .mfa button {
  font: 800 16px var(--font);
  background: var(--sun);
  color: var(--on-sun);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  align-self: flex-start;
}
.btn[disabled], .gate button[disabled], .mfa button[disabled] { opacity: 0.55; cursor: default; }
.logout {
  font: 700 14px var(--font);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.chk { display: flex; gap: 10px; align-items: flex-start; }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sun); }
.chk label { font: 16px var(--font); color: var(--ink); margin: 0; }
.gate { max-width: 520px; }
.gate form, .mfa { display: flex; flex-direction: column; gap: 12px; }
#qr { max-width: 220px; background: #fff; padding: 8px; border-radius: 16px; }
#status, #board-status { min-height: 1.4em; }
.who, .hist { width: 100%; border-collapse: collapse; font-size: 15px; }
.who th, .hist th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.who td, .hist td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist { min-width: 520px; }
.hist .r { text-align: right; }
.scroll { overflow-x: auto; }
.ico { width: 30px; height: 30px; display: block; }
.ico-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .hero, .locks { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; padding-top: 0; }
  .journey::before { top: 0; bottom: 0; left: 25px; right: auto; width: 6px; height: auto; }
  .journey li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; text-align: left; align-items: center; }
  .dot { margin: 0; }
  .stamp, .head-side { text-align: left; align-items: flex-start; }
  h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.bar i.p0{width:0%}
.bar i.p1{width:1%}
.bar i.p2{width:2%}
.bar i.p3{width:3%}
.bar i.p4{width:4%}
.bar i.p5{width:5%}
.bar i.p6{width:6%}
.bar i.p7{width:7%}
.bar i.p8{width:8%}
.bar i.p9{width:9%}
.bar i.p10{width:10%}
.bar i.p11{width:11%}
.bar i.p12{width:12%}
.bar i.p13{width:13%}
.bar i.p14{width:14%}
.bar i.p15{width:15%}
.bar i.p16{width:16%}
.bar i.p17{width:17%}
.bar i.p18{width:18%}
.bar i.p19{width:19%}
.bar i.p20{width:20%}
.bar i.p21{width:21%}
.bar i.p22{width:22%}
.bar i.p23{width:23%}
.bar i.p24{width:24%}
.bar i.p25{width:25%}
.bar i.p26{width:26%}
.bar i.p27{width:27%}
.bar i.p28{width:28%}
.bar i.p29{width:29%}
.bar i.p30{width:30%}
.bar i.p31{width:31%}
.bar i.p32{width:32%}
.bar i.p33{width:33%}
.bar i.p34{width:34%}
.bar i.p35{width:35%}
.bar i.p36{width:36%}
.bar i.p37{width:37%}
.bar i.p38{width:38%}
.bar i.p39{width:39%}
.bar i.p40{width:40%}
.bar i.p41{width:41%}
.bar i.p42{width:42%}
.bar i.p43{width:43%}
.bar i.p44{width:44%}
.bar i.p45{width:45%}
.bar i.p46{width:46%}
.bar i.p47{width:47%}
.bar i.p48{width:48%}
.bar i.p49{width:49%}
.bar i.p50{width:50%}
.bar i.p51{width:51%}
.bar i.p52{width:52%}
.bar i.p53{width:53%}
.bar i.p54{width:54%}
.bar i.p55{width:55%}
.bar i.p56{width:56%}
.bar i.p57{width:57%}
.bar i.p58{width:58%}
.bar i.p59{width:59%}
.bar i.p60{width:60%}
.bar i.p61{width:61%}
.bar i.p62{width:62%}
.bar i.p63{width:63%}
.bar i.p64{width:64%}
.bar i.p65{width:65%}
.bar i.p66{width:66%}
.bar i.p67{width:67%}
.bar i.p68{width:68%}
.bar i.p69{width:69%}
.bar i.p70{width:70%}
.bar i.p71{width:71%}
.bar i.p72{width:72%}
.bar i.p73{width:73%}
.bar i.p74{width:74%}
.bar i.p75{width:75%}
.bar i.p76{width:76%}
.bar i.p77{width:77%}
.bar i.p78{width:78%}
.bar i.p79{width:79%}
.bar i.p80{width:80%}
.bar i.p81{width:81%}
.bar i.p82{width:82%}
.bar i.p83{width:83%}
.bar i.p84{width:84%}
.bar i.p85{width:85%}
.bar i.p86{width:86%}
.bar i.p87{width:87%}
.bar i.p88{width:88%}
.bar i.p89{width:89%}
.bar i.p90{width:90%}
.bar i.p91{width:91%}
.bar i.p92{width:92%}
.bar i.p93{width:93%}
.bar i.p94{width:94%}
.bar i.p95{width:95%}
.bar i.p96{width:96%}
.bar i.p97{width:97%}
.bar i.p98{width:98%}
.bar i.p99{width:99%}
.bar i.p100{width:100%}
