@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --fondo: #f6f7f9; --papel: #fff; --texto: #0f1115; --suave: #555b66;
  --borde: #d0d5dd; --foco: #3050f0; --bien: #187546; --lento: #925d0a;
  --parcial: #ae4d22; --grave: #ba303a; --vacio: #656b76;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0a0a0b; --papel: #111113; --texto: #ededef; --suave: #a1a1aa;
    --borde: #2f2f35; --foco: #7088ff; --bien: #4cc38a; --lento: #e2a33b;
    --parcial: #ee955f; --grave: #f2666b; --vacio: #8d8d97;
  }
}
* { box-sizing: border-box }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 1rem/1.55 'Plus Jakarta Sans', system-ui, sans-serif }
.contenedor { width: min(56rem, calc(100% - 3rem)); margin-inline: auto }
header { background: var(--papel); border-bottom: 1px solid var(--borde) }
.cabecera, .titulo-lista, .fila, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.cabecera { min-height: 4.25rem }
.marca { font-size: 1.45rem; line-height: 1; font-weight: 800; letter-spacing: -.065em }
.marca span { display: inline-block; font-size: 1.22em; background: linear-gradient(140deg,#f000c0,#a010c0,#3050f0); background-clip: text; color: transparent }
.seccion, .titulo-lista span, footer span { color: var(--suave); font-size: .875rem }
#muestra { margin: 1rem 0 0; color: var(--suave); font-size: .82rem }
.resumen { padding: clamp(2rem,6vw,4rem) 0 2.75rem }
h1, h2, h3, p { margin: 0 }
h1 { max-width: 18ch; font-size: clamp(1.6rem,3.6vw,2.4rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance }
#actualizacion { color: var(--suave); font-size: .875rem; margin-top: 1.2rem; font-variant-numeric: tabular-nums }
h2 { font-size: 1.4rem; letter-spacing: -.02em }
.titulo-lista { margin-bottom: .75rem }
#componentes { background: var(--papel); border: 1px solid var(--borde); border-radius: .875rem; overflow: hidden }
article { padding: 1.25rem clamp(1rem,3vw,1.75rem) .85rem }
article + article { border-top: 1px solid var(--borde) }
h3 { font-size: 1.05rem; letter-spacing: 0 }
.estado { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 650; color: var(--tinta) }
[data-estado="operativo"] { --tinta: var(--bien); --alto: 70% }
[data-estado="degradado"] { --tinta: var(--lento); --alto: 82% }
[data-estado="caida_parcial"] { --tinta: var(--parcial); --alto: 91% }
[data-estado="caida_mayor"] { --tinta: var(--grave); --alto: 100% }
[data-estado="sin_datos"] { --tinta: var(--vacio); --alto: 30% }
.icono { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border: 1.5px solid; border-radius: 50%; font: bold .8rem/1 system-ui }
.historia { position: relative; margin-top: .75rem; padding-block: .25rem; cursor: crosshair }
.barras { display: grid; grid-template-columns: repeat(90,minmax(0,1fr)); gap: clamp(1px,.2vw,3px); align-items: end; height: 1.6rem }
.barras i { display: block; border-radius: 2px; background: var(--tinta); height: var(--alto) }
body.caducado .barras i { background: var(--vacio) }
.historia input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: crosshair }
.historia:focus-within { outline: 2px solid var(--foco); outline-offset: 3px }
.barras i.elegido { outline: 2px solid var(--texto); outline-offset: 1px }
.fechas { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; color: var(--suave); font-size: .75rem; margin-top: .2rem; min-height: 1.3rem }
.detalle { font-weight: 650; color: var(--texto); text-align: center }
footer { align-items: baseline; justify-content: flex-start; flex-wrap: wrap; padding: 1.5rem 0 2.5rem; gap: .25rem 1rem }
footer strong { font-size: .95rem }
.correo { color: var(--texto) }
@media (max-width: 36rem) {
  .contenedor { width: calc(100% - 2rem) }
  .fila, footer { align-items: flex-start; flex-direction: column; gap: .25rem }
  .resumen { padding-bottom: 2rem }
  .historia { padding-block: .6rem }
}
@media (forced-colors: active) {
  .marca span { color: CanvasText }
  .barras i { background: CanvasText; forced-color-adjust: none }
}
