/* Camba Traveler · estilos */
:root {
  --verde: #0B6B3A;
  --verde-osc: #064E2B;
  --verde-suave: #F4F8F5;
  --verde-claro: #ECFDF5;
  --linea: #E3EAE5;
  --tinta: #111827;
  --texto: #374151;
  --gris: #4B5563;
  --fondo-app: #F3F4F6;
  --indigo: #312E81;
  --rojo: #991B1B;
  --rojo-suave: #FEE2E2;
  --ambar: #92400E;
  --ambar-suave: #FEF3C7;
  --cond: 'Barlow Condensed', system-ui, sans-serif;
  --base: 'Barlow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--base); color: var(--tinta); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--verde); }
a:hover { color: var(--verde-osc); }
button, input, select { font: inherit; }
.cargando { padding: 40px; text-align: center; color: var(--gris); }
.oculto { display: none !important; }
.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Página principal ---------- */
.web-cab { border-bottom: 1px solid var(--linea); }
.web-cab .contenedor { min-height: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.marca { font-family: var(--cond); font-size: 28px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--verde); text-decoration: none; }
.web-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.web-nav a.texto { font-weight: 600; color: var(--texto); text-decoration: none; padding: 12px 0; }
.btn-borde { height: 44px; padding: 0 20px; border: 2px solid var(--verde); border-radius: 8px; display: inline-flex; align-items: center; font-weight: 700; color: var(--verde); text-decoration: none; background: #fff; cursor: pointer; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero-texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.volanta { font-family: var(--cond); font-size: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
.hero h1 { margin: 0; font-family: var(--cond); font-size: clamp(56px, 9vw, 88px); line-height: .9; font-weight: 800; text-transform: uppercase; }
.hero p { margin: 0; max-width: 34rem; font-size: 20px; line-height: 1.5; color: var(--texto); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 8px; }
.btn-verde { min-height: 56px; padding: 0 28px; border: none; border-radius: 8px; background: var(--verde); color: #fff; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer; }
.btn-verde:hover { background: var(--verde-osc); color: #fff; }
.btn-verde:disabled { opacity: .6; cursor: wait; }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.letrero { width: 100%; max-width: 420px; background: var(--verde); border-radius: 12px 12px 0 0; padding: 18px 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.letrero b { font-family: var(--cond); font-size: 40px; font-weight: 800; letter-spacing: .03em; color: #fff; text-transform: uppercase; line-height: 1; }
.letrero span { font-family: var(--cond); font-size: 18px; font-weight: 600; letter-spacing: .08em; color: #DCF2E3; text-transform: uppercase; }
.bandeja { width: 100%; max-width: 420px; background: var(--verde-suave); border: 1px solid var(--linea); border-top: none; border-radius: 0 0 12px 12px; padding: 28px 24px 32px; display: flex; justify-content: center; }
.ticket { width: 260px; background: #fff; padding: 18px 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: #000; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 20px rgba(6, 78, 43, .12); }
.ticket .centro { text-align: center; font-weight: 700; }
.ticket .codigo { text-align: center; font-weight: 700; font-size: 18px; }
.ticket .fila { display: flex; justify-content: space-between; }
.ticket .corte { border-top: 1px dashed #000; }
.ticket .total { font-weight: 700; font-size: 15px; }
.banda { background: var(--verde-suave); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.seccion { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.seccion h2 { margin: 0; font-family: var(--cond); font-size: 48px; line-height: 1; font-weight: 800; text-transform: uppercase; }
.columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.punto { border-top: 3px solid var(--verde); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.punto .n { font-family: var(--cond); font-size: 22px; font-weight: 800; color: var(--verde); }
.punto .t { font-family: var(--cond); font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.punto .d { font-size: 17px; line-height: 1.5; color: var(--texto); }
.pasos { margin: 0; padding: 0; list-style: none; }
.pasos li { display: flex; gap: 16px; align-items: baseline; }
.pasos .n { font-family: var(--cond); font-size: 44px; font-weight: 800; color: var(--verde); line-height: 1; }
.pasos .d { font-size: 18px; line-height: 1.5; color: var(--texto); }
.contacto { background: var(--verde); color: #fff; }
.contacto .contenedor { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.contacto h2 { margin: 0; font-family: var(--cond); font-size: 48px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.contacto p { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: #E6F5EB; }
.btn-blanco { min-height: 56px; padding: 0 28px; border-radius: 8px; background: #fff; color: var(--verde); font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.web-pie .contenedor { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--gris); }
.web-pie a { font-weight: 700; padding: 12px 0; }

/* ---------- Formularios ---------- */
.caja-form { max-width: 420px; margin: 48px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.caja-form h1 { margin: 0; font-family: var(--cond); font-size: 44px; font-weight: 800; text-transform: uppercase; }
.caja-form .sub { margin: 0 0 10px; color: var(--texto); font-size: 17px; }
label { font-size: 15px; font-weight: 700; color: var(--texto); }
.campo { height: 52px; width: 100%; border: 2px solid #D1D5DB; border-radius: 10px; padding: 0 14px; font-size: 17px; background: #fff; color: var(--tinta); }
.campo:focus { outline: 3px solid #A7F3D0; border-color: var(--verde); }
.ayuda { font-size: 14px; color: var(--gris); }
.error { margin: 4px 0; padding: 12px 14px; border-radius: 10px; background: var(--rojo-suave); color: var(--rojo); font-weight: 600; }
.ok { margin: 4px 0; padding: 12px 14px; border-radius: 10px; background: var(--verde-claro); color: #065F46; font-weight: 600; }

/* ---------- Panel (app) ---------- */
.app { min-height: 100vh; background: var(--fondo-app); }
.app-cab { color: #fff; }
.app-cab.super { background: var(--indigo); }
.app-cab .contenedor { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.app-cab .titulo { display: flex; flex-direction: column; }
.app-cab .titulo small { font-size: 13px; font-weight: 600; letter-spacing: .06em; opacity: .8; text-transform: uppercase; }
.app-cab .titulo b { font-family: var(--cond); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.app-cab a, .app-cab button { color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; cursor: pointer; }
.app-cuerpo { max-width: 760px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
a.tarjeta { color: var(--tinta); text-decoration: none; }
a.tarjeta:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fila-sep { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grande { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.suave { color: var(--gris); font-size: 14px; }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #E5E7EB; padding-top: 10px; }
.cifras b { display: block; font-size: 22px; }
.etiqueta { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.etiqueta.activo { background: #D1FAE5; color: #065F46; }
.etiqueta.prueba { background: var(--ambar-suave); color: var(--ambar); }
.etiqueta.suspendido { background: var(--rojo-suave); color: var(--rojo); }
.debe { color: var(--rojo); font-weight: 700; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #D1D5DB; background: #fff; font-weight: 600; cursor: pointer; }
.chip.sel { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.btn-indigo { min-height: 52px; padding: 0 22px; border: none; border-radius: 10px; background: var(--indigo); color: #fff; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.btn-indigo:hover { color: #fff; background: #1E1B4B; }
.btn-indigo:disabled, .btn-gris:disabled { opacity: .6; cursor: wait; }
.btn-gris { min-height: 48px; padding: 0 18px; border: 2px solid #D1D5DB; border-radius: 10px; background: #fff; color: var(--tinta); font-weight: 700; cursor: pointer; }
.btn-peligro { min-height: 48px; padding: 0 18px; border: 2px solid #FCA5A5; border-radius: 10px; background: #fff; color: var(--rojo); font-weight: 700; cursor: pointer; }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opcion { min-height: 52px; border-radius: 10px; border: 2px solid #D1D5DB; background: #fff; font-weight: 600; cursor: pointer; }
.opcion.sel { border-color: var(--indigo); background: #EEF2FF; color: var(--indigo); font-weight: 800; }
.lista-pagos .pago { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.lista-pagos .pago:last-child { border-bottom: none; }
.volver { align-self: flex-start; font-weight: 700; padding: 10px 0; }
.direccion { color: var(--indigo); font-weight: 700; word-break: break-all; }

/* ---------- Etapa 2: sindicato ---------- */
.app-cab.verde { background: var(--verde); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; background: #fff; border-bottom: 1px solid #E5E7EB; padding: 0 12px; }
.tabs a { flex: 1 0 30%; text-align: center; padding: 0 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--gris); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a.sel { color: var(--verde); font-weight: 800; border-bottom-color: var(--verde); }
.interruptor { width: 56px; height: 32px; flex-shrink: 0; border-radius: 999px; border: none; padding: 3px; cursor: pointer; display: flex; justify-content: flex-start; background: #9CA3AF; transition: background .15s; }
.interruptor span { width: 26px; height: 26px; border-radius: 999px; background: #fff; display: block; }
.interruptor.on { background: var(--verde); justify-content: flex-end; }
.interruptor:disabled { opacity: .6; cursor: wait; }
.tarjeta.apagada { opacity: .65; }
.btn-texto { background: none; border: none; color: var(--verde); font-weight: 700; min-height: 44px; padding: 0 4px; cursor: pointer; }
.pendiente { font-weight: 700; padding: 8px 0; text-decoration: none; }
.inicial-chica { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: #D1FAE5; color: #065F46; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.entrada-cab { background: var(--verde); color: #fff; padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.entrada-cab .inicial { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--verde); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.entrada-cab h1 { margin: 0; font-family: var(--cond); font-size: 30px; font-weight: 800; text-transform: uppercase; }
.entrada-cab span:last-child { font-size: 14px; color: #D1FAE5; }
.entrada-cuerpo { max-width: 420px; margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.entrada-cuerpo h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.persona { min-height: 72px; border-radius: 16px; border: 2px solid #E5E7EB; background: #fff; display: flex; align-items: center; gap: 14px; padding: 0 16px; font-size: 20px; font-weight: 800; color: var(--tinta); cursor: pointer; text-align: left; }
.persona:hover { border-color: var(--verde); }
.puntos { display: flex; justify-content: center; gap: 16px; padding: 8px 0; }
.puntos span { width: 18px; height: 18px; border-radius: 999px; border: 2px solid #9CA3AF; }
.puntos span.lleno { background: var(--verde); border-color: var(--verde); }
.teclado { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; justify-content: center; }
.tecla { height: 66px; border-radius: 16px; border: none; background: #fff; font-size: 28px; font-weight: 700; color: var(--tinta); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tecla:active { background: var(--verde-claro); }
.tecla:disabled { opacity: .5; }
pre { font-family: var(--mono); font-size: 14px; }

/* ---------- Etapa 3: el pasajero compra en línea ---------- */
.buscador { background: var(--verde); color: #fff; }
.buscador .contenedor { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.buscador h1 { margin: 0; font-family: var(--cond); font-size: clamp(52px, 9vw, 84px); line-height: .9; font-weight: 800; text-transform: uppercase; }
.buscador p { margin: 0; font-size: 19px; color: #E6F5EB; max-width: 36rem; }
.buscar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; background: #fff; border-radius: 14px; padding: 16px; }
.buscar > div { display: flex; flex-direction: column; gap: 6px; }
.buscar select.campo, .buscar input.campo { appearance: auto; }
.seccion-corta { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.resultados { display: flex; flex-direction: column; gap: 12px; }
.opcion-viaje { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ruta precio" "sind ir"; gap: 4px 16px; align-items: center; padding: 18px 20px; border: 2px solid var(--linea); border-radius: 14px; background: #fff; color: var(--tinta); text-decoration: none; }
.opcion-viaje:hover { border-color: var(--verde); color: var(--tinta); }
.opcion-viaje .ruta { grid-area: ruta; font-family: var(--cond); font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.opcion-viaje .sind { grid-area: sind; color: var(--gris); font-weight: 600; }
.opcion-viaje .precio { grid-area: precio; font-size: 24px; font-weight: 800; text-align: right; }
.opcion-viaje .ir { grid-area: ir; color: var(--verde); font-weight: 800; text-align: right; }
.mis-pasajes { display: flex; flex-direction: column; gap: 8px; }
.chip-enlace { height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--verde); display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 700; text-decoration: none; }
.aviso-abierto { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--ambar-suave); color: var(--ambar); font-weight: 700; }
.resumen-ruta { gap: 4px; }
.ruta-grande { font-family: var(--cond); font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.etiqueta-campo { font-size: 15px; font-weight: 700; color: var(--texto); margin-top: 6px; }
.contador { display: flex; align-items: center; gap: 18px; }
.contador-n { font-size: 30px; min-width: 32px; text-align: center; }
.tecla-mas { width: 56px; height: 52px; border-radius: 12px; border: 2px solid #D1D5DB; background: #fff; font-size: 28px; font-weight: 700; cursor: pointer; }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; padding-top: 6px; }
.casilla input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--verde); }
.pagar { align-items: center; text-align: center; }
.pagar .fila-sep { width: 100%; }
.reloj-caja { font-weight: 600; color: var(--ambar); background: var(--ambar-suave); border-radius: 999px; padding: 6px 12px; }
.reloj { font-family: var(--mono); font-size: 18px; }
.monto { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
img.qr { width: 100%; max-width: 300px; aspect-ratio: auto; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
label.btn-verde { width: 100%; }
label.btn-verde.ocupado { opacity: .6; pointer-events: none; }
.btn-wa { min-height: 56px; padding: 0 22px; border: none; border-radius: 8px; background: #128C4A; color: #fff; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; cursor: pointer; width: 100%; }
.btn-wa:hover { background: #0E6E3A; color: #fff; }
.estado-caja { align-items: center; text-align: center; padding: 24px 18px; }
.icono-estado { font-size: 40px; line-height: 1; }
.ticket-pasajero { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(6, 78, 43, .12); }
.tp-cab { background: var(--verde); color: #fff; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.tp-cab span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.tp-cab b { font-family: var(--cond); font-size: 32px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.tp-cuerpo { padding: 18px 20px 22px; font-family: var(--mono); font-size: 15px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.tp-cuerpo .fila { display: flex; justify-content: space-between; gap: 12px; }
.tp-cuerpo .fila span:last-child { font-weight: 700; text-align: right; }
.tp-cuerpo .corte { border-top: 1px dashed #000; }
.tp-codigo { text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .06em; padding: 6px 0; }
.tp-nota { font-family: var(--base); font-size: 14px; color: var(--texto); }
.ticket-pasajero.usado .tp-cuerpo { opacity: .55; }
.sello { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); border: 4px solid var(--rojo); color: var(--rojo); font-family: var(--cond); font-size: 52px; font-weight: 800; padding: 0 18px; border-radius: 10px; background: rgba(255,255,255,.85); }
.aviso-usado { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F3F4F6; color: var(--texto); font-weight: 700; }
.acciones-ticket .btn-gris { min-height: 56px; }

/* ---------- Etapa 3: compras en línea del sindicato ---------- */
.app .chip.sel { border-color: var(--verde); background: var(--verde); }
.lista-compras { display: flex; flex-direction: column; gap: 12px; }
.compra.destacada { border: 2px solid #F59E0B; }
.codigo-compra { font-family: var(--mono); font-size: 20px; }
.etiqueta.gris { background: #E5E7EB; color: #374151; }
.etiqueta.ambar { background: var(--ambar-suave); color: var(--ambar); }
.etiqueta.verde { background: #D1FAE5; color: #065F46; }
.etiqueta.rojo { background: var(--rojo-suave); color: var(--rojo); }
img.comprobante { width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; border: 1px solid var(--linea); background: #F9FAFB; }
.aviso-wa { margin: 0; padding: 10px 12px; border-radius: 10px; background: #DCFCE7; color: #14532D; font-weight: 600; }
.acciones-compra { display: flex; flex-direction: column; gap: 8px; }
.acciones-compra:empty { display: none; }
.aviso-pendientes { display: block; padding: 14px 16px; border-radius: 10px; background: var(--ambar-suave); color: var(--ambar); font-weight: 800; text-decoration: none; }
.qr-vista { display: flex; justify-content: center; padding: 8px 0; }

@media print {
  .web-cab, .web-pie, .acciones-ticket, .volver, .ok { display: none !important; }
  .ticket-pasajero { box-shadow: none; border: 1px solid #000; }
  .tp-cab { background: #fff; color: #000; border-bottom: 2px solid #000; }
}
