/* «Mira alrededor»: vista 360° con HUD (js/ruta/panorama.js). Estilo de casco: cristal oscuro y acentos cian. */
.mw-pano {
    --hud-fondo: rgba(6, 12, 18, .78); --hud-borde: rgba(0, 229, 255, .35); --hud-cian: #00e5ff; --hud-texto: #d8f6ff;
    --hud-tenue: #7fa8b5; --hud-ambar: #ffb547; --hud-rojo: #ff5a7a; --hud-verde: #4fe3c1;
    --hud-mono: ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column;
    background: #05080b; color: var(--hud-texto); font-family: var(--g-f, Roboto, Arial, sans-serif);
}
.mw-pano.visible { display: flex; }
.mw-pano-visor { min-height: 0; min-width: 0; transition: filter .35s; }
.mw-pano.saltando .mw-pano-visor { filter: brightness(0); }

.mw-pano-cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--hud-fondo); border-bottom: 1px solid var(--hud-borde); }
.mw-pano-cabecera h2 { margin: 0; font: 600 17px/1.3 var(--hud-mono); letter-spacing: .04em; color: var(--hud-cian); text-transform: uppercase; }
.mw-pano-cabecera p { margin: 2px 0 0; font-size: 12.5px; color: var(--hud-tenue); }
.mw-pano-cerrar { all: unset; cursor: pointer; flex: none; width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; border: 1px solid var(--hud-borde); color: var(--hud-cian); }
.mw-pano-cerrar:hover { background: rgba(0, 229, 255, .12); }
.mw-pano-cerrar:focus-visible { outline: 2px solid var(--hud-cian); outline-offset: 2px; }

.mw-pano-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr 300px; position: relative; }
.mw-pano-pie { margin: 0; padding: 6px 16px 8px; font-size: 11.5px; line-height: 1.4; color: var(--hud-tenue); background: var(--hud-fondo); border-top: 1px solid var(--hud-borde); }
.mw-pano-error { padding: 24px 16px; }
.mw-pano-error a { color: var(--hud-cian); }

/* Paneles laterales con esquinas de visor */
.mw-hud { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding: 14px; background: var(--hud-fondo); font-size: 13px; line-height: 1.4; }
.mw-hud-izq { border-right: 1px solid var(--hud-borde); }
.mw-hud-der { border-left: 1px solid var(--hud-borde); }
.mw-hud::before, .mw-hud::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--hud-cian); pointer-events: none; }
.mw-hud::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.mw-hud::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.mw-hud h3 { margin: 0 0 6px; font: 600 11px var(--hud-mono); letter-spacing: .14em; color: var(--hud-cian); }
.mw-hud section { padding-bottom: 10px; border-bottom: 1px dashed rgba(0, 229, 255, .18); }
.mw-hud section:last-child { border-bottom: 0; }
.mw-hud p { margin: 4px 0; }
.mw-hud .nota, .mw-hud .vacio { color: var(--hud-tenue); font-size: 11.5px; }
.mw-hud a { color: var(--hud-cian); }

/* Jarvis */
.mw-hud-titulo { display: flex; align-items: center; gap: 10px; }
.mw-hud-titulo b { font: 700 16px var(--hud-mono); letter-spacing: .18em; color: var(--hud-cian); }
.mw-hud-titulo small { display: block; color: var(--hud-tenue); font-size: 11px; }
.mw-jarvis-ico { width: 52px; height: 52px; flex: none; color: var(--hud-cian); border: 1px solid var(--hud-borde); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 18px rgba(0, 229, 255, .25) inset; }
.mw-jarvis-ico svg { width: 36px; height: 36px; }
.mw-jarvis-ico.hablando { animation: mw-latido .9s ease-in-out infinite; }
.mw-jarvis-ico.hablando .boca { animation: mw-boca .25s ease-in-out infinite alternate; transform-origin: 32px 42px; }
@keyframes mw-latido { 50% { box-shadow: 0 0 26px rgba(0, 229, 255, .65) inset, 0 0 14px rgba(0, 229, 255, .45); } }
@keyframes mw-boca { to { transform: scaleY(1.8); } }
@media (prefers-reduced-motion: reduce) { .mw-jarvis-ico.hablando, .mw-jarvis-ico.hablando .boca { animation: none; } }
.mw-jarvis-log { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 120px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.mw-jarvis-log li { padding: 8px 10px; border-radius: 8px; max-width: 92%; }
.mw-jarvis-log li.jarvis { background: rgba(0, 229, 255, .08); border: 1px solid rgba(0, 229, 255, .25); align-self: flex-start; }
.mw-jarvis-log li.yo { background: rgba(255, 255, 255, .08); align-self: flex-end; }
.mw-jarvis-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; }
.mw-jarvis-sugerencias button { all: unset; cursor: pointer; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--hud-borde); color: var(--hud-texto); }
.mw-jarvis-sugerencias button:hover, .mw-jarvis-sugerencias button:focus-visible { background: rgba(0, 229, 255, .12); }
.mw-jarvis-form { display: flex; gap: 6px; }
.mw-jarvis-form input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--hud-borde); background: rgba(0, 0, 0, .35); color: var(--hud-texto); font: 13px var(--g-f, Roboto, Arial, sans-serif); }
.mw-jarvis-form input:focus { outline: 2px solid var(--hud-cian); outline-offset: 1px; }
.mw-jarvis-form button { all: unset; cursor: pointer; width: 34px; text-align: center; border-radius: 6px; border: 1px solid var(--hud-borde); color: var(--hud-cian); }
.mw-jarvis-form button:hover, .mw-jarvis-form button.activo { background: rgba(0, 229, 255, .18); }

