/* Ruta Lista — estándar visual de las apps de Logística de Sucursales */
:root {
  --rojo: #D5202A;
  --rojo-2: #9E1B22;
  --rojo-3: #7A1419;
  --tinta: #1c2530;
  --apagado: #6b7886;
  --linea: #e7eaef;
  --fondo: #f4f6f9;
  --blanco: #ffffff;
  --verde: #1f8a4c;
  --verde-suave: #e6f4ec;
  --ambar: #b7791f;
  --ambar-suave: #fdf3e1;
  --rojo-suave: #fbe9ea;
  --radio: 12px;
  --sombra: 0 1px 2px rgba(28, 37, 48, .06), 0 4px 16px rgba(28, 37, 48, .06);
  --f-titulo: 'Archivo', system-ui, sans-serif;
  --f-texto: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--f-texto);
  color: var(--tinta);
  background: var(--fondo);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-titulo); margin: 0; letter-spacing: -.01em; }
a { color: var(--rojo-2); }
[hidden] { display: none !important; }

/* Marca */
.marca { display: flex; align-items: center; gap: 10px; }
.marca img { width: 34px; height: 34px; }
.marca .nombre { font-family: var(--f-titulo); font-weight: 800; font-size: 18px; line-height: 1; }
.marca .sub { font-size: 11.5px; color: var(--apagado); letter-spacing: .02em; }

/* Controles */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; }
.campo { margin-bottom: 16px; }
.ayuda { font-size: 12.5px; color: var(--apagado); margin-top: 4px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--tinta);
  background: var(--blanco);
  border: 1.5px solid var(--linea);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(213, 32, 42, .12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--f-texto);
  border: 0; border-radius: 10px; padding: 10px 16px;
  cursor: pointer; text-decoration: none;
  background: var(--rojo); color: #fff;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--rojo-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #c9ced6; cursor: not-allowed; }
