/* ============================================================
   BE SKILLZ ACADEMY — SPA Ableton Live 12
   Toda la web vive dentro del DAW. Sin scroll. Sidebar es nav.
   ============================================================ */

/* ---------- TOKENS — Ableton 12 real ---------- */
:root {
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-ui: 'Inter', system-ui, sans-serif;

    --bg-deep: #1a1a1a;
    --bg-0:    #1f1f1f;
    --bg-1:    #2a2a2a;
    --bg-2:    #323232;
    --bg-3:    #3d3d3d;
    --bg-4:    #4a4a4a;
    --bg-5:    #5a5a5a;
    --bg-hover:#404040;

    --tx-0: #ffffff;
    --tx-1: #e8e8e8;
    --tx-2: #a7a7a7;
    --tx-3: #6a6a6a;
    --tx-4: #444444;

    --c-yellow:  #f8d263;
    --c-orange:  #f0916d;
    --c-salmon:  #ff847c;
    --c-pink:    #f289bb;
    --c-purple:  #b786d9;
    --c-blue:    #6fa8ff;
    --c-cyan:    #5ccded;
    --c-mint:    #5dd3b8;
    --c-green:   #85d43c;
    --c-lime:    #b6e84a;

    --glow-yellow: rgba(248,210,99,.35);
    --glow-pink:   rgba(242,137,187,.35);
    --glow-cyan:   rgba(92,205,237,.35);
    --glow-mint:   rgba(93,211,184,.35);
    --glow-green:  rgba(133,212,60,.35);
    --glow-purple: rgba(183,134,217,.35);

    --rec: #ff3b3b;

    --ease: cubic-bezier(.16,1,.3,1);
    --ease-soft: cubic-bezier(.19,1,.22,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    background: var(--bg-deep);
    overflow: hidden;
    height: 100%;
}
body {
    background: var(--bg-1);
    color: var(--tx-1);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--c-yellow); color: var(--bg-0); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-5); }

:focus-visible {
    outline: 1px solid var(--c-yellow);
    outline-offset: 1px;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -100px; left: 12px;
    z-index: 9999;
    padding: 8px 12px;
    background: var(--c-yellow);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    border-radius: 3px;
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

main { height: 100vh; }

/* ============================================================
   BOOT LOADER
   ============================================================ */
body.is-booting { overflow: hidden; }
.boot-loader {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center;
    background: var(--bg-deep);
    transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.boot-loader::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 6px);
    pointer-events: none;
}
.boot-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-card {
    width: min(460px, 88vw);
    padding: 30px 30px 26px;
    background: var(--bg-1);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
    font-family: var(--font-mono);
    animation: bootCardIn .7s var(--ease) both;
}
.boot-row-top {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 16px; margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-5);
    font-size: 11px; letter-spacing: .15em; color: var(--tx-2);
}
.boot-logo-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 8px var(--glow-yellow); }
.boot-logo-name {
    font-family: var(--font-ui); font-weight: 900;
    font-size: 13px; color: var(--tx-0); letter-spacing: .14em;
}
.boot-meta { margin-left: auto; color: var(--tx-3); font-size: 10px; letter-spacing: .12em; }

