:root {
    --aureo-navy: #0b1533;
    --aureo-blue: #1f5eff;
    --aureo-gold: #d4a437;
    --aureo-bg: #f5f7fb;
    --aureo-card: #ffffff;
    --aureo-border: #e5e8f0;
    --aureo-text: #111827;
    --aureo-muted: #6b7280;
}

body {
    background: var(--aureo-bg);
    color: var(--aureo-text);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--aureo-navy);
    color: white;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--aureo-gold), #f3d37a);
    color: var(--aureo-navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}


.brand-logo-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.login-brand-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 13px;
    color: #cbd5e1;
}

.sidebar-nav {
    gap: 6px;
}

.sidebar-nav .nav-link {
    color: #dbeafe;
    border-radius: 12px;
    padding: 11px 14px;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.sidebar-nav .nav-link.disabled {
    color: rgba(219, 234, 254, 0.45);
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.58);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--aureo-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.content-area {
    padding: 32px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.card,
.stat-card {
    background: var(--aureo-card);
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.stat-card {
    padding: 22px;
}

.stat-label {
    color: var(--aureo-muted);
    font-size: 14px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--aureo-navy);
}

.stat-note {
    color: var(--aureo-muted);
    font-size: 13px;
}

.btn-primary {
    background: var(--aureo-blue);
    border-color: var(--aureo-blue);
    border-radius: 12px;
    font-weight: 600;
}

.btn-outline-secondary {
    border-radius: 12px;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--aureo-border);
    padding: 10px 12px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 24px;
    padding: 34px;
    border: 1px solid var(--aureo-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--aureo-gold), #f5d77c);
    color: var(--aureo-navy);
    font-weight: 900;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.table > :not(caption) > * > * {
    padding: 16px;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        padding: 0 18px;
    }

    .content-area {
        padding: 18px;
    }
}


.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.14);
    margin: 12px 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    border: 1px solid var(--aureo-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fbfcff;
}

.form-select[size] {
    min-height: 260px;
}


.aureo-progress {
    height: 8px;
    border-radius: 999px;
    background: #e8edf5;
}

.aureo-progress .progress-bar {
    background: linear-gradient(90deg, var(--aureo-blue), var(--aureo-gold));
    border-radius: 999px;
}

