/* Motocorp · Sistema STA · estilos del módulo Taller
   Mobile-first. Botones grandes, un color por estado, poco texto. */
:root {
  --naranja: #F26522; --naranja-osc: #D4520F; --naranja-suave: #FDE9DE;
  --carbon: #1B1B1F; --carbon-2: #2A2A30; --fondo: #F5F4F1; --blanco: #FFFFFF;
  --tinta: #1B1B1F; --tinta-2: #55555E; --tinta-3: #8A8A94; --linea: #E4E2DC;
  --verde: #1E9E5A; --verde-suave: #DFF4E8; --ambar: #D99A00; --ambar-suave: #FFF3CC;
  --rojo: #D6382E; --rojo-suave: #FBE3E1; --azul: #2563EB; --azul-suave: #DFE8FD;
  --morado: #7C3AED; --morado-suave: #EDE4FD; --gris: #6B6B75; --gris-suave: #ECEBE7;
  --radio: 16px; --radio-s: 10px; --sombra: 0 2px 10px rgba(27,27,31,.08);
  --nav-h: 66px; --top-h: 60px; --side-w: 240px;
  --fuente: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'SF Pro Text', Roboto, 'Helvetica Neue', Arial, sans-serif; --fuente-c: var(--fuente);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 17px; line-height: 1.35; color: var(--tinta); background: var(--fondo); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--azul); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--fuente-c); font-weight: 700; line-height: 1.1; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
