/* =============================================================================
   SABORA · ACADEMIAS, SALAS, CURSOS Y NOVEDADES
   -----------------------------------------------------------------------------
   Extraído de los bloques <style> que vivían dentro de los .razor. Se conserva
   el origen de cada tramo para poder seguir migrándolo a componentes.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Pages/Academies/AcademyCourseWizard.razor & Shared Wizard Design System
   -------------------------------------------------------------------------- */
    .wizard-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        font-family: var(--sb-font);
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 8px 16px 48px;
    }

    /* =========================================================================
       STEPPER / PROGRESS BAR
       ========================================================================= */
    .wizard-progress {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        padding: 14px 28px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }
    
    .wizard-progress-track {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        position: relative;
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }

    .wizard-progress-item {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 6px 14px;
        border-radius: 12px;
        background: transparent;
        border: none;
        color: var(--sb-neutral-500);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        cursor: default;
        text-decoration: none;
        flex-shrink: 0;
    }

    .wizard-progress-item.is-clickable {
        cursor: pointer;
    }

    .wizard-progress-item.is-clickable:hover {
        background: var(--sb-neutral-100);
        transform: translateY(-1px);
    }

    .wizard-progress-item.active {
        color: var(--sb-neutral-900);
    }

    .wizard-progress-item.completed {
        color: var(--sb-neutral-800);
    }

    .wizard-progress-index {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.88rem;
        font-weight: 800;
        flex-shrink: 0;
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-500);
        border: 2px solid var(--sb-neutral-200);
        transition: all 0.25s ease;
    }

    .wizard-progress-item.active .wizard-progress-index {
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end, #ea580c));
        color: var(--sb-neutral-0);
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.3), 0 0 0 3px rgba(200, 40, 0, 0.12);
    }

    .wizard-progress-item.completed .wizard-progress-index {
        background: var(--sb-green-500, #10b981);
        color: var(--sb-neutral-0);
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .wizard-progress-meta {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
        text-align: left;
    }

    .wizard-progress-step-num {
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--sb-neutral-400);
        margin-bottom: 2px;
    }

    .wizard-progress-item.active .wizard-progress-step-num {
        color: var(--sb-brand);
    }

    .wizard-progress-item.completed .wizard-progress-step-num {
        color: var(--sb-green-600, #059669);
    }

    .wizard-progress-label {
        font-size: 0.90rem;
        font-weight: 700;
        color: var(--sb-neutral-600);
        white-space: nowrap;
    }

    .wizard-progress-item.active .wizard-progress-label {
        color: var(--sb-neutral-900);
        font-weight: 800;
    }

    .wizard-progress-item.completed .wizard-progress-label {
        color: var(--sb-neutral-800);
    }

    .wizard-progress-connector {
        flex: 1 1 50px;
        max-width: 100px;
        height: 2px;
        background: var(--sb-neutral-200);
        border-radius: 999px;
        margin: 0 10px;
        transition: background-color 0.3s ease;
    }

    .wizard-progress-connector.is-completed {
        background: var(--sb-green-500, #10b981);
    }

    .wizard-progress-connector.is-active {
        background: linear-gradient(90deg, var(--sb-brand), var(--sb-neutral-200));
    }

    @media (max-width: 768px) {
        .wizard-progress {
            padding: 10px 16px;
        }
        .wizard-progress-track {
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        .wizard-progress-connector {
            display: none;
        }
        .wizard-progress-item {
            padding: 4px 8px;
            gap: 8px;
        }
        .wizard-progress-index {
            width: 32px;
            height: 32px;
            font-size: 0.82rem;
        }
        .wizard-progress-label {
            font-size: 0.84rem;
        }
    }

    /* =========================================================================
       FORM CARDS & SECTIONS
       ========================================================================= */
    .wizard-panels {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 28px;
        align-items: start;
    }

    @media (max-width: 1100px) {
        .wizard-panels {
            grid-template-columns: 1fr;
        }
        .wizard-side {
            order: -1;
            position: static !important;
        }
    }

    .wizard-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .wizard-content,
    .wizard-body .wizard-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        background: transparent;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .wizard-section-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 20px;
        padding: 28px 32px 32px;
        box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
        margin-bottom: 20px;
    }

    .wizard-section-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--sb-neutral-150);
    }

    .wizard-section-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--sb-brand-50, #fff1ee);
        color: var(--sb-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        flex-shrink: 0;
        border: 1px solid var(--sb-brand-100, #ffe4de);
    }

    .wizard-section-header h3 {
        margin: 0;
        font-size: 1.22rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        letter-spacing: -0.01em;
    }

    .wizard-section-description {
        margin: 4px 0 0;
        font-size: 0.88rem;
        color: var(--sb-neutral-500);
        font-weight: 500;
    }

    .wizard-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }

    @media (max-width: 768px) {
        .wizard-section-card {
            padding: 20px;
        }
        .wizard-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }
        .grid-span-2 {
            grid-column: span 1 !important;
        }
    }

    .grid-span-full { grid-column: 1 / -1; }
    .grid-span-2 { grid-column: span 2; }

    /* =========================================================================
       DAY CHIPS & SCHEDULE MANAGER
       ========================================================================= */
    .day-selector-container {
        margin-bottom: 16px;
        grid-column: 1 / -1;
    }

    .wizard-input-label {
        display: block;
        margin-bottom: 10px;
        font-weight: 800;
        color: var(--sb-neutral-800);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .day-selector {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .day-chip {
        height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        border: 1.5px solid var(--sb-neutral-200);
        background: var(--sb-neutral-0);
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 700;
        color: var(--sb-neutral-700);
        text-align: center;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .day-chip:hover {
        border-color: var(--sb-brand-200, #fecaca);
        background: var(--sb-brand-50, #fff5f2);
        color: var(--sb-brand);
        transform: translateY(-1px);
    }

    .day-chip.active {
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end, #ea580c));
        color: var(--sb-neutral-0);
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.28);
    }

    .wizard-schedule-form {
        background: var(--sb-neutral-50);
        padding: 22px 24px;
        border-radius: 16px;
        border: 1px solid var(--sb-neutral-200);
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .wizard-schedule-controls {
        display: flex;
        gap: 14px;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .wizard-schedule-add-btn {
        height: 42px !important;
        padding: 0 22px !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end, #ea580c)) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 3px 10px rgba(200, 40, 0, 0.28) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .wizard-schedule-add-btn:hover:not(:disabled) {
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 18px rgba(200, 40, 0, 0.38) !important;
        background: linear-gradient(135deg, #b82400, #d44d08) !important;
    }

    .wizard-schedule-add-btn:active:not(:disabled) {
        transform: translateY(0) !important;
        box-shadow: 0 2px 6px rgba(200, 40, 0, 0.2) !important;
    }

    .wizard-schedule-cancel-btn {
        height: 42px !important;
        padding: 0 16px !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
    }

    .wizard-schedules-container {
        background: var(--sb-neutral-50);
        border-radius: 16px;
        border: 1px solid var(--sb-neutral-200);
        overflow: hidden;
        margin-bottom: 24px;
        grid-column: 1 / -1;
    }

    .wizard-schedules-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        background: var(--sb-neutral-0);
        border-bottom: 1px solid var(--sb-neutral-200);
    }

    .wizard-schedules-header h4 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .wizard-schedules-count {
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--sb-neutral-500);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: var(--sb-neutral-100);
        padding: 4px 10px;
        border-radius: 999px;
    }

    .wizard-schedules-body {
        padding: 16px 20px;
    }

    .wizard-schedule-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .wizard-schedule-item {
        background: var(--sb-neutral-0);
        border-radius: 12px;
        padding: 12px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
        border: 1px solid var(--sb-neutral-200);
        transition: all 0.2s ease;
        gap: 12px;
        flex-wrap: wrap;
    }

    .wizard-schedule-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        border-color: var(--sb-neutral-300);
    }

    .wizard-schedule-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .wizard-schedule-text {
        font-weight: 700;
        color: var(--sb-neutral-800);
        font-size: 0.92rem;
    }

    .wizard-schedule-remove,
    .wizard-schedule-edit {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.76rem;
        font-weight: 800;
        cursor: pointer;
        transition: all 0.18s ease;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border: 1px solid transparent;
    }

    .wizard-schedule-edit {
        background: var(--sb-blue-50, #eff6ff);
        border-color: var(--sb-blue-200, #bfdbfe);
        color: var(--sb-blue-700, #1d4ed8);
    }

    .wizard-schedule-edit:hover {
        background: var(--sb-blue-600, #2563eb);
        color: var(--sb-neutral-0);
        border-color: var(--sb-blue-600, #2563eb);
    }

    .wizard-schedule-remove {
        background: var(--sb-red-50, #fff1f2);
        border-color: var(--sb-red-200, #fecdd3);
        color: var(--sb-red-700, #be123c);
    }

    .wizard-schedule-remove:hover {
        background: var(--sb-red-600, #e11d48);
        color: var(--sb-neutral-0);
        border-color: var(--sb-red-600, #e11d48);
    }

    .wizard-schedule-item.editing {
        border-color: var(--sb-brand);
        box-shadow: 0 0 0 3px rgba(200, 40, 0, 0.15);
    }

    .wizard-info {
        margin: 0;
        font-size: 0.84rem;
        color: var(--sb-neutral-500);
        font-weight: 500;
    }

    /* =========================================================================
       SIDE SUMMARY / LIVE PREVIEW
       ========================================================================= */
    .wizard-side {
        position: sticky;
        top: 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
    }

    .wizard-summary {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    }

    .wizard-summary-toggle {
        padding: 14px 18px;
        background: var(--sb-neutral-50);
        font-weight: 800;
        font-size: 0.90rem;
        color: var(--sb-neutral-800);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        user-select: none;
        border-bottom: 1px solid var(--sb-neutral-150);
        transition: background-color 0.2s ease;
    }

    .wizard-summary-toggle:hover {
        background: var(--sb-neutral-100);
    }

    .wizard-summary-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    .wizard-summary-title-wrap i {
        color: var(--sb-brand);
        font-size: 0.95rem;
    }

    .wizard-summary-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        background: rgba(16, 185, 129, 0.1);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.25);
        padding: 3px 9px;
        border-radius: 999px;
    }

    .wizard-summary-badge i {
        color: #10b981;
        font-size: 0.50rem;
        animation: pulseLiveDot 2s infinite ease-in-out;
    }

    @keyframes pulseLiveDot {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.85); }
    }

    .wizard-summary-toggle-icon {
        display: inline-flex;
        transition: transform 0.25s ease;
        color: var(--sb-neutral-400);
        font-size: 0.85rem;
    }

    .wizard-summary[open] .wizard-summary-toggle-icon {
        transform: rotate(180deg);
    }

    .wizard-summary-toggle::-webkit-details-marker,
    .wizard-summary-toggle::marker {
        display: none;
    }

    .wizard-summary-content {
        padding: 18px 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        background: var(--sb-neutral-0);
    }

    .wizard-summary-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wizard-summary-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wizard-summary-row > div,
    .wizard-summary-list > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .wizard-summary-list dt {
        font-size: 0.70rem;
        font-weight: 800;
        color: var(--sb-neutral-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0;
    }

    .wizard-summary-list dd {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--sb-neutral-900);
        margin: 0;
        word-break: break-word;
    }

    .wizard-summary-advice {
        margin: 4px 0 0;
        font-size: 0.80rem;
        line-height: 1.45;
        color: var(--sb-neutral-600);
        background: var(--sb-neutral-50);
        border: 1px dashed var(--sb-neutral-200);
        border-radius: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .wizard-summary-advice i {
        color: var(--sb-brand);
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* =========================================================================
       FOOTER & NAVIGATION BUTTONS (INTEGRATED IN CARD)
       ========================================================================= */
    .wizard-card-footer,
    .wizard-footer,
    .wizard-body .wizard-card-footer,
    .wizard-body .wizard-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding-top: 24px;
        border-top: 1px solid var(--sb-neutral-150);
        margin-top: 32px;
        width: 100%;
        box-sizing: border-box;
    }

    .wizard-footer-left,
    .wizard-body .wizard-footer-left {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: auto;
    }

    .wizard-footer-right,
    .wizard-body .wizard-footer-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    .wizard-card-footer .sb-btn,
    .wizard-footer .sb-btn,
    .wizard-body .wizard-card-footer .sb-btn,
    .wizard-body .wizard-footer .sb-btn {
        min-width: 130px;
        height: 42px;
        padding: 0 20px;
        font-weight: 700;
        font-size: 0.90rem;
    }

    @media (max-width: 640px) {
        .wizard-card-footer,
        .wizard-footer,
        .wizard-body .wizard-card-footer,
        .wizard-body .wizard-footer {
            flex-direction: column-reverse;
            align-items: stretch;
            gap: 12px;
        }
        .wizard-footer-left,
        .wizard-footer-right,
        .wizard-body .wizard-footer-left,
        .wizard-body .wizard-footer-right {
            width: 100%;
            justify-content: stretch;
            margin: 0;
        }
        .wizard-footer-left > *,
        .wizard-footer-right > *,
        .wizard-body .wizard-footer-left > *,
        .wizard-body .wizard-footer-right > * {
            flex: 1;
            width: 100%;
        }
    }

/* ----------------------------------------------------------------------------
   Pages/Academies/AcademyNews.razor
   -------------------------------------------------------------------------- */
    .news-kpi-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 20px;
    }
    .news-kpi-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .news-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }
    .news-kpi-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }
    .news-kpi-info h5 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        line-height: 1.2;
    }
    .news-kpi-info span {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--sb-neutral-500);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .news-thumb-box {
        width: 80px;
        height: 52px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--sb-neutral-200);
        background: var(--sb-neutral-900);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: transform 0.15s ease;
    }
    .news-thumb-box:hover {
        transform: scale(1.06);
    }
    .news-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ----------------------------------------------------------------------------
   Pages/Academies/AcademyProfile.razor
   -------------------------------------------------------------------------- */
    .premium-academy-page {
        font-family: var(--sb-font);
        padding-bottom: 80px;
    }

    /* HERO CARD */
    .academy-hero-card {
        background: var(--sb-neutral-0);
        border-radius: 24px;
        border: 1px solid var(--sb-neutral-200);
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
        overflow: hidden;
        position: relative;
        margin-bottom: 24px;
    }

    .academy-cover {
        height: 120px;
        background: linear-gradient(135deg, var(--sb-neutral-900) 0%, var(--sb-neutral-800) 50%, var(--sb-brand) 100%);
        position: relative;
    }

    .academy-cover-glow {
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(255, 122, 89, 0.25) 0%, transparent 60%);
    }

    .academy-hero-content {
        padding: 0 32px 28px;
        position: relative;
    }

    .academy-hero-layout {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        margin-top: -45px;
        position: relative;
    }

    /* LOGO AVATAR */
    .academy-logo-wrapper {
        position: relative;
        width: 110px;
        height: 110px;
        border-radius: 24px;
        background: var(--sb-neutral-0);
        border: 4px solid var(--sb-neutral-0);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        flex-shrink: 0;
    }

    .academy-logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .academy-logo-placeholder {
        font-size: 2.2rem;
        font-weight: 900;
        color: var(--sb-brand);
        background: var(--sb-brand-surface);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
    }

    .academy-logo-badge {
        position: absolute;
        bottom: -4px;
        right: -4px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--sb-brand);
        color: var(--sb-neutral-0);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: 2.5px solid var(--sb-neutral-0);
        box-shadow: 0 4px 10px rgba(200, 40, 0, 0.4);
        transition: all 0.2s ease;
    }

    .academy-logo-badge:hover {
        transform: scale(1.1);
        background: #e63946;
    }

    .academy-logo-file-input {
        display: none;
    }

    .academy-logo-spinner {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sb-brand);
        font-size: 1.5rem;
    }

    /* IDENTITY & TITLE (Beside image) */
    .academy-identity-section {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 48px;
    }

    .academy-identity-section h1 {
        font-size: 1.85rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        margin: 0;
        letter-spacing: -0.5px;
    }

    .academy-hero-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
        padding-top: 48px;
        margin-left: auto;
    }

    .academy-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }

    .academy-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 99px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .academy-badge.is-active {
        background: var(--sb-green-50);
        color: #059669;
        border: 1px solid var(--sb-green-200);
    }

    .academy-badge.is-inactive {
        background: var(--sb-red-50);
        color: var(--sb-red-600);
        border: 1px solid var(--sb-red-200);
    }

    .academy-badge.is-public {
        background: var(--sb-blue-50);
        color: var(--sb-blue-600);
        border: 1px solid var(--sb-blue-200);
    }

    .academy-badge.is-hidden {
        background: var(--sb-neutral-50);
        color: var(--sb-neutral-500);
        border: 1px solid var(--sb-neutral-200);
    }

    .badge-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

    .academy-tagline {
        color: var(--sb-neutral-500);
        font-size: 0.95rem;
        margin: 0 0 16px;
        max-width: 800px;
    }

    .academy-meta-stripe {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        padding: 6px 14px;
        border-radius: 12px;
        font-size: 0.85rem;
        color: var(--sb-neutral-600);
    }

    .meta-pill i {
        color: var(--sb-brand);
        font-size: 0.85rem;
    }

    /* GRID SECTIONS */
    .academy-grid-sections {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .full-width-card {
        grid-column: 1 / -1;
    }

    .academy-card {
        background: var(--sb-neutral-0);
        border-radius: 20px;
        border: 1px solid var(--sb-neutral-200);
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .card-header-clean {
        padding: 20px 24px;
        display: flex;
        align-items: center;
        gap: 14px;
        border-bottom: 1px solid var(--sb-neutral-100);
        background: var(--sb-neutral-0);
    }

    .header-icon-wrap {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .icon-blue { background: var(--sb-blue-50); color: var(--sb-blue-600); }
    .icon-amber { background: var(--sb-amber-50); color: var(--sb-amber-600); }
    .icon-purple { background: #faf5ff; color: #9333ea; }
    .icon-indigo { background: #eef2ff; color: #4f46e5; }
    .icon-rose { background: var(--sb-red-50); color: var(--sb-red-600); }
    .icon-emerald { background: var(--sb-green-50); color: #059669; }

    .card-header-clean h3 {
        margin: 0 0 2px;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    .card-header-clean p {
        margin: 0;
        font-size: 0.82rem;
        color: var(--sb-neutral-400);
    }

    .card-body-clean {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        flex: 1;
    }

    .form-group-clean {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* SOCIAL BAR & CHIPS */
    .social-adder-bar {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .social-dropdown-box {
        width: 180px;
        flex-shrink: 0;
    }

    .social-input-box {
        flex: 1;
        min-width: 220px;
    }

    .social-error-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background: var(--sb-red-50);
        border: 1px solid var(--sb-red-200);
        border-radius: 10px;
        color: var(--sb-red-600);
        font-size: 0.85rem;
        font-weight: 600;
    }

    .social-chips-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        margin-top: 6px;
    }

    .social-chip-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        transition: all 0.2s ease;
    }

    .social-chip-item:hover {
        background: var(--sb-neutral-0);
        border-color: var(--sb-neutral-300);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .social-chip-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .social-chip-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .platform-name {
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
        color: var(--sb-neutral-600);
        letter-spacing: 0.5px;
    }

    .platform-url {
        font-size: 0.85rem;
        color: var(--sb-blue-600);
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .platform-url:hover {
        text-decoration: underline;
    }

    .btn-remove-chip {
        background: none;
        border: none;
        color: var(--sb-neutral-400);
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        transition: all 0.15s;
    }

    .btn-remove-chip:hover {
        background: var(--sb-red-100);
        color: var(--sb-red-600);
    }

    .social-empty-state {
        grid-column: 1 / -1;
        padding: 24px;
        text-align: center;
        color: var(--sb-neutral-400);
        font-size: 0.88rem;
        background: var(--sb-neutral-50);
        border: 1px dashed var(--sb-neutral-300);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    /* SWITCHES GRID */
    .academy-switches-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .switch-card-modern {
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        transition: all 0.2s ease;
    }

    .switch-card-modern:hover {
        background: var(--sb-neutral-0);
        border-color: var(--sb-neutral-300);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .switch-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .switch-title {
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--sb-neutral-900);
    }

    .switch-desc {
        font-size: 0.82rem;
        color: var(--sb-neutral-500);
        line-height: 1.4;
    }

    /* BOTTOM BAR */
    .academy-bottom-bar {
        margin-top: 24px;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 20px;
        padding: 16px 24px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    }

    .bottom-bar-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

    .dates-footnote {
        font-size: 0.85rem;
        color: var(--sb-neutral-500);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* PERIODS MODAL */
    .periods-modal-content {
        padding: 12px 0;
    }

    .periods-current-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: linear-gradient(135deg, var(--sb-blue-50) 0%, var(--sb-blue-100) 100%);
        border: 1px solid var(--sb-blue-200);
        border-radius: 16px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }

    .current-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--sb-blue-600);
        color: var(--sb-neutral-0);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .periods-current-label {
        font-size: 0.72rem;
        font-weight: 800;
        color: var(--sb-blue-700);
        letter-spacing: 0.8px;
        display: block;
        margin-bottom: 2px;
    }

    .periods-current-card h4 {
        margin: 0 0 4px;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    .periods-current-dates {
        font-size: 0.85rem;
        color: var(--sb-neutral-600);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .periods-cards-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .period-card-item {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        transition: all 0.2s ease;
    }

    .period-card-item:hover {
        border-color: var(--sb-neutral-300);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .period-card-item.is-current-period {
        border-color: var(--sb-blue-200);
        background: #fafcff;
    }

    .period-title {
        margin: 0 0 2px;
        font-size: 1rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
    }

    .period-dates {
        font-size: 0.82rem;
        color: var(--sb-neutral-500);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .period-actions-cluster {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .period-creation-form {
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .period-creation-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .period-creation-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 8px;
    }

    /* RESPONSIVENESS */
    @media (max-width: 960px) {
        .academy-hero-layout {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }

        .academy-identity-section {
            padding-top: 0;
            width: 100%;
        }

        .academy-hero-actions {
            padding-top: 0;
            width: 100%;
            justify-content: flex-start;
        }

        .academy-grid-sections {
            grid-template-columns: 1fr;
        }

        .academy-switches-grid {
            grid-template-columns: 1fr;
        }

        .form-row-2 {
            grid-template-columns: 1fr;
        }
    }

/* ----------------------------------------------------------------------------
   Pages/Academies/AcademySchedules.razor
   -------------------------------------------------------------------------- */
    :root {
        --sch-bg: var(--sb-neutral-50);
        --sch-card-bg: var(--sb-neutral-0);
        --sch-glass: rgba(255, 255, 255, 0.8);
        --sch-border: var(--sb-neutral-200);
        --sch-text: var(--sb-neutral-900);
        --sch-text-muted: var(--sb-neutral-500);
        --sch-accent: var(--sb-brand);
        
        /* Level Colors (Matching the ones from the printed image as reference) */
        --lvl-0: var(--sb-blue-500); /* Azul: No sé bailar */
        --lvl-1: #22c55e; /* Verde: 2 a 6 meses */
        --lvl-2: #84cc16; /* Lima: 6 meses a 1 año */
        --lvl-3: #eab308; /* Oro: Más de 1 año */
        --lvl-4: #f97316; /* Naranja: Más de 2 años */
        --lvl-5: var(--sb-red-500); /* Rojo: Más de 3 años */
    }

    .premium-schedule-v3 {
        min-height: 100vh;
        background: var(--sch-bg);
        padding: 10px 20px 40px;
        font-family: var(--sb-font);
        color: var(--sch-text);
    }

    /* Header Section */
    .sch-header {
        text-align: center;
        margin-bottom: 50px;
        position: relative;
    }

    .sch-title-main {
        font-size: 3.5rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        color: var(--sch-text);
        margin-bottom: 10px;
    }

    .sch-subtitle {
        font-size: 1.1rem;
        color: var(--sch-text-muted);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* Grid Layout */
    .sch-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }

   

    /* Day Column */
    .sch-day-col {
        background: white;
        border: 1px solid var(--sch-border);
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sch-day-col:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .sch-day-name {
        font-size: 1.5rem;
        font-weight: 800;
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--sch-border);
        color: var(--sch-accent);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    /* Course Item */
    .sch-course-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sch-item-row {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 0;
    }

    .sch-item-row .sch-item {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    @media (max-width: 768px) {
        .sch-item-row {
            grid-auto-flow: row !important;
        }
    }

    .sch-item {
        background: var(--sb-neutral-50);
        border-radius: 16px;
        padding: 16px;
        border: 1px solid var(--sch-border);
        position: relative;
        overflow: hidden;
        border-left: 5px solid var(--lvl-color, var(--sb-neutral-400));
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .sch-item:hover {
        background: var(--sb-blue-50);
        border-color: var(--sb-blue-200);
        transform: scale(1.02);
    }

    .sch-item-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 8px;
        gap: 10px;
    }

    .sch-time-badge {
        background: var(--lvl-color);
        color: white;
        padding: 2px 8px;
        border-radius: 6px;
        font-weight: 800;
        font-size: 0.75rem;
    }

    .sch-level-text {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--lvl-color);
        letter-spacing: 0.05em;
    }

    .sch-title {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: 4px;
        line-height: 1.2;
        color: var(--sch-text);
    }

    .sch-teacher {
        font-size: 0.75rem;
        color: var(--sch-text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Footer / Legend Refined */
    .sch-footer {
        max-width: 1400px;
        margin: 60px auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sch-legend {
        background: white;
        padding: 32px;
        border-radius: 32px;
        border: 1px solid var(--sch-border);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 1200px;
    }

    .sch-legend-title {
        font-size: 1.1rem;
        font-weight: 900;
        margin-bottom: 24px;
        text-transform: uppercase;
        color: var(--sch-text);
        text-align: center;
        letter-spacing: 0.05em;
    }

    .sch-legend-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .sch-legend-item-v2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--sch-text);
        padding: 10px 18px;
        background: var(--sb-neutral-50);
        border-radius: 12px;
        border: 1px solid var(--sb-neutral-200);
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .sch-legend-item-v2:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
        border-color: var(--sch-accent);
    }

    .sch-legend-item-v2.active {
        border-color: var(--sch-accent);
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(200, 40, 0, 0.3), 0 0 5px rgba(200, 40, 0, 0.1);
        border-width: 2px;
    }

    .sch-lvl-dot-small {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
    }

    /* Modal Details */
    .schedule-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.3);
        backdrop-filter: blur(8px);
        z-index: var(--sb-z-header);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .schedule-modal-content {
        background: white;
        width: 100%;
        max-width: 500px;
        border-radius: 32px;
        padding: 40px;
        position: relative;
        border: 1px solid var(--sch-border);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    }

    .modal-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--sb-neutral-100);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--sch-text-muted);
        transition: all 0.2s;
    }

    .modal-close:hover { background: var(--sb-neutral-200); color: var(--sch-text); transform: rotate(90deg); }

    .modal-tag {
        display: inline-block;
        padding: 6px 16px;
        border-radius: 100px;
        font-size: 0.8rem;
        font-weight: 800;
        text-transform: uppercase;
        color: white;
    }

    .modal-title { font-size: 1.8rem; font-weight: 900; color: var(--sch-text); margin: 15px 0 30px; }

    .modal-info-card {
        background: var(--sb-neutral-50);
        border: 1px solid var(--sch-border);
        border-radius: 20px;
        padding: 24px;
        margin-bottom: 16px;
    }

    .info-row { display: flex; align-items: center; gap: 20px; }
    .info-icon-v3 { font-size: 1.5rem; color: var(--sch-accent); }
    .info-content-v3 label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--sch-text-muted); text-transform: uppercase; margin-bottom: 4px; }
    .info-content-v3 span { font-size: 1.2rem; font-weight: 700; color: var(--sch-text); }

    /* Empty/Loading */
    .sch-loading-container {
        height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .btn-enroll-v3 {
        width: 100%;
        margin-top: 24px;
        background: linear-gradient(135deg, var(--sch-accent) 0%, var(--sb-brand-800) 100%);
        color: white;
        border: none;
        padding: 16px;
        border-radius: 18px;
        font-size: 1.1rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(200, 40, 0, 0.2);
    }

    .btn-enroll-v3:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -5px rgba(200, 40, 0, 0.3);
        filter: brightness(1.1);
    }

    .btn-enroll-v3:active {
        transform: translateY(1px);
    }

    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------------
   Pages/Academies/CreateNovedadDialog.razor
   -------------------------------------------------------------------------- */
    .novedad-dialog-body {
        font-family: var(--sb-font);
        padding: 4px 6px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-height: calc(85vh - 120px);
        overflow-y: auto;
    }
    
    .upload-zone-modern {
        border: 2px dashed var(--sb-neutral-300);
        border-radius: 14px;
        padding: 24px 16px;
        text-align: center;
        background: var(--sb-neutral-50);
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
    }

    .upload-zone-modern:hover {
        border-color: var(--sb-brand);
        background: var(--sb-brand-50);
    }

    .upload-zone-modern input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
    }

    .upload-icon-modern {
        font-size: 32px;
        color: var(--sb-brand);
        margin-bottom: 8px;
    }

    .upload-text-modern {
        font-weight: 700;
        color: var(--sb-neutral-700);
        font-size: 0.92rem;
        margin: 0;
    }

    .upload-subtext {
        font-size: 0.78rem;
        color: var(--sb-neutral-400);
        margin-top: 4px;
    }

    .novedad-preview-box {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--sb-neutral-200);
        background: var(--sb-neutral-900);
        max-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    }

    .novedad-preview-img {
        width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .novedad-remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(220, 38, 38, 0.9);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }

    .novedad-remove-btn:hover {
        background: var(--sb-red-700);
        transform: scale(1.08);
    }

    .novedad-card-field {
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .novedad-field-label {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--sb-neutral-600);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .novedad-toggle-box {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 10px;
    }

    .novedad-footer-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--sb-neutral-100);
        margin-top: 6px;
    }

    .btn-novedad-submit {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end));
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 800;
        font-size: 0.92rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.28);
        transition: all 0.15s ease;
    }

    .btn-novedad-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(200, 40, 0, 0.38);
    }

    .btn-novedad-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .btn-novedad-cancel {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-300);
        color: var(--sb-neutral-600);
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .btn-novedad-cancel:hover {
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-900);
    }

/* ----------------------------------------------------------------------------
   Pages/Academies/EditNovedadDialog.razor
   -------------------------------------------------------------------------- */
    .novedad-dialog-body {
        font-family: var(--sb-font);
        padding: 4px 6px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-height: calc(85vh - 120px);
        overflow-y: auto;
    }
    
    .upload-zone-modern {
        border: 2px dashed var(--sb-neutral-300);
        border-radius: 14px;
        padding: 24px 16px;
        text-align: center;
        background: var(--sb-neutral-50);
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
    }

    .upload-zone-modern:hover {
        border-color: var(--sb-brand);
        background: var(--sb-brand-50);
    }

    .upload-zone-modern input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
    }

    .upload-icon-modern {
        font-size: 32px;
        color: var(--sb-brand);
        margin-bottom: 8px;
    }

    .upload-text-modern {
        font-weight: 700;
        color: var(--sb-neutral-700);
        font-size: 0.92rem;
        margin: 0;
    }

    .upload-subtext {
        font-size: 0.78rem;
        color: var(--sb-neutral-400);
        margin-top: 4px;
    }

    .novedad-preview-box {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid var(--sb-neutral-200);
        background: var(--sb-neutral-900);
        max-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    }

    .novedad-preview-img {
        width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .novedad-remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(220, 38, 38, 0.9);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }

    .novedad-remove-btn:hover {
        background: var(--sb-red-700);
        transform: scale(1.08);
    }

    .novedad-card-field {
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .novedad-field-label {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--sb-neutral-600);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .novedad-toggle-box {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 10px;
    }

    .novedad-footer-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid var(--sb-neutral-100);
        margin-top: 6px;
    }

    .btn-novedad-submit {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 28px;
        background: linear-gradient(135deg, var(--sb-brand), var(--sb-brand-gradient-end));
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 800;
        font-size: 0.92rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(200, 40, 0, 0.28);
        transition: all 0.15s ease;
    }

    .btn-novedad-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(200, 40, 0, 0.38);
    }

    .btn-novedad-submit:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .btn-novedad-cancel {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-300);
        color: var(--sb-neutral-600);
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .btn-novedad-cancel:hover {
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-900);
    }

