:root {
  --blanco: #ffffff;
  --humo: #f6f6f3;
  --tinta: #12171d;
  --tinta-2: #5a6168;
  --filo-tinta: rgba(18, 23, 29, .14);
  --r2: 14px;
  --display: 'Italiana', 'Times New Roman', serif;

  /* Sistema copiado del plano de Las Villas */
  --fg: rgb(0 0 0 / .9);
  --muted: rgb(60 60 67 / .78);
  --line: rgb(60 60 67 / .18);
  --soft: rgb(118 118 128 / .16);
  --accent: #007aff;
  --error: #c4231a;
  --glass-hoja: rgb(255 255 255 / .7);
  --sombra-glass: 0 8px 28px rgb(0 0 0 / .14), 0 1px 2px rgb(0 0 0 / .08);
  --seg-sel: #ffffff;
  --sombra-sel: 0 3px 8px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .04);
  --resorte: cubic-bezier(.34, 1.56, .64, 1);
  --hoja-curva: cubic-bezier(.32, .72, 0, 1);
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --seg-abajo: env(safe-area-inset-bottom, 0px);
  --seg-arriba: env(safe-area-inset-top, 0px);
  --seg-izq: env(safe-area-inset-left, 0px);
  --seg-der: env(safe-area-inset-right, 0px);
  --teclado: 0px;
  --dock-alto: 64px;
  --dock-abajo: max(var(--seg-abajo), 10px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanco); color: var(--fg); font: 400 16px/1.45 var(--f-ui); letter-spacing: -.01em; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Piezas compartidas con el panel y el aviso legal */
