/* =========================================================================
 * L05 · Mosaico (bento) — rail de iconos + columnas flex anidadas de distinto alto.
 * Variante de tema "acero": la base azul noche de Connectio.
 * ========================================================================= */
.theme-dark.steel {
    --bg: #10303F;
    --bg-grad: radial-gradient(900px 500px at 80% -10%, rgba(60, 140, 192, .35), transparent 60%),
               linear-gradient(180deg, var(--ba-navy), #0B2230);
    --panel: rgba(36, 70, 86, .6);
    --panel-border: rgba(102, 158, 182, .22);
}

.l05 { display: flex; min-height: 100vh; }

.l05 .rail {
    flex: 0 0 72px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: sticky; top: 0; height: 100vh;
    padding: 18px 0;
    border-right: 1px solid var(--panel-border);
    background: rgba(11, 34, 48, .6);
}
.l05 .rail a {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-3); font-size: 18px;
    position: relative;
    transition: background .3s, color .3s;
}
.l05 .rail a:hover { color: var(--ink); background: var(--fx-glow-faint); }
.l05 .rail a.on { color: #fff; background: var(--ba-blue); box-shadow: 0 0 18px rgba(0, 164, 220, .45); }
.l05 .rail a[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: 54px; top: 50%; transform: translateY(-50%);
    padding: 5px 10px; border-radius: 6px;
    background: var(--ba-blue); color: #fff; font-size: 12px; white-space: nowrap; z-index: 5;
}
.l05 .rail .spacer { flex: 1; }

.l05 .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); padding: 22px 26px 36px; }
.l05 .crumbs { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.l05 .crumbs__path { font-size: 13px; color: var(--ink-3); }
.l05 .crumbs__path b { color: var(--ink); font-weight: 600; }

/* Bento: columnas flex con paneles apilados */
.bento { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: stretch; }
.bento__col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.bento__col.w2 { flex: 2 1 520px; }
.bento__col.w1 { flex: 1 1 260px; }
.bento__col > .grow { flex: 1; }

.l05 .panel--accent { justify-content: space-between; }
.l05 .panel--accent .kpi__value { color: #fff; font-size: 56px; text-shadow: none; }
.l05 .panel--accent .kpi__delta { color: rgba(255, 255, 255, .8); }

/* Mapa abstracto de la ciudad: retícula de puntos + focos */
.citymap {
    position: relative;
    flex: 1; min-height: 240px;
    border-radius: var(--r-md);
    background:
        radial-gradient(circle, rgba(169, 203, 218, .28) 1px, transparent 1.5px) 0 0 / 12px 12px,
        linear-gradient(160deg, rgba(0, 64, 92, .5), rgba(4, 21, 33, .6));
    overflow: hidden;
}
.citymap::before { /* línea de costa */
    content: '';
    position: absolute; right: -10%; bottom: -30%;
    width: 70%; height: 90%;
    border-top-left-radius: 100%;
    border-top: 2px solid rgba(95, 212, 245, .5);
    border-left: 2px solid rgba(95, 212, 245, .5);
    background: linear-gradient(160deg, rgba(0, 164, 220, .18), transparent 60%);
}
.citymap .spot {
    position: absolute;
    width: calc(var(--r) * 1px); height: calc(var(--r) * 1px);
    margin: calc(var(--r) * -.5px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 212, 245, .85), rgba(0, 164, 220, .25) 45%, transparent 70%);
    animation: breathe 3.2s ease-in-out infinite;
}
.citymap .spot::after {
    content: attr(data-l);
    position: absolute; left: 50%; top: 50%; transform: translate(10px, -50%);
    font-size: 11px; color: var(--ink); white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.citymap .spot:nth-child(2n) { animation-delay: -1.1s; }
.citymap .spot:nth-child(3n) { animation-delay: -2.2s; }

/* Lista de ranking compacta */
.rank { display: flex; flex-direction: column; gap: 10px; counter-reset: rk; }
.rank > div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); counter-increment: rk; }
.rank > div::before {
    content: counter(rk, decimal-leading-zero);
    font-family: var(--font-mono); font-size: 11px; color: var(--fx-glow);
    flex: 0 0 22px;
}
.rank > div b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes breathe { 50% { transform: scale(1.18); opacity: .75; } }

@media (max-width: 760px) {
    .l05 { flex-direction: column; }
    .l05 .rail { position: static; height: auto; flex: none; flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 10px; border-right: 0; border-bottom: 1px solid var(--panel-border); }
    .l05 .rail .spacer { display: none; }
    .l05 .rail a[data-tip]:hover::after { display: none; }
    .l05 .main { padding: 16px; }
}
