/* Layout: tablero de estado tipo pantalla de consola; 6 proyectos principales en orden, 4 secundarios abajo */
:root {
  color-scheme: dark;
  --bg: #0f1420;
  --panel: #171e2e;
  --panel-2: #1d2639;
  --line: #2a3550;
  --fg: #e8ecf5;
  --muted: #94a0ba;
  --accent: #5aa9ff;
  --ok: #4fd18b;
  --pub: #b28cff;
  --wait: #f2b84b;
  --dev: #ff8a65;
  --f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-block: 36px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 28px;
}
header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
h1 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 5vw, 54px); line-height: 1.02;
  margin: 6px 0 0; text-wrap: balance; letter-spacing: -.01em;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 370px), 1fr)); gap: 16px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
}
.top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.pos { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.name { font-family: var(--f-display); font-weight: 600; font-size: 23px; line-height: 1.1; margin: 2px 0 4px; text-wrap: balance; }
.small .name { font-size: 19px; }
.route { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.route b { color: var(--fg); font-weight: 600; }
.pill {
  flex-shrink: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.s-ok { color: var(--ok); } .s-pub { color: var(--pub); } .s-wait { color: var(--wait); } .s-dev { color: var(--dev); }

.stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.small .big { font-size: 28px; }
.unit { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
li { position: relative; padding-left: 16px; color: var(--fg); }
li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 2px; background: var(--accent); }
li.next { color: var(--muted); }
li.next::before { background: var(--muted); }
.small li { font-size: 14px; }

.track { display: grid; gap: 6px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps i { height: 5px; border-radius: 2px; background: var(--panel-2); }
.steps i.on { background: var(--accent); }
.steps.pub i.on { background: var(--pub); }
.steplabel { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); gap: 8px; }
.steplabel b { color: var(--fg); font-weight: 600; }

h2 {
  font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 8px 0 -6px; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.credit { font-size: 12px; color: var(--muted); }
footer { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .2s; }
  .card:hover { border-color: var(--accent); }
}


body { margin: 0; }
footer a { color: var(--accent); }


:root { --pause: #8792aa; }
.s-pause { color: var(--pause); }
.tag {
  display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 4px; background: var(--panel-2); color: var(--fg); margin-top: 4px;
}
.tag.and { color: var(--ok); } .tag.pc { color: var(--accent); } .tag.ps2 { color: var(--wait); } .tag.src { color: var(--pub); }
.card.paused { opacity: .78; }

.langs { display: flex; gap: 6px; font-family: var(--f-mono); font-size: 12px; }
.langs a { color: var(--muted); text-decoration: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; }
.langs a[aria-current="page"] { color: var(--fg); border-color: var(--accent); }
.langs a:focus-visible, footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side { display: grid; gap: 12px; justify-items: end; }
@media (max-width: 700px) { .side { justify-items: start; } }
.marca { display: flex; align-items: center; gap: 20px; min-width: 0; }
.marca > div { min-width: 0; }
.logo { width: clamp(110px, 16vw, 190px); height: auto; flex-shrink: 0; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.red {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; font-size: 14px;
}
.red svg { color: var(--accent); flex-shrink: 0; }
.red:hover { border-color: var(--accent); }
.red:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .marca { flex-direction: column; align-items: flex-start; gap: 12px; } }
.nota { font-family: var(--f-mono); font-size: 12px; color: var(--pub); border-left: 2px solid var(--pub); padding-left: 8px; }
.pill { white-space: nowrap; text-align: center; line-height: 1.35; border-radius: 10px; }