.boot-stage {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px;
}
.boot-stage-label { font-size: 10px; letter-spacing: .25em; color: var(--tx-3); text-transform: uppercase; }
.boot-counter {
    margin-left: auto;
    font-family: var(--font-ui); font-weight: 900;
    font-size: 40px; line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 50%, var(--c-yellow) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    letter-spacing: -.02em;
}
.boot-percent { font-family: var(--font-ui); font-weight: 700; font-size: 18px; color: var(--c-yellow); }
.boot-bar { width: 100%; height: 3px; background: var(--bg-3); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.boot-bar-fill {
    display: block; height: 100%; width: 62%;
    background: linear-gradient(90deg, var(--c-mint), var(--c-yellow), var(--c-orange));
    animation: bootBarFill 2.8s var(--ease-soft) both;
}
.boot-log { list-style: none; font-size: 10px; color: var(--tx-3); letter-spacing: .1em; line-height: 1.95; }
.boot-log li {
    display: flex; align-items: center; gap: 6px;
    opacity: 0; transform: translateX(-6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.boot-log li.is-active { opacity: 1; transform: translateX(0); }
.boot-log-arrow { color: var(--c-yellow); }
.boot-log em { margin-left: auto; font-style: normal; color: var(--bg-4); font-weight: 700; }
.boot-log li.is-active em { color: var(--c-mint); }

@keyframes bootCardIn {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bootBarFill { from { width: 62%; } to { width: 100%; } }

/* ============================================================
   ABLETON WINDOW
   ============================================================ */
.hero-ableton {
    position: relative;
    height: 100vh;
    background: var(--bg-deep);
    overflow: hidden;
}

.ab-window {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 28px 40px 1fr 90px 22px;
    background: var(--bg-1);
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--tx-1);
    user-select: none;
}

/* ----- Menubar ----- */
.ab-menubar {
    display: flex; align-items: center;
    gap: 16px;
    padding: 0 14px 0 12px;
    background: var(--bg-0);
    border-bottom: 1px solid var(--bg-deep);
    font-size: 12px;
    color: var(--tx-2);
}
.ab-window-dots { display: flex; gap: 7px; margin-right: 8px; }
.ab-window-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.ab-window-dots i:nth-child(1) { background: #ff5f57; }
.ab-window-dots i:nth-child(2) { background: #febc2e; }
.ab-window-dots i:nth-child(3) { background: #28c840; }
.ab-menu { cursor: default; transition: color .15s; }
.ab-menu:hover { color: var(--tx-0); }
.ab-menu-spacer { flex: 1; }
.ab-menu-project {
    color: var(--tx-3);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
}
a.ab-menu--registro {
    color: var(--c-yellow);
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .15s var(--ease);
}
a.ab-menu--registro:hover { color: var(--tx-0); }

/* ----- Transport ----- */
.ab-transport {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 0 14px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--bg-deep);
    overflow-x: auto;
    scrollbar-width: none;
}
.ab-transport::-webkit-scrollbar { display: none; }
.ab-tp-group { display: flex; align-items: center; gap: 7px; color: var(--tx-2); font-size: 11px; }
.ab-tp-icon i { display: inline-block; width: 14px; height: 14px; background: var(--bg-3); border: 1px solid var(--bg-5); border-radius: 2px; }
.ab-tp-pill {
    padding: 2px 7px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    font-size: 10px;
    color: var(--tx-1);
}
.ab-tp-pill.active { background: var(--c-yellow); color: var(--bg-0); border-color: var(--c-yellow); }
.ab-tp-num {
    padding: 2px 8px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    color: var(--tx-0);
    font-family: var(--font-mono);
    font-size: 11px;
    min-width: 50px;
    text-align: center;
}
.ab-tp-meter {
    display: flex; gap: 1px; align-items: flex-end;
    width: 28px; height: 14px;
    padding: 1px;
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
}
.ab-tp-meter i { flex: 1; height: 30%; background: var(--c-yellow); display: block; }
.ab-tp-meter i:nth-child(1) { height: 80%; }
.ab-tp-meter i:nth-child(2) { height: 60%; }
.ab-tp-meter i:nth-child(3) { height: 40%; }
.ab-tp-meter i:nth-child(4) { height: 70%; }
.ab-tp-text { color: var(--tx-1); font-size: 11px; padding: 0 4px; }
.ab-tp-text-sm { color: var(--tx-2); font-size: 10px; font-family: var(--font-mono); }
.ab-tp-pair { display: flex; gap: 2px; }
.ab-circle {
    width: 12px; height: 12px; border-radius: 50%;
    border: 1px solid var(--bg-5);
    background: var(--bg-3);
}
.ab-circle.filled { background: var(--tx-1); border-color: var(--tx-1); }

.ab-tp-center { gap: 5px; }
.ab-tp-key {
    padding: 2px 8px;
    background: var(--c-purple);
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
    font-size: 11px;
}
.ab-tp-key-text { color: var(--tx-1); font-size: 11px; padding: 0 6px; }
.ab-divider { width: 1px; height: 16px; background: var(--bg-5); margin: 0 4px; }
.ab-tp-arrow { color: var(--tx-2); font-size: 12px; }
.ab-tp-time {
    font-family: var(--font-mono);
    color: var(--tx-1);
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    min-width: 50px;
    text-align: center;
}
.ab-play, .ab-stop, .ab-rec {
    width: 22px; height: 20px;
    display: grid; place-items: center;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    cursor: default;
}
.ab-play svg, .ab-stop svg, .ab-rec svg { width: 11px; height: 11px; }
.ab-play { color: var(--c-green); }
.ab-play.active { background: var(--c-green); color: var(--bg-0); border-color: var(--c-green); }
.ab-stop { color: var(--tx-1); }
.ab-rec { color: var(--rec); }
.ab-tp-plus, .ab-tp-loop { color: var(--c-yellow); font-size: 12px; padding: 0 4px; }
.ab-tp-right { margin-left: auto; gap: 6px; }

/* ============================================================
   BODY: Sidebar + Browser + Stage
   ============================================================ */
.ab-body {
    display: grid;
    grid-template-columns: 200px 200px 1fr;
    background: var(--bg-1);
    overflow: hidden;
    min-height: 0;
}

/* ----- Sidebar (nav del sitio) ----- */
.ab-sidebar {
    background: var(--bg-1);
    border-right: 1px solid var(--bg-deep);
    overflow-y: auto;
    padding-bottom: 16px;
}
.ab-search {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px;
    margin: 8px 10px 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    font-size: 11px;
    color: var(--tx-3);
    transition: border-color .15s var(--ease);
}
.ab-search:focus-within {
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 1px rgba(248,210,99,.25);
}
.ab-search-icon { color: var(--tx-3); font-size: 10px; flex-shrink: 0; }
.ab-search-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--tx-0);
    font-size: 11px;
    font-family: var(--font-mono);
    padding: 2px 0;
    min-width: 0;
}
.ab-search-input::placeholder { color: var(--tx-3); }
.ab-search-tools { color: var(--tx-3); font-size: 10px; flex-shrink: 0; }

.ab-side-section { margin-bottom: 14px; }
.ab-side-title {
    padding: 4px 14px;
    font-size: 11px;
    color: var(--tx-3);
    font-weight: 400;
    margin-bottom: 2px;
}
.ab-side-section ul { list-style: none; margin: 0; padding: 0; }
.ab-side-section li {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 14px;
    font-size: 12px;
    color: var(--tx-1);
    cursor: default;
    transition: background .12s var(--ease), color .12s var(--ease);
}
.ab-side-section li:hover { background: var(--bg-2); }

/* Items de la nav del sitio (clickeables) */
.ab-nav-section .ab-side-title { color: var(--c-yellow); font-weight: 600; letter-spacing: .12em; font-size: 10px; text-transform: uppercase; }
.ab-nav-list li {
    cursor: pointer;
    padding: 6px 14px;
}
.ab-nav-list li:hover { background: var(--bg-2); }
.ab-nav-list li.active {
    background: var(--bg-3);
    color: var(--tx-0);
    box-shadow: inset 2px 0 0 var(--c-yellow);
}

.ab-col-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.ab-cat-ico {
    width: 14px; height: 14px;
    display: grid; place-items: center;
    color: var(--tx-3); font-size: 11px; flex-shrink: 0;
}

/* ----- Browser content ----- */
.ab-browser {
    background: var(--bg-1);
    border-right: 1px solid var(--bg-deep);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.ab-browser-head {
    padding: 8px 14px;
    border-bottom: 1px solid var(--bg-deep);
    font-size: 11px;
    color: var(--tx-2);
}
.ab-browser-list {
    padding: 4px 0;
    flex: 1;
    overflow-y: auto;
    font-size: 11px;
}
.ab-browser-row {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px;
    color: var(--tx-1);
}
.ab-browser-row:hover { background: var(--bg-2); }
.ab-folder { color: var(--tx-3); font-size: 9px; }
.ab-folder-name { flex: 1; }
.ab-folder-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   STAGE (centro): track tops + clip grid + views
   ============================================================ */
.ab-stage {
    display: grid;
    grid-template-rows: 26px 90px 1fr;
    background: var(--bg-1);
    overflow: hidden;
    min-width: 0;
}

/* Track tops */
.ab-track-tops {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1fr repeat(2, 90px) 110px;
    background: var(--bg-deep);
}
.ab-track-top {
    padding: 5px 10px;
    font-size: 11px;
    color: var(--bg-0);
    font-weight: 600;
    border-right: 1px solid var(--bg-deep);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ab-track-top-spacer { background: var(--bg-1); }

/* Clip grid mini (siempre arriba — decorativo) */
.ab-clip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1fr repeat(2, 90px) 110px;
    grid-template-rows: repeat(4, 1fr);
    background: var(--bg-1);
    overflow: hidden;
}
.ab-clip-col {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    border-right: 1px solid var(--bg-deep);
    grid-row: 1 / 5;
}
.ab-clip-col:nth-child(1) { grid-column: 1; }
.ab-clip-col:nth-child(2) { grid-column: 2; }
.ab-clip-col:nth-child(3) { grid-column: 3; }
.ab-clip-col:nth-child(4) { grid-column: 4; }

.ab-slot {
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--bg-deep);
    background: var(--bg-2);
    position: relative;
    cursor: pointer;
    transition: background .12s var(--ease);
}
.ab-slot:hover { background: var(--bg-3); }
/* Clip activo toma color de la columna (Ableton real) */
.ab-slot.active {
    background: var(--slot-c, #f8d263);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.ab-stop-mini {
    width: 6px; height: 6px;
    background: var(--bg-4);
    border-radius: 1px;
}
.ab-clip-mini {
    position: absolute;
    inset: 3px;
    background: var(--slot-c, #f8d263);
    border-radius: 1px;
    border: 1px solid rgba(0,0,0,.25);
}

.ab-dropzone-mini {
    grid-column: 5;
    grid-row: 1 / 5;
    background: var(--bg-1);
    border-right: 1px solid var(--bg-deep);
}

.ab-scenes-mini {
    grid-column: 8;
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    background: var(--bg-2);
    border-left: 1px solid var(--bg-deep);
}
.ab-scene-mini {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid var(--bg-deep);
    font-size: 10px;
    color: var(--tx-2);
    font-family: var(--font-mono);
    cursor: default;
}
.ab-scene-play {
    width: 0; height: 0;
    border-left: 5px solid var(--tx-2);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.ab-scene-mini span:last-child { margin-left: auto; }

/* ============================================================
   VIEWS — área central que cambia (arrangement area)
   ============================================================ */
.ab-views {
    position: relative;
    background: var(--bg-1);
    overflow: hidden;
    border-top: 1px solid var(--bg-deep);
}
.ab-view {
    position: absolute;
    inset: 0;
    padding: 36px 48px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.ab-view.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.view-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 12px;
    margin-bottom: 20px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--tx-2);
    text-transform: uppercase;
}
.view-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 6px var(--glow-yellow);
}

.view-title {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1;
    letter-spacing: -.025em;
    color: var(--tx-0);
    margin-bottom: 16px;
}
.view-title .yellow { color: var(--c-yellow); }
.view-title .green { color: var(--c-green); }
.view-title .cyan { color: var(--c-cyan); }
.view-title .purple { color: var(--c-purple); }
.view-title .orange { color: var(--c-orange); }
.view-title .pink { color: var(--c-pink); }
.view-title .mint { color: var(--c-mint); }

.view-desc {
    font-size: 15px;
    color: var(--tx-1);
    line-height: 1.65;
    max-width: 620px;
    margin-bottom: 24px;
}

.view-instruction {
    margin: 24px 0;
    padding: 12px 16px;
    background: var(--bg-2);
    border-left: 2px solid var(--c-yellow);
    border-radius: 0 4px 4px 0;
}
.view-instruction .vi-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-yellow);
    letter-spacing: .12em;
}

.view-cta-row {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 24px;
}
.view-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .15em;
    border-radius: 3px;
    transition: all .2s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
}
.view-btn.primary {
    background: var(--c-yellow);
    color: var(--bg-0);
}
.view-btn.primary:hover {
    background: #fff;
    box-shadow: 0 0 18px var(--glow-yellow);
    transform: translateY(-1px);
}
.view-btn.ghost {
    background: var(--bg-2);
    border-color: var(--bg-5);
    color: var(--tx-1);
}
.view-btn.ghost:hover {
    border-color: var(--c-yellow);
    color: var(--c-yellow);
    background: rgba(248,210,99,.05);
}
.view-btn span { transition: transform .2s var(--ease); display: inline-block; }
.view-btn:hover span { transform: translateX(2px); }

/* CARDS dentro de las views (cursos) */
.view-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.view-card {
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.view-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--vc-color) 0%, transparent 60%);
    opacity: .08;
    pointer-events: none;
}
.view-card:hover { transform: translateY(-2px); border-color: var(--vc-color); box-shadow: 0 0 24px var(--vc-glow); }
.view-card.inicial { --vc-color: var(--c-green); --vc-glow: var(--glow-green); }
.view-card.avanzado { --vc-color: var(--c-purple); --vc-glow: var(--glow-purple); }

