@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --navy: #0D1B2A;
    --navy2: #162032;
    --accent: #00C896;
    --accent-hover: #00DFA6;
    --blue: #0099FF;
    --surface: #F7F9FC;
    --surface2: #EEF2F8;
    --white: #FFFFFF;
    --text: #0D1B2A;
    --muted: #6B7A90;
    --danger: #E24B4A;
    --warning: #EF9F27;
    --purple: #7F77DD;
    --border: rgba(13, 27, 42, 0.10);
}

body {
    margin: 0;
    background: var(--surface);
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--text);
}

.app-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.app-sidebar {
    background: var(--navy2);
    color: var(--white);
    padding: 24px 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 22px;
}

.sidebar-brand img {
    height: 38px;
    width: auto;
}

.sidebar-brand-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .04em;
}

.sidebar-brand-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

.sidebar-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(255,255,255,.28);
    margin: 20px 8px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    transition: .15s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.90);
}

.sidebar-link.active {
    background: rgba(0,200,150,.12);
    color: var(--accent);
    font-weight: 600;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    height: 58px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.topbar-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

.app-content {
    padding: 32px 36px;
}

.page-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 0px;
}

.fepade-card,
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(13,27,42,.04);
}

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

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-top: 8px;
}

.stat-description {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.btn-fepade {
    background: var(--accent);
    color: var(--navy);
    border: none;
    font-weight: 700;
    /*font-size: x-large;*/
}

.btn-fepade:hover {
    background: var(--accent-hover);
    color: var(--navy);
}

.btn-fepade-BA {
    background: var(--accent);
    color: var(--navy);
    border: none;
    font-weight: 700;
    /*font-size: x-large;*/
}

.btn-fepade-BA:hover {
    background: var(--accent-hover);
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: white;
    border: none;
}

.btn-navy:hover {
    background: #1a2e42;
    color: white;
}

.badge-success-soft {
    background: rgba(0,200,150,.12);
    color: #007a5a;
}

.badge-info-soft {
    background: rgba(0,153,255,.10);
    color: #0065cc;
}

.badge-warning-soft {
    background: rgba(239,159,39,.12);
    color: #8a5c00;
}

.form-control,
.form-select {
    background-color: var(--surface);
    border: 1.5px solid var(--surface2);
    border-radius: 10px;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,153,255,.08);
}

.form-control-BA {
    width: 100%;
    padding: 0.375rem 0.75rem;
    background-color: var(--surface);
    border: 1.5px solid var(--surface2);
    border-radius: 10px;
    font-size: 13px;
}

.form-control-BA:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,153,255,.08);
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--navy);
    border-color: var(--border);
}

.page-item.active .page-link {
    background-color: var(--navy);
    border-color: var(--navy);
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgba(0,153,255,.08);
}

@media (max-width: 992px) {
    .app-wrapper {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
    }

    .app-content {
        padding: 22px;
    }
}

/* ==========================================================
   FORMACION ACADEMICA - CONSULTOR
========================================================== */

.formacion-panel {
    padding: 28px;
}

.formacion-section {
    margin-bottom: 42px;
}

.formacion-section:last-child {
    margin-bottom: 0;
}

.formacion-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.formacion-section-title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.formacion-section-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.formacion-card {
    display: flex;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(13,27,42,.04);
    transition: .18s ease;
}

.formacion-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(13,27,42,.08);
}

.formacion-card-body {
    flex: 1;
}

.formacion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.formacion-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.formacion-card-type {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.formacion-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.formacion-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    cursor: pointer;
    color: var(--muted);
    text-decoration: none;
}

.formacion-action-btn:hover {
    background: var(--surface2);
    color: var(--navy);
}

.formacion-action-btn-danger:hover {
    background: rgba(226, 75, 74, 0.08);
    color: var(--danger);
}

.formacion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 18px;
}