.btn.sec { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--linea); }
.btn.sec:hover { background: var(--fondo); }
.btn.ok { background: var(--verde); }
.btn.ok:hover { background: #18703d; }
.btn.chico { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.bloque { width: 100%; }

.aviso { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
.aviso.error { background: var(--rojo-suave); color: var(--rojo-3); }
.aviso.ok { background: var(--verde-suave); color: #14532d; }
.aviso.info { background: #eef3fb; color: #1e3a5f; }
.aviso.alerta { background: var(--ambar-suave); color: #7a4d0b; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fondo); color: var(--apagado); white-space: nowrap; }
.pill.verde { background: var(--verde-suave); color: var(--verde); }
.pill.ambar { background: var(--ambar-suave); color: var(--ambar); }
.pill.rojo { background: var(--rojo-suave); color: var(--rojo-2); }
.pill.prueba { background: #efe7fb; color: #5b3a99; }

.lema { font-family: var(--f-titulo); font-weight: 700; color: var(--rojo-2); }

/* Marca RUTA Lista · Vidrí / Novex */
body { background: #f1f1f1 url('/assets/fondo-vidri.jpg') center top / cover no-repeat; background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }
.marca-rl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca-rl .camion { height: 34px; width: auto; display: block; flex: none; }
.marca-rl .rl { line-height: 1.05; min-width: 0; }
.rl-ruta { font-family: 'Montserrat', var(--f-titulo); font-weight: 800; color: #B01F27; font-size: 22px; letter-spacing: .01em; }
.rl-lista { font-family: 'Montserrat', var(--f-titulo); font-weight: 800; color: #2f2f2f; font-size: 22px; margin-left: 6px; }
.rl-sig { font-size: 11.5px; color: var(--apagado); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-sig b { color: #B01F27; font-weight: 700; }
.logo-vn { height: 28px; width: auto; display: block; }
.div-v { width: 1px; align-self: stretch; background: var(--linea); margin: 4px 0; }
.barra-der, .top-der { display: flex; align-items: center; gap: 12px; }
@media (max-width: 420px) {
  .marca-rl .camion { height: 28px; }
  .rl-ruta, .rl-lista { font-size: 18px; } .rl-lista { margin-left: 4px; }
  .logo-vn { height: 22px; }
  .barra-der { gap: 6px; }
}

/* ───────── VIDRÍ ONE · logo oficial: tablero de 24 segmentos con check ───────── */
.marca-r24 { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.marca-r24 .ico { width: 44px; height: 44px; display: block; flex: none; }
.marca-r24 .txt { line-height: 1.05; min-width: 0; }
.r24-pal { font-family: 'Montserrat', var(--f-titulo); font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: -.01em; color: #0F1E3D; white-space: nowrap; }

.r24-sub { font-family: 'Montserrat', var(--f-texto); font-weight: 600; font-size: 11.5px; color: #0F1E3D; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .marca-r24 .ico { width: 36px; height: 36px; } .r24-pal { font-size: 19px; } .r24-sub { display: none; } }

/* ───────── Marca principal: Vidrí · Novex arriba (protagonista) y VIDRÍ ONE debajo ───────── */
.marca-vn { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; text-decoration: none; color: inherit; }
.marca-vn .vn-prin { height: 50px; width: auto; display: block; }
.r24-linea { display: flex; align-items: center; gap: 6px; min-width: 0; padding-left: 2px; }
.r24-linea .ico { width: 22px; height: 22px; display: block; flex: none; }
.r24-linea .r24-pal { font-size: 15px; }
.r24-linea .r24-sub { margin: 0 0 0 4px; font-size: 11px; color: var(--apagado); padding-left: 8px; border-left: 1px solid var(--linea); }
@media (max-width: 520px) { .marca-vn .vn-prin { height: 38px; } .r24-linea .ico { width: 18px; height: 18px; } .r24-linea .r24-pal { font-size: 13px; } .r24-linea .r24-sub { display: none; } }
.duo-logos { text-align: center; margin: 0 auto 14px; }
.duo-logos .vn { display: block; width: 78%; max-width: 280px; margin: 0 auto 12px; }
.duo-logos .r24 { display: block; width: 46%; max-width: 160px; margin: 0 auto; }

/* ───────── VIDRÍ ONE: insignia y nombre bajo Vidrí · Novex ───────── */
.r24-linea .ico { width: 34px; height: 34px; }
.r24-pal .vo-v { color: #D62828; font-weight: inherit; }
.r24-linea .r24-pal { color: #1B4F8B; }
.duo-logos .r24 { width: 44%; max-width: 170px; }
@media (max-width: 520px) { .r24-linea .ico { width: 28px; height: 28px; } }

/* ───────── VIDRÍ ONE · recorrido guiado ───────── */
.vt-capa { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.vt-foco { position: fixed; z-index: 9001; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15, 30, 61, .62); outline: 3px solid #E89E00; outline-offset: 0; transition: all .25s ease; }
.vt-tarjeta { position: fixed; z-index: 9002; width: min(360px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); padding: 16px 18px 14px; color: #1A1A1A; }
.vt-tarjeta.centro { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 24px)); }
.vt-tarjeta.abajo { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
.vt-tarjeta.centro.abajo { transform: none; }
.vt-bar { height: 4px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.vt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #D62828, #1B4F8B); transition: width .25s; }
.vt-cab { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7886; }
.vt-saltar { background: none; border: 0; color: #6b7886; text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 0; }
.vt-t { margin: 8px 0 6px; font-size: 18px; color: #0F1E3D; }
.vt-x { font-size: 14.5px; line-height: 1.5; color: #333; }
.vt-x ul { margin: 6px 0 0; padding-left: 18px; } .vt-x li { margin: 3px 0; }
.vt-acc { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.vt-acc .btn { min-height: 40px; padding: 8px 16px; }
.btn-ayuda { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linea, #e7eaef); background: #fff; color: #1B4F8B; font-weight: 800; font-size: 16px; cursor: pointer; display: grid; place-items: center; flex: none; }
.btn-ayuda:hover { border-color: #1B4F8B; }