.contenedor { width: min(1180px, 100% - 40px); margin-inline: auto; }
.pendiente-texto { color: var(--tinta-2); font-style: italic; }
.barra { position: fixed; inset: 0 0 auto; z-index: 50; min-height: 64px; display: flex; align-items: center; gap: 28px; padding: var(--seg-arriba) max(20px, calc((100% - 1180px) / 2)) 0; color: var(--fg); background: var(--glass-hoja); box-shadow: var(--sombra-glass); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); }
.barra-marca { font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 600; transition: transform .3s var(--resorte), filter .2s; }
.boton:active { transform: scale(.96); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton-entero { width: 100%; min-height: 50px; }
.boton-blanco { background: var(--accent); color: #fff; }
.boton-vidrio { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.boton-tinta { background: var(--accent); color: #fff; }

/* Pantalla única */
html:has(body.app), body.app { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.app { position: fixed; inset: 0; width: 100%; background: #0d1a2b; }
.escena { position: fixed; inset: 0; }
.mapa { position: absolute; inset: 0; isolation: isolate; z-index: 0; }
.capa { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.luz { mix-blend-mode: soft-light; transition: background-color 1.6s; }
.luz[data-hora="07:00"] { background: #ff9a4d; }
.luz[data-hora="09:30"] { background: #fff1d4; }
.luz[data-hora="12:00"] { background: #dcecff; }
.luz[data-hora="16:30"] { background: #f27a3a; }
.luz[data-lluvia="si"] { background: #3c4a5c; }
.velo { background: linear-gradient(to top, rgba(6, 10, 16, .55), rgba(6, 10, 16, 0) 30%); transition: opacity .5s; }
.sin-titulo .velo, .con-hoja .velo { opacity: 0; }

/* Barra inferior: cápsula con lente deslizante y lupa aparte */
.dock { position: fixed; z-index: 7; left: 50%; bottom: var(--dock-abajo); width: min(560px, calc(100% - var(--seg-izq) - var(--seg-der) - 16px)); height: var(--dock-alto); display: flex; gap: 8px; transform: translateX(-50%); transition: transform .5s var(--hoja-curva), opacity .3s; }
.tabs, .buscar-boton { background: var(--glass-hoja); box-shadow: var(--sombra-glass); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); }
.tabs { position: relative; flex: 1; min-width: 0; display: flex; padding: 4px; border-radius: 999px; transform-origin: 50% 100%; transition: transform .45s var(--resorte); }
.moviendo .tabs { transform: scale(.93); }
.lente { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border-radius: 999px; background: rgb(118 118 128 / .2); transition: transform .48s var(--resorte), scale .24s ease; }
.lente.estirando { scale: 1.1 .92; }
.tab { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; background: none; border: 0; border-radius: 999px; color: var(--fg); font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: 0; cursor: pointer; transition: transform .35s var(--resorte), color .25s; }
.tab:active { transform: scale(.88); }
.tab[aria-selected="true"] { color: var(--accent); }
.tab svg, .buscar-boton svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.buscar-boton { flex: none; width: var(--dock-alto); height: var(--dock-alto); display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--fg); cursor: pointer; transition: transform .4s var(--resorte), color .25s; }
.buscar-boton:active { transform: scale(.88); }
.buscar-boton.activo { color: var(--accent); }
.en-plan .dock, .con-teclado .dock { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }

#buscar { display: block; width: 100%; min-height: 44px; padding: 8px 12px 8px 36px; border: 0; border-radius: 12px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-opacity='.7' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; }
#buscar::placeholder { color: var(--muted); }
#buscar:focus { background-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.chips { display: flex; gap: 2px; margin: 10px 0 0; padding: 3px; border-radius: 999px; background: var(--soft); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 4px 11px 4px 9px; background: transparent; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .25s var(--resorte), transform .25s var(--resorte); }
.chip i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--seg-sel); box-shadow: var(--sombra-sel); }
.resultados { display: grid; gap: 1px; margin-top: 6px; }
.resultados:empty { display: none; }
.resultado { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; background: none; border: 0; border-radius: 10px; text-align: left; cursor: pointer; }
.resultado:active { background: var(--soft); }
.resultado span { min-width: 0; font-weight: 500; }
.resultado small { flex: none; font-size: 13px; color: var(--muted); }
.portada-nota { padding: 8px; font-size: 14px; color: var(--muted); }

/* Título: pequeño, abajo; se va al mover el mapa */
.titulo { position: fixed; z-index: 3; left: calc(var(--seg-izq) + 20px); right: calc(var(--seg-der) + 20px); bottom: calc(var(--dock-abajo) + var(--dock-alto) + 16px); color: #fff; pointer-events: none; text-shadow: 0 1px 18px rgba(4, 8, 14, .75); transition: opacity .35s, transform .5s var(--hoja-curva); }
.titulo h1 { font: 400 clamp(1.6rem, 7vw, 2.3rem)/1.08 var(--display); letter-spacing: 0; }
.titulo p { margin-top: 5px; font-size: 15px; font-weight: 500; }
.titulo .marca { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.sin-titulo .titulo, .con-hoja .titulo { opacity: 0; transform: translateY(10px); }

/* Hoja de abajo: solo la barrita; tres alturas */
.hoja { position: fixed; z-index: 6; left: 50%; bottom: calc(var(--dock-abajo) + var(--dock-alto) + 8px + var(--teclado)); transform: translateX(-50%); width: min(560px, calc(100% - var(--seg-izq) - var(--seg-der) - 16px)); height: 56svh; display: flex; flex-direction: column; padding: 0 16px; border-radius: 26px; overflow: hidden; background: var(--glass-hoja); box-shadow: 0 -4px 30px rgb(0 0 0 / .18); -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%); transition: height .5s var(--hoja-curva), bottom .35s var(--hoja-curva), opacity .25s, visibility 0s; will-change: height; }
.hoja[data-nivel="cerrada"] { height: 0; opacity: 0; visibility: hidden; transition: height .45s var(--hoja-curva), opacity .25s .15s, visibility 0s .45s; }
.en-plan .hoja { bottom: calc(var(--dock-abajo) + var(--teclado)); }
.hoja[data-nivel="mini"] { height: 78px; }
.hoja[data-nivel="alto"] { height: calc(100svh - var(--dock-abajo) - var(--dock-alto) - var(--seg-arriba) - 26px); }
.en-plan .hoja[data-nivel="alto"] { height: 86svh; }
/* Con teclado: la hoja va pegada al teclado (la barra de abajo está escondida) y su título queda bajo la barra de estado */
.con-teclado .hoja { bottom: calc(var(--teclado) + 8px) !important; height: calc(var(--vv-alto, 100dvh) - var(--seg-arriba) - 22px) !important; }
.hoja.arrastrando { transition: none; }
.hoja-agarre { flex: none; touch-action: none; cursor: grab; }
.hoja-asa { display: block; width: 38px; height: 5px; margin: 8px auto 7px; background: var(--muted); opacity: .45; border-radius: 3px; }
.hoja-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin-bottom: 6px; }
.hoja-cabeza h2 { flex: 1 1 auto; min-width: 0; font-size: 19px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hoja-continuar { display: none; flex: none; min-height: 36px; padding: 7px 14px; font-size: 14px; }
.hoja[data-nivel="mini"] .hoja-continuar { display: inline-flex; }
.redondo { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: var(--soft); border: 0; border-radius: 50%; color: var(--fg); cursor: pointer; transition: transform .3s var(--resorte), opacity .2s; }
.redondo:active { transform: scale(.9); }
.redondo:disabled { opacity: .35; cursor: not-allowed; }
.redondo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.icono-bajar { display: none; }
.hoja.plegable .icono-x { display: none; }
.hoja.plegable .icono-bajar { display: block; }

.hoja-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 0 16px; scrollbar-width: none; }
.hoja-cuerpo::-webkit-scrollbar { display: none; }
.hoja[data-nivel="mini"] .hoja-cuerpo { visibility: hidden; }
.panel { animation: subir .45s var(--hoja-curva) both; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }

.nota { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.centrada { text-align: center; }

.tablero-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 10px 0; border-bottom: .5px solid var(--line); }
.tablero-num, .tablero-tipo { display: none; }
.tablero-ruta { grid-column: 1; }
.tablero-ruta h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.tablero-ruta p { font-size: 13px; color: var(--muted); }
.tablero-precio { grid-column: 1; }
.tablero-precio b { font-size: 15px; font-weight: 600; }
.tablero-precio small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.tablero-fila .boton { grid-column: 2; grid-row: 1 / 3; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.flota { display: grid; gap: 8px; }
.avion { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 10px 14px; background: var(--soft); border: 0; border-radius: 14px; text-align: left; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--resorte); }
.avion:active:not(:disabled) { transform: scale(.98); }
.panel-subtitulo { margin: 4px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel-subtitulo:not(:first-child) { margin-top: 22px; }
.etiqueta-vacio { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #34c759; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.avion-foto { flex: none; width: 92px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.avion:disabled .avion-foto { filter: grayscale(1); opacity: .55; }
.avion svg { flex: none; width: 54px; height: 54px; fill: currentColor; opacity: .85; transform: rotate(45deg); }
.avion-texto { display: grid; gap: 1px; min-width: 0; }
.avion-texto b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.avion-texto small { font-size: 13px; color: var(--muted); }
.avion-texto em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent); }
.avion[aria-pressed="true"] { background: var(--accent); color: #fff; }
.avion[aria-pressed="true"] small, .avion[aria-pressed="true"] em { color: #fff; }
.avion:disabled { opacity: .5; cursor: not-allowed; }
.campo-etiqueta { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.campo .chips { margin-top: 0; }
.campos-hora { margin-top: 12px; }
.plan-paso > .boton-entero { margin-top: 12px; }
.campo input[type="time"], .campo input[type="date"] { min-height: 44px; }
.hueco { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 14px; background: var(--soft); border-radius: var(--r2); font-size: 14px; color: var(--muted); }
.historia { margin-top: 12px; color: var(--muted); }
.filas { margin-top: 12px; }
.filas div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: .5px solid var(--line); }
.filas dt { color: var(--muted); }
.filas dd { font-weight: 600; text-align: right; min-width: 0; }
.dudas-lista details { border-bottom: .5px solid var(--line); }
.dudas-lista summary { min-height: 44px; padding: 11px 0; font-weight: 600; cursor: pointer; }
.dudas-lista p { padding: 0 0 12px; color: var(--muted); }
.enlaces { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 14px; color: var(--accent); }
.enlaces a { padding: 6px 0; }

.migas { display: flex; gap: 3px; margin-bottom: 8px; padding: 3px; border-radius: 12px; background: var(--soft); }
.migas button { flex: 1; min-height: 34px; padding: 0 2px; background: none; border: 0; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.migas button:disabled { color: rgb(60 60 67 / .5); cursor: not-allowed; }
.migas button[aria-current] { background: var(--seg-sel); box-shadow: var(--sombra-sel); }
.resumen { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.resumen:empty, .ruta:empty { display: none; }
.ruta { margin-top: 1px; font-size: 13px; color: var(--muted); }

.plan-paso { min-width: 0; margin: 8px 0 0; padding: 0; border: 0; }
.plan-paso legend { padding: 0; margin-bottom: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.plan-paso legend:focus { outline: none; }
.calendario-cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.calendario-cabeza p { font-weight: 600; }
.calendario-cabeza p::first-letter { text-transform: uppercase; }
.calendario-semana, .calendario-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendario-semana span { padding: 3px 0; text-align: center; font-size: 12px; color: var(--muted); }
.dia { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; padding: 0; background: var(--soft); border: 0; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--resorte); }
.dia:active:not(:disabled) { transform: scale(.92); }
.dia-clima { font-size: 11px; font-weight: 500; color: var(--muted); }
.dia-lluvia { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.dia-lluvia .dia-clima { color: #004ea8; font-weight: 700; }
.dia[aria-pressed="true"] { background: var(--accent); color: #fff; }
.dia[aria-pressed="true"] .dia-clima { color: #fff; }
.dia-pocos::after { content: ''; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.dia-hueco { height: 46px; }
.dia-pasado { background: none; color: rgb(60 60 67 / .5); cursor: default; }
.dia-lleno { background: none; color: rgb(60 60 67 / .6); text-decoration: line-through; cursor: not-allowed; }

.horarios { display: grid; gap: 6px; }
.horario { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; background: var(--soft); border: 0; border-radius: 12px; cursor: pointer; text-align: left; transition: background .2s, color .2s, transform .3s var(--resorte); }
.horario:active:not(:disabled) { transform: scale(.97); }
.horario b { font-size: 17px; font-weight: 700; }
.horario small { font-size: 13px; line-height: 1.25; text-align: right; color: inherit; }
.horario[aria-pressed="true"] { background: var(--accent); color: #fff; }
.horario:disabled { background: none; color: rgb(60 60 67 / .6); cursor: not-allowed; }
.horario:disabled b { text-decoration: line-through; }

.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.campo-ancho { grid-column: 1 / -1; }
.campo label { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 500; color: var(--muted); }
.campo input, .campo select { width: 100%; min-height: 44px; padding: 9px 12px; background: var(--soft); border: 0; border-radius: 12px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.campo select option { color: #000; background: #fff; }
.campo input:focus, .campo select:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.campo input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--error); }
.campo-error { color: var(--error); font-size: 13px; font-weight: 600; line-height: 1.35; }
.campo-error:not(:empty) { margin: 4px 0; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.total b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.acepto { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.acepto input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.acepto a { color: var(--accent); }
.pase { outline: none; }
.pase-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pase-botones .boton { flex: 1 1 auto; }

.maplibregl-ctrl-bottom-right { bottom: calc(var(--dock-abajo) + var(--dock-alto) + 4px); right: var(--seg-der); }
.con-hoja .maplibregl-ctrl-bottom-right { opacity: 0; pointer-events: none; }
body:not(.creditos-listos) .maplibregl-ctrl-bottom-right { visibility: hidden; }
.globo-pista .maplibregl-popup-content { padding: 8px 12px; background: var(--glass-hoja); color: var(--fg); border-radius: 12px; box-shadow: var(--sombra-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 400 14px/1.3 var(--f-ui); }
.globo-pista .maplibregl-popup-content b, .globo-pista .maplibregl-popup-content span { display: block; }
.globo-pista .maplibregl-popup-content span { font-size: 12px; color: var(--muted); }
.globo-pista .maplibregl-popup-tip { display: none; }

@media (max-width: 375px), (max-height: 700px) {
  :root { --dock-alto: 58px; }
  .titulo h1 { font-size: 1.5rem; }
  .titulo p { font-size: 13px; }
  .dia, .dia-hueco { height: 40px; }
  .horario { min-height: 48px; }
  .hoja { padding: 0 12px; }
}
@media (max-width: 340px) {
  .tab { font-size: 10px; }
  .chip { padding: 4px 8px 4px 7px; font-size: 12px; }
  .chip i { display: none; }
  .campos { grid-template-columns: minmax(0, 1fr); }
}

/* iPhone acostado */
@media (max-height: 460px) {
  .titulo { display: none; }
  .hoja[data-nivel="alto"], .hoja[data-nivel="medio"] { height: calc(100dvh - var(--dock-abajo) - var(--dock-alto) - 18px); }
  .en-plan .hoja { left: calc(var(--seg-izq) + 8px); transform: none; width: min(420px, 50%); }
  .en-plan .hoja[data-nivel="alto"], .en-plan .hoja[data-nivel="medio"] { height: calc(100dvh - 16px); }
}

@media (hover: hover) {
  .boton:hover { filter: brightness(1.06); }
  .chip:hover { background: rgb(255 255 255 / .55); }
  .chip[aria-pressed="true"]:hover { background: var(--seg-sel); }
  .tab:hover, .buscar-boton:hover { color: var(--accent); }
  .resultado:hover { background: var(--soft); }
  .dia:hover:not(:disabled):not([aria-pressed="true"]), .horario:hover:not(:disabled):not([aria-pressed="true"]) { background: rgb(118 118 128 / .28); }
}

@media (prefers-reduced-transparency: reduce) {
  .tabs, .buscar-boton, .hoja { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabs, .buscar-boton, .hoja { background: rgb(255 255 255 / .96); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Flota en vivo dentro de la app: misma hoja de vidrio y misma letra */
.vivo-ficha { margin: 2px 0 14px; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .62); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .06); }
.vivo-ficha-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vivo-ficha-cabeza b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.vivo-ficha-cabeza small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.vivo-ficha-ruta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.vivo-ficha-ruta small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.vivo-ficha-ruta .fin { text-align: right; }
.vivo-ficha-barra { height: 4px; margin: 10px 0 12px; border-radius: 2px; background: rgb(118 118 128 / .18); overflow: hidden; }
.vivo-ficha-barra i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width 1s linear; }
.vivo-ficha-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.vivo-ficha-datos dt { color: var(--muted); font-size: 11px; font-weight: 500; }
.vivo-ficha-datos dd { margin: 1px 0 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.vivo-estado { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgb(118 118 128 / .16); color: var(--muted); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.vivo-estado.en-vuelo { background: rgb(52 199 89 / .16); color: #1f8a3e; }
.tablero-fila[aria-current="true"] .tablero-ruta h3 { color: var(--accent); }
.etiqueta-vivo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgb(255 255 255 / .82); box-shadow: 0 4px 14px rgb(0 0 0 / .18); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); color: #000; font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; white-space: nowrap; pointer-events: none; }.vivo-centrar { position: fixed; z-index: 9; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .78); box-shadow: 0 6px 22px rgb(0 0 0 / .2); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); color: var(--accent); font: 600 14px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; white-space: nowrap; transform: translateX(-50%); cursor: pointer; }
.vivo-centrar::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px currentColor; }
.vivo-centrar[hidden] { display: none; }
.etiqueta-vivo i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(0 122 255 / .2); }

/* =====================================================================
   VERSIÓN NEGRA: la versión premium. Mismo vidrio de iOS 26, pero negro ahumado,
   texto blanco, dorado de la marca y botones principales blancos como Uber Black.
   ===================================================================== */
body.app {
  --fg: rgb(255 255 255 / .94);
  --muted: rgb(235 235 245 / .58);
  --line: rgb(255 255 255 / .12);
  --soft: rgb(255 255 255 / .08);
  --accent: #d4b77e;
  --error: #ff6b5e;
  --glass-hoja: rgb(14 16 20 / .76);
  --sombra-glass: 0 12px 36px rgb(0 0 0 / .45), 0 1px 3px rgb(0 0 0 / .3);
  --seg-sel: rgb(255 255 255 / .18);
  --sombra-sel: 0 2px 10px rgb(0 0 0 / .35);
  --perla: #f5f3ee;
  color: var(--fg);
  color-scheme: dark;
}
body.app .tabs, body.app .buscar-boton, body.app .hoja { box-shadow: var(--sombra-glass), inset 0 0 0 .5px rgb(255 255 255 / .12); }
body.app .lente { background: rgb(255 255 255 / .13); }
body.app .hoja-asa { background: rgb(255 255 255 / .55); }
body.app .titulo .marca { color: var(--accent); opacity: 1; }

/* Botón principal: perla con texto negro, como Uber Black */
body.app .boton-blanco, body.app .boton-tinta { background: var(--perla); color: #0b0b0c; }
body.app .boton-vidrio { background: rgb(255 255 255 / .1); color: #fff; }
body.app .tablero-fila .boton { background: rgb(255 255 255 / .1); color: var(--accent); }
body.app .boton-confirmar { min-height: 56px; margin-top: 14px; border-radius: 16px; font-size: 17px; letter-spacing: -.01em; }
body.app .boton-confirmar:disabled { background: rgb(255 255 255 / .1); color: var(--muted); cursor: not-allowed; }

/* Selecciones: perla con texto negro */
body.app .dia[aria-pressed="true"], body.app .horario[aria-pressed="true"] { background: var(--perla); color: #0b0b0c; }
body.app .dia[aria-pressed="true"] .dia-clima { color: rgb(0 0 0 / .6); }
body.app .dia-lluvia { background: rgb(96 150 255 / .2); }
body.app .dia-lluvia .dia-clima { color: #9ec4ff; }
body.app .dia-pasado, body.app .dia-lleno, body.app .migas button:disabled { color: rgb(255 255 255 / .28); }
body.app .avion[aria-pressed="true"] { background: var(--perla); color: #0b0b0c; }
body.app .avion[aria-pressed="true"] small, body.app .avion[aria-pressed="true"] em { color: rgb(0 0 0 / .6); }

/* Campos oscuros */
body.app .campo input, body.app .campo select, body.app #buscar { background-color: rgb(255 255 255 / .08); color: #fff; }
body.app .campo input:focus, body.app .campo select:focus, body.app #buscar:focus { background-color: rgb(255 255 255 / .14); box-shadow: 0 0 0 2px var(--accent); }
body.app #buscar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-opacity='.75' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
body.app .acepto input { accent-color: var(--accent); }

/* Flota en vivo en oscuro */
body.app .vivo-ficha { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .1); }
body.app .vivo-estado { background: rgb(255 255 255 / .1); }
body.app .vivo-estado.en-vuelo { background: rgb(52 199 89 / .2); color: #5fe08a; }
body.app .etiqueta-vivo { background: rgb(14 16 20 / .84); color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .4), inset 0 0 0 .5px rgb(255 255 255 / .14); }
body.app .etiqueta-vivo i { background: var(--accent); box-shadow: 0 0 0 3px rgb(212 183 126 / .25); }
body.app .vivo-centrar { background: rgb(14 16 20 / .82); color: var(--accent); box-shadow: 0 8px 24px rgb(0 0 0 / .45), inset 0 0 0 .5px rgb(255 255 255 / .14); }
body.app .vivo-centrar::before { box-shadow: inset 0 0 0 3px #15171b, inset 0 0 0 7px currentColor; }

@media (hover: hover) {
  body.app .chip:hover, body.app .dia:hover:not(:disabled):not([aria-pressed="true"]), body.app .horario:hover:not(:disabled):not([aria-pressed="true"]) { background: rgb(255 255 255 / .14); }
}
@media (prefers-reduced-transparency: reduce) {
  body.app .tabs, body.app .buscar-boton, body.app .hoja, body.app .adonde-barra, body.app .sugerido { background: #16181c; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.app .tabs, body.app .buscar-boton, body.app .hoja, body.app .adonde-barra, body.app .sugerido { background: rgb(20 22 26 / .97); }
}

/* «¿A dónde vuela?»: la pregunta principal, como en Uber */
.adonde { position: fixed; z-index: 4; left: 50%; bottom: calc(var(--dock-abajo) + var(--dock-alto) + 12px); width: min(560px, calc(100% - var(--seg-izq) - var(--seg-der) - 16px)); transform: translateX(-50%); transition: opacity .3s, transform .45s var(--hoja-curva); }
.con-hoja .adonde, .en-plan .adonde, .con-teclado .adonde { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }
.adonde-barra { display: flex; align-items: center; gap: 12px; width: 100%; height: 60px; padding: 0 9px 0 18px; border: 0; border-radius: 20px; background: var(--glass-hoja); box-shadow: var(--sombra-glass), inset 0 0 0 .5px rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%); color: #fff; text-align: left; cursor: pointer; transition: transform .3s var(--resorte); }
.adonde-barra:active { transform: scale(.98); }
.adonde-barra > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; }
.adonde-texto { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.adonde-ahora { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .1); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.adonde-ahora svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.adonde-sugeridos { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.adonde-sugeridos::-webkit-scrollbar { display: none; }
.sugerido { flex: none; display: grid; gap: 1px; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--glass-hoja); box-shadow: var(--sombra-glass), inset 0 0 0 .5px rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%); color: #fff; text-align: left; cursor: pointer; scroll-snap-align: start; transition: transform .3s var(--resorte); }
.sugerido:active { transform: scale(.96); }
.sugerido b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.sugerido small { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* El título sube para dejarle lugar a la barra */
body.app .titulo { bottom: calc(var(--dock-abajo) + var(--dock-alto) + 150px); }
body.app #avisoMapa { display: none; }

/* Elegir aeronave estilo Uber: foto, nombre y capacidad; el tiempo de vuelo grande a la derecha */
.avion-uber { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 88px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.avion-uber .avion-foto { width: 96px; height: 64px; border-radius: 12px; }
.avion-uber .avion-texto b { font-size: 17px; }
.avion-uber .avion-pax::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8.5 9-8.5s9 3.5 9 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4.5'/%3E%3Cpath d='M3 22c0-5 4-8.5 9-8.5s9 3.5 9 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.avion-tiempo { text-align: right; white-space: nowrap; }
.avion-tiempo b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.avion-tiempo small { font-size: 12px; color: var(--muted); }
body.app .avion-uber[aria-pressed="true"] { background: var(--perla); color: #0b0b0c; box-shadow: 0 0 0 2px var(--perla), 0 10px 26px rgb(0 0 0 / .35); }
body.app .avion-uber[aria-pressed="true"] .avion-tiempo small { color: rgb(0 0 0 / .55); }

/* Burbuja de tiempo sobre el destino, como el tiempo de llegada de Uber */
.burbuja-eta { display: flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border-radius: 14px; background: #0b0b0c; color: #fff; box-shadow: 0 10px 26px rgb(0 0 0 / .5), inset 0 0 0 .5px rgb(255 255 255 / .16); font-family: var(--f-ui); white-space: nowrap; pointer-events: none; }
.burbuja-eta::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; background: #0b0b0c; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.burbuja-eta i { display: grid; place-items: center; min-width: 44px; height: 34px; padding: 0 6px; border-radius: 9px; background: var(--accent, #d4b77e); color: #0b0b0c; font-style: normal; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.burbuja-eta b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.burbuja-eta small { display: block; font-size: 11px; color: rgb(235 235 245 / .6); }

/* Tarjeta final como el viaje confirmado de Uber */
.pase-portada { position: relative; margin: 2px 0 6px; border-radius: 20px; overflow: hidden; background: #000; }
.pase-portada img { display: block; width: 100%; height: 170px; object-fit: cover; }
.pase-portada img[hidden] { display: none; }
.pase-portada figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(to top, rgb(0 0 0 / .82), rgb(0 0 0 / 0)); color: #fff; }
.pase-portada b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pase-portada small { display: block; font-size: 13px; color: rgb(255 255 255 / .75); }

@media (max-width: 375px), (max-height: 700px) {
  .adonde-barra { height: 54px; }
  .adonde-texto { font-size: 17px; }
  .adonde-ahora { height: 38px; padding: 0 11px; font-size: 12.5px; }
  body.app .titulo { bottom: calc(var(--dock-abajo) + var(--dock-alto) + 138px); }
}
@media (max-height: 460px) { .adonde-sugeridos { display: none; } }

/* Viñeteado de cine: bordes un poco más oscuros para que el centro del mapa destaque */
body.app .velo { background: radial-gradient(ellipse 85% 70% at 50% 42%, rgba(0, 0, 0, 0) 58%, rgba(4, 6, 10, .38) 100%), linear-gradient(to top, rgba(6, 10, 16, .6), rgba(6, 10, 16, 0) 32%); }
body.app.sin-titulo .velo, body.app.con-hoja .velo { opacity: .55; }

/* Con la flota en vivo en pantalla, la barra de destino se aparta */
.en-vivo .adonde { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }


.en-vivo .burbuja-eta { display: none; }


/* =====================================================================
   VERSIÓN MEDIANOCHE — dirección final (oficio de diseño)
   Palabra: discreto. Letras: Cormorant Garamond (títulos, códigos, horas) + Montserrat.
   Color: marino medianoche y champán de la propia marca; marfil cálido en vez de blanco puro.
   Forma: una esquina grande (22), una chica (10) y la cápsula solo en la barra de iOS.
   Filos dorados en tres tonos: sutil, medio, fuerte. Lujo = contención.
   ===================================================================== */
body.app {
  --marino: #00133b;
  --medianoche: #020a1d;
  --champan: #c9ae78;
  --champan-hondo: #a88f5c;
  --marfil: #f7f5ef;
  --fg: rgb(247 245 239 / .95);
  --muted: rgb(247 245 239 / .55);
  --accent: var(--champan);
  --perla: var(--champan);
  --line: rgb(201 174 120 / .16);
  --soft: rgb(247 245 239 / .05);
  --filo-sutil: rgb(201 174 120 / .18);
  --filo-medio: rgb(201 174 120 / .34);
  --filo-fuerte: rgb(201 174 120 / .7);
  --r-grande: 22px;
  --r-chica: 10px;
  --glass-hoja: rgb(3 14 40 / .8);
  --sombra-glass: 0 18px 50px rgb(0 0 0 / .5);
  --seg-sel: transparent;
  --sombra-sel: none;
  --f-ui: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  background: var(--medianoche);
  font-family: var(--f-ui);
  letter-spacing: 0;
}
/* Rótulos: versalitas finas en champán, el detalle que da «firma» */
body.app .campo label, body.app .campo-etiqueta, body.app .boleto-datos dt, body.app .vivo-ficha-datos dt, body.app .panel-subtitulo, body.app .filas dt {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--champan);
}

/* Superficies de vidrio: marino, con un filo dorado sutil en lugar de sombras grises */
body.app .tabs, body.app .buscar-boton, body.app .hoja, body.app .adonde-barra, body.app .sugerido, body.app .etiqueta-vivo, body.app .vivo-centrar {
  background: var(--glass-hoja); box-shadow: var(--sombra-glass), inset 0 0 0 1px var(--filo-sutil);
}
body.app .hoja { border-radius: var(--r-grande); }
body.app .lente { background: rgb(201 174 120 / .16); box-shadow: inset 0 0 0 1px var(--filo-sutil); }
body.app .tab { font-weight: 500; letter-spacing: .02em; }
body.app .tab[aria-selected="true"], body.app .buscar-boton.activo { color: var(--champan); }

/* Títulos en serifa */
body.app .titulo h1 { font: 400 italic clamp(2rem, 8.2vw, 2.7rem)/1.02 var(--f-display); letter-spacing: -.01em; }
body.app .titulo .marca { font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .32em; color: var(--champan); }
body.app .hoja-cabeza h2 { font: 500 25px/1.1 var(--f-display); letter-spacing: 0; }
body.app .plan-paso legend { font: 500 28px/1.1 var(--f-display); letter-spacing: 0; margin-bottom: 10px; }

/* Botones: champán sólido con texto marino; un solo estilo, esquina chica, versalitas */
body.app .boton { border-radius: var(--r-chica); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
body.app .boton-blanco, body.app .boton-tinta, body.app .boton-confirmar { background: var(--champan); color: var(--marino); }
body.app .boton-vidrio, body.app .tablero-fila .boton { background: transparent; color: var(--champan); box-shadow: inset 0 0 0 1px var(--filo-medio); }
body.app .boton-confirmar:disabled { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--filo-sutil); }
body.app .boton-entero { min-height: 54px; }
body.app .hoja-continuar { font-size: 11px; }
body.app .redondo { background: transparent; box-shadow: inset 0 0 0 1px var(--filo-sutil); }

/* Pasos: una línea fina con el paso actual subrayado en champán (adiós control segmentado) */
body.app .migas { gap: 0; padding: 0; margin-bottom: 14px; background: none; border-radius: 0; border-bottom: 1px solid var(--filo-sutil); }
body.app .migas button { min-height: 34px; border-radius: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.app .migas button[aria-current] { color: var(--champan); background: none; box-shadow: inset 0 -2px 0 var(--champan); }
body.app .migas button:disabled { color: rgb(247 245 239 / .22); }

/* Opciones (sencillo/redondo, filtros): contorno fino, sin cápsulas de relleno */
body.app .chips { background: none; padding: 0; gap: 8px; border-radius: 0; }
body.app .chip { border-radius: var(--r-chica); box-shadow: inset 0 0 0 1px var(--filo-sutil); font-weight: 500; letter-spacing: .04em; }
body.app .chip[aria-pressed="true"] { background: rgb(201 174 120 / .12); box-shadow: inset 0 0 0 1px var(--filo-fuerte); color: var(--champan); }

/* Campos */
body.app .campo input, body.app .campo select, body.app #buscar { border-radius: var(--r-chica); background-color: rgb(247 245 239 / .04); box-shadow: inset 0 0 0 1px var(--filo-sutil); }
body.app .campo input:focus, body.app .campo select:focus, body.app #buscar:focus { background-color: rgb(247 245 239 / .07); box-shadow: inset 0 0 0 1px var(--filo-fuerte); }
body.app .campo select option { color: #0b0b0c; background: #fff; }

/* Calendario: celdas con filo, la elegida en champán; lluvia discreta */
body.app .dia { border-radius: var(--r-chica); background: transparent; box-shadow: inset 0 0 0 1px var(--filo-sutil); font-family: var(--f-display); font-size: 19px; font-weight: 500; }
body.app .dia-clima { font-family: var(--f-ui); font-size: 10px; }
body.app .dia-lluvia { background: rgb(120 160 230 / .1); }
body.app .dia-pasado, body.app .dia-lleno { box-shadow: none; }
body.app .dia[aria-pressed="true"] { background: var(--champan); color: var(--marino); box-shadow: none; }
body.app .dia[aria-pressed="true"] .dia-clima { color: rgb(0 19 59 / .7); }
body.app .calendario-cabeza p { font: 500 20px var(--f-display); }

/* Pase de abordar vivo */
.boleto { margin: 0 0 12px; padding: 16px 18px 14px; border-radius: var(--r-chica); background: linear-gradient(160deg, rgb(201 174 120 / .1), rgb(201 174 120 / .02)); box-shadow: inset 0 0 0 1px var(--filo-medio); }
.boleto-ruta { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 12px; }
.boleto-punto b { display: block; font: 500 34px/1 var(--f-display); letter-spacing: .02em; color: var(--marfil); font-variant-numeric: lining-nums; }
.boleto-punto small { display: block; max-width: 110px; margin-top: 3px; overflow: hidden; font-size: 11px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.boleto-punto.fin { text-align: right; }
.boleto-trayecto { position: relative; display: grid; justify-items: center; gap: 4px; }
.boleto-trayecto i { position: absolute; left: 0; right: 0; top: 9px; border-top: 1px dashed var(--filo-fuerte); }
.boleto-trayecto svg { position: relative; width: 18px; height: 18px; padding: 0 4px; box-sizing: content-box; fill: var(--champan); transform: rotate(90deg); background: transparent; }
.boleto-trayecto em { font: italic 500 15px var(--f-display); color: var(--champan); font-variant-numeric: lining-nums; }
.boleto-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--filo-sutil); }
.boleto-datos dd { margin: 3px 0 0; font: 500 17px/1.1 var(--f-display); color: var(--marfil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums; }
.boleto-datos dd.vacio { color: rgb(247 245 239 / .25); }
body.app .ruta { margin: -4px 0 10px; font-size: 11.5px; letter-spacing: .02em; }

/* Elegir aeronave: filas editoriales con filo, tiempo en serifa; la elegida con marco champán */
body.app .avion-uber { border-radius: var(--r-chica); background: transparent; box-shadow: inset 0 0 0 1px var(--filo-sutil); }
body.app .avion-uber .avion-foto { border-radius: 6px; }
body.app .avion-uber .avion-texto b { font: 500 21px/1.1 var(--f-display); }
body.app .avion-uber .avion-tiempo b { font: 500 24px/1 var(--f-display); letter-spacing: 0; font-variant-numeric: lining-nums; }
body.app .avion-uber .avion-texto small, body.app .avion-uber .avion-tiempo small { font-size: 11px; letter-spacing: .04em; }
body.app .avion-uber[aria-pressed="true"] { background: rgb(201 174 120 / .1); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--champan); }
body.app .avion-uber[aria-pressed="true"] .avion-tiempo b { color: var(--champan); }
body.app .avion-uber[aria-pressed="true"] small, body.app .avion-uber[aria-pressed="true"] .avion-tiempo small, body.app .avion-uber[aria-pressed="true"] em { color: var(--muted); }

/* «¿A dónde desea volar?» */
body.app .adonde-barra { border-radius: var(--r-grande); height: 62px; }
body.app .adonde-texto { font: 500 23px var(--f-display); letter-spacing: 0; }
body.app .adonde-ahora { background: transparent; box-shadow: inset 0 0 0 1px var(--filo-sutil); border-radius: var(--r-chica); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--champan); }
body.app .sugerido { border-radius: var(--r-chica); padding: 9px 14px 10px; }
body.app .sugerido b { font: 500 18px/1.1 var(--f-display); letter-spacing: 0; }
body.app .sugerido small { font-size: 10.5px; letter-spacing: .04em; }

/* Burbuja de tiempo: marino con filo y la hora en serifa */
body.app .burbuja-eta { background: var(--marino); box-shadow: 0 12px 30px rgb(0 0 0 / .5), inset 0 0 0 1px var(--filo-medio); border-radius: var(--r-chica); }
body.app .burbuja-eta::after { background: var(--marino); }
body.app .burbuja-eta i { border-radius: 7px; background: var(--champan); color: var(--marino); font: 600 18px var(--f-display); font-variant-numeric: lining-nums; }
body.app .burbuja-eta b { font-weight: 600; letter-spacing: .02em; }

/* Tarjeta final y fichas */
body.app .pase-portada { border-radius: var(--r-chica); box-shadow: inset 0 0 0 1px var(--filo-medio); }
body.app .pase-portada b { font: 500 34px/1 var(--f-display); letter-spacing: .02em; }
body.app .filas div { border-bottom: 1px solid var(--filo-sutil); }
body.app .filas dd { font-weight: 500; }
body.app .vivo-ficha { border-radius: var(--r-chica); background: rgb(201 174 120 / .06); box-shadow: inset 0 0 0 1px var(--filo-medio); }
body.app .vivo-ficha-cabeza b { font: 500 22px var(--f-display); }
body.app .vivo-ficha-ruta { font: 500 32px var(--f-display); letter-spacing: .02em; }
body.app .vivo-ficha-barra i { background: var(--champan); }
body.app .tablero-ruta h3 { font: 500 21px/1.15 var(--f-display); letter-spacing: 0; }
body.app .tablero-fila { border-bottom: 1px solid var(--filo-sutil); }
body.app .etiqueta-vivo { border-radius: var(--r-chica); font-family: var(--f-ui); letter-spacing: .02em; }
body.app .vivo-estado { border-radius: 6px; }
body.app .dudas-lista summary { font: 500 19px var(--f-display); }
body.app .dudas-lista details { border-bottom: 1px solid var(--filo-sutil); }
body.app .acepto { font-size: 12.5px; }

@media (max-width: 375px), (max-height: 700px) {
  body.app .titulo h1 { font-size: 1.85rem; }
  .boleto-punto b { font-size: 30px; }
  body.app .adonde-texto { font-size: 21px; }
}

/* Ajustes de verificación (Midnight) */
body.app .adonde-texto { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boleto-datos { grid-template-columns: 1.15fr .85fr 1.35fr .55fr; }
body.app .boleto-datos dt { letter-spacing: .1em; }
@media (max-width: 430px) {
  body.app .adonde-ahora { width: 42px; padding: 0; justify-content: center; font-size: 0; letter-spacing: 0; }
  body.app .adonde-ahora svg { width: 18px; height: 18px; }
}

/* Pedido del cliente: la barra y los vidrios en NEGRO (no marino); el champán queda como acento */
body.app { --glass-hoja: rgb(10 11 14 / .8); --sombra-glass: 0 18px 50px rgb(0 0 0 / .55); }
body.app .burbuja-eta, body.app .burbuja-eta::after { background: #0b0b0c; }

/* Aviso cuando el mapa no puede mostrarse */
.aviso-falla { position: fixed; z-index: 8; left: 50%; top: calc(var(--seg-arriba) + 16px); width: min(520px, calc(100% - 32px)); transform: translateX(-50%); margin: 0; padding: 12px 16px; border-radius: 10px; background: rgb(10 11 14 / .88); box-shadow: inset 0 0 0 1px rgb(201 174 120 / .34); color: #f7f5ef; font: 500 14px/1.4 var(--f-ui); text-align: center; }


/* ===== Modo ligero (equipos modestos): el vidrio esmerilado sobre un mapa en movimiento es lo que más pesa en Android.
   Se cambia por negro casi sólido, que a 80 % de opacidad se ve prácticamente igual. ===== */
.ligero .barra, .ligero .tabs, .ligero .buscar-boton, .ligero .hoja, .ligero .adonde-barra, .ligero .sugerido,
.ligero .globo-pista .maplibregl-popup-content, .ligero .vivo-centrar, .ligero .aviso-falla {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgb(10 11 14 / .94) !important;
}

/* ===== Botón de nubes: discreto, arriba a la derecha, vidrio negro con trazo champán ===== */
.ver-nubes { position: fixed; z-index: 6; top: calc(var(--seg-arriba) + 14px); right: calc(var(--seg-der) + 14px); display: flex; align-items: center; flex-direction: row-reverse; gap: 0; height: 42px; min-width: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: rgb(10 11 14 / .8); box-shadow: 0 8px 24px rgb(0 0 0 / .4), inset 0 0 0 .5px rgb(201 174 120 / .34); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); color: #c9ae78; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--resorte, ease), opacity .3s; }
.ver-nubes:active { transform: scale(.92); }
.ver-nubes:focus-visible { outline: 1px solid #c9ae78; outline-offset: 3px; }
.ver-nubes svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ver-nubes .tachado { opacity: 0; stroke-dasharray: 23; stroke-dashoffset: 23; transition: opacity .2s, stroke-dashoffset .35s ease; }
.ver-nubes[aria-pressed="false"] { color: rgb(245 243 238 / .55); }
.ver-nubes[aria-pressed="false"] .tachado { opacity: 1; stroke-dashoffset: 0; }
.ver-nubes-texto { max-width: 0; overflow: hidden; white-space: nowrap; font: 500 10.5px/1 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgb(245 243 238 / .85); transition: max-width .45s ease, margin .45s ease, opacity .3s; opacity: 0; }
.ver-nubes.avisando .ver-nubes-texto { max-width: 160px; margin-right: 10px; opacity: 1; }
.nubes { transition: opacity .45s ease; }
.nubes.ocultas { opacity: 0; }
/* Fuera del mapa principal (hoja abierta a pantalla completa, flota en vivo) no hace falta */
body.en-vivo .ver-nubes, .con-teclado .ver-nubes { opacity: 0; pointer-events: none; }
.ligero .ver-nubes { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(10 11 14 / .94); }