.formacion-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.formacion-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.formacion-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.formacion-footer {
    display: flex;
    align-items: center;
    gap: 18px;
}

.formacion-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.formacion-link:hover {
    color: var(--navy);
}

.formacion-empty {
    background: var(--surface);
    border: 1px dashed var(--surface2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.formacion-form-wrapper {
    margin-bottom: 18px;
}

.formacion-form-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
}

.formacion-form-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
}

.formacion-document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.formacion-document-link:hover {
    color: var(--navy);
}

.formacion-document-empty {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 992px) {

    .formacion-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .formacion-card {
        flex-direction: column;
    }

    .formacion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 576px) {

    .formacion-grid {
        grid-template-columns: 1fr;
    }

    .formacion-card-title {
        font-size: 18px;
    }

    .formacion-section-title {
        font-size: 22px;
    }

}

/* ==========================================================
   EXPEDIENTE CONSULTOR
========================================================== */

.expediente-profile-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.expediente-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface2);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
}

.expediente-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.expediente-section-header h5 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.expediente-section-header p {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.expediente-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
}

.expediente-grid-full {
    grid-column: 1 / -1;
}

.expediente-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.expediente-value {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.expediente-subtitle {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.expediente-item {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.expediente-empty {
    background: var(--surface);
    border: 1px dashed var(--surface2);
    border-radius: 14px;
    padding: 18px;
    color: var(--muted);
    font-size: 14px;
}

.expediente-formacion-group {
    margin-bottom: 28px;
}

.expediente-formacion-group:last-child {
    margin-bottom: 0;
}

.expediente-module-card {
    display: block;
    height: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    transition: .15s ease;
}

.expediente-module-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(13,27,42,.06);
    color: var(--text);
}

.expediente-module-card strong {
    display: block;
    font-family: 'Syne', sans-serif;
    margin-bottom: 6px;
}

.expediente-module-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .expediente-section-header {
        flex-direction: column;
    }

    .expediente-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   LAYOUT: SIDEBAR COLAPSABLE + RESPONSIVE
========================================================== */

.app-wrapper {
    transition: .2s ease;
}

.app-sidebar {
    width: 260px;
    min-height: 100vh;
    overflow-y: auto;
    transition: width .2s ease, transform .2s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.sidebar-brand-text,
.sidebar-label,
.sidebar-section,
.sidebar-caret,
.sidebar-submenu,
.sidebar-subtitle {
    transition: opacity .15s ease, visibility .15s ease;
}

.sidebar-icon {
    width: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.sidebar-dropdown-toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.58);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    transition: .15s ease;
    text-align: left;
}

.sidebar-dropdown-toggle:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.90);
}

.sidebar-caret {
    margin-left: auto;
    font-size: 11px;
}

.sidebar-submenu {
    margin: 6px 0 10px 32px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.08);
}

.sidebar-sublink {
    display: block;
    color: rgba(255,255,255,.52);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 12.5px;
    transition: .15s ease;
}

.sidebar-sublink:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.90);
}

