/* Prototipo status.tecnotrack.es — identidad TecnoTrack: negro, Garet, Michroma para rótulos, acento azul sutil.
   Colores de estado propios (no los de GitHub): verde salvia, ámbar, rojo coral, gris. */
@font-face { font-family: 'Garet'; src: url('/Garet-Book.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Michroma'; src: url('/michroma.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root { --bg: #050505; --card: #0b0f14; --line: #1b222c; --text: #e0e0e0; --muted: #8f8f8f; --blue: 110,160,215;
  --ok: #5fbf8f; --degraded: #d9a441; --down: #e06c6c; --nodata: #2a2f37; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font-family: 'Garet', system-ui, sans-serif; background: radial-gradient(ellipse at bottom, rgb(15,25,37) 0%, #050505 65%) fixed; min-height: 100vh; }
a { color: inherit; }
.top { max-width: 920px; margin: 0 auto; padding: 22px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 132px; height: auto; display: block; }
.top-r { font-family: 'Michroma', sans-serif; font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.hero { max-width: 920px; margin: 26px auto 0; padding: 0 22px; }
.hero-in { display: flex; gap: 18px; align-items: center; padding: 26px 26px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,15,20,.8); }
.hero h1 { margin: 0; font-weight: 400; font-size: 1.55rem; line-height: 1.3; }
.hero p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.big-dot { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(95,191,143,.12), 0 0 22px rgba(95,191,143,.45); }
.big-dot.degraded { background: var(--degraded); box-shadow: 0 0 0 6px rgba(217,164,65,.12), 0 0 22px rgba(217,164,65,.4); }
.big-dot.down { background: var(--down); box-shadow: 0 0 0 6px rgba(224,108,108,.12), 0 0 22px rgba(224,108,108,.4); }
main { max-width: 920px; margin: 0 auto; padding: 8px 22px 40px; }
.sec { font-family: 'Michroma', sans-serif; font-weight: 400; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 38px 0 14px; }
.comp { border: 1px solid var(--line); border-radius: 12px; background: rgba(11,15,20,.85); padding: 18px 20px 14px; margin-bottom: 12px; }
.comp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.comp h3 { margin: 0; font-weight: 400; font-size: 1.08rem; }
.comp-head p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ok); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.degraded { color: var(--degraded); } .pill.down { color: var(--down); } .pill.nodata { color: var(--muted); }
.bars { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--ok); opacity: .85; cursor: default; transition: opacity .15s, transform .15s; outline: none; }
.bar:hover, .bar:focus-visible { opacity: 1; transform: scaleY(1.08); }
.bar:focus-visible { box-shadow: 0 0 0 2px #ccc; }
.bar.degraded { background: var(--degraded); } .bar.down { background: var(--down); } .bar.nodata { background: var(--nodata); }
.scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.scale .up { color: var(--text); }
.scale .d30 { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 2px 0; font-size: .76rem; color: var(--muted); }
.legend .bar { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 6px; }
.incs { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.inc { position: relative; display: flex; gap: 14px; padding: 4px 0 18px 18px; }
.inc-dot { position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ok); }
.inc-t { margin: 0; font-size: .95rem; }
.inc-m { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.tag { display: inline-block; margin-left: 8px; font-size: .7rem; letter-spacing: .05em; color: var(--ok); border: 1px solid rgba(95,191,143,.45); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.inc-none { color: var(--muted); padding-left: 18px; }
.foot { max-width: 920px; margin: 0 auto; padding: 24px 22px 34px; border-top: 1px solid var(--line); display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }
.tip { position: absolute; z-index: 10; transform: translate(-50%, -100%); background: #11161e; border: 1px solid #2a3442; color: var(--text); font-size: .78rem;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
@media (max-width: 640px) {
  .bar.old { display: none; } .scale .d90 { display: none; } .scale .d30 { display: inline; }
  .hero h1 { font-size: 1.2rem; } .hero-in { padding: 20px; }
  .logo img { width: 112px; }
  .top-r { font-size: .58rem; letter-spacing: .18em; text-align: right; max-width: 9rem; }
}


/* ---------- B · Horizonte: portada con cielo y línea del logotipo ---------- */
.hero { max-width: none; margin: 18px 0 0; padding: 0; }
.hero-in { max-width: 920px; margin: 0 auto; border: 0; border-radius: 0; background: none; flex-direction: column; text-align: center; padding: 46px 22px 40px; position: relative; }
.hero-in::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
.hero h1 { font-size: 1.9rem; font-weight: 400; }
.big-dot { width: 14px; height: 14px; }
.comp { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 0 18px; margin: 0; }
.bars { height: 30px; gap: 3px; }
.bar { border-radius: 99px; }


/* Accesibilidad y estados en curso */
.skip { position: absolute; left: -9999px; top: 8px; background: #e0e0e0; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
a:focus-visible { outline: 2px solid #ccc; outline-offset: 3px; border-radius: 4px; }
.big-dot.nodata { background: #6b7280; box-shadow: 0 0 0 6px rgba(107,114,128,.15); }
.inc-dot.degraded { border-color: var(--degraded); } .inc-dot.down { border-color: var(--down); }
.tag.open { color: var(--degraded); border-color: rgba(217,164,65,.5); }
@media (prefers-reduced-motion: reduce) { .bar, .tip { transition: none; } }