.vc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.vc-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--vc-color); font-weight: 700; }
.vc-led { width: 8px; height: 8px; border-radius: 50%; background: var(--vc-color); box-shadow: 0 0 6px var(--vc-glow); }
.vc-title { font-family: var(--font-ui); font-weight: 900; font-size: 28px; color: var(--tx-0); line-height: 1; margin-bottom: 4px; letter-spacing: -.02em; }
.vc-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--vc-color); margin-bottom: 14px; }
.vc-desc { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin-bottom: 16px; }
.vc-meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 12px 0; margin-bottom: 16px;
    border-top: 1px solid var(--bg-5); border-bottom: 1px solid var(--bg-5);
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em;
    color: var(--tx-2);
}
.vc-meta span { padding: 2px 8px; background: var(--bg-1); border-radius: 2px; }
.vc-cta {
    width: 100%;
    padding: 10px;
    background: var(--vc-color);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .15em;
    border-radius: 3px;
    transition: all .2s var(--ease);
    text-transform: uppercase;
}
.vc-cta:hover { background: #fff; box-shadow: 0 0 16px var(--vc-glow); }

/* STEPS (workflow) */
.view-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.view-step {
    padding: 18px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    position: relative;
}
.view-step::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--c-cyan);
}
.vs-num { font-family: var(--font-mono); font-size: 11px; color: var(--c-cyan); letter-spacing: .15em; font-weight: 700; display: block; margin-bottom: 6px; }
.view-step h4 { font-family: var(--font-ui); font-weight: 900; font-size: 16px; color: var(--tx-0); margin-bottom: 8px; letter-spacing: .04em; }
.view-step p { font-size: 12px; color: var(--tx-2); line-height: 1.55; }

/* BIO (about) */
.view-bio { max-width: 680px; margin-bottom: 24px; }
.view-bio p { font-size: 14px; color: var(--tx-1); line-height: 1.75; margin-bottom: 12px; }
.view-bio strong { color: var(--tx-0); font-weight: 600; }
.view-bio em { color: var(--c-purple); font-style: normal; }

.view-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vt {
    padding: 5px 10px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--tx-2);
}
.vt.hot { color: var(--c-yellow); border-color: var(--c-yellow); }

/* PERKS (comunidad) */
.view-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}
.view-perk {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
    font-size: 12px;
    color: var(--tx-1);
}
.vp-icon {
    width: 26px; height: 26px;
    background: var(--bg-3);
    border-radius: 3px;
    display: grid; place-items: center;
    color: var(--c-orange);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* FORMS dentro de views */
.view-form, .view-form-grid {
    max-width: 520px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.view-form-grid { max-width: 680px; gap: 14px; }
.vf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf-field { display: flex; flex-direction: column; gap: 5px; }
.vf-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--tx-3); }
.vf-lbl .req { color: var(--rec); }

.view-input {
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    color: var(--tx-0);
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 3px;
    outline: none;
    transition: all .15s var(--ease);
    font-family: var(--font-ui);
    width: 100%;
}
.view-input::placeholder { color: var(--tx-3); }
.view-input:focus {
    border-color: var(--c-yellow);
    box-shadow: 0 0 0 2px rgba(248,210,99,.18);
    background: var(--bg-2);
}
.view-input.is-error {
    border-color: var(--rec);
    box-shadow: 0 0 0 2px rgba(255,59,59,.15);
}
textarea.view-input { min-height: 80px; resize: vertical; }
select.view-input {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a7a7a7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}

.field-error {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--rec);
    letter-spacing: .1em;
    min-height: 14px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.field-error.is-shown { opacity: 1; transform: translateY(0); }

.view-form-foot {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
    letter-spacing: .08em;
    margin-top: 6px;
}

/* ============================================================
   DEVICE CHAIN abajo (cambia con cada vista)
   ============================================================ */
.ab-device-chain {
    background: var(--bg-2);
    border-top: 1px solid var(--bg-deep);
    padding: 8px 14px;
    overflow: hidden;
    position: relative;
}
.ab-dc-row {
    display: none;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}
.ab-dc-row.is-active { display: flex; }

.ab-dc-info {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
    letter-spacing: .08em;
}
.ab-dc-icon {
    display: inline-grid; place-items: center;
    width: 14px; height: 14px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 50%;
    color: var(--c-yellow);
    font-size: 9px;
    font-style: italic;
    font-weight: 700;
}
.ab-dc-text { color: var(--tx-2); }

.ab-dc-devices {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: auto;
}
.ab-dc-device {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    background: var(--bg-1);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-2);
    letter-spacing: .08em;
    white-space: nowrap;
    cursor: default;
    transition: all .15s var(--ease);
}
.ab-dc-device:hover { border-color: var(--c-yellow); }
.ab-dc-device.on { background: var(--bg-3); color: var(--tx-1); }
.ab-dc-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bg-5);
    flex-shrink: 0;
}
.ab-dc-device.on .ab-dc-led {
    background: var(--c-yellow);
    box-shadow: 0 0 5px var(--glow-yellow);
}
.ab-dc-name { font-weight: 700; color: var(--tx-1); }
.ab-dc-val { color: var(--tx-3); font-size: 10px; }
.ab-dc-device.on .ab-dc-val { color: var(--c-yellow); }

/* ============================================================
   FOOTER
   ============================================================ */