/* ----------------------------------------------------------------------------
   Pages/Academies/SolicitudPlazaList.razor
   -------------------------------------------------------------------------- */
    .requests-kpi-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-bottom: 20px;
    }
    .requests-kpi-card {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 14px;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .requests-kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }
    .requests-kpi-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }
    .requests-kpi-info h5 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        line-height: 1.2;
    }
    .requests-kpi-info span {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--sb-neutral-500);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Modal Styling */
    .req-modal-content {
        background: var(--sb-neutral-0);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25);
        border: 1px solid rgba(255,255,255,0.2);
        animation: reqModalFadeIn 0.2s ease-out;
        max-width: 840px;
        width: 100%;
    }
    @keyframes reqModalFadeIn {
        from { opacity: 0; transform: scale(0.96) translateY(-10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .req-modal-header {
        background: linear-gradient(135deg, var(--sb-brand), #ea580c);
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
    }
    .req-modal-header h3 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
    }
    .req-modal-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        transition: background 0.15s ease;
    }
    .req-modal-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }
    .req-modal-body {
        padding: 24px;
        font-family: var(--sb-font);
    }

    .request-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1.3fr 1.1fr;
        gap: 20px;
    }
    @media (max-width: 860px) {
        .request-detail-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }
    }
    .detail-col {
        display: flex;
        flex-direction: column;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        padding: 18px;
    }
    .col-title {
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--sb-neutral-600);
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--sb-neutral-200);
    }
    .student-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 10px 0;
    }
    .student-name {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        margin: 0;
    }
    .btn-link-profile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--sb-blue-50);
        border: 1px solid var(--sb-blue-200);
        color: #0284c7;
        font-weight: 700;
        font-size: 0.82rem;
        padding: 6px 14px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.15s ease;
        margin-top: 4px;
    }
    .btn-link-profile:hover {
        background: var(--sb-blue-100);
        color: var(--sb-blue-700);
    }

    /* Request items */
    .req-box-item {
        background: var(--sb-neutral-0);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .req-box-label {
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--sb-neutral-400);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        display: block;
        margin-bottom: 2px;
    }
    .req-box-val {
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--sb-neutral-800);
        margin: 0;
    }

    /* Class stats */
    .stat-badge-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    .stat-box-modern {
        border-radius: 12px;
        padding: 12px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .stat-box-modern.leader {
        background: var(--sb-green-50);
        border: 1px solid var(--sb-green-200);
        color: #059669;
    }
    .stat-box-modern.follower {
        background: #fdf2f8;
        border: 1px solid #fbcfe8;
        color: var(--sb-role-follower);
    }
    .stat-box-modern .stat-num {
        font-size: 1.5rem;
        font-weight: 900;
        line-height: 1;
    }
    .stat-box-modern .stat-label {
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 4px;
    }

    .capacity-summary-box {
        background: var(--sb-neutral-0);
        border: 1px dashed var(--sb-neutral-300);
        border-radius: 12px;
        padding: 12px;
        text-align: center;
        margin-bottom: 10px;
    }
    .capacity-ratio {
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--sb-neutral-800);
    }
    .capacity-label {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--sb-neutral-500);
        text-transform: uppercase;
    }

    /* Balance meter */
    .balance-meter-wrapper {
        margin-top: 6px;
    }
    .balance-meter-bar {
        height: 8px;
        border-radius: 4px;
        background: var(--sb-neutral-200);
        display: flex;
        overflow: hidden;
    }
    .balance-meter-leader {
        background: var(--sb-green-500);
        transition: width 0.3s ease;
    }
    .balance-meter-follower {
        background: var(--sb-role-follower);
        transition: width 0.3s ease;
    }

    .alert-full-modern {
        background: var(--sb-red-50);
        color: #be123c;
        border: 1px solid var(--sb-red-200);
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 0.78rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 8px;
    }

    .request-actions-bar {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid var(--sb-neutral-200);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
    }
    .btn-req-close {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        background: var(--sb-neutral-50);
        border: 1px solid var(--sb-neutral-300);
        color: var(--sb-neutral-600);
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.88rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .btn-req-close:hover {
        background: var(--sb-neutral-100);
        color: var(--sb-neutral-900);
    }
    .btn-req-reject {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        background: var(--sb-neutral-0);
        border: 1.5px solid var(--sb-red-500);
        color: var(--sb-red-500);
        border-radius: 10px;
        font-weight: 800;
        font-size: 0.88rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .btn-req-reject:hover {
        background: var(--sb-red-50);
        border-color: var(--sb-red-600);
        color: var(--sb-red-600);
    }
    .btn-req-approve {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        background: linear-gradient(135deg, #059669, var(--sb-green-500));
        border: none;
        color: var(--sb-neutral-0);
        border-radius: 10px;
        font-weight: 800;
        font-size: 0.88rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        transition: all 0.15s ease;
    }
    .btn-req-approve:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }
    .badge-role {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 10px;
        background: var(--sb-neutral-100);
        color: var(--sb-text-muted);
        border: 1px solid var(--sb-neutral-200);
        border-radius: 999px;
        font-size: 0.76rem;
        font-weight: 700;
    }
    /* Líder y follower deben distinguirse de un vistazo: mismos colores de rol
       que usan las estadísticas de la clase (azul / rosa). */
    .badge-role.is-leader {
        background: var(--sb-blue-50);
        color: var(--sb-role-leader);
        border-color: var(--sb-blue-200);
    }
    .badge-role.is-follower {
        background: #fdf2f8;
        color: var(--sb-role-follower);
        border-color: #fbcfe8;
    }

/* ----------------------------------------------------------------------------
   Diálogo de novedades: separación
   ----------------------------------------------------------------------------
   El contenido iba muy apretado contra los bordes y entre bloques. */
.novedad-dialog-body { display: flex; flex-direction: column; gap: var(--sb-space-5); }
.novedad-card-field { display: flex; flex-direction: column; gap: var(--sb-space-3); }
.novedad-field-label {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    font-size: var(--sb-text-2xs);
    font-weight: var(--sb-weight-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sb-text-muted);
}
.upload-zone-modern { padding: var(--sb-space-8) var(--sb-space-6); }
.novedad-toggle-box { padding: var(--sb-space-4) var(--sb-space-5); gap: var(--sb-space-3); }
.novedad-footer-actions { padding-top: var(--sb-space-5); gap: var(--sb-space-3); }

/* ----------------------------------------------------------------------------
   Pages/Academies/AcademyCourses.razor · botón "ver alumnos inscritos"
   -----------------------------------------------------------------------------
   Verde para distinguirlo de editar (rojo), horarios (dorado) y borrar (rojo
   claro): es la única acción de consulta de la fila.
   -------------------------------------------------------------------------- */
.academy-courses-grid .round-button.round-button-students {
    background-color: var(--sb-green-50, #ecfdf5) !important;
    border-color: var(--sb-green-200, #a7f3d0) !important;
    color: #15803d !important;
}
.academy-courses-grid .round-button.round-button-students i { color: #15803d !important; }
.academy-courses-grid .round-button.round-button-students:hover {
    background-color: var(--sb-green-100, #d1fae5) !important;
    color: #166534 !important;
}

/* ----------------------------------------------------------------------------
   Pages/Academies/CourseEnrolledStudentsModal.razor
   -----------------------------------------------------------------------------
   Modal "Alumnos inscritos" del listado de cursos. Cabecera, KPIs y filtros
   quedan fijos; sólo la lista agrupada por horario hace scroll. Los colores de
   rol son los mismos tokens que usan las estadísticas de clase
   (--sb-role-leader azul / --sb-role-follower rosa).
   -------------------------------------------------------------------------- */
.course-students-dialog .sb-dialog-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ces-modal {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    font-family: var(--sb-font);
}

/* Cabecera: curso + periodo a la izquierda, KPIs a la derecha */
.ces-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-bottom: 1px solid var(--sb-border-subtle, var(--sb-neutral-200));
    background: linear-gradient(180deg, var(--sb-neutral-50), var(--sb-neutral-0));
}

.ces-head-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ces-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-brand-surface, #fdece8);
    color: var(--sb-brand);
    font-size: 1.1rem;
}

.ces-head-text { min-width: 0; }

.ces-head-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sb-neutral-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ces-head-text p {
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.8rem;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

.ces-head-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--sb-neutral-700);
}

.ces-kpis {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ces-kpi {
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--sb-neutral-50);
    border: 1px solid var(--sb-neutral-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.ces-kpi strong {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--sb-neutral-900);
}

.ces-kpi span {
    margin-top: 3px;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

.ces-kpi.is-leader { background: var(--sb-blue-50, #eff6ff); border-color: var(--sb-blue-200, #bfdbfe); }
.ces-kpi.is-leader strong { color: var(--sb-role-leader, #2563eb); }
.ces-kpi.is-follower { background: #fdf2f8; border-color: #fbcfe8; }
.ces-kpi.is-follower strong { color: var(--sb-role-follower, #db2777); }
.ces-kpi.is-none { background: var(--sb-neutral-100); }
.ces-kpi.is-none strong { color: var(--sb-neutral-600); }

/* Filtros */
.ces-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 24px;
    border-bottom: 1px solid var(--sb-border-subtle, var(--sb-neutral-200));
    background: var(--sb-neutral-0);
}

.ces-filters .ces-filter-search { flex: 1 1 240px; min-width: 200px; }
.ces-filters .ces-filter-horario { flex: 0 1 280px; min-width: 200px; }

/* Cuerpo con scroll */
.ces-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 20px;
    background: var(--sb-neutral-50);
}

.ces-skeleton { display: flex; flex-direction: column; gap: 10px; }

.ces-state {
    padding: 32px 16px;
    text-align: center;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

.ces-state i {
    display: block;
    margin-bottom: 8px;
    font-size: 1.6rem;
    color: var(--sb-red-500, #ef4444);
}

.ces-state p { margin: 0; }

/* Grupo por horario */
.ces-group {
    background: var(--sb-neutral-0);
    border: 1px solid var(--sb-neutral-200);
    border-radius: 14px;
    overflow: hidden;
}

.ces-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--sb-neutral-50);
    border-bottom: 1px solid var(--sb-neutral-200);
}

.ces-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--sb-neutral-900);
}

.ces-group-title > i { color: var(--sb-brand); }

.ces-group-sala {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid var(--sb-neutral-300);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

.ces-group-counts { display: flex; gap: 6px; flex-wrap: wrap; }

.ces-count {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--sb-neutral-0);
    border: 1px solid var(--sb-neutral-200);
    color: var(--sb-neutral-700);
    white-space: nowrap;
}

.ces-count.is-leader { color: var(--sb-role-leader, #2563eb); background: var(--sb-blue-50, #eff6ff); border-color: var(--sb-blue-200, #bfdbfe); }
.ces-count.is-follower { color: var(--sb-role-follower, #db2777); background: #fdf2f8; border-color: #fbcfe8; }
.ces-count.is-none { color: var(--sb-neutral-600); background: var(--sb-neutral-100); }

/* Fila de alumno */
.ces-list { display: flex; flex-direction: column; }

.ces-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid var(--sb-neutral-100);
    transition: background-color 0.15s ease;
}

.ces-row:first-child { border-top: 0; }
.ces-row:hover { background: var(--sb-neutral-50); }
.ces-row.is-baja { opacity: 0.7; }

.ces-row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ces-row-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sb-neutral-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ces-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.76rem;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

.ces-row-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ces-row-meta i { font-size: 0.7rem; }

/* Badge de rol: punto de color + texto. Líder azul, follower rosa, sin rol gris punteado. */
.ces-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: var(--sb-neutral-100);
    color: var(--sb-neutral-600);
    border: 1px solid var(--sb-neutral-200);
}

.ces-role-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.ces-role-badge.is-leader { background: var(--sb-blue-50, #eff6ff); color: var(--sb-role-leader, #2563eb); border-color: var(--sb-blue-200, #bfdbfe); }
.ces-role-badge.is-follower { background: #fdf2f8; color: var(--sb-role-follower, #db2777); border-color: #fbcfe8; }
.ces-role-badge.is-none { border-style: dashed; }

.ces-row-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
    text-align: right;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--sb-neutral-700);
}

.ces-row-dates small {
    margin-right: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

/* Pie */
.ces-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    border-top: 1px solid var(--sb-border-subtle, var(--sb-neutral-200));
    background: var(--sb-neutral-0);
}

.ces-foot-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sb-text-muted, var(--sb-neutral-500));
}

@media (max-width: 720px) {
    .ces-head { padding: 14px 16px; }
    .ces-filters, .ces-body, .ces-foot { padding-left: 16px; padding-right: 16px; }
    .ces-kpi { min-width: 70px; padding: 6px 10px; }
    .ces-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        row-gap: 8px;
    }
    .ces-role-badge { grid-column: 3; }
    .ces-row-dates {
        grid-column: 2;
        flex-direction: row;
        gap: 12px;
        text-align: left;
        min-width: 0;
    }
    .ces-row .academy-status-badge { grid-column: 3; justify-self: end; }
}