.sidebar-sublink.active {
    background: rgba(0,200,150,.12);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-subtitle {
    margin: 12px 10px 4px;
    color: rgba(255,255,255,.28);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Estado comprimido escritorio */
.app-wrapper.sidebar-collapsed {
    grid-template-columns: 82px 1fr;
}

.app-wrapper.sidebar-collapsed .app-sidebar {
    width: 82px;
    padding-left: 14px;
    padding-right: 14px;
}

.app-wrapper.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

.app-wrapper.sidebar-collapsed .sidebar-brand img {
    height: 34px;
}

.app-wrapper.sidebar-collapsed .sidebar-brand-text,
.app-wrapper.sidebar-collapsed .sidebar-label,
.app-wrapper.sidebar-collapsed .sidebar-section,
.app-wrapper.sidebar-collapsed .sidebar-caret,
.app-wrapper.sidebar-collapsed .sidebar-submenu {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.app-wrapper.sidebar-collapsed .sidebar-link,
.app-wrapper.sidebar-collapsed .sidebar-dropdown-toggle {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-wrapper.sidebar-collapsed .sidebar-icon {
    width: 42px;
    min-width: 42px;
}

/* Topbar */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-sidebar-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: white;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.topbar-sidebar-btn:hover {
    background: rgba(255,255,255,.12);
}

.topbar-page-info {
    min-width: 0;
}

.topbar-breadcrumb {
    color: white;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.topbar-menu-btn {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: white;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.topbar-menu-btn:hover,
.topbar-menu-btn:focus {
    background: rgba(255,255,255,.12);
    color: white;
}

/* Responsive móvil */
.sidebar-backdrop {
    display: none;
}

@media (max-width: 992px) {
    .app-wrapper {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        width: 280px;
        max-width: 86vw;
        height: 100vh;
        min-height: 100vh;
    }

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

    .app-wrapper.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13,27,42,.45);
        z-index: 30;
    }

    .app-topbar {
        padding: 0 18px;
    }

    .app-content {
        padding: 22px;
    }
}

@media (max-width: 576px) {
    .app-topbar {
        height: 62px;
    }

    .topbar-menu-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* ==========================================================
   TOPBAR MOBILE
========================================================== */

.topbar-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 10px;
}

.topbar-mobile-logo img {
    height: 34px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

@media (max-width: 992px) {

    .app-topbar {
        height: 64px;
        padding: 0 14px;
    }

    .topbar-left {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .topbar-sidebar-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
    }

    .topbar-mobile-logo {
        justify-content: flex-start;
    }

    .topbar-menu-btn {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {

    .topbar-mobile-logo img {
        height: 28px;
        max-width: 130px;
    }

    .app-topbar {
        padding: 0 10px;
    }

    .topbar-menu-btn {
        padding: 7px 8px;
        font-size: 11px;
    }
}

.expediente-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--surface2);
    margin-bottom: 18px;
}

/* ==========================================================
   CONTACTO CONSULTOR
========================================================== */

.contacto-section {
    margin-bottom: 34px;
}

.contacto-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.contacto-section-header h4 {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.contacto-section-header p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.contacto-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(13,27,42,.04);
}

@media (max-width: 768px) {
    .contacto-section-header {
        flex-direction: column;
    }
}

/* ==========================================================
   PERFIL CONSULTOR - ESTILOS UNIFICADOS
========================================================== */

.perfil-page-title {
    color: var(--text);
    font-weight: 800;
    margin-bottom: .25rem;
}

.perfil-panel,
.habilidad-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(13, 27, 42, .06);
    border: 1px solid var(--border);
}

.perfil-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.perfil-section-header h4,
.perfil-section-header h3,
.habilidad-panel h4 {
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin: 0;
}

.perfil-card-item {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(13, 27, 42, .04);
}

.perfil-card-icon,
.formacion-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(0, 200, 150, .12);
    color: #007a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex: 0 0 48px;
}

.perfil-card-body {
    flex: 1;
}

.perfil-card-title {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: .2rem;
}

.perfil-card-subtitle {
    color: var(--muted);
    margin-bottom: .35rem;
}

.perfil-card-meta {
    color: var(--muted);
    font-size: .92rem;
}

.perfil-form-wrapper {
    margin-bottom: 1.25rem;
}

.perfil-empty-state {
    border: 1px dashed var(--surface2);
    border-radius: 14px;
    padding: 1.25rem;
    color: var(--muted);
    background: var(--surface);
}

.habilidad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem 1.25rem;
}

/* ==========================================================
   EXPEDIENTE CONSULTOR - REDISEÑO
========================================================== */

.expediente-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expediente-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: var(--white);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 18px 45px rgba(13, 27, 42, .18);
}

.expediente-hero-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.expediente-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.expediente-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expediente-hero h2 {
    margin: 0 0 .35rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.expediente-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
}

.expediente-meta span:not(:last-child)::after {
    content: "•";
    margin-left: .5rem;
}

.expediente-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.expediente-status-badge {
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .14);
}