.ab-footer {
    display: flex; align-items: center;
    padding: 0 14px;
    background: var(--bg-0);
    border-top: 1px solid var(--bg-deep);
    font-size: 10px;
    color: var(--tx-3);
    gap: 16px;
}
.ab-footer-dropzone {
    flex: 1;
    text-align: center;
    color: var(--tx-3);
    font-size: 11px;
}
.ab-footer-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ab-footer-btn {
    padding: 2px 10px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    color: var(--tx-1);
    font-size: 10px;
}
.ab-footer-track { color: var(--c-yellow); font-size: 11px; }
.ab-footer-mini {
    padding: 2px 8px;
    background: var(--c-yellow);
    color: var(--bg-0);
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-toggle {
    display: none;
    position: fixed;
    top: 12px; right: 14px;
    z-index: 200;
    width: 38px; height: 32px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    cursor: pointer;
}
.nav-toggle span {
    position: absolute;
    left: 9px; right: 9px;
    height: 2px;
    border-radius: 99px;
    background: var(--tx-0);
    transition: transform .35s var(--ease-soft), top .35s var(--ease-soft), opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .ab-window { grid-template-rows: 28px 40px 1fr 80px 22px; }
    .ab-body { grid-template-columns: 180px 1fr; }
    .ab-browser { display: none; }
    .ab-view { padding: 28px 32px; }
    .view-cards { grid-template-columns: 1fr; }
    .view-steps { grid-template-columns: 1fr; }
    .view-perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    html, body { overflow-y: auto; height: auto; }
    main { height: auto; }
    .ab-window {
        position: relative;
        min-height: 100vh;
        grid-template-rows: 28px 40px auto auto 22px;
    }
    .ab-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    /* Sidebar como drawer mobile */
    .ab-sidebar {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        left: auto;
        width: min(280px, 80vw);
        z-index: 150;
        background: var(--bg-1);
        border-left: 1px solid var(--bg-5);
        box-shadow: -20px 0 50px rgba(0,0,0,.55);
        transform: translateX(100%);
        transition: transform .42s var(--ease-soft);
        padding-top: 60px;
    }
    .ab-sidebar.is-open { transform: translateX(0); }

    body.nav-open { overflow: hidden; }
    body.nav-open::before {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 140;
        animation: navOverlayIn .3s ease forwards;
    }
    @keyframes navOverlayIn { from { opacity: 0; } to { opacity: 1; } }

    .nav-toggle { display: block; }

    .ab-stage { grid-template-rows: 24px 60px auto; }
    .ab-views { min-height: 60vh; }
    .ab-view { padding: 24px 20px; }
    .view-title { font-size: clamp(24px, 8vw, 36px); }
    .view-desc { font-size: 14px; }
    .view-perks { grid-template-columns: 1fr; }
    .vf-row { grid-template-columns: 1fr; }

    .ab-device-chain { padding: 8px 12px; }
    .ab-dc-devices { padding-bottom: 4px; }

    .ab-track-tops { grid-template-columns: repeat(4, 1fr); }
    .ab-track-tops > *:nth-child(n+5) { display: none; }
    .ab-clip-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
    .ab-clip-grid > .ab-clip-col { grid-row: 1 / 4; }
    .ab-dropzone-mini, .ab-scenes-mini { display: none; }

    .ab-transport { gap: 8px; padding: 0 10px; }
    .ab-tp-text-sm:nth-child(n+3) { display: none; }
    .ab-menubar { gap: 12px; padding: 0 10px; }
    .ab-menu:nth-child(n+6) { display: none; }
    .ab-menu-project { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .boot-loader { display: none; }
}

/* ============================================================
   SUB-VISTAS (dentro de cada vista)
   ============================================================ */
.view-sub {
    display: none;
    animation: subFadeIn .25s var(--ease) both;
}
.view-sub.is-active { display: block; }
@keyframes subFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-back {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 10px;
    margin-bottom: 20px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-2);
    letter-spacing: .1em;
    cursor: pointer;
    transition: all .15s var(--ease);
}
.view-back:hover {
    background: var(--bg-3);
    color: var(--c-yellow);
    border-color: var(--c-yellow);
}

.view-h3 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    color: var(--tx-0);
    letter-spacing: .04em;
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.view-list {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.view-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px;
    color: var(--tx-1);
    line-height: 1.6;
}
.view-list li::before {
    content: '◆';
    color: var(--c-yellow);
    font-size: 8px;
    flex-shrink: 0;
    margin-top: 6px;
}
.view-list-clean li::before { content: '·'; color: var(--c-yellow); font-size: 14px; margin-top: 0; }

.view-spec-list {
    display: flex; flex-direction: column;
    gap: 1px;
    margin: 20px 0;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
    overflow: hidden;
}
.vsl-row {
    display: flex; justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-1);
    font-family: var(--font-mono);
    font-size: 12px;
}
.vsl-lbl {
    color: var(--tx-3);
    letter-spacing: .15em;
    font-size: 10px;
    text-transform: uppercase;
}
.vsl-val {
    color: var(--tx-0);
    font-weight: 600;
}
.vsl-val.green { color: var(--c-green); }
.vsl-val.purple { color: var(--c-purple); }
.vsl-val.orange { color: var(--c-orange); }
.vsl-val.cyan { color: var(--c-cyan); }
.vsl-val.warn {
    color: var(--c-orange);
    background: rgba(240,145,109,.1);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
}

/* ============================================================
   PROGRAMAS — Device Cards (estilo plugin Ableton)
   ============================================================ */
.device-rack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.ab-device-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s var(--ease);
    position: relative;
}
.ab-device-card::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 3px;
    background: var(--device-c);
}
.ab-device-card[data-color="#85d43c"] { --device-c: #85d43c; --device-glow: var(--glow-green); }
.ab-device-card[data-color="#b786d9"] { --device-c: #b786d9; --device-glow: var(--glow-purple); }
.ab-device-card[data-color="#f0916d"] { --device-c: #f0916d; --device-glow: rgba(240,145,109,.35); }
.ab-device-card[data-color="#5ccded"] { --device-c: #5ccded; --device-glow: var(--glow-cyan); }
.ab-device-card:hover {
    border-color: var(--device-c);
    box-shadow: 0 0 18px var(--device-glow);
    transform: translateY(-1px);
}

.adc-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px 8px 14px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--bg-deep);
    font-family: var(--font-mono);
}
.adc-led {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--device-c);
    box-shadow: 0 0 6px var(--device-glow);
    flex-shrink: 0;
}
.adc-name {
    flex: 1;
    font-size: 11px;
    color: var(--tx-0);
    letter-spacing: .1em;
    font-weight: 700;
}
.adc-actions {
    font-size: 11px;
    color: var(--tx-3);
    letter-spacing: .15em;
}

.adc-body {
    padding: 14px;
    display: flex; flex-direction: column;
    gap: 12px;
    background: var(--bg-1);
}
.adc-knob-row {
    display: flex; gap: 16px;
    align-items: flex-start;
}
.adc-knob {
    display: flex; flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}
.adc-knob-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bg-4), var(--bg-deep));
    border: 1px solid var(--bg-5);
    position: relative;
    transform: rotate(var(--rot, 0deg));
}
.adc-knob-circle::after {
    content: '';
    position: absolute;
    top: 2px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 7px;
    background: var(--device-c);
    border-radius: 1px;
    box-shadow: 0 0 4px var(--device-glow);
}
.adc-knob-lbl {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--tx-3);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.adc-knob-val {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--device-c);
    font-weight: 700;
}

.adc-mode {
    display: flex; align-items: center; gap: 6px;
    padding: 8px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
}
.adc-mode-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--tx-3);
    letter-spacing: .15em;
    margin-right: 4px;
}
.adc-mode-btn {
    padding: 3px 9px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-2);
    letter-spacing: .08em;
}
.adc-mode-btn.active {
    background: var(--device-c);
    color: var(--bg-0);
    border-color: var(--device-c);
    font-weight: 700;
}
.adc-mode-btn.warn {
    background: var(--c-orange);
    color: var(--bg-0);
    border-color: var(--c-orange);
    font-weight: 700;
    box-shadow: 0 0 6px rgba(240,145,109,.4);
}

