* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #f3f5f9; color: #16202e;
  padding: 16px 16px 88px; }
h1 { font-size: 20px; margin: 0; }
[hidden] { display: none !important; }

.live { display: flex; align-items: center; gap: 6px; color: #6b7a8f; font-size: 12px; margin: 4px 0 12px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1f9d63; animation: pulso 1.8s infinite; }
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 99, .55); }
  70% { box-shadow: 0 0 0 7px rgba(31, 157, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 99, 0); }
}
.aviso { background: #fff; border-radius: 14px; padding: 14px; font-size: 13px; color: #33445a;
  box-shadow: 0 2px 8px rgba(22, 32, 46, .06); }

.hero { border-radius: 18px; padding: 14px; border: 1px solid; }
.hero b { font-size: 15px; }
.hero p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; }
.hero.verde { background: #eaf7f0; border-color: #b7e3cb; } .hero.verde b { color: #157a4b; }
.hero.amarillo { background: #fff9e0; border-color: #f2df94; } .hero.amarillo b { color: #8a6d00; }
.hero.naranja { background: #fff4e8; border-color: #f9d3a8; } .hero.naranja b { color: #a3500a; }
.hero.rojo { background: #fdecec; border-color: #f5b5b7; } .hero.rojo b { color: #b4282d; }
.leg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 11px; color: #4a5a70; }
.leg span { background: #fff; border-radius: 10px; padding: 3px 8px; }

.d { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.g { background: #1f9d63; } .y { background: #e6b800; } .o { background: #f07c1a; } .r { background: #e5484d; }
.n { background: #c3cad6; }

.card { background: #fff; border-radius: 16px; padding: 14px; margin-top: 12px; box-shadow: 0 2px 8px rgba(22, 32, 46, .06); }
.card h3 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.card h3 small { font-weight: 500; color: #8493a8; font-size: 11px; }
.ex { font-size: 10px; font-weight: 700; color: #6b7a8f; background: #eef1f6; border-radius: 8px; padding: 2px 7px; }

.seg { display: flex; background: #eef1f6; border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 8px; font-size: 12px; color: #4a5a70;
  font-weight: 600; font-family: inherit; }
.seg .on { background: #fff; color: #2b6df0; box-shadow: 0 1px 3px rgba(22, 32, 46, .1); }

.flow { display: flex; overflow-x: auto; padding-bottom: 6px; }
.st { flex: none; width: 112px; background: #f7f9fc; border-radius: 12px; padding: 9px; border-top: 4px solid #c3cad6; }
.st.verde { border-color: #1f9d63; } .st.amarillo { border-color: #e6b800; } .st.naranja { border-color: #f07c1a; }
.st.rojo { border-color: #e5484d; }
.st b { font-size: 12px; display: block; }
.st .num { font-size: 19px; font-weight: 800; margin: 4px 0 2px; }
.st.gris .num { color: #b3bdcc; }
.st small { display: block; font-size: 10.5px; color: #6b7a8f; line-height: 1.35; }
.st .ch { display: block; font-size: 10.5px; background: #fff; border-radius: 6px; padding: 2px 5px; margin-top: 4px; color: #33445a; }
.arw { flex: none; align-self: center; color: #b3bdcc; font-size: 15px; padding: 0 3px; }
.hint { font-size: 11px; color: #8493a8; margin-top: 8px; line-height: 1.45; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0;
  border-top: 1px solid #eef1f6; font-size: 12px; }
.row:first-child { border-top: 0; }
.row b { display: block; font-size: 12.5px; }
.row small { color: #8493a8; font-size: 11px; }
.row .v { text-align: right; font-size: 11.5px; color: #33445a; flex: none; max-width: 40%; }

.q { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.q div { background: #f7f9fc; border-radius: 12px; padding: 9px; text-align: center; }
.q b { display: block; font-size: 20px; }
.q small { font-size: 11px; color: #6b7a8f; }

.tg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.k { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 8px rgba(22, 32, 46, .06); }
.k .nn { font-size: 24px; font-weight: 800; line-height: 1; }
.k small { display: block; margin-top: 6px; color: #6b7a8f; font-size: 11.5px; line-height: 1.35; }
.c-verde { color: #1f9d63; } .c-amarillo { color: #b38f00; } .c-naranja { color: #d4650c; } .c-rojo { color: #e5484d; }
.c-gris { color: #8493a8; }

.foot { font-size: 11px; color: #8493a8; text-align: center; margin-top: 14px; line-height: 1.5; }
.tab { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid #e6eaf1;
  padding: 8px 0 12px; text-align: center; font-size: 11px; color: #8493a8; }
.tab div { flex: 1; }
.tab span { display: block; font-size: 18px; }
.tab .on { color: #2b6df0; font-weight: 700; }
.tab .off { opacity: .45; }