.expediente-status-badge.success {
    background: rgba(0, 200, 150, .18);
    color: #9fffe2;
}

.expediente-status-badge.warning {
    background: rgba(239, 159, 39, .18);
    color: #ffd18d;
}

.expediente-status-badge.danger {
    background: rgba(226, 75, 74, .18);
    color: #ffb2b2;
}

.expediente-hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.expediente-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.expediente-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(13, 27, 42, .04);
}

.expediente-summary-card span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: .35rem;
}

.expediente-summary-card strong {
    display: block;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    word-break: break-word;
}

.expediente-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.expediente-main,
.expediente-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expediente-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 10px 28px rgba(13, 27, 42, .045);
}

.expediente-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.expediente-panel-header.compact {
    margin-bottom: 1rem;
}

.expediente-panel-header h4 {
    margin: 0;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.expediente-panel-header p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.expediente-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.expediente-info-item {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 16px;
    padding: .95rem;
}

.expediente-info-item.wide {
    grid-column: 1 / -1;
}

.expediente-info-item span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: .3rem;
}

.expediente-info-item strong {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.expediente-timeline-card {
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 16px;
    padding: 1rem 1rem 1rem 1.2rem;
    margin-bottom: 1rem;
}

.expediente-timeline-card:last-child {
    margin-bottom: 0;
}

.expediente-timeline-card h5 {
    margin: 0;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.expediente-timeline-card p {
    margin: .25rem 0 0;
    color: var(--muted);
}

.expediente-date {
    display: inline-block;
    margin-top: .65rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
}

.expediente-description {
    margin-top: .75rem !important;
}

.expediente-file-link {
    display: inline-block;
    margin-top: .75rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.expediente-file-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

.expediente-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.expediente-tag-row.vertical {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.expediente-tag-row span {
    background: rgba(0, 200, 150, .12);
    color: #007a5a;
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    display: block;
}

.expediente-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.expediente-mini-card,
.expediente-side-item {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 16px;
    padding: .9rem;
}

.expediente-mini-card h5,
.expediente-side-item strong {
    display: block;
    margin: 0;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.expediente-mini-card p,
.expediente-side-item span {
    display: block;
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.expediente-side-item + .expediente-side-item {
    margin-top: .75rem;
}

.expediente-empty-state {
    background: var(--surface);
    border: 1px dashed var(--surface2);
    border-radius: 16px;
    padding: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

.expediente-sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 1199px) {
    .expediente-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .expediente-layout {
        grid-template-columns: 1fr;
    }

    .expediente-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 767px) {
    .expediente-hero {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 18px;
        padding: 1.25rem;
    }

    .expediente-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .expediente-avatar-large {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .expediente-summary-grid,
    .expediente-info-grid,
    .expediente-cards-grid,
    .expediente-sidebar {
        grid-template-columns: 1fr;
    }

    .expediente-panel-header,
    .perfil-section-header,
    .formacion-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .perfil-card-item,
    .formacion-card {
        flex-direction: column;
    }

    .habilidad-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   WIZARD PERFIL CONSULTOR
========================================================== */

.perfil-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin: 20px 0 24px 0;
}

.perfil-tab {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.perfil-tab:hover {
    background: var(--surface2);
    color: var(--navy);
    text-decoration: none;
}

.perfil-tab.active {
    background: var(--white);
    color: var(--navy);
    border-color: var(--accent) var(--accent) var(--white) var(--accent);
}

/* ==========================================================
   CHECKBOX GRID PERFIL
========================================================== */

.habilidad-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(13, 27, 42, .05);
    margin-bottom: 1rem;
}

.habilidad-panel h4 {
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin-bottom: .25rem;
}

.habilidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.habilidad-grid .form-check {
    position: relative;
    margin: 0;
    min-height: 50px;
    padding: .85rem 1rem .85rem 2.65rem;
    border: 1px solid var(--surface2);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    align-items: center;
}

.habilidad-grid .form-check-input {
    position: absolute;
    left: 1rem;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}

.habilidad-grid .form-check-label {
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
}

.habilidad-grid .form-check:has(.form-check-input:checked) {
    border-color: var(--accent);
    background: rgba(0, 200, 150, .08);
}

/* ==========================================================
   DASHBOARD FACILITADORES
========================================================== */

.dashboard-filter-card,
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(13, 27, 42, .04);
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-card-header h5 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--text);
}

.dashboard-card-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-chart-wrap {
    position: relative;
    height: 320px;
}

@media (max-width: 768px) {
    .dashboard-chart-wrap {
        height: 280px;
    }
}

/* ==========================================================
   RESULTADOS CONSULTOR

.consultor-resultados {
    width: 100%;
}

.consultor-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.consultor-card .btn {
    margin-top: auto;
}

.consultor-item {
    word-break: break-word;
}

@media (max-width: 991px) {

    .consultor-resultados {
        margin-top: 20px;
    }

/*sección de nombre de usuario topbar*/

.topbar-user-info {
    text-align: right;
    line-height: 1.15;
}

.topbar-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.topbar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.topbar-menu-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
}

.topbar-menu-btn:hover,
.topbar-menu-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ==========================================================
   BUSQUEDA AVANZADA CONSULTOR
========================================================== */

.busqueda-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.busqueda-filtros {
    position: sticky;
    top: 82px;
}

.busqueda-filtros-header h5,
.busqueda-resultados-header h5 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--text);
}

.busqueda-filtros-header p,
.busqueda-resultados-header p {
    color: var(--muted);
    margin: .25rem 0 0;
    font-size: .9rem;
}

.busqueda-checkbox-scroll {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--surface2);
    border-radius: 14px;
    background: var(--surface);
    padding: .75rem;
}

.busqueda-checkbox-scroll .form-check {
    margin-bottom: .55rem;
}

.busqueda-checkbox-scroll .form-check:last-child {
    margin-bottom: 0;
}

.busqueda-resultados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.busqueda-consultor-card {
    min-height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(13, 27, 42, .045);
    overflow: hidden;
    padding: 0 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    transition: .16s ease;
}

.busqueda-consultor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(13, 27, 42, .10);
}