.adc-desc {
    font-size: 12px;
    color: var(--tx-2);
    line-height: 1.55;
    margin: 4px 0 0;
}

/* ============================================================
   HOME — Highlights
   ============================================================ */
.view-highlights {
    display: flex; flex-direction: column;
    gap: 10px;
    margin: 20px 0 24px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
}
.vh-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px;
    color: var(--tx-1);
}
.vh-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--c-yellow);
    font-weight: 700;
    letter-spacing: .12em;
    padding: 4px 8px;
    background: rgba(248,210,99,.12);
    border-radius: 2px;
    flex-shrink: 0;
}
.vh-text { color: var(--tx-1); }

/* ============================================================
   PACK — Callout (texto sobre alumnos)
   ============================================================ */
.view-callout {
    margin-top: 28px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(242,137,187,.08), rgba(248,210,99,.04));
    border: 1px solid rgba(242,137,187,.35);
    border-radius: 4px;
}
.vc-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--c-pink);
    letter-spacing: .2em;
    margin-bottom: 8px;
}
.view-callout p {
    font-size: 13px;
    color: var(--tx-1);
    line-height: 1.65;
    margin-bottom: 12px;
}
.view-callout strong { color: var(--c-pink); font-weight: 600; }

/* ============================================================
   INSCRIPCIÓN — Process steps
   ============================================================ */
.view-process {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0 26px;
}
.vp-step {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
    font-size: 13px;
    color: var(--tx-1);
}
.vp-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-mint);
    font-weight: 700;
    letter-spacing: .12em;
    padding: 3px 8px;
    background: rgba(93,211,184,.12);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================================
   BIO (sobre be skillz)
   ============================================================ */
.view-bio { margin: 16px 0 24px; }

/* ============================================================
   BROWSER row hover (clickeable)
   ============================================================ */
.ab-browser-row {
    cursor: pointer;
}
.ab-browser-row:hover {
    background: var(--bg-3);
}
.ab-browser-row:hover .ab-folder { color: var(--c-yellow); }
.ab-browser-row:focus-visible {
    background: var(--bg-3);
    outline: 1px solid var(--c-yellow);
}

/* ============================================================
   Responsive extras para devices
   ============================================================ */
@media (max-width: 900px) {
    .device-rack { grid-template-columns: 1fr; }
    .view-process { grid-template-columns: 1fr; }
}

/* ============================================================
   ABLE-STYLE BUTTONS (metrónomo + tap) FUNCIONALES
   ============================================================ */
.ab-tp-icon {
    display: inline-block;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 0;
}
.ab-tp-icon i {
    display: inline-block;
    width: 14px; height: 14px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 2px;
    transition: all .15s var(--ease);
}
.ab-tp-icon:hover i { border-color: var(--c-yellow); }
.ab-tp-icon[aria-pressed="true"] i {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
    box-shadow: 0 0 8px var(--glow-yellow);
}
.ab-tp-icon[aria-pressed="true"] {
    animation: metroPulse var(--metro-interval, 500ms) steps(2) infinite;
}
@keyframes metroPulse {
    0%, 49% { filter: brightness(1); }
    50%, 100% { filter: brightness(1.4); }
}

button.ab-tp-pill {
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all .12s var(--ease);
}
button.ab-tp-pill:hover {
    background: var(--c-yellow);
    color: var(--bg-0);
    border-color: var(--c-yellow);
}
button.ab-tp-pill.flash {
    background: var(--c-yellow);
    color: var(--bg-0);
    border-color: var(--c-yellow);
    transform: scale(.94);
}

/* Slot interaction: ya no son clickeables */
.ab-slot {
    cursor: default;
}
.ab-slot:hover { background: var(--bg-2); }

/* ============================================================
   ONBOARDING — view-howto (en INICIO)
   ============================================================ */
.view-howto {
    margin: 22px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(248,210,99,.07), rgba(93,211,184,.04));
    border: 1px solid rgba(248,210,99,.3);
    border-radius: 4px;
}
.vh-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--c-yellow);
    margin-bottom: 6px;
}
.vh-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 16px;
    color: var(--tx-0);
    margin-bottom: 14px;
}
.vh-list {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 10px;
}
.vh-list li {
    display: flex; align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--tx-1);
    line-height: 1.55;
}
.vh-step {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-yellow);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    display: grid; place-items: center;
}
.vh-list strong { color: var(--c-yellow); font-weight: 600; }

/* HINT flotante (apunta al sidebar) */
.onboard-hint {
    position: fixed;
    top: 130px;
    left: 215px;
    z-index: 500;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 36px 10px 14px;
    background: var(--c-yellow);
    color: var(--bg-0);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2);
    animation: hintBob 2s ease-in-out infinite;
    max-width: 280px;
}
.onboard-hint[hidden] { display: none; }
.oh-arrow {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.oh-text { line-height: 1.4; }
.oh-text strong { font-weight: 700; }
.oh-close {
    position: absolute;
    top: 4px; right: 6px;
    background: none;
    border: 0;
    color: var(--bg-0);
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    opacity: .6;
}
.oh-close:hover { opacity: 1; }
@keyframes hintBob {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

/* ============================================================
   MODAL — Pack Gratis al cargar
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0,0,0,.78);
    display: grid;
    place-items: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: min(460px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 30px 26px;
    background: var(--bg-1);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 60px rgba(242,137,187,.08),
        inset 0 1px 0 rgba(255,255,255,.04);
    transform: translateY(20px) scale(.96);
    transition: transform .4s var(--ease-soft);
}
.modal-overlay.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 28px; height: 28px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    color: var(--tx-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all .15s var(--ease);
}
.modal-close:hover { background: var(--bg-3); color: var(--tx-0); border-color: var(--c-yellow); }

.modal-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 11px;
    margin-bottom: 18px;
    background: rgba(242,137,187,.1);
    border: 1px solid rgba(242,137,187,.4);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--c-pink);
}
.me-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-pink);
    box-shadow: 0 0 6px var(--glow-pink);
}

.modal-title {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--tx-0);
    margin-bottom: 14px;
}
.modal-title .pink { color: var(--c-pink); }

.modal-text {
    font-size: 14px;
    color: var(--tx-1);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-list {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
}
.modal-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px;
    color: var(--tx-1);
    font-family: var(--font-mono);
    letter-spacing: .03em;
}
.modal-list li::before {
    content: '✓';
    color: var(--c-mint);
    font-weight: 700;
    flex-shrink: 0;
}

.modal-form {
    display: flex; flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.modal-input {
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    color: var(--tx-0);
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 3px;
    outline: none;
    transition: all .15s var(--ease);
    width: 100%;
}
.modal-input::placeholder { color: var(--tx-3); }
.modal-input:focus {
    border-color: var(--c-pink);
    box-shadow: 0 0 0 2px rgba(242,137,187,.18);
}
.modal-input.is-error {
    border-color: var(--rec);
    box-shadow: 0 0 0 2px rgba(255,59,59,.15);
}

.modal-submit {
    padding: 14px 18px;
    background: var(--c-pink);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .15em;
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.modal-submit:hover {
    background: #fff;
    box-shadow: 0 0 18px var(--glow-pink);
    transform: translateY(-1px);
}
.modal-submit span {
    display: inline-block;
    transition: transform .2s var(--ease);
}
.modal-submit:hover span { transform: translateX(3px); }

.modal-later {
    padding: 8px;
    background: none;
    border: 0;
    color: var(--tx-3);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s var(--ease);
}
.modal-later:hover { color: var(--tx-1); }

.modal-foot {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
    letter-spacing: .06em;
    line-height: 1.5;
    text-align: center;
}

body.modal-open { overflow: hidden; }

/* En mobile el hint se posiciona diferente */
@media (max-width: 820px) {
    .onboard-hint {
        top: 70px;
        left: 14px;
        right: 14px;
        max-width: none;
    }
    .modal-card { padding: 26px 22px 22px; }
    .modal-title { font-size: 24px; }
}

/* ============================================================
   TOOLTIPS (hover sobre sidebar items + browser rows)
   ============================================================ */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::before,
[data-tooltip]::after {
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s var(--ease) .25s, transform .18s var(--ease) .25s;
    z-index: 800;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translate(-4px, -50%);
    padding: 9px 13px;
    width: 240px;
    background: var(--c-yellow);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .03em;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.18);
    white-space: normal;
}
[data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translate(-4px, -50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--c-yellow);
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Si el tooltip está cerca del borde derecho (browser column), va a la izquierda */
.ab-browser-row[data-tooltip]::after {
    left: auto;
    right: calc(100% + 14px);
    transform: translate(4px, -50%);
}
.ab-browser-row[data-tooltip]::before {
    left: auto;
    right: calc(100% + 6px);
    transform: translate(4px, -50%);
    border-right: 0;
    border-left: 8px solid var(--c-yellow);
}
.ab-browser-row[data-tooltip]:hover::before,
.ab-browser-row[data-tooltip]:hover::after {
    transform: translate(0, -50%);
}

/* Mobile: los tooltips ocultos para no romper la UI */
@media (max-width: 820px) {
    [data-tooltip]::before,
    [data-tooltip]::after { display: none; }
}

/* ============================================================
   ANIMACIONES SUTILES — polish
   ============================================================ */

/* Sidebar BE SKILLZ items: pequeño slide al hover */
.ab-nav-list li {
    transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), padding-left .2s var(--ease);
}
.ab-nav-list li:hover:not(.active) {
    padding-left: 18px;
}
.ab-nav-list li .ab-col-dot {
    transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease);
}
.ab-nav-list li:hover .ab-col-dot,
.ab-nav-list li.active .ab-col-dot {
    transform: scale(1.15);
    box-shadow: 0 0 8px currentColor;
}

