/* Panel derecho del login y del registro: mapa de Argentina en 3D
   (Assets/js/login_mapa.js, markup en Views/Login/_mapa_panel.php).
   Medidas en cqi del panel para que escale con la pantalla. Solo se ve desde
   1200 px (d-none d-xl-block en el partial). Mide siempre lo que la pantalla y
   queda fijo al scrollear: el formulario de registro es más alto que la
   pantalla y, estirado, el lienzo se deformaba y la leyenda quedaba abajo. */
.lm-panel {
    --lm-sun: #FCD535;
    --lm-sun-hi: #FFE268;
    --lm-sun-lo: #F2C318;
    --lm-ink: #202630;
    --lm-blanco: #fff;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    container-type: inline-size;
    color: var(--lm-ink);
    background: radial-gradient(120% 90% at 72% 42%, var(--lm-sun-hi) 0%, var(--lm-sun) 48%, var(--lm-sun-lo) 100%);
}
/* la franja blanca redondeada del borde izquierdo (main.css) queda arriba del lienzo */
.lm-panel::after { z-index: 4; }
.lm-panel canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.lm-panel svg.lm-plano { position: absolute; right: 6cqi; top: 50%; transform: translateY(-50%); height: 86%; width: auto; }

.lm-cab { position: absolute; left: 7cqi; top: 9vh; width: 44cqi; z-index: 2; pointer-events: none; }
.lm-ttl { font-weight: 800; line-height: 1.04; letter-spacing: -.025em; font-size: 5.4cqi; margin: 0; color: var(--lm-ink); text-wrap: balance; }
.lm-sub { font-size: 1.7cqi; margin: 1.6cqi 0 0; max-width: 32ch; line-height: 1.4; color: #4a4632; }
.lm-num { position: absolute; left: 7cqi; top: calc(9vh + 24cqi); z-index: 2; pointer-events: none; }
.lm-num b { display: block; font-size: 6.6cqi; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lm-num b small { font-size: .55em; opacity: .45; font-weight: 700; }
.lm-num > span { font-size: 1.45cqi; }

.lm-ley { position: absolute; left: 7cqi; bottom: 7vh; display: grid; gap: 1.1cqi; z-index: 2; pointer-events: none; }
.lm-ley div { display: flex; align-items: center; gap: 1.1cqi; font-size: 1.5cqi; font-weight: 600; }
.lm-ley i { width: 2.2cqi; height: 2.2cqi; border-radius: .6cqi; flex: none; }
.lm-ley__c { background: var(--lm-ink); }
.lm-ley__p { background: var(--lm-blanco); border: .3cqi solid var(--lm-ink); border-radius: 50% !important; }

.lm-ticker { position: absolute; left: 7cqi; bottom: calc(7vh + 9cqi); z-index: 2; display: flex; align-items: center; gap: 1.1cqi; background: var(--lm-ink); color: var(--lm-blanco); border-radius: 10cqi; padding: .9cqi 1.9cqi .9cqi 1.1cqi; font-size: 1.45cqi; pointer-events: none; }
.lm-ticker[hidden] { display: none; }
.lm-ticker b { font-weight: 600; }
.lm-ticker__box { width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: var(--lm-sun); display: grid; place-items: center; flex: none; }
.lm-ticker__box svg { width: 1.4cqi; height: 1.4cqi; }
.lm-ticker.is-cambia { animation: lm-tick .45s ease-out; }

.lm-pin { position: absolute; z-index: 3; transform: translate(-50%, -140%); background: var(--lm-blanco); color: var(--lm-ink); font-size: 1.25cqi; font-weight: 700; padding: .45cqi 1cqi; border-radius: 2cqi; box-shadow: 0 1cqi 2cqi -1cqi rgba(0, 0, 0, .4); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .35s; }
.lm-pin::after { content: ""; position: absolute; left: 50%; bottom: -.55cqi; width: 1.1cqi; height: 1.1cqi; background: var(--lm-blanco); transform: translateX(-50%) rotate(45deg); }
.lm-pin.is-on { opacity: 1; }

/* mapa plano (sin WebGL) */
.lm-plano .lm-prov { fill: var(--lm-ink); stroke: var(--lm-sun); stroke-width: .9; }
.lm-plano .lm-ruta { fill: none; stroke: var(--lm-blanco); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 3 5; animation: lm-viaje 2.4s linear infinite; }
.lm-plano .lm-dest { fill: var(--lm-blanco); }
.lm-plano .lm-dep { fill: var(--lm-sun); stroke: var(--lm-ink); stroke-width: 2; }
.lm-plano .lm-onda { fill: none; stroke: var(--lm-ink); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: lm-onda 2.2s ease-out infinite; }

@keyframes lm-tick { 0% { transform: translateY(.8cqi); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lm-viaje { to { stroke-dashoffset: -16; } }
@keyframes lm-onda { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .lm-panel *, .lm-panel *::before { animation: none !important; transition: none !important; }
}