.busqueda-consultor-cover {
    height: 74px;
    margin: 0 -1.1rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
}

.busqueda-avatar-wrap {
    width: 92px;
    height: 92px;
    margin: -46px auto 0;
    border-radius: 50%;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 8px 20px rgba(13, 27, 42, .16);
}

.busqueda-avatar-img,
.busqueda-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.busqueda-avatar-img {
    object-fit: cover;
}

.busqueda-avatar-initials {
    background: var(--surface);
    color: var(--navy);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
}

.busqueda-consultor-card h5 {
    margin: .35rem 0 .45rem;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.busqueda-consultor-meta {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: .9rem;
}

.busqueda-consultor-meta div {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    word-break: break-word;
}

.busqueda-consultor-meta i {
    color: var(--navy);
    margin-top: .15rem;
}

@media (max-width: 1199px) {
    .busqueda-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .busqueda-layout {
        grid-template-columns: 1fr;
    }

    .busqueda-filtros {
        position: static;
    }
}

/* ==========================================================
   EXPEDIENTE CONSULTOR 2.0 - UX FEPADE
========================================================== */

.expediente-ux {
    gap: 1.25rem;
}

.expediente-ux-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0,200,150,.24), transparent 34%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #ffffff;
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 22px 55px rgba(13, 27, 42, .20);
}

.expediente-ux-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}

