/* /olimpo/ · pantalla completa: el canvas ocupa todo y los paneles flotan encima (cristal oscuro, muesca roja).
   Tokens de /tools/theme.css. Colores de imperio: Caldari azul, Amarr oro, Gallente verde, Minmatar óxido. */
.ol-body { margin: 0; background: #05060a; color: var(--c-text); font-family: var(--f-sans); overflow: hidden; overscroll-behavior: none; }
.ol { position: fixed; inset: 0; --ol-glass: rgba(10, 14, 20, .78); --ol-edge: rgba(255, 255, 255, .08);
  --imp-caldari: #4f9bff; --imp-amarr: #f2c14e; --imp-gallente: #3ccf8e; --imp-minmatar: #e0573a;
  --sec-hs: #4ec9c0; --sec-ls: #f2b13c; --sec-ns: #ff5a5f; }
.ol [hidden] { display: none !important; }
.ol *, .ol *::before, .ol *::after { box-sizing: border-box; }
.ol-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
.ol-cv:active { cursor: grabbing; }
.ol-cv:focus-visible { box-shadow: inset 0 0 0 2px var(--c-red-txt); }
.ol svg { width: 1em; height: 1em; }

/* ---------- barra superior ---------- */
.ol-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: max(.9rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) .9rem max(1.1rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(5, 6, 10, .85), rgba(5, 6, 10, 0)); pointer-events: none; }
.ol-top > * { pointer-events: auto; }
.ol-marca img { display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--ol-edge); }
.ol-titulo h1, .ol-titulo .ol-h1 { margin: 0; font-size: 1.35rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #fff, #c9b6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ol-titulo p { margin: .25rem 0 0; font: 600 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.ol-demo { margin: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 999px;
  background: rgba(242, 177, 60, .14); border: 1px solid rgba(242, 177, 60, .45); color: #ffd58a; font-size: .8rem; }
.ol-demo a { color: inherit; }
.ol-acc { margin-left: auto; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ol-origen { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--ol-glass); border: 1px solid var(--ol-edge); backdrop-filter: blur(8px); }
.ol-origen button { min-height: 36px; padding: 0 .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--c-muted); font: 700 .82rem var(--f-sans); cursor: pointer; }
.ol-origen button small { font: 600 .68rem var(--f-mono); opacity: .8; margin-left: .3rem; }
.ol-origen button[aria-pressed="true"] { background: #7c3aed; color: #fff; box-shadow: 0 0 18px -4px #a34df0; }
.ol-origen button:focus-visible { outline: 2px solid var(--c-red-txt); outline-offset: 2px; }
.ol-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 .7rem;
  border-radius: 10px; border: 1px solid var(--ol-edge); background: var(--ol-glass); color: var(--c-text); font: 600 .85rem var(--f-sans);
  text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); }