/* Browser rows: slide y highlight si es el sub-vista activa */
.ab-browser-row {
    transition: background .15s var(--ease), padding-left .2s var(--ease);
}
.ab-browser-row:hover {
    padding-left: 16px;
}
.ab-browser-row.is-current {
    background: var(--bg-3);
    box-shadow: inset 2px 0 0 var(--c-yellow);
}
.ab-browser-row.is-current .ab-folder { color: var(--c-yellow); }
.ab-browser-row.is-current .ab-folder-name { color: var(--tx-0); font-weight: 600; }

/* Track tops: pulso suave al hover */
.ab-track-top {
    transition: filter .2s var(--ease), transform .2s var(--ease-soft);
    cursor: default;
}
.ab-track-top:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Device chain items: glow al hover */
.ab-dc-device {
    transition: all .18s var(--ease);
}
.ab-dc-device.on:hover {
    border-color: var(--c-yellow);
    box-shadow: 0 0 10px rgba(248,210,99,.2);
    transform: translateY(-1px);
}
.ab-dc-device.on:hover .ab-dc-led {
    box-shadow: 0 0 10px var(--glow-yellow);
}

/* CTAs principales en views: lift sutil */
.view-btn {
    will-change: transform;
}
.view-btn.primary {
    box-shadow: 0 0 0 rgba(248,210,99,0);
    transition: all .2s var(--ease);
}
.view-btn.primary:hover {
    box-shadow: 0 6px 18px rgba(248,210,99,.25);
}

/* Device cards (programas): lift + glow más expresivo */
.ab-device-card {
    transition: transform .25s var(--ease-soft), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.ab-device-card:hover .adc-led {
    animation: ledThrob 1.2s ease-in-out infinite;
}
@keyframes ledThrob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}
.ab-device-card:hover .adc-knob-circle {
    transition: transform .4s var(--ease);
    transform: rotate(calc(var(--rot, 0deg) + 12deg));
}

/* Highlight del track activo en el sidebar — pulso del dot */
.ab-nav-list li.active .ab-col-dot {
    animation: navDotPulse 2.2s ease-in-out infinite;
}
@keyframes navDotPulse {
    0%, 100% { box-shadow: 0 0 8px currentColor; }
    50% { box-shadow: 0 0 14px currentColor, 0 0 22px currentColor; }
}

/* Sub-vista cambia con un slide más cinematográfico */
.view-sub {
    animation: subFadeSlide .35s var(--ease) both;
}
@keyframes subFadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* View-back: hover con flecha que se mueve */
.view-back {
    transition: all .15s var(--ease), padding-left .2s var(--ease);
}
.view-back:hover {
    padding-left: 14px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .ab-nav-list li.active .ab-col-dot,
    .ab-device-card:hover .adc-led {
        animation: none !important;
    }
}

/* ============================================================
   BANNER ACADEMIA SKILLZ (arriba del sidebar)
   ============================================================ */
.ab-academy-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px 10px;
    margin: 4px 10px 6px;
    background: linear-gradient(135deg, rgba(248,210,99,.10), rgba(248,210,99,.02));
    border: 1px solid rgba(248,210,99,.32);
    border-radius: 4px;
}
.aab-mark {
    width: 8px; height: 24px;
    background: linear-gradient(180deg, var(--c-yellow), var(--c-orange));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--glow-yellow);
}
.aab-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aab-name {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--tx-0);
    line-height: 1;
}
.aab-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .1em;
    color: var(--tx-3);
}

/* ============================================================
   ALUMNOS — sección sidebar + desplegable
   ============================================================ */
.ab-side-title--alumnos {
    color: var(--c-orange);
    font-weight: 600;
    letter-spacing: .12em;
    font-size: 10px;
    text-transform: uppercase;
}

.ab-alumnos-section {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-deep);
}

.ab-alumnos-nav .ab-nav-parent {
    display: block;
    padding: 0;
    cursor: default;
}
.ab-alumnos-nav .ab-nav-parent:hover { background: transparent; }

.ab-nav-parent-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 14px;
    text-align: left;
    font: inherit;
    font-size: 12px;
    color: var(--tx-1);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .12s var(--ease), padding-left .2s var(--ease);
}
.ab-nav-parent-btn:hover,
.ab-nav-parent.is-open > .ab-nav-parent-btn {
    background: var(--bg-2);
    padding-left: 18px;
}
.ab-nav-label { flex: 1; }
.ab-nav-chevron {
    font-size: 9px;
    color: var(--tx-3);
    transition: transform .2s var(--ease), color .15s;
}
.ab-nav-parent.is-open .ab-nav-chevron {
    transform: rotate(90deg);
    color: var(--c-orange);
}

.ab-nav-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
}
.ab-nav-sub[hidden] { display: none; }
.ab-nav-sub > li {
    display: block;
    padding: 0;
}
.ab-nav-sub > li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 32px;
    font-size: 12px;
    color: var(--tx-2);
    transition: background .12s var(--ease), color .12s, padding-left .2s;
}
.ab-nav-sub > li a:hover {
    background: var(--bg-2);
    color: var(--tx-0);
    padding-left: 36px;
}
.ab-nav-sub .ab-col-dot {
    width: 8px;
    height: 8px;
}

/* ============================================================
   VST CHIPS (servicios)
   ============================================================ */
