/* Página de estado de No Pierdas Nada con el sistema Hilo (fase 4 del rediseño): la noche arriba con el
   estado de todo en grande, las partes del servicio en tarjetas con sus 90 días, claro u oscuro según el
   dispositivo, y las letras de la marca desde nuestro propio servidor (sin nada de fuera). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --brasa: #D85018; --brasa-texto: #B93E0D; --brasa-boton: #C2440F;
  --papel: #F7F8FA; --superficie: #FFFFFF; --hundido: #EEF0F3; --linea: #E1E4E9;
  --tinta: #151A21; --suave: #4B5563; --tenue: #6A7381;
  --ok: #17744C; --ok-suave: #E1F3EA; --mant: #2A5DB8; --mant-suave: #E4ECFB;
  --lento: #8F5A07; --lento-suave: #FBF0DA; --mal: #B3332A; --mal-suave: #FBE3E0;
  --noche: #0C0F13; --noche-2: #131820; --noche-linea: rgba(238, 241, 245, .09); --noche-tinta: #EEF1F5; --noche-suave: #9AA4B2;
  --brasa-noche: #F0763F; --ok-noche: #4CC48D; --mant-noche: #73A7FF; --lento-noche: #E6A93E; --mal-noche: #F06A5C;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --datos: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sombra: 0 1px 2px rgba(20, 26, 33, .05), 0 12px 28px -18px rgba(20, 26, 33, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brasa-texto: #F0763F;
    --papel: #0C0F13; --superficie: #131820; --hundido: #1B212A; --linea: #262D38;
    --tinta: #EEF1F5; --suave: #A9B2BE; --tenue: #8A94A2;
    --ok: #4CC48D; --ok-suave: #12291F; --mant: #73A7FF; --mant-suave: #15223A;
    --lento: #E6A93E; --lento-suave: #2E2310; --mal: #F06A5C; --mal-suave: #33181A;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 16px/1.6 var(--texto); }
a { color: var(--brasa-texto); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font: 700 13px/1.4 var(--datos); letter-spacing: .1em; text-transform: uppercase; color: var(--tenue); margin-bottom: 4px; }
h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.005em; }
.envoltura { max-width: 880px; margin: 0 auto; padding-inline: 16px; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }

/* La noche: cabecera y estado de todo, iguales en los dos temas. */
.noche { position: relative; background: radial-gradient(640px 300px at 12% 0%, rgba(216, 80, 24, .2), transparent 70%), var(--noche); color: var(--noche-tinta); }
.noche::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brasa), var(--brasa-noche) 60%, var(--noche)); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.logo { display: block; border-radius: 6px; }
.logo img { display: block; height: 28px; width: auto; }
.portal { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid rgba(238, 241, 245, .2); border-radius: 11px; color: var(--noche-tinta); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background-color .14s, border-color .14s; }
.portal:hover { background: rgba(238, 241, 245, .08); border-color: rgba(238, 241, 245, .35); }

.global { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 34px 46px; }
.global h1 { font: 750 clamp(28px, 5.4vw, 46px)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.global p { margin-top: 12px; max-width: 60ch; color: var(--noche-suave); }
.global .actualizada { font: 500 13px/1.5 var(--datos); color: var(--noche-suave); margin-top: 16px; }
.global .punto { position: relative; width: 16px; height: 16px; margin-top: clamp(8px, 1.6vw, 14px); border-radius: 50%; background: var(--ok-noche); color: var(--ok-noche); }
.global .punto::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: latido 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
.global.mantenimiento .punto { background: var(--mant-noche); color: var(--mant-noche); }
.global.degradado .punto { background: var(--lento-noche); color: var(--lento-noche); }
.global.caido .punto { background: var(--mal-noche); color: var(--mal-noche); }
@keyframes latido { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

main { padding-block: 32px 48px; display: grid; gap: 34px; }
.viejo { padding: 14px 16px; border-radius: 14px; background: var(--lento-suave); color: var(--tinta); border: 1px solid var(--linea); }

.bloque { display: grid; gap: 12px; }
.componentes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.componente { padding: 18px 20px; display: grid; gap: 12px; background: var(--superficie); border: 1px solid var(--linea); border-radius: 18px; box-shadow: var(--sombra); }
.fila { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.desc, .meta { color: var(--suave); font-size: 14px; margin-top: 2px; }
.nota-comp { font-size: 14.5px; padding: 10px 12px; border-radius: 11px; background: var(--hundido); }
.pastilla { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 4px 11px 4px 10px; border-radius: 999px; background: var(--ok-suave); color: var(--ok); white-space: nowrap; }
.pastilla::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastilla.mantenimiento { background: var(--mant-suave); color: var(--mant); }
.pastilla.degradado { background: var(--lento-suave); color: var(--lento); }
.pastilla.caido { background: var(--mal-suave); color: var(--mal); }

.barras { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; align-items: end; }
.dia { height: 100%; border-radius: 3px; background: var(--ok); opacity: .9; transform-origin: bottom; transition: transform .14s, opacity .14s; }
.dia:hover { transform: scaleY(1.12); opacity: 1; }
.dia.nada { background: var(--hundido); opacity: 1; height: 60%; }
.dia.mantenimiento { background: var(--mant); }
.dia.degradado { background: var(--lento); }
.dia.caido { background: var(--mal); }
.pie-barras { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1.4 var(--datos); color: var(--tenue); }
@media (max-width: 560px) {
  .barras { grid-template-columns: repeat(45, 1fr); }
  .barras .dia:nth-child(-n+45) { display: none; }
  .pie-barras span:first-child { visibility: hidden; }
  .fila { flex-direction: column; }
  .global { gap: 14px; padding-block: 26px 36px; }
}

.aviso { background: var(--superficie); border: 1px solid var(--linea); border-radius: 18px; padding: 18px 20px 18px 22px; display: grid; gap: 10px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.aviso::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lento); }
.aviso.mantenimiento::before { background: var(--mant); }
.aviso.caido::before { background: var(--mal); }
.aviso.resuelto::before { background: var(--ok); }
.cab-aviso { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notas li { padding-left: 12px; border-left: 2px solid var(--linea); display: grid; gap: 2px; }
.notas time { font: 500 12.5px/1.5 var(--datos); color: var(--tenue); }
.texto-aviso, .informe { display: grid; gap: 8px; }
.informe summary { cursor: pointer; font-weight: 600; }

.pie { border-top: 1px solid var(--linea); padding-block: 22px 36px; color: var(--suave); font-size: 14px; }
.pie .envoltura { display: grid; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .global .punto::after { animation: none; } .dia { transition: none; } }