.ol-btn:hover { border-color: rgba(255, 255, 255, .22); }
.ol-btn:focus-visible { outline: 2px solid var(--c-red-txt); outline-offset: 2px; }
.ol-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ol-btn[aria-pressed="true"] { color: #c9b6ff; border-color: rgba(163, 77, 240, .5); }

/* entrada del sitio (/): acceso, login y piloto conectado */
.ol-btn--eve { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.ol-btn--eve:hover { background: var(--c-red-h); border-color: var(--c-red-h); }
.ol-btn--eve .btn-eve__logo { width: 14px; height: 14px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 50% 30%, 30% 50%, 50% 70%, 70% 50%, 50% 30%); }
.ol-btn--rojo { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.ol-btn--rojo:hover { background: var(--c-red-h); }
.ol-yo { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .7rem 0 .3rem; border-radius: 999px;
  background: var(--ol-glass); border: 1px solid var(--ol-edge); backdrop-filter: blur(8px); font: 600 .82rem var(--f-sans); }
.ol-yo img { border-radius: 50%; }

/* ---------- panel de rutas ---------- */
.ol-panel { position: absolute; top: 5.2rem; right: max(1.1rem, env(safe-area-inset-right)); bottom: 1.1rem; width: min(380px, 34vw);
  display: flex; flex-direction: column; border-radius: 14px; background: var(--ol-glass); border: 1px solid var(--ol-edge);
  backdrop-filter: blur(12px); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.ol-panel::before { content: ""; position: absolute; top: 0; left: 18px; width: 46px; height: 3px; background: var(--c-red); border-radius: 0 0 3px 3px; }
.ol-asa { display: none; }
.ol-panel__in { overflow-y: auto; padding: 1.1rem 1rem 1rem; scrollbar-width: thin; }
.ol-h { margin: 0; font-size: 1rem; letter-spacing: .02em; }
.ol-sub { margin: .25rem 0 .9rem; color: var(--c-muted); font-size: .85rem; }
.ol-sub b { color: #c9b6ff; }
.ol-falta { margin: 0 0 .9rem; padding: .8rem .9rem; border-radius: 10px; border: 1px dashed rgba(242, 177, 60, .55); background: rgba(242, 177, 60, .08); font-size: .88rem; line-height: 1.45; }
.ol-falta b { display: block; color: #ffd58a; margin-bottom: .2rem; letter-spacing: .02em; }
.ol-falta a { color: var(--c-red-txt); }
.ol-rutas { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ol-ruta { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; width: 100%; text-align: left;
  padding: .75rem .85rem .75rem 1rem; border-radius: 10px; border: 1px solid var(--ol-edge); background: rgba(255, 255, 255, .025);
  color: var(--c-text); font: inherit; cursor: pointer; }
.ol-ruta::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--imp); }
.ol-ruta:hover { background: rgba(255, 255, 255, .05); }
.ol-ruta:focus-visible { outline: 2px solid var(--c-red-txt); outline-offset: 2px; }
.ol-ruta[aria-pressed="true"] { border-color: var(--imp); box-shadow: 0 0 0 1px var(--imp), 0 0 24px -10px var(--imp); background: rgba(255, 255, 255, .05); }
.ol-ruta__n { font-weight: 800; font-size: 1.02rem; }
.ol-ruta__imp { font: 600 .66rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--imp); margin-left: .45rem; }
.ol-ruta__s { grid-row: span 2; align-self: center; text-align: right; font: 800 1.7rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.ol-ruta__s small { display: block; font: 600 .62rem var(--f-mono); letter-spacing: .14em; color: var(--c-muted); text-transform: uppercase; margin-top: .2rem; }
.ol-ruta__v { font-size: .8rem; color: var(--c-muted); }
.ol-ruta__bar { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .06); margin-top: .35rem; }
.ol-ruta__bar i { display: block; height: 100%; }
.ol-ruta__bar .wh { background: #a34df0; } .ol-ruta__bar .hs { background: var(--sec-hs); } .ol-ruta__bar .ls { background: var(--sec-ls); } .ol-ruta__bar .ns { background: var(--sec-ns); }
.ol-ruta__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.ol-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .45rem; border-radius: 999px; font: 600 .7rem var(--f-mono);
  border: 1px solid rgba(255, 122, 26, .5); color: #ffb37a; background: rgba(255, 122, 26, .08); }
.ol-chip--sec { border-color: var(--ol-edge); color: var(--c-muted); background: transparent; }
.ol-ruta--off { cursor: default; opacity: .62; }
.ol-ruta--off .ol-ruta__s { font-size: .9rem; color: var(--c-muted); }
.ol-det { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--ol-edge); font-size: .85rem; }
.ol-det h3 { margin: 0 0 .5rem; font-size: .9rem; }
.ol-pasos { list-style: none; margin: 0; padding: 0; position: relative; }
.ol-pasos::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#a34df0, var(--imp, #4ec9c0)); opacity: .6; }
.ol-pasos li { position: relative; padding: .2rem 0 .2rem 1.5rem; }
.ol-pasos li::before { content: ""; position: absolute; left: 2px; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: #0a0e14; border: 2px solid var(--p, #a34df0); }
.ol-pasos .t { font: 700 .82rem var(--f-mono); }
.ol-pasos .m { color: var(--c-muted); font-size: .76rem; }
.ol-det details { margin-top: .4rem; }
.ol-det summary { cursor: pointer; color: var(--c-muted); font-size: .8rem; }
.ol-sis { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .4rem; }
.ol-sis span { font: 600 .7rem var(--f-mono); padding: .1rem .35rem; border-radius: 4px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--p); }
.ol-texto { margin-top: 1rem; font-size: .82rem; color: var(--c-muted); }
.ol-texto summary { cursor: pointer; }
.ol-texto ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.ol-pie { margin: 1rem 0 0; font-size: .72rem; color: var(--c-muted); line-height: 1.45; }

/* ---------- bienvenida (quien no es de Brigada 49): el panel es texto real, lo que lee Google ---------- */
.ol-panel--bv { width: min(420px, 36vw); bottom: auto; max-height: calc(100% - 6.3rem); }
.ol--bv .ol-origen, .ol--bv .ol-demo { display: none !important; }   /* el mundo es de ejemplo: sin bases ni aviso (lo dice el texto) */
.ol-k { margin: 0 0 .5rem; font: 600 .68rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c-red-txt); }
.ol-bv-h { margin: 0 0 .6rem; font-size: 1.6rem; line-height: 1.12; letter-spacing: -.01em; }
.ol-bv-h em { font-style: normal; background: linear-gradient(90deg, #fff, #c9b6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ol-lead { margin: 0 0 1rem; color: #c5cfdb; font-size: .92rem; line-height: 1.5; }
.ol-bv-pasos { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ol-bv-pasos a, .ol-bv-pasos li > div { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .7rem .8rem;
  border-radius: 10px; border: 1px solid var(--ol-edge); background: rgba(255, 255, 255, .025); color: var(--c-text); text-decoration: none;
  font-size: .86rem; line-height: 1.45; }
.ol-bv-pasos a:hover { background: rgba(255, 255, 255, .05); border-color: rgba(163, 77, 240, .45); }
.ol-bv-pasos a:focus-visible { outline: 2px solid var(--c-red-txt); outline-offset: 2px; }
.ol-bv-pasos .n { font: 800 .8rem/1.6 var(--f-mono); color: #c9b6ff; }
.ol-bv-pasos b { display: block; font-size: .95rem; margin-bottom: .1rem; }
.ol-bv-acc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }

/* ---------- ficha de sistema ---------- */
.ol-ficha { position: absolute; left: max(1.1rem, env(safe-area-inset-left)); bottom: 5.4rem; width: min(320px, calc(100vw - 2.2rem));
  padding: .95rem 1rem; border-radius: 12px; background: var(--ol-glass); border: 1px solid var(--ol-edge); backdrop-filter: blur(12px); font-size: .86rem; }
.ol-ficha h3 { margin: 0 0 .15rem; font: 800 1.05rem var(--f-mono); }
.ol-ficha .k { color: var(--c-muted); font: 600 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.ol-ficha p { margin: .45rem 0 0; }
.ol-ficha .x { position: absolute; top: .35rem; right: .35rem; }
.ol-ficha .am { color: #ff8f93; }
.ol-ficha .acc { margin-top: .7rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- cámara y mensajes ---------- */
.ol-ctrl { position: absolute; left: max(1.1rem, env(safe-area-inset-left)); bottom: max(1.1rem, env(safe-area-inset-bottom)); display: flex; gap: .35rem; }
.ol-msg { position: absolute; left: 50%; top: 5.4rem; transform: translateX(-50%); margin: 0; padding: .5rem .9rem; border-radius: 999px; background: var(--ol-glass); border: 1px solid var(--ol-edge); font-size: .82rem; }

/* ---------- móvil: el panel es una hoja inferior ---------- */
@media (max-width: 760px) {
  .ol-top { gap: .45rem .5rem; padding-bottom: .5rem; }
  .ol-titulo p { display: none; }
  .ol-titulo h1 { font-size: 1.05rem; }
  .ol-btn--txt span, .ol-yo span { display: none; }
  .ol-yo { padding: 0 .3rem; }
  .ol-panel--bv { top: auto; width: auto; max-height: 46vh; }
  .ol-bv-h { font-size: 1.3rem; }
  .ol-acc { display: contents; }
  .ol-acc > .ol-btn { order: 2; }
  #ol-fs { display: none; }
  .ol-titulo { margin-right: auto; }
  .ol-origen { order: 3; width: 100%; justify-content: space-between; }
  .ol-origen button { flex: 1; }
  .ol-demo { order: 4; width: 100%; justify-content: center; font-size: .74rem; padding: .3rem .6rem; }
  .ol-ctrl { display: none; }
  .ol-panel { top: auto; left: .6rem; right: .6rem; bottom: .6rem; width: auto; max-height: 52vh; }
  .ol-panel.is-plegado { max-height: 3.3rem; }
  .ol-asa { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.3rem; padding: 0 1rem; border: 0;
    background: transparent; color: var(--c-text); font: 700 .92rem var(--f-sans); cursor: pointer; flex: none; }
  .ol-asa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
  .ol-panel.is-plegado .ol-asa svg { transform: rotate(180deg); }
  .ol-panel__in { padding-top: 0; }
  .ol-panel .ol-h { display: none; }
  .ol-ficha { bottom: 4.6rem; left: .6rem; right: .6rem; width: auto; max-height: 42vh; overflow-y: auto; }
  .ol-msg { top: auto; bottom: 4.4rem; }
}
@media (prefers-reduced-motion: reduce) { .ol-asa svg { transition: none; } }