.vst-grid {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 12px 0 18px;
}
.vst-chip {
    padding: 6px 12px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--tx-1);
    letter-spacing: .04em;
    transition: all .15s var(--ease);
}
.vst-chip:hover {
    border-color: var(--c-blue);
    color: var(--c-blue);
    transform: translateY(-1px);
}
.vst-chip.more {
    background: rgba(111,168,255,.08);
    border-color: var(--c-blue);
    color: var(--c-blue);
    font-style: italic;
}

/* ============================================================
   TRIÁNGULO DE PRIORIDADES
   ============================================================ */
.triangle-method {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin: 20px 0 16px;
    padding: 18px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
}
.triangle-svg { width: 100%; max-width: 280px; height: auto; }
.triangle-info { display: flex; flex-direction: column; gap: 14px; }
.ti-row { display: flex; gap: 12px; align-items: flex-start; }
.ti-num {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
}
.ti-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    color: var(--tx-0);
    margin-bottom: 4px;
    letter-spacing: .04em;
}
.ti-row p { font-size: 12px; color: var(--tx-1); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
    .triangle-method { grid-template-columns: 1fr; }
    .triangle-svg { margin: 0 auto 12px; }
}

/* ============================================================
   PLUG-INS (AU/VST2/VST3)
   ============================================================ */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}
.plugin-card {
    padding: 20px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    transition: all .2s var(--ease);
}
.plugin-card:hover {
    border-color: var(--c-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.4), 0 0 18px var(--glow-green);
}
.pc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pc-tag {
    padding: 4px 10px;
    background: var(--c-green);
    color: var(--bg-0);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .15em;
    border-radius: 2px;
}
.pc-os {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
    letter-spacing: .08em;
}
.pc-title {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 22px;
    color: var(--tx-0);
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.pc-desc { font-size: 12px; color: var(--tx-2); line-height: 1.6; margin-bottom: 12px; }
.pc-meta {
    display: flex; flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-5);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
}
.pc-meta strong { color: var(--tx-1); font-weight: 600; }

@media (max-width: 900px) {
    .plugins-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DRUM CARDS (con waveform y play)
   ============================================================ */
.drum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.drum-card {
    padding: 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.drum-card:hover {
    border-color: var(--c, var(--c-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.drum-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.drum-led {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c, var(--c-orange));
    box-shadow: 0 0 6px var(--c, var(--c-orange));
    flex-shrink: 0;
}
.drum-name {
    flex: 1;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    color: var(--tx-0);
}
.drum-play-btn {
    width: 28px; height: 28px;
    background: var(--bg-3);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    color: var(--c, var(--c-orange));
    font-size: 12px;
    cursor: pointer;
    transition: all .15s var(--ease);
    line-height: 1;
}
.drum-play-btn:hover {
    background: var(--c, var(--c-orange));
    color: var(--bg-0);
    border-color: var(--c, var(--c-orange));
    box-shadow: 0 0 12px var(--c, var(--c-orange));
}
.drum-play-btn.is-playing {
    background: var(--c, var(--c-orange));
    color: var(--bg-0);
    transform: scale(.9);
}
.drum-wave {
    display: block;
    width: 100%; height: 60px;
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    border-radius: 3px;
    margin-bottom: 10px;
}
.drum-card-desc {
    font-size: 11px;
    color: var(--tx-2);
    line-height: 1.55;
    margin: 0;
}

/* Drum detail */
.drum-detail-panel {
    display: flex; align-items: center; gap: 16px;
    margin: 16px 0 20px;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
}
.drum-play-large {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 90px; height: 90px;
    background: var(--c-yellow);
    color: var(--bg-0);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s var(--ease);
    box-shadow: 0 6px 18px var(--glow-yellow);
}
.drum-play-large:hover {
    transform: scale(1.04);
    background: #fff;
    box-shadow: 0 8px 24px var(--glow-yellow);
}
.drum-play-large.is-playing {
    transform: scale(.94);
}
.dpl-icon { font-size: 22px; line-height: 1; }
.dpl-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .15em;
    font-weight: 700;
}
.drum-wave-large {
    flex: 1; height: 120px;
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
    min-width: 0;
}

/* ============================================================
   NATIVE CARDS (instruments, audiofx, midifx)
   ============================================================ */
.ab-native-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.native-card {
    padding: 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 5px;
    cursor: pointer;
    transition: all .18s var(--ease);
}
.native-card:hover {
    border-color: var(--c);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.32);
}
.nc-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.nc-icon {
    width: 20px; height: 20px;
    color: var(--c);
    flex-shrink: 0;
    display: inline-grid; place-items: center;
}
.nc-icon svg { width: 100%; height: 100%; }
.nc-icon.big {
    width: 48px; height: 48px;
}
.nc-name {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    color: var(--tx-0);
}
.nc-desc {
    font-size: 11px;
    color: var(--tx-2);
    line-height: 1.55;
    margin: 0;
}

.item-detail-head {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 720px) {
    .drum-grid, .ab-native-grid { grid-template-columns: 1fr; }
    .drum-detail-panel { flex-direction: column; }
    .drum-wave-large { width: 100%; }
}

/* ============================================================
   ANIMACIONES PLUS — reveal escalonado, VU vivo, sheen
   (todo bajo no-preference para respetar reduce-motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

    /* Reveal escalonado del contenido al cambiar de vista/sub */
    .ab-view.is-active .view-sub.is-active > * {
        animation: viewChildRise .5s var(--ease, ease) both;
    }
    .ab-view.is-active .view-sub.is-active > *:nth-child(1) { animation-delay: .03s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(2) { animation-delay: .07s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(3) { animation-delay: .11s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(4) { animation-delay: .15s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(5) { animation-delay: .19s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(6) { animation-delay: .23s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(7) { animation-delay: .27s; }
    .ab-view.is-active .view-sub.is-active > *:nth-child(n+8) { animation-delay: .31s; }
    @keyframes viewChildRise {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Stagger de cards dentro de las grillas */
    .device-rack > .ab-device-card,
    .drum-grid > .drum-card,
    .ab-native-grid > .native-card,
    .plugins-grid > .plugin-card {
        animation: cardRise .5s var(--ease, ease) both;
    }
    .device-rack > *:nth-child(1), .drum-grid > *:nth-child(1),
    .ab-native-grid > *:nth-child(1), .plugins-grid > *:nth-child(1) { animation-delay: .06s; }
    .device-rack > *:nth-child(2), .drum-grid > *:nth-child(2),
    .ab-native-grid > *:nth-child(2), .plugins-grid > *:nth-child(2) { animation-delay: .12s; }
    .device-rack > *:nth-child(3), .drum-grid > *:nth-child(3),
    .ab-native-grid > *:nth-child(3), .plugins-grid > *:nth-child(3) { animation-delay: .18s; }
    .device-rack > *:nth-child(4), .drum-grid > *:nth-child(4),
    .ab-native-grid > *:nth-child(4) { animation-delay: .24s; }
    .drum-grid > *:nth-child(5), .ab-native-grid > *:nth-child(5) { animation-delay: .30s; }
    .drum-grid > *:nth-child(6), .ab-native-grid > *:nth-child(6) { animation-delay: .36s; }
    .drum-grid > *:nth-child(n+7), .ab-native-grid > *:nth-child(n+7) { animation-delay: .42s; }
    @keyframes cardRise {
        from { opacity: 0; transform: translateY(16px) scale(.98); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* VU meter vivo en el transport */
    .ab-tp-meter i { animation: vuBar 1.1s ease-in-out infinite; transform-origin: bottom; }
    .ab-tp-meter i:nth-child(1) { animation-delay: 0s; }
    .ab-tp-meter i:nth-child(2) { animation-delay: .18s; }
    .ab-tp-meter i:nth-child(3) { animation-delay: .36s; }
    .ab-tp-meter i:nth-child(4) { animation-delay: .54s; }
    @keyframes vuBar {
        0%, 100% { transform: scaleY(.45); opacity: .8; }
        50%      { transform: scaleY(1);   opacity: 1; }
    }

    /* Pulso suave del play activo */
    .ab-play.active { animation: playGlow 2.4s ease-in-out infinite; }
    @keyframes playGlow {
        0%, 100% { box-shadow: 0 0 0 rgba(133,212,60,0); }
        50%      { box-shadow: 0 0 12px rgba(133,212,60,.55); }
    }
}

/* Sheen (brillo que barre) en botones primarios */
.view-btn.primary, .auth-submit:not(.auth-submit--ghost) {
    position: relative;
    overflow: hidden;
}
.view-btn.primary::after, .auth-submit:not(.auth-submit--ghost)::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .view-btn.primary:hover::after,
    .auth-submit:not(.auth-submit--ghost):hover::after {
        animation: btnSheen .7s var(--ease, ease) forwards;
    }
    @keyframes btnSheen {
        from { left: -120%; }
        to   { left: 130%; }
    }
}

/* ============================================================
   ESTUDIO — foto + grilla de equipos (Metodología)
   ============================================================ */
.studio-photo {
    margin: 8px 0 24px;
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-2);
}
.studio-svg { display: block; width: 100%; height: auto; }
.studio-photo figcaption {
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--tx-3);
    letter-spacing: .04em;
    border-top: 1px solid var(--bg-5);
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0 8px;
}
.gear-card {
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 6px;
    transition: transform .2s var(--ease, ease), border-color .2s, box-shadow .2s;
}
.gear-card:hover {
    transform: translateY(-2px);
    border-color: var(--c-cyan);
    box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 16px var(--glow-cyan);
}
.gear-img {
    display: grid; place-items: center;
    height: 72px;
    margin-bottom: 12px;
    color: var(--c-cyan);
    background: var(--bg-deep);
    border: 1px solid var(--bg-5);
    border-radius: 4px;
}
.gear-svg { width: 56px; height: 56px; }
.gear-card:hover .gear-svg { animation: gearFloat 1.4s ease-in-out infinite; }
@keyframes gearFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.gear-name { font-family: var(--font-ui); font-weight: 800; font-size: 14px; color: var(--tx-0); margin-bottom: 6px; }
.gear-info { font-size: 12px; color: var(--tx-2); line-height: 1.55; margin: 0; }
.gear-info strong { color: var(--c-cyan); font-weight: 600; }

/* ============================================================
   SERVICIOS — instalador animado (una sola opción)
   ============================================================ */
.srv-install {
    margin: 16px 0 8px;
    padding: 20px;
    background: var(--bg-1);
    border: 1px solid var(--bg-5);
    border-left: 3px solid var(--c-blue);
    border-radius: 6px;
}
.srv-install-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.srv-install-name {
    flex: 1;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 16px;
    color: var(--tx-0);
}
.srv-install-os {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--tx-3);
}
.srv-install .adc-led { background: var(--c-blue); box-shadow: 0 0 8px rgba(111,168,255,.6); }

.srv-bar {
    height: 6px;
    background: var(--bg-3);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 16px;
}
.srv-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--c-blue), var(--c-cyan));
    border-radius: 99px;
}
.srv-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0 0 14px;
}
.srv-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--tx-2);
}
.srv-check {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid var(--bg-5);
    background: var(--bg-3);
    flex-shrink: 0;
    position: relative;
}
.srv-step .srv-check::after {
    content: '✓';
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 10px; font-weight: 700;
    color: var(--bg-0);
    opacity: 0;
}
.srv-install-desc { font-size: 13px; color: var(--tx-2); line-height: 1.6; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    /* La barra llena en loop */
    .srv-bar-fill { animation: srvFill 3.2s ease-in-out infinite; }
    @keyframes srvFill { 0% { width: 0; } 60%,100% { width: 100%; } }
    /* Los checks se encienden en secuencia */
    .srv-step .srv-check { animation: srvCheck 3.2s ease-in-out infinite; }
    .srv-step:nth-child(1) .srv-check { animation-delay: .4s; }
    .srv-step:nth-child(2) .srv-check { animation-delay: 1.1s; }
    .srv-step:nth-child(3) .srv-check { animation-delay: 1.8s; }
    .srv-step:nth-child(4) .srv-check { animation-delay: 2.5s; }
    @keyframes srvCheck {
        0%, 100% { background: var(--bg-3); border-color: var(--bg-5); }
        50%, 95% { background: var(--c-green); border-color: var(--c-green); box-shadow: 0 0 8px rgba(133,212,60,.5); }
    }
    .srv-step:nth-child(1) .srv-check::after { animation: srvTick 3.2s ease-in-out infinite; animation-delay: .4s; }
    .srv-step:nth-child(2) .srv-check::after { animation: srvTick 3.2s ease-in-out infinite; animation-delay: 1.1s; }
    .srv-step:nth-child(3) .srv-check::after { animation: srvTick 3.2s ease-in-out infinite; animation-delay: 1.8s; }
    .srv-step:nth-child(4) .srv-check::after { animation: srvTick 3.2s ease-in-out infinite; animation-delay: 2.5s; }
    @keyframes srvTick { 0%, 40% { opacity: 0; } 50%, 100% { opacity: 1; } }
}
/* Sin animación: mostrar todo completo */
@media (prefers-reduced-motion: reduce) {
    .srv-bar-fill { width: 100%; }
    .srv-step .srv-check { background: var(--c-green); border-color: var(--c-green); }
    .srv-step .srv-check::after { opacity: 1; }
}