.expediente-ux-hero-content,
.expediente-ux-hero-side {
    position: relative;
    z-index: 1;
}

.expediente-ux-hero-content {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-width: 0;
}

.expediente-ux-avatar {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 112px;
    box-shadow: 0 16px 32px rgba(0,0,0,.16);
}

.expediente-ux-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expediente-ux-avatar span {
    font-family: 'Syne', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
}

.expediente-ux-kicker {
    color: rgba(255,255,255,.66);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.expediente-ux-kicker.dark {
    color: var(--muted);
}

.expediente-ux-identity h2 {
    margin: 0 0 .45rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.expediente-ux-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    color: rgba(255,255,255,.76);
    font-size: .92rem;
}

.expediente-ux-meta span:not(:last-child)::after {
    content: "•";
    margin-left: .45rem;
    color: rgba(255,255,255,.38);
}

.expediente-ux-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

.expediente-ux-badge {
    border-radius: 999px;
    padding: .42rem .78rem;
    font-size: .78rem;
    font-weight: 800;
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

.expediente-ux-badge.success {
    background: rgba(0,200,150,.20);
    color: #a9ffe6;
}

.expediente-ux-badge.warning {
    background: rgba(239,159,39,.20);
    color: #ffd28c;
}

.expediente-ux-badge.danger {
    background: rgba(226,75,74,.20);
    color: #ffb4b4;
}

.expediente-ux-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.expediente-ux-progress-ring {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--progress, 0) * 1%), rgba(255,255,255,.14) 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 0 0 10px rgba(13,27,42,.30);
}

.expediente-ux-progress-ring strong {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.expediente-ux-progress-ring span {
    color: rgba(255,255,255,.68);
    font-size: .78rem;
    font-weight: 700;
}

.expediente-ux-hero-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.expediente-ux-snapshot {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.expediente-ux-stat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(13,27,42,.045);
}

.expediente-ux-stat.primary {
    background: #f4f9eb;
    border-color: #cfe7a6;
}

.expediente-ux-stat span,
.expediente-ux-stat small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.expediente-ux-stat strong {
    display: block;
    margin: .25rem 0;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
}

.expediente-ux-summary-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    box-shadow: 0 10px 28px rgba(13,27,42,.045);
}

.expediente-ux-summary-panel h3 {
    margin: 0 0 .45rem;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.expediente-ux-summary-panel p {
    color: var(--muted);
    margin: 0;
    font-size: .98rem;
    line-height: 1.6;
}

.expediente-ux-summary-contact {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.expediente-ux-summary-contact div {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    padding: .8rem;
}

.expediente-ux-summary-contact span {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.expediente-ux-summary-contact strong {
    display: block;
    color: var(--text);
    word-break: break-word;
}

.expediente-ux-panel .expediente-panel-header > div:first-child {
    position: relative;
    padding-left: 3.15rem;
}

.expediente-ux-section-icon {
    position: absolute;
    left: 0;
    top: .1rem;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,200,150,.12);
    color: #007a5a;
}

.expediente-ux-timeline {
    position: relative;
}

.expediente-ux-timeline .expediente-timeline-card {
    position: relative;
    border-left: 0;
    padding-left: 1.25rem;
}

.expediente-ux-timeline .expediente-timeline-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(0,200,150,.12);
}

.expediente-ux-side-summary {
    background: #fbfcf7;
    border-color: #d9e7a8;
}

.expediente-ux-side-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .72rem 0;
    border-bottom: 1px solid rgba(13,27,42,.08);
}

.expediente-ux-side-metric:last-child {
    border-bottom: 0;
}

.expediente-ux-side-metric span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.expediente-ux-side-metric strong {
    color: var(--navy);
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
}

.expediente-ux-doc-card,
.expediente-ux-reference-card,
.expediente-ux-language,
.expediente-ux-area-block {
    transition: .15s ease;
}