/* Panel derecho */
.mw-brujula { display: flex; align-items: baseline; gap: 10px; font-family: var(--hud-mono); }
.mw-brujula b { font-size: 28px; color: var(--hud-cian); }
.mw-brujula span { font-size: 16px; }
.mw-hud-objeto b { color: #fff; }
.mw-hud-objeto em { color: var(--hud-cian); font-style: normal; }
.mw-hud-objeto .fuentes { font-size: 11px; }
.mw-hud-ir { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mw-hud-ir button { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--hud-borde); }
.mw-hud-ir button:hover, .mw-hud-ir button:focus-visible { background: rgba(0, 229, 255, .12); }
.mw-hud-ir b { display: block; }
.mw-hud-ir span { font: 11.5px var(--hud-mono); color: var(--hud-tenue); }
.mw-hud-barras .barra { position: relative; display: flex; justify-content: space-between; padding: 4px 6px; margin: 4px 0; font: 11.5px var(--hud-mono); border: 1px solid rgba(0, 229, 255, .25); border-radius: 4px; overflow: hidden; }
.mw-hud-barras .barra i { position: absolute; inset: 0 auto 0 0; background: rgba(0, 229, 255, .18); }
.mw-hud-barras .barra span, .mw-hud-barras .barra b { position: relative; }
.mw-hud-barras .barra.baja { border-color: var(--hud-rojo); }
.mw-hud-barras .barra.baja i { background: rgba(255, 90, 122, .25); }
.mw-hud-cuerpo .nivel { display: inline-block; padding: 2px 8px; border-radius: 4px; font: 700 11.5px var(--hud-mono); letter-spacing: .08em; }
.mw-hud-cuerpo .nivel.asumible { background: rgba(79, 227, 193, .18); color: var(--hud-verde); }
.mw-hud-cuerpo .nivel.exigente { background: rgba(255, 181, 71, .18); color: var(--hud-ambar); }
.mw-hud-cuerpo .nivel.demasiado { background: rgba(255, 90, 122, .18); color: var(--hud-rojo); }
.mw-hud-cuerpo b { font-family: var(--hud-mono); }

/* Marcadores dentro de la panorámica. Con clase propia, Pannellum no añade .pnlm-hotspot: el selector va solo con la nuestra. */
.mw-pano-objeto, .mw-pano-ir { cursor: pointer; }
.mw-pano-objeto { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(26, 115, 232, .4); }
.mw-pano-objeto:hover { background: #4285f4; }
.mw-pano-ir { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(6, 12, 18, .65); border: 2px solid #00e5ff; box-shadow: 0 0 14px rgba(0, 229, 255, .5); }
.mw-pano-ir::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-top: 4px solid #00e5ff; border-left: 4px solid #00e5ff; transform: translate(-50%, -30%) rotate(45deg); }
.mw-pano-ir:hover { background: rgba(0, 229, 255, .25); }
.mw-pano-objeto span, .mw-pano-ir span { visibility: hidden; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px;
    padding: 6px 10px; border-radius: 6px; background: rgba(6, 12, 18, .9); border: 1px solid rgba(0, 229, 255, .35); color: #fff; font: 500 12.5px/1.3 var(--g-f, Roboto, Arial, sans-serif); text-align: center; }
.mw-pano-objeto:hover span, .mw-pano-ir:hover span { visibility: visible; }

/* Botón en la ficha de la parada y en el aviso de llegada (fuera de la vista 360°) */
.g-pano-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px;
    font: 500 13px var(--g-f, Roboto, Arial, sans-serif); background: var(--g-azul, #1a73e8); color: #fff; }
.g-pano-btn:hover { filter: brightness(1.08); }
.g-pano-btn:focus-visible { outline: 2px solid var(--g-azul, #1a73e8); outline-offset: 2px; }

@media (max-width: 1100px) { .mw-pano-cuerpo { grid-template-columns: 250px 1fr 250px; } }
@media (max-width: 820px) {
    .mw-pano-cuerpo { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
    .mw-pano-visor { order: 1; min-height: 52vh; }
    .mw-hud-der { order: 2; max-height: 30vh; border-left: 0; border-top: 1px solid var(--hud-borde); }
    .mw-hud-izq { order: 3; max-height: 34vh; border-right: 0; border-top: 1px solid var(--hud-borde); }
    .mw-pano-cabecera h2 { font-size: 14px; }
}