@media (max-width: 560px) {
    .srv-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   PIRÁMIDE — Triángulo de Prioridades (producción)
   ============================================================ */
.pyramid-wrap {
    display: grid;
    place-items: center;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-radius: 8px;
}
.pyramid-svg { width: 100%; max-width: 440px; height: auto; }
.pyr-layer {
    stroke: rgba(0,0,0,.25);
    stroke-width: 1;
    transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease);
    transform-origin: center;
}
.pyramid-svg text { pointer-events: none; paint-order: stroke; }
@media (prefers-reduced-motion: no-preference) {
    .pyramid-svg:hover .pyr-layer { opacity: .55; }
    .pyramid-svg .pyr-layer:hover { opacity: 1; transform: translateY(-1px) scale(1.01); }
}

/* ============================================================
   BOTÓN FLOTANTE — Samples gratis (reabre el pack)
   ============================================================ */
.pack-reopen {
    position: fixed;
    right: 16px;
    bottom: 34px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--c-pink);
    color: var(--bg-0);
    border: none;
    border-radius: 99px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2);
}
.pack-reopen-ico { font-size: 15px; line-height: 1; }
.pack-reopen:hover { background: #fff; box-shadow: 0 10px 28px var(--glow-pink); transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
    .pack-reopen { animation: packBob 2.6s ease-in-out infinite; }
    @keyframes packBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}
@media (max-width: 820px) {
    .pack-reopen { right: 12px; bottom: 12px; padding: 9px 13px; font-size: 11px; }
}

/* ============================================================
   NOTICIAS (RSS) en el Inicio
   ============================================================ */
.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    max-width: 640px;
}
.news-item { margin: 0; }
.news-link {
    display: block;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--bg-5);
    border-left: 2px solid var(--c-yellow);
    border-radius: 0 4px 4px 0;
    color: var(--tx-1);
    font-size: 13px;
    line-height: 1.45;
    transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease-soft), color .15s var(--ease);
}
.news-link:hover {
    background: rgba(248,210,99,.06);
    border-color: var(--c-yellow);
    color: var(--c-yellow);
    transform: translateX(2px);
}
