/* ═══════════════════════════════════════════════════════════════════
   Vistas (home, rutas, jornada, chat, mapa)
═══════════════════════════════════════════════════════════════════ */

/* ─── HOME ─── */
.h-screen { display: flex; flex-direction: column; gap: 14px; }

.h-hero {
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.h-hero-loading, .h-hero-error {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  padding: 28px;
}
.h-hero-inactive {
  background: linear-gradient(150deg, rgba(0, 212, 255, 0.16), rgba(0, 99, 188, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.h-hero-active {
  background: linear-gradient(150deg, rgba(0, 255, 136, 0.18), rgba(0, 153, 102, 0.04));
  border: 1px solid rgba(0, 255, 136, 0.45);
}
.h-hero-state {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.h-hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
  animation: hp 1.8s ease-in-out infinite;
}
@keyframes hp { 0%,100%{opacity:1}50%{opacity:0.4} }
.h-hero-timer {
  font-family: 'Orbitron', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 4px;
  margin: 4px 0;
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.5);
  font-variant-numeric: tabular-nums;
}
.h-hero-sub { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.h-hero-cta {
  margin-top: 8px;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.h-hero-cta.start { background: linear-gradient(135deg, #00d4ff, #0099cc); color: #060912; box-shadow: 0 8px 24px rgba(0, 212, 255, 0.45); }
.h-hero-cta.end { background: rgba(255, 51, 85, 0.14); border: 1.5px solid rgba(255, 51, 85, 0.5); color: #ff5577; }

.h-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.h-action {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.h-action:active { transform: scale(0.97); }
.h-action-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h-action-icon svg { width: 20px; height: 20px; }
.h-action-label { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.6px; }

.h-orders { padding-top: 6px; }
.h-orders-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 10px;
}
.h-orders-title { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 1.6px; color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.h-orders-pill { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; background: rgba(0, 212, 255, 0.12); color: #00d4ff; padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(0, 212, 255, 0.25); }
.h-orders-empty { text-align: center; padding: 28px 12px; color: rgba(255,255,255,0.4); font-size: 13px; background: rgba(255,255,255,0.025); border-radius: 12px; border: 1px dashed rgba(255,255,255,0.06); }
.h-empty-icon { font-size: 32px; margin-bottom: 6px; opacity: 0.7; }
.h-osec { margin-bottom: 16px; }
.h-osec-title { font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 1.5px; color: var(--c, #888); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.h-osec-title span { background: color-mix(in oklab, var(--c,#888) 14%, transparent); color: var(--c, #888); padding: 1px 8px; border-radius: 100px; font-size: 10px; }
.h-ocard { width: 100%; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-family: inherit; text-align: left; color: #fff; }
.h-ocard-time { font-family: 'Orbitron', monospace; font-size: 13px; font-weight: 700; color: #00d4ff; width: 50px; flex-shrink: 0; }
.h-ocard-body { flex: 1; min-width: 0; }
.h-ocard-client { font-size: 14px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-ocard-addr { font-size: 12px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-ocard-arrow { font-size: 22px; color: rgba(255,255,255,0.3); }

/* ─── RUTAS LIST ─── */
.rl-screen { display: flex; flex-direction: column; gap: 12px; }
.rl-empty { padding: 60px 20px; text-align: center; color: rgba(255,255,255,0.45); }
.rl-empty-icon { font-size: 48px; margin-bottom: 14px; }
.rl-empty-sub { font-size: 12px; opacity: 0.7; margin-top: 6px; }
.rl-error { padding: 16px; background: rgba(255,51,85,0.08); border: 1px solid rgba(255,51,85,0.3); border-radius: 10px; color: #ff5577; font-size: 13px; }
.rl-card { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(0, 212, 255, 0.12); border-radius: 14px; padding: 14px; }
.rl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rl-name { font-family: 'Orbitron', sans-serif; font-size: 15px; font-weight: 700; }
.rl-vehicle { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.rl-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 100px; flex-shrink: 0; }
.rl-badge.ok { background: rgba(0,255,136,0.12); color: #00ff88; border: 1px solid rgba(0,255,136,0.3); }
.rl-badge.err { background: rgba(255,51,85,0.12); color: #ff5577; border: 1px solid rgba(255,51,85,0.3); }
.rl-badge.pend { background: rgba(255,204,0,0.12); color: #ffcc00; border: 1px solid rgba(255,204,0,0.3); }
.rl-cps { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: rgba(0,0,0,0.25); border-radius: 10px; margin-bottom: 10px; }
.rl-cp { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.7); }
.rl-cp.done { color: #00ff88; }
.rl-cp-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,212,255,0.15); color: #00d4ff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rl-cp.done .rl-cp-num { background: rgba(0,255,136,0.2); color: #00ff88; }
.rl-cp-name { flex: 1; }
.rl-cp-time { font-family: 'Space Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.4); }
.rl-sched { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.rl-actions { display: flex; gap: 8px; }
.rl-btn { flex: 1; padding: 14px; border-radius: 12px; border: 1px solid; background: transparent; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rl-btn:active { transform: scale(0.97); }
.rl-btn.primary { background: linear-gradient(135deg, rgba(0,212,255,0.22), rgba(0,212,255,0.06)); border-color: rgba(0,212,255,0.5); color: #00d4ff; }
.rl-btn.accept { background: rgba(0,255,136,0.1); border-color: rgba(0,255,136,0.4); color: #00ff88; }
.rl-btn.reject { background: rgba(255,51,85,0.08); border-color: rgba(255,51,85,0.3); color: #ff5577; }

/* ─── JORNADA ─── */
.sh-screen { display: flex; flex-direction: column; }
.sh-loading { padding: 60px 20px; text-align: center; color: rgba(255,255,255,0.4); }
.sh-error { padding: 16px; background: rgba(255,51,85,0.08); border: 1px solid rgba(255,51,85,0.3); border-radius: 10px; color: #ff5577; }
.sh-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(0,212,255,0.18); border-radius: 18px; padding: 32px 22px; text-align: center; }
.sh-card-active { border-color: rgba(0,255,136,0.45); background: linear-gradient(160deg, rgba(0,255,136,0.06), rgba(0,255,136,0.01)); }
.sh-icon { font-size: 38px; margin-bottom: 8px; }
.sh-state { font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 1.5px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sh-dot { width: 9px; height: 9px; border-radius: 50%; background: #00ff88; box-shadow: 0 0 12px rgba(0,255,136,0.8); animation: hp 1.8s ease-in-out infinite; }
.sh-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }
.sh-timer { font-family: 'Orbitron', monospace; font-size: 42px; font-weight: 700; color: #00ff88; letter-spacing: 5px; margin: 18px 0; text-shadow: 0 0 24px rgba(0,255,136,0.45); font-variant-numeric: tabular-nums; }

/* ─── CHAT ─── */
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.4); }
.ch-error { padding: 16px; background: rgba(255,51,85,0.08); border: 1px solid rgba(255,51,85,0.3); border-radius: 10px; color: #ff5577; }
.ch-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.ch-msg.mine { background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(0,212,255,0.08)); border: 1px solid rgba(0,212,255,0.35); margin-left: auto; border-bottom-right-radius: 4px; }
.ch-msg.other { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-bottom-left-radius: 4px; }
.ch-msg-time { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; text-align: right; }
.ch-composer { display: flex; gap: 8px; align-items: stretch; }
.ch-input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: #fff; font-family: inherit; font-size: 14px; resize: none; min-height: 48px; }
.ch-send { width: 60px; background: linear-gradient(135deg, #00d4ff, #0099cc); border: none; color: #fff; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ─── MAPA standalone ─── */
.mp-map { width: 100%; height: 100%; background: #0a0e1a; }
.mp-error { padding: 24px; color: #ff5577; text-align: center; }
