/* =========================================================================
 * L02 · Isométrico — escenario 3D con barras extruidas en CSS + franja de KPIs
 * Cada barra: <div class="iso-bar" style="--h:140"><i></i><i></i><i></i></div>
 *   i:1 = tapa, i:2 = cara frontal, i:3 = cara lateral. --h en px.
 * ========================================================================= */
.l02 { display: flex; flex-direction: column; gap: var(--gap); max-width: 1400px; margin: 0 auto; padding: 22px 28px 48px; }

.l02 .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.l02 .top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.l02 .top nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.l02 .top nav a.on { color: var(--ink); background: var(--fx-glow-faint); box-shadow: inset 0 0 0 1px var(--panel-border); }

/* ---- Hero ---- */
.l02 .hero {
    display: flex; align-items: stretch; gap: var(--gap); flex-wrap: wrap;
    min-height: 460px;
    border-radius: var(--r-lg);
    border: 1px solid var(--panel-border);
    background:
        radial-gradient(600px 300px at 35% 80%, rgba(0, 164, 220, .28), transparent 70%),
        radial-gradient(800px 500px at 100% 0%, rgba(0, 92, 132, .5), transparent 70%),
        linear-gradient(160deg, #06263A, #041521);
    overflow: hidden;
    position: relative;
}
.l02 .hero__stage { flex: 1 1 560px; display: flex; align-items: center; justify-content: center; min-height: 420px; position: relative; perspective: 1600px; }
.l02 .hero__info { flex: 0 1 360px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px 36px 32px 8px; position: relative; z-index: 1; }
.l02 .hero__info .kpi__value { font-size: 72px; }
.l02 .hero__eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fx-glow); }
.l02 .hero__title { font-size: 30px; font-weight: 300; line-height: 1.15; }

/* Partículas de fondo */
.l02 .hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 30%, var(--fx-glow), transparent),
        radial-gradient(1px 1px at 28% 12%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 44% 22%, var(--fx-glow), transparent),
        radial-gradient(1px 1px at 63% 9%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 78% 34%, var(--fx-glow), transparent),
        radial-gradient(1px 1px at 88% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 8% 76%, var(--fx-glow), transparent),
        radial-gradient(1px 1px at 52% 88%, #fff, transparent);
    opacity: .7;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

/* ---- Plano isométrico ---- */
.iso {
    --w: 46px;
    display: flex; align-items: flex-end; gap: 26px;
    padding: 34px;
    margin-top: 110px;
    transform: rotateX(58deg) rotateZ(-42deg);
    transform-style: preserve-3d;
    background:
        linear-gradient(rgba(95, 212, 245, .16) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(90deg, rgba(95, 212, 245, .16) 1px, transparent 1px) 0 0 / 36px 36px,
        radial-gradient(closest-side, rgba(0, 164, 220, .35), transparent);
    border: 1px solid rgba(95, 212, 245, .35);
    border-radius: 6px;
    box-shadow: 0 0 60px rgba(0, 164, 220, .35), inset 0 0 40px rgba(0, 164, 220, .25);
}
.iso-bar {
    position: relative;
    width: var(--w); height: var(--w);
    flex: none;
    transform-style: preserve-3d;
    --hh: calc(var(--h) * var(--grow) * 1px);
    animation: grow 1.8s var(--ease) both;
}
.iso-bar:nth-child(2) { animation-delay: .1s; }
.iso-bar:nth-child(3) { animation-delay: .2s; }
.iso-bar:nth-child(4) { animation-delay: .3s; }
.iso-bar:nth-child(5) { animation-delay: .4s; }
.iso-bar:nth-child(6) { animation-delay: .5s; }
.iso-bar:nth-child(7) { animation-delay: .6s; }
.iso-bar > i { position: absolute; display: block; }
/* tapa */
.iso-bar > i:nth-child(1) {
    inset: 0;
    transform: translateZ(var(--hh));
    background: linear-gradient(135deg, #E9FBFF, var(--fx-glow));
    box-shadow: 0 0 26px var(--fx-glow), 0 0 4px #fff;
}
/* cara frontal (borde inferior), se levanta hacia +Z */
.iso-bar > i:nth-child(2) {
    left: 0; width: var(--w);
    top: calc(var(--w) - var(--hh)); height: var(--hh);
    transform-origin: bottom;
    transform: rotateX(-90deg);
    background: linear-gradient(to top, rgba(0, 92, 132, .35), rgba(95, 212, 245, .9));
    border: 1px solid rgba(233, 251, 255, .45);
}
/* cara lateral (borde izquierdo: la visible con rotateZ(-42deg)) */
.iso-bar > i:nth-child(3) {
    top: 0; height: var(--w);
    left: 0; width: var(--hh);
    transform-origin: left;
    transform: rotateY(-90deg);
    background: linear-gradient(to right, rgba(0, 64, 92, .4), rgba(60, 140, 192, .9));
    border: 1px solid rgba(233, 251, 255, .3);
}
.iso-bar.hl > i:nth-child(2) { background: linear-gradient(to top, rgba(0, 92, 132, .4), #BDF1FF); }

/* Etiquetas flotantes tipo HUD */
.l02 .float-tag {
    position: absolute;
    display: flex; flex-direction: column;
    padding: 8px 12px;
    border-left: 2px solid var(--fx-glow);
    background: rgba(4, 21, 33, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 12px; color: var(--ink-2);
    animation: float 5s ease-in-out infinite;
}
.l02 .float-tag b { font-size: 18px; font-weight: 600; color: var(--ink); }
.l02 .float-tag.t1 { left: 8%; top: 14%; }
.l02 .float-tag.t2 { right: 6%; top: 46%; animation-delay: -2s; }
.l02 .float-tag.t3 { left: 18%; bottom: 10%; animation-delay: -4s; }

/* Franja de KPIs con separadores */
.l02 .strip { display: flex; flex-wrap: wrap; border: 1px solid var(--panel-border); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.l02 .strip > div { flex: 1 1 180px; padding: 18px 20px; border-right: 1px solid var(--panel-border); }
.l02 .strip > div:last-child { border-right: 0; }
.l02 .strip .kpi__value { font-size: 32px; }

@media (max-width: 760px) {
    .l02 { padding: 16px; }
    .l02 .hero__stage { min-height: 340px; transform: scale(.72); margin: -40px 0; }
    .l02 .hero__info { padding: 0 20px 28px; }
    .l02 .hero__info .kpi__value { font-size: 52px; }
    .l02 .float-tag { display: none; }
}
