/* Menú lateral del campus: grupos plegables con animación */
.sidebar-category.sb-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; border-radius: 8px; transition: background .2s, color .2s; }
.sidebar-category.sb-toggle:hover { background: rgba(148, 163, 184, .12); color: #e2e8f0; }
.sidebar-category.sb-toggle:focus-visible { outline: 2px solid #a855f7; outline-offset: 1px; }
.sb-chev { font-size: .8rem; opacity: .7; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sidebar-category.sb-toggle[aria-expanded="false"] .sb-chev { transform: rotate(-90deg); }
.sb-cuerpo { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.sb-cuerpo.cerrado { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.sb-interno { overflow: hidden; min-height: 0; list-style: none; }
.sb-interno > li { list-style: none; }
.sb-cuerpo:not(.cerrado) .sb-interno > li { animation: sbItem .35s cubic-bezier(.2, .8, .2, 1) both; }
.sb-cuerpo:not(.cerrado) .sb-interno > li:nth-child(2) { animation-delay: .03s; } .sb-cuerpo:not(.cerrado) .sb-interno > li:nth-child(3) { animation-delay: .06s; }
.sb-cuerpo:not(.cerrado) .sb-interno > li:nth-child(4) { animation-delay: .09s; } .sb-cuerpo:not(.cerrado) .sb-interno > li:nth-child(5) { animation-delay: .12s; }
.sb-cuerpo:not(.cerrado) .sb-interno > li:nth-child(n+6) { animation-delay: .15s; }
@keyframes sbItem { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sb-cuerpo, .sb-chev { transition: none; } .sb-interno > li { animation: none !important; } }