.expediente-ux-doc-card:hover,
.expediente-ux-reference-card:hover,
.expediente-ux-language:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(13,27,42,.06);
}

@media (max-width: 1199px) {
    .expediente-ux-snapshot {
        grid-template-columns: repeat(3, 1fr);
    }

    .expediente-ux-summary-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .expediente-ux-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.35rem;
        border-radius: 22px;
    }

    .expediente-ux-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .expediente-ux-avatar {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        border-radius: 22px;
    }

    .expediente-ux-hero-side {
        width: 100%;
        align-items: flex-start;
    }

    .expediente-ux-snapshot {
        grid-template-columns: 1fr;
    }

    .expediente-ux-summary-contact {
        width: 100%;
    }

    .expediente-ux-panel .expediente-panel-header > div:first-child {
        padding-left: 0;
        padding-top: 3rem;
    }
}

/* ==========================================================
   BUSQUEDA AVANZADA 2.0 - FEPADE UI KIT
========================================================== */

.busqueda-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #ffffff;
    border-radius: 22px;
    padding: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 18px 45px rgba(13, 27, 42, .16);
}

.busqueda-hero-BA {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #ffffff;
    border-radius: 22px;
    padding: 1.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 18px 45px rgba(13, 27, 42, .16);
}

.busqueda-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.busqueda-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.busqueda-hero h2 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.busqueda-hero p {
    margin: .35rem 0 .75rem;
    color: rgba(255,255,255,.74);
    max-width: 760px;
}

.busqueda-hero-BA h2 {
    color: white;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.busqueda-hero-BA p {
    margin: .35rem 0 1rem;
    color: rgba(255,255,255,.74);
}

.busqueda-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.busqueda-hero-metrics span {
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    padding: .38rem .7rem;
    font-size: .84rem;
    color: rgba(255,255,255,.82);
}

.busqueda-hero-metrics strong {
    color: #ffffff;
}

.busqueda-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.busqueda-search-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 200, 150, .12);
    color: #007a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.busqueda-search-actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.busqueda-filtros-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.busqueda-filter-counter {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #ffffff;
    font-weight: 800;
}

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

.busqueda-filtros .accordion-button {
    font-weight: 800;
    color: var(--text);
    border-radius: .9rem !important;
    background: #ffffff;
    box-shadow: none;
}

.busqueda-filtros .accordion-button:not(.collapsed) {
    color: var(--navy);
    background: #f4f9eb;
}

.busqueda-checkbox-scroll {
    scrollbar-width: thin;
}

.busqueda-checkbox-scroll .form-check {
    border-radius: .7rem;
    padding: .45rem .55rem .45rem 1.85rem;
}

.busqueda-checkbox-scroll .form-check:hover {
    background: #ffffff;
}

.busqueda-section-kicker {
    display: inline-block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.busqueda-resultados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.busqueda-resultados-total {
    min-width: 88px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    padding: .75rem;
    text-align: center;
}

.busqueda-resultados-total strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--navy);
}

.busqueda-resultados-total span {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    margin-top: .2rem;
}

.busqueda-consultor-card-2 {
    position: relative;
}

.busqueda-card-top {
    display: flex;
    justify-content: center;
    position: relative;
}

.busqueda-profile-status {
    position: absolute;
    top: -34px;
    right: 0;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .74rem;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid var(--border);
}

.busqueda-profile-status.success { color: #007a5a; }
.busqueda-profile-status.warning { color: #8a5c00; }
.busqueda-profile-status.danger { color: var(--danger); }

.busqueda-card-subtitle {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.busqueda-progress-block {
    margin: 1rem 0;
    padding: .85rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--surface2);
}

.busqueda-progress-block span {
    color: var(--muted);
    font-weight: 700;
}

.busqueda-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
}

.busqueda-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

.busqueda-progress-fill.warning { background: var(--warning); }
.busqueda-progress-fill.danger { background: var(--danger); }

.busqueda-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .55rem;
    margin-bottom: 1rem;
}