p { margin: 0; }
.oculto { display: none !important; }
.mudo { color: var(--tinta-2); } .mini { font-size: 14px; color: var(--tinta-3); }
.centro { text-align: center; }
.fila { display: flex; align-items: center; gap: 10px; }
.fila.entre { justify-content: space-between; }
.crece { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
svg.i { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; }
.i-s { width: 18px !important; height: 18px !important; } .i-l { width: 30px !important; height: 30px !important; } .i-xl { width: 44px !important; height: 44px !important; }

/* ---------- estructura ---------- */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: var(--carbon); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.topbar .logo { font-family: var(--fuente-c); font-weight: 800; font-size: 22px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.topbar .logo b { color: var(--naranja); }
.topbar .titulo { font-family: var(--fuente-c); font-size: 22px; font-weight: 700; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .btn-icono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.topbar .btn-icono:active { background: var(--carbon-2); }
.topbar .btn-icono { position: relative; flex: 0 0 auto; }
.topbar .btn-icono .pastilla { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.topbar .titulo { min-width: 0; }
main { flex: 1; padding: 16px 16px calc(var(--nav-h) + 24px); max-width: 720px; width: 100%; margin: 0 auto; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h); background: #fff; border-top: 1px solid var(--linea); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--tinta-3); position: relative; }
.bottomnav a.activo, .bottomnav button.activo { color: var(--naranja); }
.bottomnav button .punto { position: absolute; top: 8px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--rojo); }
.bottomnav a .pastilla, .bottomnav button .pastilla { position: absolute; top: 6px; right: calc(50% - 26px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 12px; display: grid; place-items: center; }
.sidebar { display: none; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 18px; background: var(--gris-suave); color: var(--tinta); transition: transform .08s, filter .15s; user-select: none; }
.btn:active { transform: scale(.98); filter: brightness(.95); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.bloque { display: flex; width: 100%; }
.btn.xl { min-height: 72px; font-size: 22px; border-radius: 18px; }
.btn.naranja { background: var(--naranja); color: #fff; }
.btn.verde { background: var(--verde); color: #fff; }
.btn.azul { background: var(--azul); color: #fff; }
.btn.rojo { background: var(--rojo); color: #fff; }
.btn.ambar { background: var(--ambar); color: #fff; }
.btn.carbon { background: var(--carbon); color: #fff; }
.btn.borde { background: #fff; border: 2px solid var(--linea); }
.btn.suave-rojo { background: var(--rojo-suave); color: var(--rojo); }
.btn.suave-azul { background: var(--azul-suave); color: var(--azul); }
.btn.chico { min-height: 44px; font-size: 16px; padding: 0 14px; border-radius: 12px; }
.btn.texto { background: none; color: var(--azul); min-height: 44px; font-size: 16px; }
.btn-icono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }

/* ---------- tarjetas ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; margin-bottom: 14px; }
.tarjeta.sin-pad { padding: 0; overflow: hidden; }
.seccion-t { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.seccion-t h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); }

/* contador de tareas */
.contadores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contador { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radio); background: #fff; box-shadow: var(--sombra); border-left: 6px solid var(--gris); min-height: 84px; text-align: left; width: 100%; }
.contador .n { font-family: var(--fuente-c); font-size: 40px; font-weight: 800; line-height: 1; min-width: 44px; }
.contador .t { font-weight: 700; font-size: 16px; line-height: 1.15; }
.contador .s { font-size: 13px; color: var(--tinta-3); }
.contador.azul { border-color: var(--azul); } .contador.azul .n { color: var(--azul); }
.contador.ambar { border-color: var(--ambar); } .contador.ambar .n { color: var(--ambar); }
.contador.naranja { border-color: var(--naranja); } .contador.naranja .n { color: var(--naranja); }
.contador.rojo { border-color: var(--rojo); } .contador.rojo .n { color: var(--rojo); }
.contador.verde { border-color: var(--verde); } .contador.verde .n { color: var(--verde); }
.contador.morado { border-color: var(--morado); } .contador.morado .n { color: var(--morado); }
.contador.gris { border-color: var(--gris); } .contador.gris .n { color: var(--gris); }
.contador.cero { opacity: .55; }

/* aviso de envío nuevo */
.aviso { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radio); background: var(--azul-suave); color: #1E3A8A; margin-bottom: 14px; }
.aviso.ambar { background: var(--ambar-suave); color: #7A5600; }
.aviso.verde { background: var(--verde-suave); color: #0F5A33; }
.aviso.rojo { background: var(--rojo-suave); color: #8A1F18; }
.aviso .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.7); display: grid; place-items: center; flex: 0 0 auto; }
.aviso b { display: block; font-size: 17px; }

/* estados (chip): color + icono + palabra */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.chip svg.i { width: 15px; height: 15px; }
.e-EN_TRANSITO_A_TALLER { background: var(--azul-suave); color: var(--azul); }
.e-RECIBIDA_EN_TALLER { background: var(--ambar-suave); color: #8A6200; }
.e-EN_ARMADO { background: var(--naranja-suave); color: var(--naranja-osc); }
.e-OBSERVADA { background: var(--rojo-suave); color: var(--rojo); }
.e-ARMADA { background: var(--verde-suave); color: var(--verde); }
.e-EN_TRASLADO_A_TIENDA { background: var(--morado-suave); color: var(--morado); }
.e-EN_TIENDA { background: var(--verde-suave); color: #0F5A33; }
.e-VENDIDA { background: var(--gris-suave); color: var(--tinta-2); }
.e-DEVUELTA_A_TALLER { background: var(--rojo-suave); color: var(--rojo); }
.e-ACTIVACION_SOLICITADA { background: var(--ambar-suave); color: #8A6200; }
.e-ACTIVADA { background: var(--carbon); color: #fff; }
.chip.os-VALIDADA { background: var(--verde-suave); color: var(--verde); }
.chip.os-TERMINADA { background: var(--ambar-suave); color: #8A6200; }
.chip.os-EN_PROCESO { background: var(--naranja-suave); color: var(--naranja-osc); }
.chip.os-OBSERVADA { background: var(--rojo-suave); color: var(--rojo); }
.chip.os-PAGADO { background: var(--verde-suave); color: var(--verde); }
.chip.g-SOLICITADA { background: var(--ambar-suave); color: #8A6200; }
.chip.g-APROBADA { background: var(--azul-suave); color: var(--azul); }
.chip.g-EN_ATENCION { background: var(--naranja-suave); color: var(--naranja-osc); }
.chip.g-CERRADA { background: var(--verde-suave); color: var(--verde); }
.chip.g-RECHAZADA { background: var(--rojo-suave); color: var(--rojo); }

/* lista de motos */
.moto-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); margin-bottom: 10px; width: 100%; text-align: left; }
.moto-item .seis { font-family: var(--fuente-c); font-size: 28px; font-weight: 800; letter-spacing: .05em; min-width: 92px; line-height: 1; }
.moto-item .seis small { display: block; font-family: var(--fuente); font-size: 11px; letter-spacing: .1em; color: var(--tinta-3); font-weight: 600; margin-bottom: 3px; }
.moto-item .modelo { font-weight: 700; font-size: 16px; }
.moto-item .sub { font-size: 13px; color: var(--tinta-3); }
.moto-item .est { margin-top: 6px; }
.moto-item .flecha { color: var(--tinta-3); }
.moto-item.sel { outline: 3px solid var(--verde); }
.moto-item .check { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--linea); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.moto-item.sel .check { background: var(--verde); border-color: var(--verde); }

/* buscador */
.buscador { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--linea); border-radius: 14px; padding: 0 14px; height: 56px; margin-bottom: 12px; }
.buscador input { flex: 1; border: 0; outline: 0; background: none; font-size: 22px; font-family: var(--fuente-c); letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.buscador:focus-within { border-color: var(--naranja); }
.chips-filtro { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.chips-filtro::-webkit-scrollbar { display: none; }
.chips-filtro button { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 2px solid var(--linea); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.chips-filtro button.activo { background: var(--carbon); color: #fff; border-color: var(--carbon); }

/* ficha de moto */
.cabecera-moto { background: var(--carbon); color: #fff; border-radius: var(--radio); padding: 18px 16px; margin-bottom: 14px; position: relative; overflow: hidden; }
.cabecera-moto .seis { font-family: var(--fuente-c); font-size: 56px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.cabecera-moto .chasis { font-size: 14px; color: #B9B9C2; letter-spacing: .06em; }
.cabecera-moto .modelo { font-family: var(--fuente-c); font-size: 22px; margin-top: 8px; }
.cabecera-moto .chip { margin-top: 10px; font-size: 15px; padding: 7px 14px; }
.cabecera-moto .marca { position: absolute; right: 14px; top: 14px; font-family: var(--fuente-c); font-weight: 800; font-size: 14px; color: var(--naranja); letter-spacing: .1em; }
.accion-principal { margin-bottom: 14px; }
.accion-principal .expl { text-align: center; margin: 10px 0 0; color: var(--tinta-2); font-size: 15px; }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.datos div { font-size: 15px; } .datos b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-3); }

/* formularios de maestros / carga de guía */
.campos { display: grid; grid-template-columns: 1fr; gap: 0; }
.campos label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); margin: 12px 0 6px; }
.campos label:first-child { margin-top: 0; }
.campos input, .campos select { width: 100%; height: 52px; border: 2px solid var(--linea); border-radius: 14px; padding: 0 14px; font-size: 16px; outline: 0; background: #fff; }
.campos input:focus, .campos select:focus { border-color: var(--naranja); }
@media (min-width: 900px) { .campos { grid-template-columns: 1fr 1fr; column-gap: 14px; } }
.cronometro { font-family: var(--fuente-c); font-size: 44px; font-weight: 800; color: var(--naranja); text-align: center; line-height: 1; }

/* servicios de la moto */
.serv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.serv:last-child { border-bottom: 0; }
.serv .monto { font-family: var(--fuente-c); font-weight: 800; font-size: 22px; }

/* fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.foto { aspect-ratio: 4/3; border-radius: 12px; background: var(--gris-suave); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--tinta-2); overflow: hidden; position: relative; }
.foto img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.foto .et { position: absolute; bottom: 6px; left: 6px; background: rgba(27,27,31,.75); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }

/* slots de foto guiada */
.slot { position: relative; border: 3px dashed var(--linea); border-radius: var(--radio); background: #fff; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; padding: 14px; text-align: center; overflow: hidden; }
.slot.listo { border: 3px solid var(--verde); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .num { width: 36px; height: 36px; border-radius: 50%; background: var(--carbon); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--fuente-c); font-size: 20px; }
.slot.listo .num { background: var(--verde); }
.slot .sil { width: 120px; height: 80px; stroke: var(--tinta-3); }
.slot h3 { font-size: 22px; } .slot p { color: var(--tinta-2); font-size: 15px; }
.slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot .ok { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; z-index: 2; }
.slot .prueba { position: absolute; bottom: 10px; right: 10px; z-index: 2; }
html:not(.modo-pruebas) .prueba { display: none !important; }

/* historia (línea de tiempo) */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--linea); }
.tl li:last-child::before { display: none; }
.tl .pto { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gris-suave); color: var(--tinta-2); }
.tl .pto svg.i { width: 14px; height: 14px; }
.tl .q { font-weight: 700; font-size: 16px; } .tl .c { font-size: 13px; color: var(--tinta-3); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.burb { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 15px; background: #fff; border: 1px solid var(--linea); }
.burb.mio { align-self: flex-end; background: var(--verde-suave); border-color: transparent; border-bottom-right-radius: 4px; }
.burb.otro { align-self: flex-start; border-bottom-left-radius: 4px; }
.burb.sistema { align-self: center; background: var(--ambar-suave); border-color: transparent; font-size: 13px; text-align: center; }
.burb .quien { font-size: 12px; font-weight: 700; color: var(--tinta-2); display: block; margin-bottom: 2px; }
.burb .hora { font-size: 11px; color: var(--tinta-3); display: block; text-align: right; margin-top: 2px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; height: 52px; border: 2px solid var(--linea); border-radius: 14px; padding: 0 14px; font-size: 16px; outline: 0; background: #fff; min-width: 0; }
.chat-input input:focus { border-color: var(--naranja); }

/* problema */
.opciones-problema { display: grid; gap: 10px; margin-bottom: 14px; }
.opc { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; border-radius: var(--radio); background: #fff; border: 3px solid var(--linea); text-align: left; width: 100%; }
.opc .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rojo-suave); color: var(--rojo); flex: 0 0 auto; }
.opc b { font-size: 20px; display: block; } .opc span { font-size: 14px; color: var(--tinta-2); }
.opc.sel { border-color: var(--rojo); background: var(--rojo-suave); }
textarea.nota { width: 100%; min-height: 96px; border: 2px solid var(--linea); border-radius: 14px; padding: 12px; font-size: 17px; outline: 0; resize: vertical; background: #fff; }
textarea.nota:focus { border-color: var(--naranja); }

/* éxito */
.exito { text-align: center; padding: 40px 10px; }
.exito .circulo { width: 132px; height: 132px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.exito .circulo svg.i { width: 70px; height: 70px; stroke-width: 3; }
.exito h1 { font-size: 36px; margin-bottom: 8px; } .exito p { color: var(--tinta-2); font-size: 18px; margin-bottom: 26px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* login */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px; max-width: 420px; margin: 0 auto; }
.login .marca { text-align: center; margin-bottom: 30px; }
.login .marca .logo { font-family: var(--fuente-c); font-weight: 800; font-size: 40px; letter-spacing: .02em; }
.login .marca .logo b { color: var(--naranja); }
.login label { display: block; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); margin: 14px 0 6px; }
.login input { width: 100%; height: 58px; border: 2px solid var(--linea); border-radius: 14px; padding: 0 16px; font-size: 20px; outline: 0; background: #fff; }
.login input:focus { border-color: var(--naranja); }
.login .error { background: var(--rojo-suave); color: var(--rojo); padding: 10px 14px; border-radius: 12px; margin-top: 12px; font-weight: 600; }

/* cobrar */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; }
.kpi .v { font-family: var(--fuente-c); font-size: 30px; font-weight: 800; line-height: 1; }
.kpi .l { font-size: 13px; color: var(--tinta-2); font-weight: 600; margin-top: 4px; }
.kpi.verde .v { color: var(--verde); } .kpi.ambar .v { color: var(--ambar); } .kpi.naranja .v { color: var(--naranja); }
.tabs { display: flex; gap: 6px; background: var(--gris-suave); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 44px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--tinta-2); }
.tabs button.activo { background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.tabla-wrap { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.tabla th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); padding: 10px 10px; border-bottom: 2px solid var(--linea); white-space: nowrap; }
table.tabla td { padding: 10px; border-bottom: 1px solid var(--linea); vertical-align: top; white-space: nowrap; }
table.tabla tfoot td { font-weight: 800; font-family: var(--fuente-c); font-size: 18px; }
.serv-card { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.serv-card .seis { font-family: var(--fuente-c); font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.serv-card .monto { font-family: var(--fuente-c); font-size: 26px; font-weight: 800; text-align: right; }
.serv-card .l { font-size: 13px; color: var(--tinta-2); grid-column: 1 / -1; }

/* módulos */
.modulos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mod { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; position: relative; }
.mod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--naranja-suave); color: var(--naranja); }
.mod b { font-size: 16px; line-height: 1.15; } .mod span { font-size: 13px; color: var(--tinta-2); }
.mod.pronto { background: var(--gris-suave); box-shadow: none; }
.mod.pronto > :not(.tag) { filter: grayscale(1); opacity: .6; }
.mod.pronto .ic { background: #DAD9D4; color: var(--gris); }
.mod .tag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--gris); color: #fff; }
.mod .tag.listo { background: var(--verde); }
.mod.pronto .tag { background: var(--rojo); color: #fff; }
.info-fila { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gris-suave); } .info-fila:last-child { border-bottom: 0; }
.info-fila .ic { flex: 0 0 auto; color: var(--gris); } .info-fila small { display: block; color: var(--gris); font-size: 12px; }
.pend-t { color: var(--rojo); font-weight: 800; }
.lista-mas { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; margin-bottom: 14px; }
.lista-mas button, .lista-mas a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 16px; border-bottom: 1px solid var(--linea); font-weight: 600; font-size: 17px; text-align: left; color: var(--tinta); }
.lista-mas > :last-child { border-bottom: 0; }
.lista-mas .flecha { margin-left: auto; color: var(--tinta-3); }
.perfil { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.perfil .ava { width: 60px; height: 60px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; font-family: var(--fuente-c); font-weight: 800; font-size: 26px; }

/* hoja (sheet) y modal */
.velo { position: fixed; inset: 0; background: rgba(27,27,31,.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.hoja { background: var(--fondo); width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; animation: sube .22s cubic-bezier(.2,.9,.3,1); }
.hoja .asa { width: 44px; height: 5px; border-radius: 3px; background: #CFCDC6; margin: 0 auto 12px; }
.hoja h2 { margin-bottom: 12px; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); background: var(--carbon); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: sube .2s; display: flex; align-items: center; gap: 10px; }
.toast.error { background: var(--rojo); } .toast.ok { background: var(--verde); }

/* arquitectura */
.arq-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.arq-tabs button { flex: 0 0 auto; height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 700; background: #fff; border: 2px solid var(--linea); }
.arq-tabs button.activo { background: var(--carbon); color: #fff; border-color: var(--carbon); }
.flujo { display: flex; flex-direction: column; gap: 0; }
.paso { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding-bottom: 6px; position: relative; }
.paso::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: -6px; width: 3px; background: var(--linea); }
.paso:last-child::after { display: none; }
.paso .pto { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.paso .cuerpo { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--sombra); margin-bottom: 12px; }
.paso b { display: block; font-size: 16px; } .paso span { font-size: 14px; color: var(--tinta-2); }
.paso .quien { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--gris-suave); color: var(--tinta-2); margin-bottom: 4px; }
.paso.rama { margin-left: 22px; }
.paso.rama .cuerpo { border-left: 4px solid var(--rojo); }
.capa { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--sombra); margin-bottom: 8px; border-left: 6px solid var(--gris); }
.capa b { display: block; font-family: var(--fuente-c); font-size: 18px; } .capa span { font-size: 14px; color: var(--tinta-2); }
.capa.naranja { border-color: var(--naranja); } .capa.verde { border-color: var(--verde); } .capa.azul { border-color: var(--azul); } .capa.morado { border-color: var(--morado); } .capa.carbon { border-color: var(--carbon); }
.flecha-abajo { text-align: center; color: var(--tinta-3); margin: -2px 0 6px; }
.tanda { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.tanda .n { width: 36px; height: 36px; border-radius: 10px; background: var(--carbon); color: #fff; display: grid; place-items: center; font-family: var(--fuente-c); font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.tanda .n.listo { background: var(--verde); }
.tanda b { display: block; font-size: 15px; } .tanda span { font-size: 13px; color: var(--tinta-2); }

/* vacío */
.vacio { text-align: center; padding: 40px 20px; color: var(--tinta-3); }
.vacio svg.i { width: 56px; height: 56px; margin-bottom: 8px; stroke-width: 1.6; }
.vacio b { display: block; color: var(--tinta-2); font-size: 18px; }

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  body { font-size: 16px; }
  #app { flex-direction: row; }
  .sidebar { display: flex; flex-direction: column; width: var(--side-w); background: var(--carbon); color: #fff; position: sticky; top: 0; height: 100dvh; padding: 18px 12px; gap: 4px; flex: 0 0 auto; }
  .sidebar .logo { font-family: var(--fuente-c); font-weight: 800; font-size: 26px; padding: 4px 10px 18px; letter-spacing: .02em; }
  .sidebar .logo b { color: var(--naranja); }
  .sidebar .logo small { display: block; font-family: var(--fuente); font-size: 11px; font-weight: 600; color: #9A9AA6; letter-spacing: .1em; text-transform: uppercase; }
  .sidebar a, .sidebar button.nav { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 12px; color: #C9C9D2; font-weight: 600; font-size: 15px; width: 100%; text-align: left; }
  .sidebar a.activo { background: var(--naranja); color: #fff; }
  .sidebar a:hover:not(.activo), .sidebar button.nav:hover { background: var(--carbon-2); color: #fff; }
  .sidebar a .pastilla { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--rojo); color: #fff; font-size: 12px; display: grid; place-items: center; }
  .sidebar .sep { height: 1px; background: var(--carbon-2); margin: 10px 4px; }
  .sidebar .pie { margin-top: auto; padding: 10px 12px; font-size: 13px; color: #9A9AA6; }
  .sidebar .pie b { display: block; color: #fff; font-size: 14px; }
  .sidebar .grupo { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6E6E7A; padding: 12px 12px 4px; }
  .sidebar a.pronto { color: #6E6E7A; cursor: default; } .sidebar a.pronto:hover { background: none; color: #6E6E7A; }
  .sidebar a.pronto .tag { margin-left: auto; font-size: 9px; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; background: var(--rojo); color: #fff; font-weight: 800; }
  .bottomnav { display: none; }
  .contenido { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .topbar { background: #fff; color: var(--tinta); border-bottom: 1px solid var(--linea); padding: 0 28px; }
  .topbar .logo { display: none; } .topbar .titulo { text-align: left; font-size: 26px; }
  #t-salir { display: none; }
  .topbar .btn-icono { color: var(--tinta); } .topbar .btn-icono:active { background: var(--gris-suave); }
  main { padding: 24px 28px 40px; max-width: 1100px; margin: 0; }
  .contadores { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .modulos { grid-template-columns: repeat(3, 1fr); }
  .velo { align-items: center; }
  .hoja { width: min(720px, 92vw); border-radius: 22px; max-height: 88vh; }
  .hoja .asa { display: none; }
  .hoja.ancha { width: min(960px, 94vw); }
  .toast { bottom: 24px; }
  .dos-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
  .moto-item:hover, .contador:hover, .mod:not(.pronto):hover { box-shadow: 0 4px 16px rgba(27,27,31,.14); }
  .btn.xl { min-height: 64px; font-size: 20px; }
  .cabecera-moto .seis { font-size: 64px; }
  .moto-item .seis { font-size: 32px; min-width: 116px; }
}
/* ---------- una sola presentación: variantes y espaciado ---------- */
.accion { width: 100%; text-align: left; }
.btn.morado { background: var(--morado); color: #fff; }
.aviso.morado { background: var(--morado-suave); color: #4C1D95; }
.chat-input .enviar { background: var(--verde); color: #fff; width: 52px; height: 52px; flex: 0 0 auto; }
.derecha { text-align: right !important; }
.cifra { font-family: var(--fuente-c); font-size: 30px; font-weight: 800; line-height: 1; }
.t-verde { color: var(--verde); } .t-ambar { color: var(--ambar); }
.fila.inicio { align-items: flex-start; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mt-4 { margin-top: 4px !important; } .mt-8 { margin-top: 8px !important; } .mt-12 { margin-top: 12px !important; } .mt-16 { margin-top: 16px !important; } .mt-24 { margin-top: 24px !important; }
.mb-4 { margin-bottom: 4px !important; } .mb-8 { margin-bottom: 8px !important; } .mb-12 { margin-bottom: 12px !important; } .mb-16 { margin-bottom: 16px !important; } .mb-24 { margin-bottom: 24px !important; }
.m-0 { margin: 0 !important; }

.lista-mas .activo { color: var(--naranja); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Admin › Sistema: tablas plegables */
details.tarjeta > summary { cursor: pointer; list-style: none; font-size: 16px; }
details.tarjeta > summary::-webkit-details-marker { display: none; }
details.tarjeta > summary::before { content: '▸ '; color: var(--tinta-3); }
details.tarjeta[open] > summary::before { content: '▾ '; }
details.tarjeta .chip { margin: 2px 4px 2px 0; font-size: 12px; }
details.tarjeta code { word-break: break-word; }

/* ---------- admin › sistema › red animada ---------- */
.red-flujos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.red-flujos .chip { cursor: pointer; min-height: 36px; padding: 0 12px; }
.red-flujos .chip.activo { background: var(--carbon); color: #fff; }
.red-mapa { overflow: hidden; background: var(--blanco); }
.red-mapa svg { display: block; width: 100%; height: auto; }
.red-base path { fill: none; stroke: var(--linea); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.red-ruta { fill: none; stroke: var(--naranja); stroke-width: 4; stroke-dasharray: 10 8; animation: red-hormigas .8s linear infinite; }
@keyframes red-hormigas { to { stroke-dashoffset: -18; } }
.red-nodo { cursor: pointer; transition: opacity .3s; }
.red-nodo .red-bola { fill: var(--blanco); stroke: var(--carbon); stroke-width: 3; transition: fill .3s; }
.red-nodo .red-halo { fill: var(--naranja-suave); opacity: 0; }
.red-nodo .red-ico { fill: none; stroke: var(--carbon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.red-nodo.activo .red-bola { fill: var(--carbon); }
.red-nodo.activo .red-ico { stroke: #fff; }
.red-nodo.activo .red-halo { opacity: 1; animation: red-latido 1.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.red-nodo.elegido .red-bola { stroke: var(--naranja); stroke-width: 5; }
.red-nodo.apagado { opacity: .3; }
@keyframes red-latido { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.red-t { text-anchor: middle; font: 700 23px var(--fuente); fill: var(--tinta); }
.red-s { text-anchor: middle; font: 16px var(--fuente); fill: var(--tinta-3); }
.red-token circle { fill: var(--naranja); stroke: #fff; stroke-width: 3; }
.red-token .red-ico { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.red-token.trabajando > * { animation: red-sacude .5s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes red-sacude { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.red-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.red-ctrl .btn { min-width: 48px; }
.red-dato { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linea); align-items: center; flex-wrap: wrap; }
.red-lista { padding-left: 18px; display: grid; gap: 6px; }
.red-pasos { list-style: none; padding: 0; counter-reset: paso; display: grid; gap: 6px; }
.red-pasos li { counter-increment: paso; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 10px 12px 10px 44px; position: relative; cursor: pointer; }
.red-pasos li::before { content: counter(paso); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gris-suave); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.red-pasos li.activo { border-color: var(--carbon); box-shadow: var(--sombra); }
.red-pasos li.activo::before { background: var(--naranja); color: #fff; }
@media (prefers-reduced-motion: reduce) { .red-ruta, .red-nodo.activo .red-halo, .red-token.trabajando > * { animation: none; } }
.red-lado { margin-top: 8px; }
#red-titulo { font-size: 15px; text-transform: none; letter-spacing: 0; }
@media (min-width: 1000px) {
  .red-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
  .red-lado-ctrl .red-ctrl { margin-top: 0; }
}
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs button { white-space: nowrap; padding: 0 10px; }

/* título de grupo dentro de la hoja «Más» (Administración) */
.lista-mas .grupo { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6E6E7A; padding: 14px 16px 6px; background: transparent; }

/* ---------- Rediseño 2026-10-12c: una sola fuente, sin bordecitos ----------
   Campos y botones secundarios con fondo suave en vez de borde; foco con anillo naranja.
   Números con cifras tabulares; sin espaciado exagerado entre letras. */
:root { --campo: #EFEEEA; --campo-foco: #fff; --anillo: 0 0 0 3px var(--naranja); }
body { font-feature-settings: 'tnum' 1; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: 27px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
.seccion-t h2 { font-size: 13px; letter-spacing: .06em; font-weight: 700; color: var(--tinta-3); }
.topbar .titulo { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.contador .n, .kpi .v, .cifra, .cronometro, .serv .monto, .serv-card .monto, table.tabla tfoot td { font-weight: 700; letter-spacing: -.02em; }
.contador .n { font-size: 30px; min-width: 0; flex: 0 0 auto; }
.contador > div:last-child { min-width: 0; }
.contador { gap: 10px; padding: 14px 12px; }
.moto-item .seis { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.cabecera-moto .seis { font-size: 46px; font-weight: 700; letter-spacing: .02em; }
.serv-card .seis { font-weight: 700; letter-spacing: .01em; }
.cabecera-moto .modelo { font-size: 19px; font-weight: 600; }
.buscador input { font-size: 18px; letter-spacing: .02em; text-transform: none; }
.campos label, .login label { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.datos b { letter-spacing: .02em; }
.btn { font-weight: 650; font-size: 17px; }
.btn.xl { font-size: 20px; }

/* sin bordes: fondo suave */
.btn.borde { background: var(--campo); border: 0; }
.buscador, .campos input, .campos select, .chat-input input, .login input, textarea.nota { border: 0; background: var(--campo); transition: background .15s, box-shadow .15s; }
.buscador:focus-within, .campos input:focus, .campos select:focus, .chat-input input:focus, .login input:focus, textarea.nota:focus { background: var(--campo-foco); box-shadow: var(--anillo); }
.chips-filtro button, .arq-tabs button { border: 0; background: var(--campo); }
.chips-filtro button.activo { background: var(--carbon); }
.moto-item .check { border: 0; background: var(--campo); }
.opc { border: 0; box-shadow: var(--sombra); }
.opc.sel { box-shadow: 0 0 0 3px var(--rojo); }
.burb { border: 0; box-shadow: 0 1px 2px rgba(27,27,31,.06); }
.slot { border: 2px dashed #D9D7D0; }
.slot.listo { border: 0; box-shadow: 0 0 0 3px var(--verde); }
.bottomnav { border-top: 0; box-shadow: 0 -1px 12px rgba(27,27,31,.06); }
.red-pasos li { border: 0; box-shadow: var(--sombra); }
:focus-visible { outline: 3px solid var(--naranja-osc); outline-offset: 2px; }
/* sobre el fondo de página (no dentro de tarjeta) el campo va en blanco con sombra, para que se distinga */
.buscador { background: #fff; box-shadow: var(--sombra); }
.chips-filtro button:not(.activo), .arq-tabs button { background: #fff; box-shadow: 0 1px 3px rgba(27,27,31,.08); }
.chips-filtro { padding: 2px 2px 8px; }

/* logo real de Motocorp */
.logo img.logo-mc { display: block; height: 22px; width: auto; }
.sidebar .logo img.logo-mc { height: 26px; margin-bottom: 6px; }
.login .marca .logo img.logo-mc { height: 40px; margin: 0 auto 6px; }
.login .marca .logo { background: var(--carbon); border-radius: var(--radio); padding: 22px 16px 18px; display: inline-block; }

@media (min-width: 900px) {
  .topbar { border-bottom: 0; box-shadow: 0 1px 0 rgba(27,27,31,.05); }
  .topbar .titulo { font-size: 22px; }
  .contador .n { font-size: 34px; }
}

/* 2026-10-12g: tarjetas sin franja de color a la izquierda; el color va en el número */
.contador, .capa { border-left: 0; }
.contador .n { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; background: var(--gris-suave); font-size: 24px; }
.contador.azul .n { background: var(--azul-suave); } .contador.ambar .n { background: var(--ambar-suave); }
.contador.naranja .n { background: var(--naranja-suave); } .contador.rojo .n { background: var(--rojo-suave); }
.contador.verde .n { background: var(--verde-suave); } .contador.morado .n { background: var(--morado-suave); }
.paso.rama .cuerpo { border-left: 0; background: var(--rojo-suave); }
@media (min-width: 900px) { .contador .n { font-size: 28px; min-width: 62px; height: 62px; } }
.capa.naranja svg.i { color: var(--naranja); } .capa.verde svg.i { color: var(--verde); } .capa.azul svg.i { color: var(--azul); } .capa.morado svg.i { color: var(--morado); }
/* constancia de aprobación (reunión 2026-10-12): pantalla y papel */
.constancia { max-width: 860px; margin: 0 auto; padding: 16px; }
.hoja-doc { background: #fff; color: #1B1B1F; border-radius: 14px; padding: 24px; font-size: 14px; }
.hoja-doc h1 { font-size: 22px; } .hoja-doc h2 { font-size: 15px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .05em; }
table.doc { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.doc th, table.doc td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid #E4E3DF; }
table.doc tbody th { width: 120px; color: #5A5A60; font-weight: 600; }
.aprob { background: #E8F5EC; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; } .aprob.pend { background: #FDECEA; }
.doc-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.doc-fotos figure { margin: 0; } .doc-fotos img { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 8px; background: #F4F3F0; } .doc-fotos figcaption { font-size: 12px; color: #5A5A60; }
.firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; text-align: center; font-size: 12px; }
.firmas div { border-top: 1px solid #1B1B1F; padding-top: 6px; }
@media print {
  body { background: #fff !important; }
  .no-imprimir, .velo, #toast { display: none !important; }
  .constancia { padding: 0; max-width: none; } .hoja-doc { padding: 0; border-radius: 0; }
  .doc-fotos figure, table.doc tr { break-inside: avoid; }
}

[hidden] { display: none !important; }

/* Semáforo «Marcha blanca» (#/sup/marcha-blanca, 2026-10-28) */
.mb-item { border-bottom: 1px solid var(--linea); }
.mb-item:last-child { border-bottom: 0; }
.mb-item summary { list-style: none; cursor: pointer; }
.mb-item summary::-webkit-details-marker { display: none; }
.mb-fila { display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 56px; }
.mb-punto { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--gris); box-shadow: 0 0 0 3px var(--gris-suave); }
.mb-punto.verde { background: var(--verde); box-shadow: 0 0 0 3px var(--verde-suave); }
.mb-punto.rojo { background: var(--rojo); box-shadow: 0 0 0 3px var(--rojo-suave); }
.mb-flecha { transition: transform .15s; }
.mb-item[open] .mb-flecha { transform: rotate(180deg); }
.mb-lista { border-top: 1px dashed var(--linea); background: var(--fondo); }
.mb-lista .moto-item { background: transparent; }
