:root{--bg:#f7f5ef;--surface:#fff;--surface-2:#eef1ec;--text:#14201b;--muted:#4a5751;--border:#c9d1cb;--brand:#0b6e4f;--brand-strong:#075239;--brand-contrast:#fff;--accent:#f6b73c;--focus:#1d4ed8;--info-bg:#e3eefb;--info-text:#123a6b;--warn-bg:#fff3d6;--warn-text:#5c3d00;--danger-bg:#fde4e1;--danger-text:#7a1a10;--ok:#0b6e4f;--shadow:0 -6px 24px #00000029;--radius:16px;--tap:48px;--tabbar-h:68px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0f1a16;--surface:#17241f;--surface-2:#203029;--text:#eef3f0;--muted:#b4c2bb;--border:#3a4c44;--brand:#5fd0a7;--brand-strong:#8ee0c1;--brand-contrast:#06281c;--focus:#93c5fd;--info-bg:#15304f;--info-text:#d6e7fb;--warn-bg:#3f2f0a;--warn-text:#ffe2a3;--danger-bg:#4a1913;--danger-text:#ffd4ce;--ok:#5fd0a7;--shadow:0 -6px 24px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:18px;line-height:1.45}a{color:var(--brand-strong);text-underline-offset:3px}@media (prefers-color-scheme:dark){a{color:var(--brand)}}button{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.skip-link{z-index:2000;background:var(--surface);color:var(--text);border-radius:10px;padding:10px 16px;position:absolute;top:-60px;left:8px}.skip-link:focus{top:8px}.muted{color:var(--muted)}.small{font-size:.85rem}.app{grid-template-rows:auto auto auto minmax(0,1fr) auto;grid-template-areas:"top""banner""alerts""main""nav";height:100%;display:grid;overflow:hidden}.topbar{padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:var(--brand-strong);color:#fff;justify-content:space-between;align-items:center;gap:12px;display:flex}@media (prefers-color-scheme:dark){.topbar{background:#0a2a1f}}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand img{border-radius:9px;flex:none}.brand__name{letter-spacing:.01em;font-size:1.3rem;font-weight:800}.brand__tag{white-space:nowrap;border:1.5px solid #ffffffbf;border-radius:999px;padding:1px 9px;font-size:.8rem;font-weight:700}.topbar__clock{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:700}.estimate-banner{background:var(--warn-bg);color:var(--warn-text);text-align:center;border-bottom:1px solid var(--border);margin:0;padding:5px 12px;font-size:.84rem;font-weight:600;line-height:1.3}.alert{margin:0;padding:8px 16px;font-size:.95rem;font-weight:600}.alert--offline{background:var(--danger-bg);color:var(--danger-text)}.alert--warn{background:var(--warn-bg);color:var(--warn-text)}.alert--info{background:var(--info-bg);color:var(--info-text)}.topbar{grid-area:top}.estimate-banner{grid-area:banner}.alerts{grid-area:alerts}.tabbar{grid-area:nav}.main{grid-area:main;min-height:0;position:relative;overflow:auto}.main:focus{outline:none}.main--map{overflow:hidden}.tabbar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:1100;grid-template-columns:repeat(5,1fr);display:grid}.tabbar__item{min-height:var(--tabbar-h);cursor:pointer;color:var(--muted);background:0 0;border:0;border-top:4px solid #0000;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.82rem;font-weight:600;display:flex}.tabbar__item[aria-current=page]{color:var(--brand-strong);border-top-color:var(--brand)}@media (prefers-color-scheme:dark){.tabbar__item[aria-current=page]{color:var(--brand)}}.map{background:var(--surface-2);position:absolute;inset:0}@media (prefers-color-scheme:dark){.map .leaflet-tile-pane{filter:invert()hue-rotate(180deg)brightness(.92)contrast(.92)saturate(.7)}}.leaflet-container{font:inherit}.leaflet-control-attribution{font-size:12px}.leaflet-bar a{width:var(--tap)!important;height:var(--tap)!important;line-height:var(--tap)!important;font-size:26px!important}.leaflet-top.leaflet-right{top:44px}@media (prefers-color-scheme:dark){.leaflet-bar a,.leaflet-bar a:hover{background:var(--surface);color:var(--text);border-bottom-color:var(--border)}.leaflet-control-attribution{color:var(--muted);background:#17241fd9!important}.leaflet-control-attribution a{color:var(--brand)}}.map-status{z-index:800;background:var(--surface);width:-moz-fit-content;width:fit-content;max-width:calc(100% - 80px);color:var(--text);border-radius:999px;align-items:center;gap:10px;margin:0;padding:6px 12px;font-size:.9rem;font-weight:600;display:flex;position:absolute;top:8px;left:8px;right:72px;box-shadow:0 2px 8px #0003}.map-status__btn{background:var(--brand-strong);color:#fff;cursor:pointer;border:0;border-radius:999px;min-width:48px;min-height:48px;padding:4px 14px;font-weight:800}@media (prefers-color-scheme:dark){.map-status__btn{background:var(--brand);color:var(--brand-contrast)}}.bus-marker{background:0 0;border:0;transition:transform 1s linear}.reduced-motion .bus-marker,.is-zooming .bus-marker{transition:none}.bus-marker__arrow{border-radius:50%;transition:transform .6s;position:absolute;inset:-6px}.bus-marker__arrow:before{content:"";border-left:10px solid #0000;border-right:10px solid #0000;border-bottom:14px solid var(--line);filter:drop-shadow(0 0 1.5px #fff);position:absolute;top:-2px;left:50%;transform:translate(-50%)}.bus-marker__body{border:3px solid #fff;border-radius:50%;place-items:center;font-size:13px;font-weight:800;display:grid;position:absolute;inset:2px;box-shadow:0 2px 6px #00000073}.bus-marker.is-stopped .bus-marker__body{outline-offset:2px;outline:3px dashed #111827}@media (prefers-reduced-motion:reduce){.bus-marker,.bus-marker__arrow{transition:none}}.sheet{z-index:1000;background:var(--surface);max-height:60%;box-shadow:var(--shadow);border-radius:22px 22px 0 0;flex-direction:column;transition:max-height .25s;display:flex;position:absolute;bottom:0;left:0;right:0}.sheet--expanded{max-height:86%}@media (prefers-reduced-motion:reduce){.sheet{transition:none}}.sheet__handle{cursor:pointer;width:100%;min-height:34px;color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;gap:8px;padding:4px 0 0;display:flex}.sheet__grip{background:var(--border);border-radius:3px;width:44px;height:5px}.sheet__top{align-items:center;gap:8px;padding:0 12px 6px 16px;display:flex}.sheet__content{overscroll-behavior:contain;padding:0 16px 16px;overflow-y:auto}.sheet__title{margin:10px 0 6px;font-size:1.15rem}.stop-button{border:2px solid var(--border);background:var(--surface-2);cursor:pointer;text-align:left;border-radius:14px;flex:1;align-items:center;gap:10px;min-width:0;min-height:56px;padding:6px 12px;display:flex}.stop-button__text{flex-direction:column;min-width:0;display:flex}.stop-button__label{color:var(--muted);font-size:.8rem;font-weight:600}.stop-button__name{white-space:nowrap;text-overflow:ellipsis;font-size:1.15rem;font-weight:800;overflow:hidden}.icon-btn{min-width:var(--tap);min-height:var(--tap);border:2px solid var(--border);background:var(--surface);cursor:pointer;border-radius:14px;flex:none;place-items:center;display:inline-grid}.icon-btn--active{color:#a16207;border-color:#a16207}@media (prefers-color-scheme:dark){.icon-btn--active{color:var(--accent);border-color:var(--accent)}}.icon-btn:disabled{opacity:.55;cursor:progress}.direction-row{flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0;display:flex}.direction-row__label{color:var(--muted);font-size:.9rem;font-weight:600}.direction-row__value{font-size:1.1rem}.btn{min-height:var(--tap);cursor:pointer;border:2px solid #0000;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-weight:700;display:inline-flex}.btn--primary{background:var(--brand-strong);color:#fff}@media (prefers-color-scheme:dark){.btn--primary{background:var(--brand);color:var(--brand-contrast)}}.btn--secondary{background:var(--surface-2);border-color:var(--border)}.btn--link{color:var(--brand-strong);text-underline-offset:3px;background:0 0;padding-left:0;text-decoration:underline}@media (prefers-color-scheme:dark){.btn--link{color:var(--brand)}}.chips{flex-wrap:wrap;gap:8px;margin:4px 0 2px;display:flex}.chip{min-height:var(--tap);min-width:var(--tap);border:2px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:6px 14px;font-weight:700;display:inline-flex}.chip[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}.chip__dot{background:var(--line);width:14px;height:14px;box-shadow:0 0 0 2px var(--surface);border-radius:50%}.line-badge{border-radius:10px;flex:none;place-items:center;min-width:52px;height:36px;padding:0 8px;font-size:1rem;font-weight:800;display:inline-grid}.line-badge--sm{border-radius:8px;min-width:44px;height:28px;font-size:.9rem}.departures{gap:8px;margin:0;padding:0;list-style:none;display:grid}.departure{border:2px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:14px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 12px;display:grid}.departure:hover{border-color:var(--muted)}.departure__main{flex-direction:column;min-width:0;display:flex}.departure__dest{overflow-wrap:anywhere;font-weight:700}.departure__meta{color:var(--muted);flex-wrap:wrap;gap:4px 10px;font-size:.9rem;display:flex}.departure__time{font-variant-numeric:tabular-nums;flex-direction:column;align-items:flex-end;display:flex}.departure__mins{white-space:nowrap;font-size:1.35rem;font-weight:800}.departure__clock{color:var(--muted);font-size:.95rem;font-weight:600}.status{font-weight:700}.status--en-parada{color:#b42318}.status--en-ruta{color:var(--ok)}.status--proxima-salida{color:#1d4ed8}@media (prefers-color-scheme:dark){.status--en-parada{color:#fda4a4}.status--proxima-salida{color:#93c5fd}}.note{background:var(--surface-2);border-radius:12px;margin:6px 0;padding:8px 12px;font-size:.95rem}.note--info{background:var(--info-bg);color:var(--info-text)}.note--warn{background:var(--warn-bg);color:var(--warn-text)}.legend{color:var(--muted);margin:10px 0 0;font-size:.88rem}.empty{color:var(--muted);font-weight:600}.dialog{background:var(--surface);width:min(560px,100vw - 16px);max-height:calc(100dvh - 32px);color:var(--text);border:0;border-radius:20px;padding:0;box-shadow:0 20px 60px #00000059}.dialog::backdrop{background:#00000080}.dialog__box{flex-direction:column;max-height:calc(100dvh - 32px);display:flex}.dialog__header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 12px 8px 18px;display:flex}.dialog__title{margin:0;font-size:1.25rem}.dialog__body{padding:12px 18px 20px;overflow-y:auto}.trip-title{align-items:center;gap:10px;display:inline-flex}.search{border:2px solid var(--border);background:var(--surface-2);border-radius:14px;align-items:center;gap:8px;margin:8px 0 12px;padding:0 12px;display:flex}.search input{min-height:52px;font:inherit;color:inherit;background:0 0;border:0;flex:1;min-width:0}.search input:focus{outline:none}.search:focus-within{outline:3px solid var(--focus);outline-offset:2px}.picker-group__title{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:14px 0 6px;font-size:.95rem}.picker-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.picker-item{border:2px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:12px;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 12px;display:flex}.picker-item--current{border-color:var(--brand);background:var(--surface-2)}.picker-item__name{flex-wrap:wrap;align-items:center;gap:6px;font-weight:700;display:inline-flex}.picker-item__lines{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.fav-icon{color:#a16207}.timeline{margin:12px 0 0;padding:0;list-style:none}.timeline__item{border-bottom:1px solid var(--border);grid-template-columns:22px 1fr auto;align-items:start;gap:10px;padding:8px 0;display:grid;position:relative}.timeline__dot{border:3px solid var(--brand);background:var(--surface);border-radius:50%;width:14px;height:14px;margin-top:5px}.timeline__item.is-passed{color:var(--muted)}.timeline__item.is-passed .timeline__dot{background:var(--brand)}.timeline__item.is-here{background:var(--warn-bg);color:var(--warn-text);border-radius:10px;padding-left:4px;font-weight:800}.timeline__item.is-next .timeline__name{font-weight:800}.timeline__item.is-mine .timeline__name{text-decoration:underline;text-decoration-thickness:2px}.timeline__name{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.timeline__time{font-variant-numeric:tabular-nums;font-weight:700}.tag{border-radius:999px;padding:1px 8px;font-size:.78rem;font-weight:800}.tag--here{color:#fff;background:#a16207}.tag--next{background:var(--info-bg);color:var(--info-text);border:1px solid var(--info-text)}.page{max-width:760px;margin:0 auto;padding:16px 16px 32px}.page__title{margin:4px 0 12px;font-size:1.6rem}.prose h2{margin:22px 0 6px;font-size:1.2rem}.prose h3{margin:16px 0 6px;font-size:1.05rem}.prose p,.prose li{max-width:65ch}.segmented{grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0;display:grid}.segmented button{border:2px solid var(--border);background:var(--surface);cursor:pointer;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:56px;padding:6px 8px;font-weight:700;line-height:1.2;display:flex}.segmented--two{grid-template-columns:repeat(2,1fr);margin:4px 0 6px}.segmented--two button{text-align:center;flex-direction:row;gap:6px;min-height:50px;font-size:1rem;line-height:1.2}.chips-title{color:var(--muted);margin:14px 0 4px;font-size:.95rem}.segmented button[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}.today-badge{background:var(--accent);color:#3b2a00;border-radius:999px;padding:0 8px;font-size:.75rem;font-weight:800}.table-wrap{border:1px solid var(--border);background:var(--surface);border-radius:14px;overflow-x:auto}.timetable{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.timetable caption{text-align:left;color:var(--muted);padding:10px 12px;font-weight:700}.timetable th,.timetable td{text-align:left;border-top:1px solid var(--border);vertical-align:top;padding:8px 10px}.timetable th{color:var(--muted);background:var(--surface-2);font-size:.85rem}.cell-time{font-size:1.05rem;font-weight:800;display:block}.cell-place{color:var(--muted);font-size:.82rem;display:block}.row-btn{min-width:var(--tap);min-height:var(--tap);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:inline-grid}.empty-state{text-align:center;border:2px dashed var(--border);color:var(--muted);border-radius:20px;margin-top:16px;padding:40px 16px}.empty-state h2{color:var(--text);margin:16px 0 8px;font-size:1.3rem}.card{border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:14px 16px}.business-list{gap:10px;padding:0;list-style:none;display:grid}.fullscreen-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;padding:24px;display:flex}.pulse{color:var(--brand);animation:1.4s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.4}}@media (prefers-reduced-motion:reduce){.pulse{animation:none}}@media (min-width:900px){.sheet{border-radius:22px;width:440px;max-height:calc(100% - 32px);bottom:16px;left:16px;right:auto}}.departure__flags{flex-wrap:wrap;gap:4px 6px;margin-top:4px;display:flex}.flag{border-radius:8px;padding:2px 8px;font-size:.8rem;font-weight:700;line-height:1.25}.flag--cond{background:var(--info-bg);color:var(--info-text)}.flag--warn{background:var(--warn-bg);color:var(--warn-text)}.cell-flag{color:var(--info-text);margin-top:2px;font-size:.75rem;font-weight:700;display:block}.line-desc{margin:6px 0 4px;font-size:.95rem}.line-list{gap:8px;padding:0;list-style:none;display:grid}.line-list li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.od{grid-template-columns:1fr auto;align-items:center;gap:10px;margin:12px 0;display:grid}.od__fields{gap:8px;display:grid}.od__field{border:2px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:14px;flex-direction:column;justify-content:center;align-items:flex-start;min-height:64px;padding:8px 14px;display:flex}.od__label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.8rem;font-weight:700}.od__value{font-size:1.15rem;font-weight:800}.od__muni{color:var(--muted);font-size:.85rem}.od__swap{min-height:64px}.journeys{gap:8px;margin:0;padding:0;list-style:none;display:grid}.journey{border:2px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;border-radius:14px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 12px;display:grid}.journey__times{gap:2px;min-width:0;display:grid}.journey__row{font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:baseline;gap:4px 8px;display:flex}.journey__row strong{font-size:1.15rem}.journey__label{color:var(--muted);min-width:3.2em;font-size:.8rem;font-weight:700}.journey__side{text-align:right;flex-direction:column;align-items:flex-end;display:flex}.journey__dur{white-space:nowrap;font-size:1.1rem;font-weight:800}.poi-group{margin-bottom:6px}.poi{align-items:center}.poi:disabled{cursor:default;opacity:.7}.poi__main{flex-direction:column;gap:2px;min-width:0;display:flex}.poi__stop{color:var(--muted);flex-wrap:wrap;align-items:center;gap:4px;font-size:.88rem;display:inline-flex}.poi__stop strong{color:var(--text)}.avisos{display:grid}.aviso{border-bottom:1px solid var(--border);align-items:flex-start;gap:10px;padding:8px 16px;display:flex}.aviso--importante{background:var(--danger-bg);color:var(--danger-text)}.aviso--aviso{background:var(--warn-bg);color:var(--warn-text)}.aviso--info{background:var(--info-bg);color:var(--info-text)}.aviso__title{margin:0;font-weight:800}.aviso__text{margin:0;font-size:.92rem}.aviso a{color:inherit;font-weight:700}.kiosk{color:#fff;background:#0b1f18;flex-direction:column;min-height:100%;padding:2vh 3vw;font-size:clamp(18px,2.4vw,44px);display:flex}.kiosk__header{border-bottom:3px solid #f6b73c;justify-content:space-between;align-items:baseline;gap:2vw;padding-bottom:1vh;display:flex}.kiosk__header h1{margin:0;font-size:1.3em}.kiosk__header time{font-variant-numeric:tabular-nums;font-size:1.6em;font-weight:800}.kiosk__list{flex:1;gap:1.2vh;margin:1.5vh 0;padding:0;list-style:none;display:grid}.kiosk__row{background:#ffffff0f;border-radius:12px;grid-template-columns:auto 1fr auto auto;align-items:center;gap:2vw;padding:1vh 1vw;display:grid}.kiosk__row .line-badge{height:auto;padding:.2em .5em;font-size:.9em}.kiosk__dest{font-weight:800}.kiosk__time{color:#f6b73c;font-variant-numeric:tabular-nums;font-weight:800}.kiosk__clock{font-variant-numeric:tabular-nums;opacity:.8}.kiosk__footer{opacity:.8;font-size:.6em}