.busqueda-card-stats div {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: .65rem .45rem;
    text-align: center;
}

.busqueda-card-stats strong {
    display: block;
    color: var(--navy);
    font-family: 'Syne', sans-serif;
    line-height: 1;
}

.busqueda-card-stats span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    margin-top: .2rem;
    font-weight: 700;
}

.busqueda-card-section {
    margin-bottom: .95rem;
}

.busqueda-card-section-title {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.busqueda-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.busqueda-chip-row span {
    background: rgba(0, 200, 150, .12);
    color: #007a5a;
    border-radius: 999px;
    padding: .35rem .6rem;
    font-size: .76rem;
    font-weight: 800;
}

.busqueda-chip-row.soft span {
    background: #eef3f8;
    color: var(--navy);
}

.busqueda-chip-row small {
    color: var(--muted);
}

.busqueda-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.busqueda-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.busqueda-empty-state h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--text);
}

.busqueda-empty-state p {
    color: var(--muted);
}

.busqueda-resultados-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

@media (max-width: 991.98px) {
    .busqueda-hero,
    .busqueda-hero-main,
    .busqueda-search-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .busqueda-search-actions {
        width: 100%;
    }

    .busqueda-search-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 575.98px) {
    .busqueda-hero {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .busqueda-resultados-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .busqueda-resultados-total {
        width: 100%;
    }
}


/* ==========================================================
   BUSQUEDA AVANZADA 2.1 - INDICADORES DINÁMICOS
========================================================== */

.busqueda-active-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.busqueda-active-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.busqueda-active-summary-header h5 {
    margin: .15rem 0 0;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.busqueda-active-search {
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
    padding: .45rem .8rem;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.busqueda-active-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.busqueda-active-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    background: rgba(0, 200, 150, .10);
    border: 1px solid rgba(0, 200, 150, .22);
    color: #007a5a;
    font-size: .84rem;
    font-weight: 600;
    padding: .45rem .75rem;
}

.busqueda-active-chip strong {
    font-weight: 800;
}

.busqueda-active-empty {
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 767.98px) {
    .busqueda-active-summary-header {
        flex-direction: column;
    }

    .busqueda-active-search {
        max-width: 100%;
        white-space: normal;
    }
}




/* ==========================================================
   FASE 11 - DASHBOARD FUNCIONAL AVANZADO
========================================================== */

.dashboard-advanced-hero {
    background: radial-gradient(circle at top right, rgba(0,200,150,.22), transparent 32%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 18px 45px rgba(13, 27, 42, .18);
}

.dashboard-advanced-hero h2 {
    margin: .25rem 0 .45rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

.dashboard-advanced-hero p {
    margin: 0;
    max-width: 820px;
    color: rgba(255,255,255,.74);
}

.dashboard-kicker {
    color: rgba(255,255,255,.62);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dashboard-hero-metric {
    min-width: 170px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.10);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
}

.dashboard-hero-metric strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
}

.dashboard-hero-metric span {
    display: block;
    margin-top: .35rem;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-kpi-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(13,27,42,.045);
}

.dashboard-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-kpi-card strong {
    display: block;
    margin-top: .25rem;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-kpi-percent {
    min-width: 54px;
    height: 38px;
    border-radius: 999px;
    background: rgba(0,200,150,.12);
    color: #007a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.dashboard-progress-track {
    height: 9px;
    background: #e8edf4;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
}

@media (max-width: 1199px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashboard-advanced-hero {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 18px;
        padding: 1.25rem;
    }

    .dashboard-hero-metric {
        width: 100%;
    }

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .app-sidebar,
    .app-topbar,
    .dashboard-print-hide,
    .btn {
        display: none !important;
    }

    .app-wrapper {
        display: block !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .fepade-card,
    .dashboard-card,
    .stat-card,
    .dashboard-kpi-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}
