* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "Segoe UI", Inter, Roboto, sans-serif; color: #0F172A; background: #0E0B2B; }
[hidden] { display: none !important; }
.marca { font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.marca b { background: linear-gradient(90deg, #8B5CF6, #D946EF, #38BDF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
#entrada { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 30% 20%, #2a1f6b, #0E0B2B 70%); }
#formEntrada { width: 100%; max-width: 340px; background: #fff; border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
#formEntrada .marca { font-size: 26px; text-align: center; margin-bottom: 6px; }
input, button { font: inherit; }
input[type=text], input[type=password], input:not([type]), input[type=date] { padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 12px; font-size: 16px; width: 100%; }
button { border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 600; cursor: pointer; background: linear-gradient(90deg, #8B5CF6, #38BDF8); color: #fff; font-size: 15px; }
button.suave { background: #EEF2FF; color: #3730A3; }
.error { color: #B91C1C; font-size: 14px; min-height: 18px; text-align: center; }
#app { position: fixed; inset: 0; }
#mapa { position: absolute; inset: 0; }
header { position: absolute; z-index: 500; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
header .marca { background: rgba(255,255,255,.92); padding: 8px 14px; border-radius: 14px; pointer-events: auto; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
#btnPanel { width: 44px; height: 44px; padding: 0; pointer-events: auto; font-size: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
#panel { position: absolute; z-index: 600; top: 0; bottom: 0; right: 0; width: min(380px, 92vw); background: #fff; padding: max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow: auto; transform: translateX(100%); transition: transform .2s; box-shadow: -4px 0 20px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 12px; }
#panel.abierto { transform: none; }
.panelCab { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.panelCab button { padding: 6px 10px; background: #EEF2FF; color: #3730A3; }
.veh { border: 1px solid #E2E8F0; border-radius: 14px; padding: 11px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.veh.sel { border-color: #8B5CF6; background: #F5F3FF; }
.veh .nom { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.veh .det { font-size: 13px; color: #475569; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #94A3B8; }
.punto.mov { background: #16A34A; } .punto.par { background: #F59E0B; } .punto.off { background: #94A3B8; }
.veh .acc { display: flex; gap: 8px; margin-top: 6px; }
.veh .acc button { padding: 6px 10px; font-size: 13px; }
.ruta { border-top: 1px solid #E2E8F0; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.ruta label { flex: 1 1 100%; font-size: 13px; color: #475569; }
.ruta label input { margin-top: 4px; }
#infoRuta { flex: 1 1 100%; font-size: 13px; color: #334155; }
.pie { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
#msg { font-size: 13px; color: #334155; min-height: 16px; }
.etq { background: rgba(14,11,43,.88); color: #fff; border: 0; border-radius: 8px; padding: 3px 7px; font-weight: 600; box-shadow: none; }
.etq:before { display: none; }
.mk { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 4px solid #F59E0B; display: flex; align-items: center; justify-content: center; font-size: 21px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.veh .nom .ic { font-size: 20px; }
.iconos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.iconos button { padding: 6px 9px; font-size: 20px; line-height: 1; }
.iconos button.on { outline: 2px solid #8B5CF6; }
