/* Menús padre del portal. Archivo global y versionado para evitar CSS aislado en caché. */
.app-sidebar .nav-section {
    margin: .32rem 0;
}

.app-sidebar .nav-section-toggle {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 3.35rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .82);
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .56rem .7rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.app-sidebar .nav-section-toggle:hover,
.app-sidebar .nav-section-toggle:focus-visible {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(255, 194, 14, .38);
    color: #fff;
    outline: none;
    transform: translateX(2px);
}

.app-sidebar .nav-section.expanded .nav-section-toggle {
    background: linear-gradient(135deg, rgba(255, 194, 14, .18), rgba(255, 255, 255, .07));
    border-color: rgba(255, 194, 14, .46);
    box-shadow: inset 4px 0 0 #ffc20e, 0 8px 18px rgba(0, 20, 48, .16);
    color: #fff;
}

.app-sidebar .nav-section-label {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: .68rem;
}

.app-sidebar .nav-section-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #ffd45d;
}

.app-sidebar .nav-section-icon .bi {
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    font-size: .96rem;
    background: none;
}

.app-sidebar .nav-section-copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

.app-sidebar .nav-section-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-sidebar .nav-section-copy small {
    color: rgba(255, 255, 255, .48);
    font-size: .64rem;
    font-weight: 650;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: none;
}

.app-sidebar .nav-section.expanded .nav-section-copy small {
    color: rgba(255, 255, 255, .68);
}

.app-sidebar .nav-section-feature {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 194, 14, .42);
    border-radius: 999px;
    background: rgba(255, 194, 14, .14);
    color: #ffe397;
    padding: .2rem .42rem;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.app-sidebar .section-chevron {
    width: .48rem;
    height: .48rem;
    flex: 0 0 .48rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .7;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.app-sidebar .nav-section.expanded .section-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.app-sidebar .nav-section-items {
    padding-top: .32rem;
    animation: nav-parent-open .17s ease-out;
}

@keyframes nav-parent-open {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640.98px) {
    .app-sidebar .nav-section-toggle {
        min-height: 3.65rem;
        padding: .65rem .75rem;
    }
}