.stat-value-sm {
    font-size: 22px;
    line-height: 1.2;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-item {
    border: 1px solid var(--aureo-border);
    border-radius: 14px;
    padding: 12px;
    background: #fbfcff;
}

.route-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-step {
    padding: 10px 14px;
    border: 1px solid var(--aureo-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--aureo-muted);
    font-weight: 600;
    font-size: 14px;
}

.route-step.active {
    background: rgba(31, 94, 255, 0.10);
    color: var(--aureo-blue);
    border-color: rgba(31, 94, 255, 0.25);
}

.compact-list {
    padding-left: 18px;
    margin-bottom: 18px;
}

.compact-list li {
    margin-bottom: 6px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.check-item {
    border: 1px solid var(--aureo-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    font-size: 14px;
}

.accordion-item {
    border-color: var(--aureo-border);
}

.accordion-button {
    font-weight: 500;
}

.sticky-card {
    position: sticky;
    top: 92px;
}

.diagnosis-answer {
    border: 1px solid var(--aureo-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    font-size: 13px;
    color: var(--aureo-muted);
    min-height: 54px;
}

.aureo-progress {
    height: 9px;
    border-radius: 999px;
    background: #e8edf7;
    overflow: hidden;
}

.aureo-progress .progress-bar {
    background: linear-gradient(90deg, var(--aureo-blue), var(--aureo-gold));
}

/* Ruta Aurea */
.route-timeline {
    display: grid;
    gap: 18px;
}

.route-card {
    background: #ffffff;
    border: 1px solid var(--aureo-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    position: relative;
}

.route-card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: #cbd5e1;
}

.route-card-active::before {
    background: var(--aureo-blue);
}

.route-card-done::before {
    background: #16a34a;
}

.route-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.route-percent {
    font-size: 26px;
    font-weight: 800;
    color: var(--aureo-navy);
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    color: var(--aureo-muted);
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--aureo-border);
    border-radius: 16px;
    background: #f8fafc;
}

.task-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.task-check {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: var(--aureo-navy);
    font-weight: 800;
    flex-shrink: 0;
}

.task-done .task-check {
    background: #16a34a;
    color: white;
}

.task-body {
    flex: 1;
    min-width: 0;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-score {
    font-size: 54px;
    font-weight: 900;
    color: var(--aureo-navy);
    line-height: 1;
    margin: 10px 0;
}


/* Auditor Aureo */
.readiness-score {
    font-size: 72px;
    line-height: 1;
    font-weight: 900;
    color: var(--aureo-navy);
    margin: 12px 0 4px;
}

.audit-score-sm {
    font-size: 34px;
    line-height: 1;
    margin: 0;
}

.mini-stat {
    padding: 16px;
    min-height: 120px;
}

.readiness-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.readiness-items {
    display: grid;
    gap: 12px;
}

.readiness-item {
    border: 1px solid var(--aureo-border);
    border-left-width: 6px;
    border-radius: 16px;
    padding: 14px 16px;
    background: #ffffff;
}

.severity-critica { border-left-color: #dc2626; background: #fff7f7; }
.severity-alta { border-left-color: #f97316; background: #fffaf5; }
.severity-media { border-left-color: #d4a437; background: #fffdf5; }
.severity-baja { border-left-color: #1f5eff; background: #f8fbff; }
.severity-positiva { border-left-color: #16a34a; background: #f6fef9; }


.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.report-card {
    display: block;
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: var(--aureo-text);
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    border-color: var(--aureo-blue);
}

.report-card strong {
    display: block;
    color: var(--aureo-navy);
    margin-bottom: 6px;
}

.report-card span {
    display: block;
    color: var(--aureo-muted);
    font-size: 14px;
}

.report-card-highlight {
    background: linear-gradient(135deg, #0b1533, #1f2a56);
    border-color: #0b1533;
}

.report-card-highlight strong,
.report-card-highlight span {
    color: #ffffff;
}

/* Panel Consultor Avanzado */
.kpi-card-accent {
    border-color: rgba(212, 164, 55, 0.35);
    background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.kpi-card-danger {
    border-color: rgba(220, 38, 38, 0.25);
    background: linear-gradient(180deg, #ffffff, #fff5f5);
}

.kpi-card-warning {
    border-color: rgba(217, 119, 6, 0.25);
    background: linear-gradient(180deg, #ffffff, #fffbeb);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.pipeline-column {
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    background: #f8fafc;
    padding: 18px 14px;
    text-align: center;
}

.pipeline-count {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--aureo-blue), #4f7cff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.pipeline-label {
    color: var(--aureo-muted);
    font-size: 13px;
    font-weight: 700;
}

.alert-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--aureo-border);
    border-radius: 16px;
    padding: 14px;
    background: #fbfcff;
    margin-bottom: 10px;
}

.alert-tile strong {
    color: var(--aureo-navy);
    font-size: 24px;
}

.alert-tile span {
    color: var(--aureo-muted);
    text-align: right;
    font-size: 13px;
}

.readiness-card {
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    background: #fbfcff;
    padding: 18px;
    height: 100%;
}

.readiness-score {
    color: var(--aureo-blue);
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

/* Fase 19 - Portal del cliente guiado */
.client-hero-card {
    background: linear-gradient(135deg, #0b1533 0%, #16245a 55%, #1f5eff 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.client-hero-kicker {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.client-hero-card h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 900;
}

.client-hero-card p {
    color: rgba(255, 255, 255, 0.78);
    margin: 8px 0 0;
}

.client-hero-progress {
    max-width: 520px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.client-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.client-action-list {
    display: grid;
    gap: 12px;
}

.client-action-item {
    border: 1px solid var(--aureo-border);
    border-left-width: 6px;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #ffffff;
}

.client-action-item.priority-critica,
.client-action-item.priority-alta {
    border-left-color: #f97316;
    background: #fffaf5;
}

.client-action-item.priority-media {
    border-left-color: var(--aureo-gold);
    background: #fffdf5;
}

.client-action-item.priority-baja {
    border-left-color: var(--aureo-blue);
    background: #f8fbff;
}

.client-action-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--aureo-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.client-action-body p {
    color: var(--aureo-muted);
    margin: 6px 0 0;
    font-size: 14px;
}

.client-action-cta {
    white-space: nowrap;
}

.client-step-list {
    display: grid;
    gap: 14px;
}

.client-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.client-step span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(31, 94, 255, 0.10);
    color: var(--aureo-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.client-step p {
    margin: 2px 0 0;
    color: var(--aureo-muted);
    font-size: 14px;
}

.quick-action-grid {
    display: grid;
    gap: 12px;
}

.quick-action-card {
    display: block;
    border: 1px solid var(--aureo-border);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: var(--aureo-text);
    background: #fbfcff;
    transition: all 0.15s ease;
}

.quick-action-card:hover {
    border-color: var(--aureo-blue);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.quick-action-card strong,
.quick-action-card span {
    display: block;
}

.quick-action-card span {
    color: var(--aureo-muted);
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .client-hero-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-hero-card h2 {
        font-size: 30px;
    }

    .client-hero-actions {
        justify-content: flex-start;
    }

    .client-action-item {
        grid-template-columns: 34px 1fr;
    }

    .client-action-cta {
        grid-column: 1 / -1;
    }
}


.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: #ef4444;
}

.notification-unread {
    background: #f8fbff;
}

.audit-json {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    min-height: 120px;
    white-space: pre-wrap;
    font-size: 13px;
}


.consultant-preview {
    border-top: 5px solid var(--consultant-accent, var(--aureo-gold));
}

.preview-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.preview-logo,
.preview-logo-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: contain;
    border: 1px solid var(--aureo-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--consultant-primary, var(--aureo-navy));
    font-size: 28px;
}

.preview-report-box {
    border-left: 4px solid var(--consultant-accent, var(--aureo-gold));
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.preview-signature {
    max-width: 210px;
    max-height: 90px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--aureo-border);
    border-radius: 12px;
    padding: 8px;
}

/* Fase 37 — UX visual premium */
html { scroll-behavior: smooth; }
body {
    background:
        radial-gradient(circle at top left, rgba(31, 94, 255, 0.10), transparent 34%),
        radial-gradient(circle at top right, rgba(212, 164, 55, 0.10), transparent 32%),
        var(--aureo-bg);
    font-synthesis-weight: none;
}

.app-shell { background: transparent; }
.sidebar {
    background: linear-gradient(180deg, #081126 0%, var(--aureo-navy) 58%, #070b18 100%);
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.10);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 999px; }
.brand {
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.brand-logo-wrap {
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform .14s ease, background .14s ease, color .14s ease;
}
.sidebar-nav .nav-link:hover { transform: translateX(2px); }
.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(31,94,255,.34), rgba(212,164,55,.18));
    box-shadow: inset 3px 0 0 var(--aureo-gold);
}
.topbar {
    height: 76px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.content-area { max-width: 1540px; margin: 0 auto; width: 100%; }
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.page-header h1 { letter-spacing: -0.035em; }
.page-header p { font-size: 15px; }

.card,
.stat-card {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover,
.stat-card:hover {
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.075);
}
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31,94,255,.10), rgba(212,164,55,.12));
}
.stat-label { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; }
.stat-value { letter-spacing: -0.04em; }
.table { --bs-table-bg: transparent; }
.table thead th {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    color: var(--aureo-muted);
    border-bottom: 1px solid var(--aureo-border);
}
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: rgba(31, 94, 255, .035); }
.badge { border-radius: 999px; }
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary {
    background: linear-gradient(135deg, var(--aureo-blue), #1748c9);
    border: 0;
    box-shadow: 0 10px 22px rgba(31,94,255,.18);
}
.btn-primary:hover { filter: brightness(.98); transform: translateY(-1px); }
.btn-outline-primary { border-radius: 12px; font-weight: 700; }
.form-label { font-weight: 700; color: #334155; }
.form-control:focus,
.form-select:focus {
    border-color: rgba(31,94,255,.45);
    box-shadow: 0 0 0 .22rem rgba(31,94,255,.10);
}

.premium-hero {
    border-radius: 28px;
    padding: 28px;
    color: white;
    background:
        linear-gradient(135deg, rgba(11,21,51,.98), rgba(31,94,255,.82)),
        radial-gradient(circle at top right, rgba(212,164,55,.45), transparent 34%);
    box-shadow: 0 28px 70px rgba(15,23,42,.20);
    position: relative;
    overflow: hidden;
}
.premium-hero::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    right: -88px;
    top: -80px;
    background: rgba(212,164,55,.22);
    filter: blur(2px);
}
.premium-hero > * { position: relative; z-index: 1; }
.premium-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.84);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.premium-hero h1,
.premium-hero h2 { letter-spacing: -.045em; font-weight: 900; }
.premium-hero p { color: rgba(255,255,255,.76); max-width: 760px; }
.premium-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.premium-hero .btn-light { color: var(--aureo-navy); }

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.quick-action-card {
    display: block;
    text-decoration: none;
    color: var(--aureo-text);
    background: #fff;
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    padding: 16px;
    transition: all .16s ease;
}
.quick-action-card:hover {
    transform: translateY(-2px);
    color: var(--aureo-text);
    border-color: rgba(31,94,255,.30);
    box-shadow: 0 18px 40px rgba(15,23,42,.075);
}
.quick-action-icon {
    width: 40px; height: 40px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(31,94,255,.12), rgba(212,164,55,.16));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: var(--aureo-blue); margin-bottom: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--aureo-border);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}
.status-dot { width: 9px; height: 9px; border-radius: 999px; background: #16a34a; }
.status-dot.warn { background: #d4a437; }
.status-dot.danger { background: #dc2626; }

.login-page {
    background:
        radial-gradient(circle at 18% 20%, rgba(31,94,255,.16), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(212,164,55,.18), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #eef3ff 100%);
}
.login-card {
    max-width: 460px;
    padding: 38px;
    box-shadow: 0 30px 90px rgba(15,23,42,.15);
}
.login-card h1 { font-weight: 900; letter-spacing: -.045em; }

@media (max-width: 900px) {
    .sidebar { position: relative; height: auto; }
    .topbar { position: relative; height: auto; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
    .premium-hero { padding: 22px; border-radius: 22px; }
    .premium-hero h1, .premium-hero h2 { font-size: 28px; }
}

/* Fase 74 - Organigrama visual */
.org-chart-wrapper {
    overflow-x: auto;
    padding: 1rem 0;
}
.org-tree, .org-children {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0;
}
.org-tree {
    padding-left: 0;
}
.org-node {
    margin: .75rem 0;
    position: relative;
}
.org-children {
    border-left: 2px solid rgba(0,0,0,.08);
    margin-left: .75rem;
}
.org-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1rem;
    padding: .85rem;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
    min-width: 260px;
}

/* Fase 84: navegación lateral agrupada y más simple. */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 7px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

.sidebar-search-wrap {
    padding: 0 4px 10px;
}

.sidebar-search {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-color: rgba(255,255,255,0.14);
}

.sidebar-search::placeholder {
    color: rgba(255,255,255,0.55);
}

.sidebar-search:focus {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: rgba(212,164,55,0.75);
    box-shadow: 0 0 0 .2rem rgba(212,164,55,0.15);
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-toggle {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section-toggle:hover {
    background: rgba(255,255,255,0.12);
}

.section-chevron {
    transition: transform .18s ease;
    font-size: 14px;
    opacity: .75;
}

.sidebar-section-toggle:not(.collapsed) .section-chevron {
    transform: rotate(180deg);
}

.sidebar-section-body {
    padding: 6px 0 2px 8px;
    border-left: 1px solid rgba(255,255,255,0.12);
    margin-left: 10px;
}

.sidebar-nav .nav-link {
    font-size: 14px;
    padding: 9px 12px;
    margin: 1px 0;
}

.sidebar-nav .nav-link-home {
    background: linear-gradient(135deg, rgba(212,164,55,0.24), rgba(255,255,255,0.08));
    color: #fff7d6;
    font-weight: 800;
    margin-bottom: 10px;
}

.sidebar-nav .nav-link.active {
    background: rgba(212,164,55,0.22);
    color: #ffffff;
    border: 1px solid rgba(212,164,55,0.28);
}

.sidebar-nav .nav-link.sidebar-hidden,
.sidebar-section.sidebar-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        height: auto;
        max-height: none;
    }

    .sidebar-nav {
        max-height: 58vh;
    }
}

/* Fase 85 — Panel del consultor simplificado */
.consultant-hero {
    background: linear-gradient(135deg, rgba(20,31,45,0.04), rgba(212,164,55,0.10));
    border: 1px solid rgba(20,31,45,0.08);
    border-radius: 24px;
    padding: 22px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
    color: #9b7626;
    margin-bottom: 4px;
}

.filter-card {
    border-radius: 20px;
}

.priority-card {
    display: block;
    min-height: 180px;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(20,31,45,0.08);
    box-shadow: 0 12px 30px rgba(15,23,42,0.07);
    color: #182436;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.priority-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15,23,42,0.11);
    color: #182436;
}

.priority-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

.priority-value {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    margin: 16px 0 10px;
}

.priority-help {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
}

.priority-danger { border-color: rgba(220,53,69,.28); }
.priority-danger .priority-value { color: #b4232f; }
.priority-warning { border-color: rgba(255,193,7,.36); }
.priority-warning .priority-value { color: #9a6a00; }
.priority-success { border-color: rgba(25,135,84,.20); }
.priority-success .priority-value { color: #198754; }

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(20,31,45,0.08);
    text-decoration: none;
    color: #182436;
    min-height: 104px;
}

.quick-action-card:hover {
    background: #fff8e6;
    border-color: rgba(212,164,55,0.38);
    color: #182436;
}

.quick-action-card span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.portfolio-list {
    display: grid;
    gap: 10px;
}

.portfolio-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(20,31,45,0.08);
}

.portfolio-list > div:last-child {
    border-bottom: 0;
}

.portfolio-list span {
    color: #6b7280;
}

.portfolio-list strong {
    font-size: 18px;
}

.compact-pipeline .pipeline-column {
    min-height: 88px;
}

@media (max-width: 1100px) {
    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
    .priority-card {
        min-height: auto;
    }
}

/* Fase 87: ayuda contextual por módulo */
.btn-aureo-help {
    background: linear-gradient(135deg, rgba(212,164,55,.18), rgba(31,94,255,.10));
    border: 1px solid rgba(212,164,55,.45);
    color: #172033;
    font-weight: 700;
    border-radius: 999px;
    padding-left: 14px;
    padding-right: 14px;
}

.btn-aureo-help:hover {
    background: #fff8e6;
    border-color: rgba(212,164,55,.75);
    color: #0b1533;
}

.contextual-help-panel {
    width: min(460px, 96vw);
}

.contextual-help-panel .offcanvas-header {
    border-bottom: 1px solid rgba(20,31,45,0.08);
    background: linear-gradient(135deg, #fff, #f8fafc);
}

.help-section {
    padding: 14px 0;
    border-bottom: 1px solid rgba(20,31,45,0.08);
}

.help-section h6 {
    color: #0b1533;
    font-weight: 800;
    margin-bottom: 7px;
}

.help-section p {
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.55;
}

.help-section-main {
    padding-top: 0;
}

.help-section-iso {
    background: #fff8e6;
    margin: 14px -10px 0;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(212,164,55,.25);
}

.help-steps {
    padding-left: 20px;
    margin-bottom: 0;
    color: #374151;
}

.help-steps li {
    margin-bottom: 8px;
    line-height: 1.45;
}

.help-tip {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid rgba(20,31,45,0.08);
    border-radius: 16px;
    color: #4b5563;
    font-size: 14px;
}

.contextual-help-inline {
    position: sticky;
    top: 8px;
    z-index: 3;
}

/* Fase 88 — Acciones rápidas y flujo guiado */
.nav-link-guide {
    background: linear-gradient(135deg, rgba(212, 164, 55, 0.18), rgba(31, 94, 255, 0.08));
    border: 1px solid rgba(212, 164, 55, 0.28);
    font-weight: 700;
}

.page-header-guided {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(11, 21, 51, 0.98), rgba(31, 94, 255, 0.86));
    color: #fff;
    box-shadow: 0 18px 45px rgba(11, 21, 51, 0.18);
}
.page-header-guided .text-muted { color: rgba(255,255,255,.72) !important; }
.page-header-guided .eyebrow { color: rgba(212, 164, 55, .95); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }

.guided-summary-card {
    min-width: 190px;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.guided-summary-number { font-size: 2.25rem; font-weight: 900; line-height: 1; color: #fff; }
.guided-summary-label { font-size: .85rem; color: rgba(255,255,255,.78); }

.guided-section {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}
.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}
.section-heading-row h2 { font-size: 1.05rem; margin: 0; font-weight: 800; color: #0f172a; }

.guided-priority-grid,
.guided-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
}
.guided-priority-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guided-action-card {
    display: flex;
    gap: .85rem;
    min-height: 118px;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, #fff, #f8fafc);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guided-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, 0.28);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    color: inherit;
}
.guided-action-card-priority {
    border-color: rgba(212, 164, 55, 0.28);
    background: linear-gradient(135deg, #fff, rgba(212, 164, 55, 0.08));
}
.guided-action-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(31, 94, 255, 0.10);
    color: var(--aureo-blue);
    font-weight: 900;
}
.guided-action-title { font-weight: 800; color: #0f172a; margin-bottom: .25rem; }
.guided-action-text { color: #64748b; font-size: .92rem; line-height: 1.35; }
.guided-action-meta,
.guided-action-footer {
    margin-top: .65rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #475569;
    font-weight: 700;
}
.guided-action-meta span,
.guided-action-badge {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: .18rem .52rem;
}
.guided-action-footer { color: var(--aureo-blue); }
.soft-alert { border-radius: 1rem; }

@media (max-width: 768px) {
    .page-header-guided { flex-direction: column; }
    .guided-summary-card { min-width: 0; }
    .guided-action-card { min-height: auto; }
}

/* Fase 89: estados visuales, badges y cards */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: .9;
}

.status-danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.status-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.status-info {
    color: #1e40af;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.status-success {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.status-neutral {
    color: #334155;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.status-muted {
    color: #52525b;
    background: #f4f4f5;
    border-color: #e4e4e7;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}
.status-dot.status-danger { background: #dc2626; color: #dc2626; }
.status-dot.status-warning { background: #f59e0b; color: #f59e0b; }
.status-dot.status-info { background: #2563eb; color: #2563eb; }
.status-dot.status-success { background: #16a34a; color: #16a34a; }
.status-dot.status-neutral { background: #64748b; color: #64748b; }
.status-dot.status-muted { background: #a1a1aa; color: #a1a1aa; }

.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--aureo-text);
}

.state-card {
    border: 1px solid var(--aureo-border);
    border-radius: 18px;
    background: white;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.state-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #cbd5e1;
}
.state-card.state-danger::before { background: #dc2626; }
.state-card.state-warning::before { background: #f59e0b; }
.state-card.state-info::before { background: #2563eb; }
.state-card.state-success::before { background: #16a34a; }
.state-card.state-neutral::before { background: #64748b; }

.visual-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-status-cell {
    min-width: 120px;
}

.badge-soft-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-soft-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-soft-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-soft-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-soft-neutral { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

/* Fase 90: pulido responsive móvil/tablet */
.mobile-menu-toggle,
.mobile-sidebar-backdrop {
    display: none;
}

.topbar-actions,
.topbar-user-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive-aureo {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1199.98px) {
    .sidebar {
        width: 260px;
    }
    .content-area {
        padding: 24px;
    }
    .topbar {
        padding: 0 24px;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        min-height: 100vh;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 38px;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 330px);
        height: 100vh;
        z-index: 1045;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.22);
        padding: 18px 14px;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.42);
        border: 0;
        padding: 0;
    }

    body:not(.sidebar-open) .mobile-sidebar-backdrop {
        display: none;
    }

    body.sidebar-open .mobile-sidebar-backdrop {
        display: block;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .brand {
        margin-bottom: 18px;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    .topbar {
        min-height: 66px;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 1020;
        flex-wrap: wrap;
    }

    .topbar-user-group {
        min-width: 0;
        flex: 1 1 auto;
    }

    .topbar-user-text {
        min-width: 0;
    }

    .topbar-user-text strong {
        display: block;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-actions .btn,
    .topbar-actions form,
    .topbar-actions form .btn {
        flex: 1 1 145px;
    }

    .content-area {
        padding: 18px 14px 32px;
    }

    .page-header {
        margin-bottom: 18px;
    }

    .page-header h1 {
        font-size: 24px;
        line-height: 1.15;
    }

    .card,
    .stat-card,
    .state-card {
        border-radius: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 42px;
    }

    .row.g-4,
    .row.g-3 {
        --bs-gutter-y: 1rem;
    }

    table {
        font-size: 14px;
    }

    .table-responsive,
    .table-responsive-aureo {
        border: 1px solid var(--aureo-border);
        border-radius: 14px;
        background: #fff;
    }

    .table-responsive table,
    .table-responsive-aureo table {
        margin-bottom: 0;
        min-width: 720px;
    }

    .contextual-help-inline {
        margin-bottom: 12px;
    }
}

@media (max-width: 575.98px) {
    .content-area {
        padding: 14px 10px 28px;
    }

    .topbar {
        padding: 10px;
    }

    .topbar-actions .btn,
    .topbar-actions form,
    .topbar-actions form .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .mobile-menu-toggle {
        width: auto;
    }

    .topbar-user-text strong {
        max-width: 52vw;
        font-size: 14px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .brand-logo-wrap {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .sidebar-nav .nav-link {
        padding: 10px 12px;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .sidebar-section-toggle {
        min-height: 40px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .stat-value {
        font-size: 24px;
    }

    .status-badge {
        white-space: normal;
        line-height: 1.2;
        min-height: 28px;
    }
}

/* V90.1 — Pulido estético del sidebar estable.
   Importante: no cambia el comportamiento del menú ni reemplaza Bootstrap Collapse. */
.sidebar {
    width: 292px;
    padding: 20px 16px;
    background:
        radial-gradient(circle at 22% 0%, rgba(212, 164, 55, 0.14), transparent 28%),
        linear-gradient(180deg, #081126 0%, #0b1533 56%, #060a17 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.brand {
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 35px rgba(0,0,0,0.12);
}

.brand-title {
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    margin-top: 4px;
    line-height: 1.2;
    color: rgba(226, 232, 240, 0.78);
}

.brand-logo-wrap {
    flex: 0 0 auto;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(212,164,55,.22), rgba(255,255,255,.045)),
        rgba(255,255,255,.06);
    border: 1px solid rgba(212,164,55,.24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.16);
}

.sidebar-search-wrap {
    padding: 0 2px 12px;
}

.sidebar-search {
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.13);
    color: #fff;
    padding-left: 14px;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.sidebar-search:focus {
    background: rgba(255,255,255,0.11);
    border-color: rgba(212,164,55,0.72);
    box-shadow: 0 0 0 .18rem rgba(212,164,55,.13);
}

.sidebar-section {
    margin-bottom: 10px;
}

.sidebar-section-toggle {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.94);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
    transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.sidebar-section-toggle:hover {
    transform: translateX(2px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.16);
}

.sidebar-section-toggle:not(.collapsed) {
    background: linear-gradient(135deg, rgba(212,164,55,0.25), rgba(255,255,255,0.075));
    border-color: rgba(212,164,55,0.28);
    box-shadow: inset 3px 0 0 rgba(212,164,55,0.88), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sidebar-section-toggle span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    margin-left: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    line-height: 1;
}

.sidebar-section-body {
    margin: 8px 0 2px 10px;
    padding: 4px 0 4px 10px;
    border-left: 1px solid rgba(212,164,55,0.20);
}

.sidebar-nav .nav-link {
    position: relative;
    justify-content: flex-start;
    gap: 8px;
    min-height: 37px;
    padding: 8px 11px;
    margin: 2px 0;
    border-radius: 12px;
    color: rgba(226,232,240,0.82);
    font-size: 13.5px;
    line-height: 1.25;
    border: 1px solid transparent;
    transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
}

.sidebar-section-body .nav-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(212,164,55,0.45);
    flex: 0 0 auto;
    opacity: .85;
}

.sidebar-nav .nav-link:hover {
    transform: translateX(3px);
    color: #ffffff;
    background: rgba(255,255,255,0.095);
    border-color: rgba(255,255,255,0.09);
}

.sidebar-nav .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(31,94,255,.28), rgba(212,164,55,.20));
    border-color: rgba(212,164,55,.30);
    box-shadow: inset 3px 0 0 var(--aureo-gold);
}

.sidebar-section-body .nav-link.active::before {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212,164,55,.18);
}

.sidebar-nav .nav-link-home {
    min-height: 42px;
    margin: 2px 0 12px;
    padding: 10px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(212,164,55,.30), rgba(255,255,255,.08));
    border: 1px solid rgba(212,164,55,.22);
    color: #fff7d6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.sidebar-footer {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
}

@media (max-width: 1199.98px) {
    .sidebar { width: 276px; }
}

@media (max-width: 991.98px) {
    .sidebar {
        width: min(88vw, 334px);
        padding: 16px 13px;
    }

    .sidebar-nav {
        max-height: calc(100vh - 116px);
    }

    .sidebar-section-toggle {
        min-height: 46px;
    }

    .sidebar-nav .nav-link {
        min-height: 42px;
        font-size: 14px;
    }
}
