/* =========================================================
   WeConnect · Monitoreo
   Vista del panel de Mi Buseta con una ruta real de Cuenca y
   la buseta recorriéndola. Datos del panel genéricos (sin clientes).
   ========================================================= */

.mb-panel {
  width: 100%; max-width: 580px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; background: #f4f5f7; color: #333;
  border: 1px solid rgba(160,200,255,.35);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 8px rgba(10,124,255,.08);
  font-size: 11px; line-height: 1.3;
}

/* Barra superior (mismo degradado rojo del panel) */
.mb-top {
  height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: linear-gradient(90deg, #e2401d 0%, #a3240e 45%, #3a0d07 100%); color: #fff;
}
.mb-top img { width: 22px; height: 22px; }
.mb-top .menu { font-size: 14px; opacity: .9; }
.mb-top strong { flex: 1; text-align: center; font-size: 12px; letter-spacing: .04em; }
.mb-top .icons { display: flex; gap: 12px; font-size: 11px; opacity: .9; }
.mb-top .bell { position: relative; }
.mb-top .bell b { position: absolute; top: -6px; right: -7px; min-width: 13px; height: 13px; border-radius: 7px; background: #fff; color: #c62d12; font-size: 8px; line-height: 13px; text-align: center; }

.mb-body { display: grid; grid-template-columns: 118px 1fr; }

/* Menú lateral */
.mb-side { background: #fff; border-right: 1px solid #e3e5e8; padding-bottom: 10px; }
.mb-user { text-align: center; padding: 12px 6px 10px; background: linear-gradient(135deg, #f1f1f1, #e2e2e2); border-bottom: 1px solid #e3e5e8; }
.mb-user img { width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.mb-user span { display: block; font-size: 9px; color: #555; }
.mb-user b { display: block; font-size: 9px; color: #333; margin-top: 2px; }
.mb-side ul { list-style: none; margin: 6px 0 0; padding: 0; }
.mb-side li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #444; font-size: 10px; }
.mb-side li i { width: 12px; text-align: center; font-size: 9px; color: #666; }
.mb-side li.on { color: #d93a1a; border-left: 3px solid #d93a1a; padding-left: 7px; background: #fff5f2; }
.mb-side li.on i { color: #d93a1a; }

/* Mapa con la ruta */
.mb-map { position: relative; aspect-ratio: 630 / 524; background: #f8f8f8; overflow: hidden; }
.mb-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mb-bus { offset-path: path("M368 524 L420 494 L468 467 L485 463 L498 456 L492 440 L485 425 L472 402 L460 382 L452 378 L450 365 L460 350 L495 315 L520 295 L543 275 L545 265 L538 250 L528 230 L523 215 L527 197 L518 190 L505 187 L488 190 L460 203 L420 222 L380 240 L340 258 L320 267 L295 272 L275 270 L264 272 L266 285 L270 300 L272 320 L267 338 L260 355 L255 372 L249 386 L246 372 L250 355 L257 335 L260 315 L255 302 L244 293 L240 282 L244 271 L225 276 L203 283 L170 288 L134 290 L128 260 L120 215 L112 160 L105 115 L100 92"); offset-rotate: 0deg; animation: mb-drive 22s linear infinite; }
@keyframes mb-drive {
  0% { offset-distance: 0%; opacity: 0; }
  3% { opacity: 1; }
  92% { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.mb-bus .pulse { fill: rgba(255,170,0,.35); transform-box: fill-box; transform-origin: center; animation: mb-pulse 1.6s ease-out infinite; }
@keyframes mb-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.mb-live {
  position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px;
  background: #fff; color: #222; border-radius: 999px; padding: 5px 10px 5px 8px;
  font: 600 10px/1 var(--f-body); box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.mb-live i { width: 8px; height: 8px; border-radius: 50%; background: #e2401d; box-shadow: 0 0 0 0 rgba(226,64,29,.6); animation: mb-live 1.6s infinite; }
@keyframes mb-live { 70% { box-shadow: 0 0 0 7px rgba(226,64,29,0); } 100% { box-shadow: 0 0 0 0 rgba(226,64,29,0); } }
.mb-live small { font-weight: 400; color: #666; }
.mb-attr { position: absolute; right: 6px; bottom: 4px; font-size: 8px; color: #5f6368; background: rgba(255,255,255,.75); padding: 1px 4px; border-radius: 3px; }

@media (max-width: 520px) {
  .mb-body { grid-template-columns: 1fr; }
  .mb-side { display: none; }
  .mb-top .icons { display: none; }
}
