:root {
  --fondo: #F2F8F7; --tarjeta: #fff; --texto: #1B2A30; --suave: #5E6E74; --linea: #DDE3E6;
  --prim: #005B58; --prim-2: #006A67; --claro: #E3F1EF; --ambar: #B57502; --verde: #2E7D4F; --rojo: #C32D33;
  --radio: 14px; --sombra: 0 1px 3px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto); font-size: 16px; line-height: 1.4; }
h1, h2, h3 { margin: 0 0 .6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
a { color: var(--prim-2); }
small { color: var(--suave); }
[hidden] { display: none !important; }
.cargando { padding: 3rem 1rem; text-align: center; color: var(--suave); }

.barra { background: var(--prim); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 10; }
.marca-mini { display: flex; align-items: center; gap: .55rem; }
.marca-mini img { width: 38px; height: 38px; background: #fff; border-radius: 10px; padding: 2px; }
.marca-mini small { display: block; color: #CFE7E4; font-size: .8rem; }
.btn.link.blanco { color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.tarjeta { background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1rem; margin-bottom: 1rem; }

/* Portada */
.portada { text-align: center; padding: 1.5rem 0 .5rem; }
.portada img { width: 150px; height: 150px; }
.portada h1 { color: var(--prim); font-size: 1.6rem; margin: .2rem 0 0; }
.portada .sub { color: var(--rojo); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 1.05rem; margin: .2rem 0 0; }
.acceso { max-width: 420px; margin: 0 auto; }

label { display: block; font-weight: 600; font-size: .92rem; margin: .8rem 0 .25rem; }
input, select, textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--linea); border-radius: 10px; background: #fff; color: var(--texto); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--prim-2); border-color: transparent; }
textarea { min-height: 70px; resize: vertical; }
.ayuda { color: var(--suave); font-size: .86rem; margin: .3rem 0; }
.error { background: #FDECEC; color: var(--rojo); border-radius: 10px; padding: .6rem .8rem; margin-top: .8rem; font-weight: 600; }
.ok { background: #E7F5EC; color: var(--verde); border-radius: 10px; padding: .6rem .8rem; margin-top: .8rem; font-weight: 600; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; width: 100%; padding: .8rem 1rem; margin-top: 1rem; border: 0; border-radius: 12px; background: var(--prim); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.sec { background: var(--claro); color: var(--prim); }
.btn.rojo { background: var(--rojo); }
.btn.wa { background: #1FA855; }
.btn.chico { width: auto; padding: .45rem .75rem; margin: 0; font-size: .88rem; border-radius: 9px; }
.btn.link { background: none; color: var(--prim-2); width: auto; padding: .3rem .4rem; margin: 0; font-weight: 600; }
.fila { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.fila > * { flex: 1 1 auto; }

/* Tipos de unidad */
.unidades { display: grid; gap: .6rem; margin-top: .4rem; }
.unidad { display: flex; align-items: center; gap: .8rem; border: 2px solid var(--linea); border-radius: 12px; padding: .6rem .8rem; }
.unidad.con { border-color: var(--prim-2); background: var(--claro); }
.unidad .ico { font-size: 1.6rem; width: 2.2rem; text-align: center; }
.unidad .info { flex: 1; }
.unidad .info b { display: block; }
.unidad .info small { font-size: .8rem; }
.contador { display: flex; align-items: center; gap: .3rem; }
.contador button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--prim); color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.contador input { width: 52px; text-align: center; padding: .45rem .2rem; font-weight: 700; }

.opciones { display: grid; gap: .5rem; margin-top: .4rem; }
.opcion { display: flex; gap: .6rem; align-items: center; border: 2px solid var(--linea); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; font-weight: 600; margin: 0; }
.opcion input { width: auto; margin: 0; }
.opcion:has(input:checked) { border-color: var(--prim-2); background: var(--claro); }

/* Estado */
.estado { display: flex; gap: .8rem; align-items: center; }
.estado .grande { font-size: 2rem; }
.estado.asignado { background: #E7F5EC; border: 2px solid #9ED3B2; }
.estado.registrado { background: #FFF6E5; border: 2px solid #F0CF8A; }
.etiqueta { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.etiqueta.pendiente { background: #ECEFF1; color: #546E7A; }
.etiqueta.registrado { background: #FFF1D6; color: var(--ambar); }
.etiqueta.asignado { background: #DDF1E4; color: var(--verde); }
.etiqueta.inactivo { background: #FDECEC; color: var(--rojo); }

/* Admin */
.pestanas { display: flex; gap: .3rem; background: #fff; border-radius: 12px; padding: .3rem; box-shadow: var(--sombra); margin-bottom: 1rem; }
.pestanas button { flex: 1; border: 0; background: none; padding: .6rem; border-radius: 9px; font: inherit; font-weight: 600; color: var(--suave); cursor: pointer; }
.pestanas button.activo { background: var(--claro); color: var(--prim); }
.cuentas { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cuentas button { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .88rem; cursor: pointer; }
.cuentas button.activo { background: var(--prim); color: #fff; border-color: var(--prim); }
.prov h3 { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; margin-bottom: .2rem; }
.datos { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .92rem; margin: .5rem 0; }
.datos dt { color: var(--suave); }
.datos dd { margin: 0; font-weight: 600; }
.acciones { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; border-top: 1px solid var(--linea); padding-top: .6rem; }
.asignar { display: flex; gap: .4rem; margin-top: .5rem; }
.asignar select { flex: 1; }
.credencial { background: var(--claro); border-radius: 12px; padding: .8rem 1rem; font-size: 1.05rem; }
.credencial b { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; }
.est { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.est:last-child { border-bottom: 0; }
.vacio { text-align: center; color: var(--suave); padding: 1.5rem; }

/* Documentos */
h2.sep { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.docs { display: grid; gap: .5rem; }
.doc { display: flex; align-items: center; gap: .6rem; border: 2px dashed var(--linea); border-radius: 12px; padding: .6rem .8rem; }
.doc.listo { border-style: solid; border-color: #9ED3B2; background: #F2FAF5; }
.doc-info { flex: 1; min-width: 0; }
.doc-info b { display: block; font-size: .95rem; }
.doc-info small { display: block; }
.btn.subir { cursor: pointer; white-space: nowrap; }
.opciones.dos { grid-template-columns: 1fr 1fr; }
.estado.rechazado { background: #FDECEC; border: 2px solid #F2B3B5; }
.etiqueta.revision { background: #FFF1D6; color: var(--ambar); }
.etiqueta.aprobado { background: #DDF1E4; color: var(--verde); }
.etiqueta.rechazado { background: #FDECEC; color: var(--rojo); }
.burbuja { background: var(--rojo); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.chip-doc { background: var(--claro); color: var(--prim); border-radius: 999px; padding: .25rem .65rem; font-size: .84rem; font-weight: 600; text-decoration: none; }
.chip-doc.falta { background: #FDECEC; color: var(--rojo); }
.aprobar { background: #FFF8EA; border-radius: 12px; padding: .2rem .8rem .8rem; margin-top: .6rem; }
.unidad-reg { border: 1px solid var(--linea); border-radius: 12px; padding: .6rem .8rem; margin-top: .5rem; }
.unidad-reg .fila { margin-top: .3rem; }
.links { font-size: .88rem; margin-top: .3rem; }

/* Rutas y ganancias */
.totales { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.total { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: .7rem .8rem; }
.total small { display: block; font-size: .78rem; }
.total b { font-size: 1.2rem; }
.total.ambar b { color: var(--ambar); }
.total.verde b { color: var(--verde); }
.renglon { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--linea); }
.renglon:last-child { border-bottom: 0; }
.renglon .der { text-align: right; white-space: nowrap; }
.proximamente { text-align: center; }
.proximamente .grande { font-size: 2.5rem; }
.proximamente ul { text-align: left; display: inline-block; margin: .3rem 0 0; padding-left: 1.2rem; }
.proximamente li { margin: .3rem 0; }
.pestanas button { font-size: .9rem; padding: .55rem .3rem; }
@media (max-width: 420px) { .pestanas button { font-size: .8rem; } .fila > div { flex-basis: 100%; } }

/* Google, contrato, firma, buscador y tarifas */
.boton-google { display: flex; justify-content: center; min-height: 44px; margin-top: .4rem; }
.contrato-texto { white-space: pre-wrap; font-family: Georgia, serif; font-size: .92rem; line-height: 1.5; max-height: 60vh; overflow-y: auto; border: 1px solid var(--linea); border-radius: 10px; padding: .8rem; background: #FCFDFD; }
.lienzo { width: 100%; height: 190px; border: 2px dashed var(--prim-2); border-radius: 12px; background: #fff; touch-action: none; display: block; }
.buscar { margin-bottom: .7rem; }
.resumen { font-size: .95rem; }
.tabla-tar { overflow-x: auto; }
.tabla-tar table { width: 100%; border-collapse: collapse; min-width: 420px; }
.tabla-tar th, .tabla-tar td { padding: .3rem; text-align: left; font-size: .88rem; }
.tabla-tar td input { padding: .45rem .5rem; }
.contrato-adm { margin-top: .8rem; background: var(--claro); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; }
details.tarjeta summary { cursor: pointer; }
.etiqueta + .etiqueta { margin-left: .25rem; }
.aviso { background: #FFF6E5; border-radius: 10px; padding: .5rem .7rem; color: #7A5200; }

/* Fecha de inicio, cámara y asistencia */
.inicio { display: flex; gap: .8rem; align-items: center; background: #E8F3FF; border: 2px solid #9CC7F2; }
.inicio .grande, .estado .grande { font-size: 2rem; }
.pestanas { flex-wrap: wrap; }
.pestanas button { flex: 1 1 30%; }
.camara { position: fixed; inset: 0; background: #000; z-index: 100; display: flex; flex-direction: column; }
.camara video { flex: 1; width: 100%; object-fit: cover; }
.camara.frontal video { transform: scaleX(-1); }
.cam-barra { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: .7rem 1rem; padding-top: max(.7rem, env(safe-area-inset-top)); }
.cam-ayuda { color: #fff; text-align: center; margin: .4rem; }
.cam-disparo { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: var(--rojo); margin: .6rem auto max(1.2rem, env(safe-area-inset-bottom)); cursor: pointer; }
.asis { display: flex; gap: .8rem; align-items: flex-start; }
.asis img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; background: #ddd; }
.por-confirmar { color: #8A5A00; }
.tabla-tar tr.grupo th { background: var(--claro); color: var(--prim); padding: .5rem .6rem; border-radius: 8px; font-size: .95rem; }
.tabla-tar td.con-iva { color: var(--suave); font-size: .85rem; white-space: nowrap; }
.tabla-tar tr.peak-menor td { background: #FFF6E5; }
.tabla-tar thead th { vertical-align: bottom; line-height: 1.2; }

/* Devoluciones */
.fotos-dev { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.fotos-dev img { width: 88px; height: 118px; object-fit: cover; border-radius: 10px; background: #ddd; }
.foto-mas { width: 88px; height: 118px; border: 2px dashed var(--prim-2); border-radius: 10px; background: var(--claro); color: var(--prim); font-size: 1.6rem; cursor: pointer; }
.foto-mas small { font-size: .75rem; }

/* IDs de paquete y escáner */
.id-captura { margin-top: .2rem; }
.quitar-id { border: 0; background: none; color: var(--rojo); font-weight: 700; cursor: pointer; padding: 0 0 0 .2rem; }
.visor-esc { position: relative; flex: 1; overflow: hidden; }
.visor-esc video { width: 100%; height: 100%; object-fit: cover; }
.visor-esc .mira { position: absolute; left: 10%; right: 10%; top: 35%; height: 30%; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 2000px rgba(0,0,0,.35); }
.id-encontrado { background: #FFF1A8; color: #000; padding: 0 .2rem; border-radius: 4px; }

/* Escáner: destello verde/naranja y lista a la izquierda */
.escaner .visor-esc { position: relative; }
.lista-esc { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; max-width: 230px; margin: 0; padding: .6rem .6rem .6rem 1.8rem; overflow-y: auto;
  background: rgba(0,0,0,.55); color: #fff; font: 600 .95rem ui-monospace, Consolas, monospace; z-index: 2; }
.lista-esc li { padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.15); word-break: break-all; }
.lista-esc li.marcado { color: #8CFFB0; }
.destello { position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: background .25s; }
.destello.ok { background: rgba(30,200,90,.55); }
.destello.repetido { background: rgba(255,150,0,.6); }
.esc-estado { font-weight: 700; font-size: 1.05rem; padding: .5rem; border-radius: 10px; margin: .4rem .8rem; }
.esc-estado.ok { background: #1E9E55; }
.esc-estado.repetido { background: #E08A00; }

/* Bienvenida */
.bienvenida { max-width: 640px; margin: 0 auto; }
.bv-portada { text-align: center; padding: 1.2rem .5rem .4rem; }
.bv-portada img { width: 96px; height: 96px; }
.bv-sub { color: var(--rojo); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin: .4rem 0 .2rem; }
.bv-portada h1 { color: var(--texto); font-size: 1.55rem; line-height: 1.25; margin: 0 0 .5rem; }
.bv-portada h1 span { color: var(--prim); }
.bv-intro { color: var(--suave); font-size: 1.02rem; margin: 0 auto 1rem; max-width: 30rem; }
.bv-tarjetas { display: grid; gap: .8rem; }
.bv-tarjeta { display: grid; grid-template-columns: 96px 1fr; gap: .2rem 1rem; align-items: center; margin: 0; }
.bv-tarjeta svg { grid-row: span 2; width: 96px; height: 64px; }
.bv-tarjeta h2 { font-size: 1.05rem; margin: 0; color: var(--prim); }
.bv-tarjeta p { margin: 0; color: var(--suave); font-size: .93rem; }
.bv-pasos { margin-top: .8rem; background: #FFF8EA; }
.bv-pasos h3 { margin-bottom: .3rem; }
.bv-pasos ol { margin: 0; padding-left: 1.2rem; }
.bv-pasos li { margin: .2rem 0; }
@media (max-width: 420px) { .bv-tarjeta { grid-template-columns: 1fr; text-align: center; } .bv-tarjeta svg { grid-row: auto; margin: 0 auto; } }
.bv-lema { margin: 0 0 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radio); background: var(--prim); color: #fff; text-align: center; box-shadow: var(--sombra); }
.bv-lema p { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.bv-lema b { font-weight: 700; }
.bv-lema span { display: inline-block; margin-top: .15rem; font-size: 1.5rem; font-weight: 800; color: #FFD7D9; }
.bv-lema small { display: block; margin-top: .5rem; color: #CFE7E4; font-size: .9rem; }

/* Lo que le falta al proveedor */
.faltan { margin: .5rem 0; background: #FFF6E5; border-radius: 10px; padding: .45rem .7rem; font-size: .92rem; }
.faltan summary { cursor: pointer; color: #7A5200; }
.faltan ul { margin: .4rem 0 .2rem; padding-left: 1.2rem; }

/* Ver el panel de un proveedor */
.banda-vista { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: #2D6CDF; color: #fff; padding: .55rem 1rem; font-size: .95rem; }
.banda-vista .btn { background: #fff; color: #2D6CDF; }
.bloqueado { opacity: .45; pointer-events: none; }

.pago-fijo { margin-top: .6rem; }
.pago-fijo summary { cursor: pointer; color: var(--prim); font-weight: 600; }

/* Etapa del proveedor y mensaje de WhatsApp */
.etapa { margin: .5rem 0; padding: .55rem .75rem; border-radius: 10px; background: #EEF3F4; font-size: .93rem; }
.etapa-contrato { background: #FDECEC; border: 1px solid #F2B3B5; }
.etapa-registro, .etapa-correccion { background: #FFF6E5; }
.etapa-revision { background: #E8F3FF; }
.etapa-listo { background: #E7F5EC; }
.etapa .faltan { background: transparent; padding: 0; margin: .3rem 0 0; }
.msj-wa { margin-top: .35rem; }
.msj-wa summary { cursor: pointer; color: var(--prim); font-weight: 600; }
.msj-wa pre { white-space: pre-wrap; font-family: inherit; font-size: .9rem; background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: .6rem .7rem; margin: .4rem 0 0; }

/* Registro: elegir proveedor o equipo de gestión */
.opciones-tipo { display: grid; gap: .5rem; margin: .4rem 0 .6rem; }
.opciones-tipo .opcion { display: flex; gap: .6rem; align-items: flex-start; border: 2px solid #0001; border-radius: 12px; padding: .6rem .7rem; cursor: pointer; font-weight: 400; }
.opciones-tipo .opcion:has(input:checked) { border-color: var(--azul, #1565C0); background: #1565C010; }
.opciones-tipo input { margin-top: .25rem; width: auto; }
.aviso-espera { margin-top: .8rem; padding: .7rem .8rem; border-radius: 12px; background: #FFF1D6; color: #6b4a00; }

/* Seguimiento: mensaje enviado y sin actividad */
.enviado { margin: .45rem 0 0; font-size: .86rem; color: #1B5E20; }
.enviado.viejo { color: #607D8B; }
.sin-actividad { margin-top: .55rem; padding: .6rem .7rem; border-radius: 10px; background: #FFEBEE; color: #B71C1C; font-size: .9rem; }
.sin-actividad .btn { margin-top: .45rem; }

/* ======================= Nodos (agregado) ======================= */
.toast { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1B2A30; color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 300; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .5s, transform .5s; max-width: 92vw; text-align: center; }
.toast.verde { background: var(--verde); }
.toast.fuera { opacity: 0; transform: translateX(-50%) translateY(20px); }
.rojo { color: var(--rojo); } .ambar { color: var(--ambar); } .rojo-txt { color: var(--rojo) !important; }
.centro { text-align: center; }
.btn.verde { background: var(--verde); }
.btn.grande { font-size: 1.1rem; padding: 1rem; }
.fila > .btn { margin-top: .6rem; }
.gps-vivo { background: #FFF6E5; border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; margin: .4rem 0; }
.gps-vivo.bien { background: #E7F5EC; color: #1d5a37; }
.mapa-mini { height: 220px; border-radius: 12px; margin: .6rem 0; z-index: 0; }
.mapa-ruta { height: 260px; border-radius: 14px; margin-bottom: 1rem; z-index: 0; box-shadow: var(--sombra); }
.mapa-grande { height: calc(100vh - 230px); min-height: 380px; border-radius: 14px; z-index: 0; box-shadow: var(--sombra); }
body.con-mapa main { max-width: 1400px; }
.pin span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 800; }
.pin span { line-height: 1; }
.pin span b { transform: rotate(45deg); display: block; }
.pin.chofer span b { transform: none; }
.pin { background: none; border: 0; }
.pin.nuevo span { animation: caer .9s ease-out, latir 1.4s ease-in-out .9s 4; }
.pin.chofer span { border-radius: 50%; transform: none; width: 30px; height: 30px; font-size: 15px; }
@keyframes caer { 0% { transform: rotate(-45deg) translate(0, -60px); opacity: 0; } 70% { opacity: 1; } 100% { transform: rotate(-45deg); } }
@keyframes latir { 50% { box-shadow: 0 0 0 12px rgba(46,125,79,.25); } }
.leyenda { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; margin-bottom: .6rem; align-items: center; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.vivo { color: var(--rojo); font-weight: 700; animation: parpadeo 2s infinite; }
@keyframes parpadeo { 50% { opacity: .45; } }
.renglon-btn { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.renglon-btn.plano { background: none; padding: .6rem 0; border-bottom: 1px solid var(--linea); border-radius: 0; }
.renglon-btn.siguiente { outline: 3px solid var(--prim-2); }
.renglon-btn .grande { font-size: 1.8rem; }
.renglon-btn .flecha { font-size: 1.6rem; color: var(--suave); }
.num-parada { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rojo); color: #fff; font-weight: 800; }
.num-parada.hecha { background: var(--verde); }
.parada-cabeza { display: flex; gap: .8rem; align-items: flex-start; }
.navegar { margin: -.4rem 0 1rem; }
.navegar .btn { flex: 1 1 30%; }
.numero-grande { font-size: 3.4rem; font-weight: 800; color: var(--prim); line-height: 1.05; }
.paso-activo { border: 3px solid var(--prim-2); }
.paso-num { display: inline-block; background: var(--prim); color: #fff; border-radius: 999px; padding: .2rem .8rem; font-weight: 700; font-size: .85rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .03em; }
.comparar { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.comparar .signo { font-size: 2.6rem; font-weight: 800; color: var(--suave); }
.match { background: #E7F5EC; border: 3px solid #9ED3B2; }
.no-match { background: #FDECEC; border: 3px solid #F2B3B5; }
.no-match .numero-grande { color: var(--rojo); }
.diferencia { margin-top: 1rem; text-align: left; }
.diferencia summary { cursor: pointer; font-weight: 700; color: var(--rojo); }
.qr { background: #fff; padding: .6rem; border-radius: 12px; max-width: 320px; margin: .6rem auto 0; }
.qr svg { width: 100%; height: auto; display: block; }
.resumen-int { background: #F2FAF5; }
.miniatura { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.fotos-exp { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.foto-exp { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: inherit; }
.foto-exp img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: #ddd; }
.foto-exp.falta { align-items: center; justify-content: center; aspect-ratio: 3/4; border: 2px dashed #F2B3B5; border-radius: 10px; background: #FDECEC; }
.foto-exp.falta span { font-size: 1.6rem; }
.firma-img { background: #fff; border: 1px solid var(--linea); object-fit: contain !important; width: 160px !important; }
.tarjeta .datos { grid-template-columns: 1fr 1fr; gap: .7rem; }
.datos > div small { display: block; }
.datos > div b { word-break: break-word; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal .tarjeta { max-width: 420px; width: 100%; }
.punto-estado { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; }
.nodo-cabeza { display: flex; gap: .9rem; align-items: center; }
.codigo-nodo { background: var(--prim); color: #fff; font-weight: 800; border-radius: 12px; padding: .7rem .8rem; font-size: 1.1rem; }
.resumen-ruta { display: flex; justify-content: space-between; align-items: center; }
.progreso { text-align: center; } .progreso b { display: block; font-size: 1.5rem; color: var(--prim); }
.parada-nueva { display: flex; gap: .6rem; align-items: flex-start; border-bottom: 1px solid var(--linea); padding: .6rem 0; }
.parada-nueva .num-parada { margin-top: .4rem; }
.filtros { margin-bottom: .6rem; } .filtros .btn { flex: 0 0 auto; }
.acciones { flex-direction: column; } .acciones .btn { margin-top: .2rem; }
.acciones details summary { list-style: none; }
.leaflet-popup-content { font-size: .9rem; }
