/* 

Scroll and entry animations

.fade-up - bottom-to-top entrance animation
.fadeOutDown - bottom-to-top entrance animation
.fade-left - left-to-right entrance animation
.fade-right - right-to-left entrance animation
.scale-in - inside out entrance animation

Animation delay

.delay-time-# - delay time 100-200-300-400-500-600-700-800

*/


html,
body {
    min-height: 100vh;
    margin: 0;
    background-color: #F3F6FB !important;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #F4F7FB;
    color: #2B2B2B;
}

html {
    scroll-behavior: smooth;
    background-color: #F4F7FB;
}

#layout-content {
    flex: 1;
    background-color: #F4F7FB;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable-italic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

button,
input,
optgroup,
select,
textarea,
.tooltip,
.popover,
.select2-container,
.select2-container .select2-selection,
.select2-container .select2-results__option,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-actions,
.swal2-input,
.swal2-textarea {
    font-family: inherit;
}

p {
    font-size: calc(15px + 2px);
    margin: 0;
}

a {
    color: #2B2B2B;
    text-decoration: none;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h4 {
    font-size: calc(24px + 2px);
}

h5 {
    font-size: calc(18px + 2px);
}

h6 {
    font-size: calc(15px + 2px);
}

label {
    color: #2B2B2B;
    font-weight: normal;
    font-size: calc(12px + 2px);
}

.bkg-red {
    background-color: #FBE6E9 !important;
}

.bkg-green {
    background-color: #E6F4ED !important;
}

.bkg-yellow {
    background-color: rgba(255, 198, 11, 0.15) !important;
}

.content-red {
    color: #FF3B30 !important;
}

.content-green {
    color: #107C41 !important;
}

.content-yellow {
    color: #FFC60B !important;
}

.bkg-blue {
    background-color: #E8F0FE !important;
}

.bkg-blue-icon {
    background-color: #DCE2F7 !important;
    color: #4A58A4;
}

.content-blue {
    color: #2B4C72 !important;
}

.bkg-light {
    background-color: #EBF2FA !important;
}

.bkg-light-icon {
    background-color: #DDE3FF !important;
    color: #1E40AF;
}

.bkg-cian-icon {
    background-color: #D4F0FF !important;
    color: #0284C7;
}

.bkg-orange-icon {
    background-color: #F57C0033 !important;
    color: #F57C00;
}

.content-light {
    color: #6FA2D9 !important;
}

.trend {
    font-size: calc(12px + 2px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend.up {
    color: #107C41;
}

.trend.down {
    color: #FF3B30;
}

.pending-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: calc(11px + 2px);
    background: #FFF3CD;
    color: #B8860B;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.beneficios-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.ben-card {
    border: 1px solid #E4E8EE;
    border-radius: 8px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.ben-card.predo {
    border-top: 3px solid #2B4C72;
}

.ben-pct {
    font-size: calc(22px + 2px);
    font-weight: 700;
    line-height: 1;
}

.ben-card.predo .ben-pct {
    color: #2B4C72;
}

.ben-card.emer .ben-pct {
    color: #6FA2D9;
}

.ben-card.bajo .ben-pct {
    color: #AAAAAA;
}

.ben-lbl {
    font-size: calc(11px + 2px);
    color: #666;
}

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

.rot-lbl {
    font-size: calc(12px + 2px);
    color: #444;
    min-width: 200px;
}

.rot-track {
    flex: 1;
    height: 10px;
    background: #E8ECF0;
    border-radius: 6px;
    overflow: hidden;
}

.rot-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

.rot-pct {
    font-size: calc(12px + 2px);
    font-weight: 600;
    color: #444;
    min-width: 38px;
    text-align: right;
}

.btt-gral {
    border-radius: 15px;
    font-size: calc(15px + 2px);
}

.arrow-right,
.arrow-left {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.btt-gral:hover .arrow-right {
    transform: translateX(6px);
}

.btt-gral:hover .arrow-left {
    transform: translateX(-6px);
}

/* ---------------------- SIDEBAR (Figma Final) ----------------------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 89px;
    height: 100vh;
    background: #030B47;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar.open {
    width: 240px;
}

.sidebar-content {
    padding: 24px 16px 32px 16px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    box-sizing: border-box;
}

.sidebar-nav-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.sidebar.open .sidebar-top-bar {
    justify-content: flex-end;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease;
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-btn:active {
    background-color: rgba(255, 255, 255, 0.18);
}

.sidebar-toggle-btn .nav-toggle-icon {
    display: block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(180deg);
}

.sidebar.open .sidebar-toggle-btn .nav-toggle-icon {
    transform: rotate(0deg);
}

.logo {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: inline-block;
    transition: opacity 0.15s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    width: 49px;
    height: 21px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.sidebar.open .logo img {
    width: 76px;
    height: 32px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu.menu-bottom {
    margin-top: auto;
}

.menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-sora, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.sidebar:not(.open) .menu a {
    justify-content: center;
    padding: 12px 0;
}

.menu a:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
}

.menu a:active {
    background-color: rgba(255, 255, 255, 0.14);
}

.menu a.active {
    background-color: #20265A;
    color: #F5C745;
    font-weight: 700;
}

.menu a.active svg {
    color: #F5C745;
}

.menu a .nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: currentColor;
}

.menu a .nav-icon svg {
    display: block;
}

.menu a .nav-text {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.25;
}

.sidebar:not(.open) .menu a .nav-text {
    display: none;
}

.sidebar.open .menu a .nav-text {
    display: inline-block;
}

.nav-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 4px 0;
}

.nav-section-label {
    display: none !important;
}

/* ---------------------- LAYOUT ----------------------- */

#layout-content {
    margin-left: 89px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#layout-footer {
    display: none !important;
    margin-left: 89px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open~#layout-content {
    margin-left: 240px;
}

.sidebar.open~#layout-footer {
    display: none !important;
    margin-left: 240px;
}

#layout-header {
    margin-left: 89px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open~#layout-header {
    margin-left: 240px;
}

/* ---------------------- WRAPPER ----------------------- */

.survey-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.survey-wrapper-profile {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

/* ---------------------- CARD ----------------------- */

.survey-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 14px;
    text-align: center;
    max-width: 585px;
    height: 484px;
    width: 100%;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

.survey-card-profile {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: #ffffff;
    padding: 10px 50px;
    border-radius: 14px;
    text-align: center;
    max-width: 585px;
    height: 550px;
    width: 100%;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

.survey-icon {
    width: 60px;
    height: 60px;
    background: #e9f0f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.survey-icon i {
    font-size: calc(22px + 2px);
    color: #071a5c;
}

.survey-card h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

.survey-card-profile h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

.text-main {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.text-sub {
    color: #888;
    font-size: calc(14px + 2px);
    margin-bottom: 25px;
}

.btn-start {
    background: #071a5c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-start:hover .fa-arrow-right {
    background: #0a267a;
}

/* ------------------- FORMS ----------------------- */

.survey-wrapper-forms {
    padding: 30px 65px 30px 30px;
}

.grey-text {
    color: #2B2B2B80;
}


.survey-card-forms {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 14px;
    text-align: start;
    height: 210px;
    width: 100%;
    padding: 20px 20px 10px 20px;
    border-radius: 15px;
    border: 1px solid #D1D3D4;
    background: #ffffff;
    transition: all ease 300ms;
}

.survey-card-forms:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(20, 1, 115, 0.12);
}

.survey-wrapper {
    padding: 20px;
}

.survey-wrapper-profile {
    padding: 20px;
    background-color: #BCBEC0;
}

/* ---------------------- SUBSCRIPTIONS ----------------------- */

.subscription-page {
    padding-top: 24px;
    padding-bottom: 40px;
}

.subscription-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.subscription-card {
    border: 1px solid #D1D3D4;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(3, 11, 71, 0.06);
    padding: 28px;
}

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

.subscription-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.subscription-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: calc(11px + 2px);
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
}

.subscription-card--summary h2 {
    margin: 0;
    color: #030B47;
}

.subscription-status,
.subscription-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: calc(12px + 2px);
    font-weight: 700;
    white-space: nowrap;
}

.subscription-status.is-active,
.subscription-row-status.is-active {
    background: #e6f4ed;
    color: #107c41;
}

.subscription-status.is-pending,
.subscription-row-status.is-pending {
    background: #fff4d8;
    color: #a16207;
}

.subscription-status.is-paused,
.subscription-row-status.is-paused {
    background: #f3f4f6;
    color: #4b5563;
}

.subscription-status.is-canceled,
.subscription-row-status.is-canceled,
.subscription-status.is-expired,
.subscription-row-status.is-expired {
    background: #fbe6e9;
    color: #c81e1e;
}

.subscription-status.is-neutral,
.subscription-row-status.is-neutral {
    background: #eef2ff;
    color: #4338ca;
}

.subscription-owner {
    margin: 10px 0 22px;
    color: #4b5563;
}

.subscription-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.subscription-meta-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
}

.subscription-meta-item span {
    display: block;
    font-size: calc(12px + 2px);
    color: #6b7280;
    margin-bottom: 6px;
}

.subscription-meta-item strong {
    color: #111827;
    font-size: calc(15px + 2px);
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.subscription-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.subscription-btn--primary {
    background: #030B47;
    color: #ffffff;
    border: 1px solid #030B47;
}

.subscription-btn--primary:hover {
    color: #ffffff;
    opacity: 0.88;
}

.subscription-btn--danger {
    background: #ffffff;
    color: #c81e1e;
    border: 1px solid #f2b8bf;
}

.subscription-btn--danger:hover {
    background: #fbe6e9;
    border-color: #ef9aa5;
}

.subscription-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.subscription-note {
    font-size: calc(13px + 2px);
    color: #6b7280;
    line-height: 1.5;
}

.subscription-history-title {
    margin-bottom: 18px;
}

.subscription-history-table-wrap {
    overflow-x: auto;
}

.subscription-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.subscription-history-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-size: calc(12px + 2px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.subscription-history-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    vertical-align: middle;
}

.subscription-history-table tbody tr.is-current {
    background: #f8faff;
}

.subscription-history-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscription-current-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: calc(11px + 2px);
    font-weight: 700;
}

.subscription-empty-state {
    padding: 28px;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    color: #6b7280;
    background: #f8fafc;
}

.subscription-modal-content {
    max-width: 460px;
}

.change-plan-page {
    padding-top: 24px;
    padding-bottom: 40px;
}

.change-plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.change-plan-context {
    margin-top: 20px;
}

.change-plan-current-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #dbe3f0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    margin-top: 18px;
}

.change-plan-current-plan__eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: calc(11px + 2px);
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
}

.change-plan-current-plan h4 {
    margin: 0;
    color: #030B47;
}

.change-plan-current-plan__price {
    font-size: calc(22px + 2px);
    font-weight: 800;
    color: #030B47;
    white-space: nowrap;
}

.change-plan-card-list,
.change-plan-payment {
    min-height: 100%;
}

.change-plan-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.change-plan-option {
    border: 1px solid #d1d3d4;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s ease;
}

.change-plan-option:hover {
    border-color: #aeb9d4;
    box-shadow: 0 14px 30px rgba(3, 11, 71, 0.08);
    transform: translateY(-3px);
}

.change-plan-option.is-selected {
    border-color: #030B47;
    box-shadow: 0 14px 32px rgba(3, 11, 71, 0.12);
}

.change-plan-option.is-current {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.change-plan-option__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.change-plan-option__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: calc(11px + 2px);
    font-weight: 700;
    margin-bottom: 8px;
}

.change-plan-option h3 {
    margin: 0;
    color: #030B47;
}

.change-plan-option__price {
    text-align: right;
    font-size: calc(24px + 2px);
    font-weight: 800;
    color: #030B47;
    line-height: 1.1;
}

.change-plan-option__price small {
    display: block;
    font-size: calc(12px + 2px);
    font-weight: 700;
    color: #6b7280;
}

.change-plan-option__features {
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: grid;
    gap: 10px;
}

.change-plan-option__features li {
    color: #4b5563;
    font-size: calc(14px + 2px);
    line-height: 1.4;
}

.change-plan-option__features .check-cl {
    color: #107c41;
    margin-right: 6px;
}

.change-plan-form {
    display: grid;
    gap: 10px;
}

.change-plan-summary {
    margin-bottom: 20px;
}

.change-plan-summary .summary-item span:last-child,
.change-plan-summary .summary-total span:last-child {
    font-weight: 800;
    color: #030B47;
}

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

    .change-plan-grid {
        grid-template-columns: 1fr;
    }

    .change-plan-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .subscription-card {
        padding: 20px;
    }

    .subscription-card__header {
        flex-direction: column;
    }

    .subscription-actions .subscription-btn {
        width: 100%;
        justify-content: center;
    }

    .change-plan-current-plan {
        flex-direction: column;
        align-items: flex-start;
    }
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.survey-grid a {
    text-decoration: none;
    color: #2B2B2B;
}

@media (max-width: 768px) {
    .survey-grid {
        grid-template-columns: 1fr;
    }
}

.meta {
    display: flex;
    gap: 15px;
    font-size: calc(14px + 2px);
    margin: 10px 0;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: calc(12px + 2px);
    height: 23px;
}

.badge.pending {
    background: #FCCD06;
}

.badge.progress {
    background: #1E349E;
    color: white;
}

.form-card-enter {
    font-size: calc(15px + 2px);
    text-align: end;
    color: #32323280;
}

/* ------------------- File Buttom ----------------------- */

.file-buttom {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.btn-file {
    display: inline-flex;
    align-items: center;
    justify-content: space-evenly;
    width: 170px;
    height: 28px;
    padding: 12px 10px;
    border-radius: 18px;
    text-decoration: none;
    font-size: calc(11px + 2px);
    font-weight: 500;
    background: transparent;
    border: 1.5px solid;
    transition: all 0.3s ease;
}

.btn-file i {
    font-size: calc(16px + 2px);
}

.btn-file a {
    text-decoration: none;
}

.btn-file2 {
    display: inline-flex;
    align-items: center;
    justify-content: space-evenly;
    width: 170px;
    height: 40px;
    padding: 12px 10px;
    border-radius: 18px;
    text-decoration: none;
    font-size: calc(11px + 2px);
    font-weight: 500;
    background: transparent;
    border: 1.5px solid;
    transition: all 0.3s ease;
}

.btn-file2 i {
    font-size: calc(16px + 2px);
}

.btn-file2 a {
    text-decoration: none;
}

.btn-green {
    color: #0b8a43;
    border-color: #0b8a43;
}

.btn-green:hover {
    color: #0b8a43;
}

.btn-blue {
    color: #1E349E;
    border-color: #1E349E;
}

.btn-blue:hover {
    color: #1E349E;
}

.btn-dark {
    color: #030B47;
    border-color: #030B47;
}

.btn-dark:hover {
    color: #030B47;
}

.btn-file:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-file2:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* -------------------- QUESTIONS -------------------- */

.question-box {
    width: 100%;
    max-width: 70%;
    margin: 120px auto;
    background: #fff;
    border-radius: 22px;
    padding: 32px 36px 28px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    position: relative;
}

.question-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.question-close button {
    border: none;
    background: transparent;
    font-size: calc(20px + 2px);
    color: #2d2d2d;
    cursor: pointer;
}

.progress-area {
    margin: 25px 0;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e6e6e6;
    border-radius: 30px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: #1E349E;
    border-radius: 30px;
    transition: width 0.3s ease;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.question-header h3 {
    margin: 0;
    font-size: calc(22px + 2px);
    font-weight: 700;
    color: #6b6b6b;
}

.question-header span {
    font-size: calc(18px + 2px);
    color: #6b6b6b;
    font-weight: 500;
}

.question-body {
    padding: 45px 0;
}

.question-body label {
    display: block;
    font-size: calc(18px + 2px);
    color: #2d2d2d;
    margin: 10px 0;
    font-weight: 500;
}

.question-input {
    width: 100%;
    height: 58px;
    border: 1px solid #BCBEC0;
    border-radius: 12px;
    padding: 0 18px;
    font-size: calc(16px + 2px);
    outline: none;
}

.question-input:focus {
    border-color: #1E349E;
}

.question-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
}

.btn-question {
    flex: 1;
    min-width: 220px;
    height: 58px;
    border-radius: 14px;
    font-size: calc(17px + 2px);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-outline {
    background: #fff;
    border: 1.5px solid #1E349E;
    color: #1E349E;
}

.btn-secondary {
    background: #1E349E;
    border: 1px solid #1E349E;
    color: #fff;
}

.btn-primary-dark {
    background: #030B47;
    border: 1px solid #030B47;
    color: #fff;
}

.question-content-mask {
    overflow: hidden;
    width: 100%;
}

.question-content {
    width: 99.5%;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: calc(13px + 2px);
    color: #888;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    margin-top: 5px;
}

.form-group input:disabled {
    border: none;
    color: #11111184;
    font-weight: 500;
    cursor: no-drop;
    background: #00000014;
    transition: all ease 300ms;
}

.bt-content {
    justify-content: space-between;
}

.formprofile-input {
    display: flex;
    flex-direction: column;

}

/* -------------- HOME & GLOBAL SURFACES (Figma Final) ----------------- */

.dashboard-container {
    width: 100%;
    --page-width: 1340px;
    --page-px: 28px;
    max-width: calc(var(--page-width) + (var(--page-px) * 2));
    margin: 0 auto;
    padding: 48px var(--page-px);
    box-sizing: border-box;
    min-height: 100vh;
}

@media (min-width: 1280px) {
    .dashboard-container {
        --page-px: 40px;
    }
}

/* Page Surface Max-Width Tokens (from Jobs-main PageSurface) */
.dashboard-container.surface-dashboard {
    --page-width: 1340px;
}

.report-page.dashboard-container,
.dashboard-container.surface-salarial,
.dashboard-container.surface-cargo-detail {
    --page-width: 1268px !important;
}

.dashboard-container.surface-beneficios,
#benefitsDashboardWrap.dashboard-container {
    --page-width: 1360px !important;
}

.dashboard-container.surface-practicas {
    --page-width: 1314px !important;
}

.dashboard-container.surface-distribucion,
.dashboard-container.distribution-page {
    --page-width: 1290px !important;
}

.dashboard-container.surface-metodologia,
.dashboard-container.methodology-page {
    --page-width: 1340px !important;
}

.dashboard-container.surface-crud,
.dashboard-container.surface-usuarios,
.dashboard-container.subscription-page,
.dashboard-container.repeatable-holding {
    --page-width: 1204px !important;
}

.dashboard-container.surface-perfil {
    --page-width: 860px !important;
}

.dashboard-header-figma {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header-figma .greeting-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
    letter-spacing: -0.01em;
}

.dashboard-header-figma .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Scope switch pill (Mercado / Tu empresa) */
.dashboard-scope-switch {
    display: inline-flex;
    align-items: center;
    background: #F3F6FB;
    border: 1px solid #E0E0E0;
    border-radius: 9px;
    padding: 3px;
    height: 40px;
    box-sizing: border-box;
}

.dashboard-scope-switch .tab-item {
    padding: 7px 18px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5F6368;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
    text-decoration: none;
    margin: 0;
}

.dashboard-scope-switch .tab-item:hover {
    color: #030B47;
}

.dashboard-scope-switch .tab-item.active {
    background: #030B47;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(3, 11, 71, 0.2);
}

.dashboard-info-banner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.dashboard-info-banner .info-banner-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-info-banner .info-banner-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
}

.dashboard-info-banner .info-banner-icon {
    color: #3B78F2;
    font-size: 16px;
}

.dashboard-info-banner .info-banner-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
    max-width: 900px;
}

/* Barra de 3 grupos de KPIs */
.dashboard-kpi-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .dashboard-kpi-bar {
        grid-template-columns: 1fr;
    }
}

.kpi-group-card {
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 20px 32px;
    box-shadow: 0px 4px 20px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 114px;
    box-sizing: border-box;
}

.kpi-group-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 12px;
    line-height: 1.2;
}

.kpi-group-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: flex-start;
}

.kpi-group-metric {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kpi-group-value {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}

.kpi-group-value.text-blue {
    color: #1E40AF;
}

.kpi-group-value.text-dark {
    color: #030B47;
}

.kpi-group-value.text-orange {
    color: #F57C00;
}

.kpi-group-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #2B2B2B;
    line-height: 1.2;
}

/* Grilla de 2 columnas de cards */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-cards-grid .chart-card {
    background: #FFFFFF;
    border: none;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    box-sizing: border-box;
    position: relative;
}

.dashboard-cards-grid .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-cards-grid .chart-title-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #071442;
    margin: 0;
}

.dashboard-cards-grid .chart-subtitle-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748B;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Distribución de cargos por competitividad salarial (Compa-Ratio)
   Figma "Cargos por percentiles de mercado" #4583:5380 (Mercado) / #4583:4893 (Tu empresa) */
.dashboard-cards-grid .chart-card.compa-distribution-card {
    justify-content: flex-start;
    min-height: 0;
    gap: 16px;
    padding: 50px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(15, 23, 42, 0.02);
}

/* Fila 2 - Card 2: Ajuste salarial por año. Sin el min-height de 440px de la grilla,
   la fila toma el alto del Figma (padding 40, gap 32, dona de 150px). */
.dashboard-cards-grid .chart-card.adjust-frequency-card {
    justify-content: flex-start;
    min-height: 0;
    gap: 32px;
    padding: 40px;
}

.dashboard-cards-grid .chart-card.adjust-frequency-card .chart-header {
    margin-bottom: 0;
}

.dashboard-cards-grid .chart-card.adjust-frequency-card .chart-body {
    flex: 0 0 auto !important;
}

.dashboard-cards-grid .chart-card.adjust-frequency-card .segment-donut-wrapper {
    padding: 0;
}

.compa-distribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.compa-distribution-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compa-distribution-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E293B;
    margin: 0;
}

.compa-distribution-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    color: #64748B;
    margin: 0;
}

.compa-distribution-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

.compa-distribution-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    color: #325A84;
    margin: 0;
}

.compa-distribution-cards {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 1 1 auto;
}

.compa-distribution-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 10px;
    background: #F8FAFC;
}

.compa-distribution-item-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #9B9B9B;
}

.compa-distribution-item-value {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #1E293B;
}

/* Tooltip Trigger Icon (Figma IconInfo) */
.irh-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #8b9097;
    cursor: help;
    border-radius: 9999px;
    line-height: 1;
    transition: color 0.15s ease;
    vertical-align: middle;
}

.irh-tooltip-trigger:hover,
.irh-tooltip-trigger:focus-visible,
.irh-tooltip-trigger.active {
    color: #030b47;
    outline: none;
}

/* Portal Tooltips exactos a Figma / Next.js */
.irh-tooltip-portal {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #1a1a1a;
    box-shadow: 0px 8px 24px rgba(15,23,42,0.14), 0px 2px 6px rgba(15,23,42,0.06);
    pointer-events: auto;
    width: 260px;
    max-width: calc(100vw - 24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.irh-tooltip-portal.is-visible {
    opacity: 1;
    visibility: visible;
}

.irh-tooltip-portal.bare {
    padding: 0;
    background: transparent;
    border-radius: 12px;
    width: max-content;
    box-shadow: none;
}

.irh-tooltip-portal.bare > * {
    box-shadow: 0px 8px 24px rgba(15,23,42,0.14), 0px 2px 6px rgba(15,23,42,0.06);
    border-radius: 12px;
}

/* Dato oculto interactivo en modo Mercado */
.company-mask, .pill-mask {
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.company-mask:hover, .pill-mask:hover {
    color: #64748B;
}

.chart-insight-pill {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #F0F4FF;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
    color: #0F1B4C;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.chart-insight-pill .note-box-icon {
    color: #0F1B4C;
    display: flex;
    align-items: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.percentile-mini-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.percentile-mini-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.percentile-mini-card .pct-val {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #030B47;
    line-height: 1.1;
}

.percentile-mini-card .pct-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

.percentile-mini-card .pct-count-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94A3B8;
}

.chart-insight-pill strong {
    font-weight: 700;
    color: #0F1B4C;
}

/* Tablas unificadas estilo Figma */
.figma-unified-table {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.figma-table-header {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.figma-table-header .th-col {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #071442;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.figma-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #E2E8F0;
    transition: background 0.15s ease;
}

.figma-table-row:last-child {
    border-bottom: none;
}

.figma-table-row.row-even {
    background: #FFFFFF;
}

.figma-table-row.row-odd {
    background: #F8FAFC;
}

.figma-table-row:hover {
    background: #F1F5F9;
}

.figma-table-row .row-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #181D31;
    flex: 1;
    padding-right: 16px;
}

.figma-table-row .row-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.figma-badge-pct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    background: rgba(59, 120, 242, 0.08);
    color: #3B78F2;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.2;
}

.figma-badge-pct.badge-neutral {
    background: #F1F5F9;
    color: #64748B;
    font-weight: 600;
}

.figma-badge-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.figma-badge-level.level-p75 {
    background: #030B47;
    color: #FFFFFF;
}

.figma-badge-level.level-p50 {
    background: #6FA2D9;
    color: #FFFFFF;
}

.figma-badge-level.level-p25 {
    background: #BFC6DC;
    color: #030B47;
}

/* Scope toggling for Dashboard (Mercado vs Tu empresa) */
.dashboard-container.scope-mercado .company-data {
    display: none !important;
}

.dashboard-container.scope-mercado .company-mask {
    display: inline-flex !important;
}

.dashboard-container.scope-empresa .company-data {
    display: inline-flex !important;
}

.dashboard-container.scope-empresa .company-mask {
    display: none !important;
}

.dashboard-container.scope-mercado .scope-empresa-only {
    display: none !important;
}

.dashboard-container.scope-empresa .scope-mercado-only {
    display: none !important;
}

.dashboard-container.scope-empresa .row-company-highlight {
    background-color: #E0EDFF !important;
}

.dashboard-container.scope-empresa .bar-company-offer {
    background-color: #1D9B5E !important;
}

.dashboard-container.scope-empresa .pct-company-offer {
    color: #1D9B5E !important;
}

.dashboard-container.scope-empresa .sub-company-offer {
    display: block !important;
}

.dashboard-container.scope-mercado .sub-company-offer {
    display: none !important;
}

/* Indicators and badges */
.pill-arrow {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.pill-arrow.pill-up {
    color: #1E40AF;
    background: #EBF2FE;
}

.pill-arrow.pill-eq {
    color: #64748B;
    background: #F1F5F9;
}

.pill-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #107C41;
    background: #E6F4EA;
    padding: 4px 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.badge-pill.badge-green {
    background: #E6F4EA;
    color: #107C41;
}

.badge-pill.badge-gray {
    background: #F1F5F9;
    color: #64748B;
}

.figma-badge-level.level-promedio {
    background: #E2E8F0;
    color: #475569;
}

/* Vertical Bars Chart (Figma Parity) */
.vertical-bars-chart {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 220px;
    position: relative;
    padding-top: 10px;
    box-sizing: border-box;
}

.vb-ticks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    width: 32px;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    height: 180px;
}

.vb-plot-area {
    flex: 1;
    position: relative;
    height: 180px;
}

.vb-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vb-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #E2E8F0;
}

.vb-bars-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 16px;
}

.vb-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: default;
}

.vb-bar {
    width: 58px;
    max-width: 80%;
    background-color: #7FA8EA;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease, filter 0.15s ease;
}

.vb-col:hover .vb-bar {
    filter: brightness(1.08);
}

.vb-col-label {
    position: absolute;
    bottom: -28px;
    font-size: 11.5px;
    font-weight: 600;
    color: #071442;
    white-space: nowrap;
    text-align: center;
}

.vb-company-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: help;
}

.vb-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3.5px solid #071442;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.vb-marker-tooltip {
    position: absolute;
    bottom: 20px;
    background: #071442;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.vb-company-marker:hover .vb-marker-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Donut Chart with Center Text & Legend */
/* Donut Chart with Center Text & Legend (Prototype Parity) */
.segment-donut-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 12px 0;
}

.donut-svg-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.donut-center-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.donut-center-info .center-val {
    font-size: 22px;
    font-weight: 700;
    color: #071442;
    line-height: 1;
}

.donut-center-info .center-sub {
    font-size: 10px;
    font-weight: 600;
    color: #6F6F6F;
    margin-top: 2px;
}

.donut-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1A1A1E;
}

.donut-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.company-badge {
    background: #071442;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

/* Market vs Empresa Tables (Áreas de rotación, Causas de rotación, Prácticas) */
.market-empresa-table {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
}

.me-table-header {
    display: grid;
    grid-template-columns: 1.7fr 0.75fr 0.85fr;
    gap: 12px;
    padding: 12px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    align-items: center;
}

.me-table-row {
    display: grid;
    grid-template-columns: 1.7fr 0.75fr 0.85fr;
    gap: 12px;
    min-height: 58px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
    transition: background 0.15s ease;
}

.me-table-row:last-child {
    border-bottom: none;
}

.me-table-row.row-even {
    background: #FFFFFF;
}

.me-table-row.row-odd {
    background: #F8FAFC;
}

.me-table-row:hover {
    background: #F1F5F9;
}

.me-label {
    font-weight: 500;
    color: #181D31;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pill-mkt {
    display: inline-block;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #EBF2FE;
    color: #1E40AF;
}

.pill-mask {
    color: #94A3B8;
    text-decoration: underline dotted;
    font-size: 13px;
    font-weight: 700;
    cursor: help;
}

/* Compare Table (Posicionamiento salarial) */
.compare-table-container {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
}

.compare-group-header {
    display: grid;
    grid-template-columns: 1.7fr 2fr;
    gap: 12px;
    padding: 12px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    align-items: center;
}

.compare-group-title {
    text-align: center;
}

.compare-sub-header {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 12px;
    padding: 10px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    align-items: center;
}

.compare-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 12px;
    height: 66px;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
    transition: background 0.15s ease;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row.row-even {
    background: #FFFFFF;
}

.compare-row.row-odd {
    background: #FAFBFD;
}

.compare-row:hover {
    background: #F1F5F9;
}

.compare-label {
    font-weight: 500;
    color: #181D31;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pill-neutral {
    background: #F1F5F9;
    color: #181D31;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.pill-morado {
    background: #F0E9FD;
    color: #6B3FD4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.pill-info {
    background: #EBF2FE;
    color: #1E40AF;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.pill-verde {
    background: #E6F4EA;
    color: #107C41;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.dashboard-header {
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    z-index: 50;
}

.content-dash-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    height: auto;
    min-height: 50px;
}

.dashboard-header h2 {
    margin: 0 0 6px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #071442;
    letter-spacing: -0.01em;
}

.dashboard-header p {
    margin: 0;
    color: #64748B;
    font-size: 15px;
    line-height: 1.5;
}

.survey-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
}

.survey-summary h3 {
    flex: 1 1 auto;
    margin: 0;
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-summary-cards {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 1 auto;
}

.survey-summary-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

.survey-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030B47;
    font-size: 14px;
}

.survey-summary-copy {
    display: block;
}

.survey-summary-copy span {
    color: #64748B;
    font-size: 13px;
    font-weight: 500;
}

.survey-summary-copy strong {
    color: #071442;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .survey-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .survey-summary-cards {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #030B47;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.filters:hover {
    background: #E2E8F0;
    border-color: #CBD5E1;
}

.dashboard-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title h3,
.charts-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.dashboard-title span {
    font-size: 14px !important;
    color: #64748B !important;
    font-weight: 400 !important;
}

.dashboard-title-hol-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.dashboard-title-create {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 20px 0;
}

.dashboard-title-tl {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
}

.btn-download {
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #030B47;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background: #F1F5F9;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    align-items: center;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bkg-blue-icon {
    background-color: #EFF6FF;
    color: #1E40AF;
}

.bkg-light-icon {
    background-color: #F0FDF4;
    color: #166534;
}

.bkg-cian-icon {
    background-color: #ECFEFF;
    color: #0E7490;
}

.bkg-orange-icon {
    background-color: #FFF7ED;
    color: #C2410C;
}

.card .value {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #071442;
    margin: 0 0 4px 0;
    line-height: 1.1;
}

.card .sub {
    font-size: 13px;
    line-height: 1.35;
    color: #64748B;
}

.card .text-firt {
    font-weight: 600;
    color: #334155;
}

.card .text-second {
    font-weight: 400;
    color: #64748B;
}

.card-2 {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
    column-gap: 12px;
}

.indicator-card {
    cursor: pointer;
}

.indicator-card:focus-visible {
    outline: 3px solid rgba(111, 162, 217, .55);
    outline-offset: 3px;
}

.indicator-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.indicator-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.indicator-modal-content {
    width: min(590px, 100%);
    overflow: hidden;
    background: #fff;
    border: 2px solid #030B47;
    border-radius: 18px;
    transform: translateY(-20px);
    transition: transform .25s ease;
}

.indicator-modal.active .indicator-modal-content {
    transform: translateY(0);
}

.indicator-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    color: #fff;
    background: #030B47;
}

.indicator-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}

.indicator-modal-close {
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.indicator-modal-body {
    padding: 30px 32px 32px;
}

.indicator-modal-value {
    margin-bottom: 16px;
    color: #030B47;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.indicator-modal-body h3 {
    margin: 0 0 14px;
    color: #26396F;
    font-size: 25px;
    font-weight: 700;
}

.indicator-modal-body p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.5;
}

.indicator-modal--1 .indicator-modal-content {
    border-color: #030B47;
}

.indicator-modal--1 .indicator-modal-header {
    background: #030B47;
}

.indicator-modal--2 .indicator-modal-content {
    border-color: #6FA2D9;
}

.indicator-modal--2 .indicator-modal-header {
    background: #6FA2D9;
}

.indicator-modal--3 .indicator-modal-content {
    border-color: #0284C7;
}

.indicator-modal--3 .indicator-modal-header {
    background: #0284C7;
}

.indicator-modal--4 .indicator-modal-content {
    border-color: #F57C00;
}

.indicator-modal--4 .indicator-modal-header {
    background: #F57C00;
}

@media (max-width: 768px) {
    .indicator-modal-header {
        padding: 24px;
    }

    .indicator-modal-header h2 {
        font-size: 18px;
    }

    .indicator-modal-body {
        padding: 34px 26px;
    }

    .indicator-modal-value {
        font-size: 48px;
    }

    .indicator-modal-body h3 {
        font-size: 25px;
    }

    .indicator-modal-body p {
        font-size: 18px;
    }
}

.card-icon {
    width: 32px;
    height: 32px;
    background: #E6E7E8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    align-self: center;
}

.card-icon.warning {
    background: #dff0e6;
}

.card h4 {
    margin: 0;
    font-size: 13px;
    align-self: center;
    color: #64748b;
    text-transform: none;
    line-height: 1.2;
}

.card .value {
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0 2px;
    grid-column: 1 / -1;
    color: #030B47;
}

.card span {
    color: #64748b;
    font-size: 12px;

    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* ------------- GRAFICOS --------------- */

.charts-section {
    margin-top: 40px;
}

.charts-title {
    margin: 0;
}

.charts-heading {
    margin-bottom: 20px;
}

.charts-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.salary-adjustment-card {
    min-height: 620px;
    padding: 34px 36px 28px;
}

.salary-adjustment-card .chart-header {
    margin-bottom: 26px;
}

.salary-adjustment-card .chart-header>.chart-left>span {
    color: #030B47;
    font-size: 21px;
    font-weight: 700;
}

.salary-adjustment-card .chart-body {
    flex: 1;
}

.salary-adjustment-card .frecuencia-table-wrapper {
    margin-top: 0;
    border: 0;
    border-radius: 0;
}

.salary-adjustment-card .absolute-progress-list thead {
    background: transparent;
}

.salary-adjustment-card .absolute-progress-list th {
    padding: 0 0 12px;
    color: #030B47;
    background: transparent;
    border: 0;
    border-bottom: 2px solid #E5E7EB;
    font-size: 16px;
    text-align: left;
}

.salary-adjustment-card .absolute-progress-list th:nth-child(2) {
    text-align: center;
}

.salary-adjustment-card .absolute-progress-list th:last-child {
    text-align: right;
}

.salary-adjustment-card .absolute-progress-list td {
    padding: 13px 0;
    border-bottom: 0;
    background: #fff;
    font-size: 16px;
}

.salary-adjustment-card .absolute-progress-list .frec-label {
    color: #3f3f46;
    font-weight: 500;
}

.salary-adjustment-card .absolute-progress-list .frec-pct {
    color: #3f3f46;
    font-size: 17px;
    text-align: right;
}

.salary-adjustment-card .absolute-progress-list .dist-bar-container {
    height: 10px;
    background: #F1F0ED;
    border-radius: 8px;
}

.salary-adjustment-card .absolute-progress-list .dist-bar-fill {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .salary-adjustment-card {
        min-height: 0;
        padding: 22px 18px;
    }
}

.chart-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.salary-management-card {
    display: flex;
    flex-direction: column;
    min-height: 630px;
    padding: 34px 36px 30px;
    border-radius: 20px;
}

.salary-management-card .chart-header {
    margin-bottom: 28px;
}

.salary-management-card .chart-header>.chart-left>span {
    color: #030B47;
    font-size: 22px;
    font-weight: 700;
}

.salary-management-card .strategy-table {
    margin-top: 0 !important;
    flex: 0 0 auto;
    table-layout: fixed;
    height: auto;
}

.salary-management-card .strategy-table th:first-child,
.salary-management-card .strategy-table td:first-child {
    width: 62%;
}

.salary-management-card .strategy-table th:nth-child(2),
.salary-management-card .strategy-table td:nth-child(2),
.salary-management-card .strategy-table th:nth-child(3),
.salary-management-card .strategy-table td:nth-child(3) {
    width: 19%;
}

.salary-management-card .strategy-table th {
    padding: 0 10px 12px !important;
    color: #718096 !important;
    border-bottom: 1px solid #D8DDE5 !important;
    font-size: 16px;
}

.salary-management-card .strategy-table td {
    padding: 13px 10px !important;
    color: #3F3F46;
    border-bottom: 1px solid #EEF1F5 !important;
    font-size: 17px;
}

.salary-management-card .strategy-table .badge {
    align-items: center;
    justify-content: center;
    display: inline-flex;
    min-width: 106px;
    height: 38px;
    padding: 0 20px;
    border-radius: 22px;
    font-size: 16px;
    line-height: 38px;
    vertical-align: middle;
    font-weight: 700;
}

.salary-management-card .strategy-table tbody tr:nth-child(5) .badge {
    background: #BFC6DC !important;
}

.salary-management-card .strategy-table tbody tr:nth-child(3) .badge,
.salary-management-card .strategy-table tbody tr:nth-child(4) .badge {
    background: #6FA2D9 !important;
}

.salary-management-card>div:last-child {
    gap: 22px !important;
    margin-top: auto !important;
    padding-top: 24px;
    color: #8090A4 !important;
    font-size: 15px !important;
}

.salary-management-card>div:last-child .badge {
    min-width: 96px;
    height: 36px;
    padding: 0 18px;
    border-radius: 22px;
    font-size: 15px;
    line-height: 36px;
}

.salary-management-card>div:last-child>span:nth-child(1) .badge {
    background: #BFC6DC !important;
}

.salary-management-card>div:last-child>span:nth-child(2) .badge {
    background: #6FA2D9 !important;
}

.salary-management-card>div:last-child>span:nth-child(3) .badge {
    background: #030B47 !important;
}

.strategy-salary-card {
    min-height: 500px;
    padding: 28px 28px 28px;
}

.strategy-salary-card .chart-header {
    margin-bottom: 24px;
}

.strategy-salary-card .chart-header>.chart-left>span {
    font-size: 22px;
}

.strategy-salary-card .strategy-table th {
    padding: 0 0 8px !important;
    font-size: 13px;
}

.strategy-salary-card .strategy-table td {
    padding: 3px 0 !important;
    font-size: 13px;
}

.strategy-salary-card .strategy-table tbody tr {
    height: 50px !important;
}

.strategy-salary-card .strategy-table .badge {
    min-width: 84px;
    height: 24px;
    font-size: 13px;
    line-height: 24px;
}

.strategy-salary-card>div:last-child {
    gap: 12px !important;
    margin-top: 20px !important;
    margin-bottom: 6px !important;
    padding-top: 8px;
    padding-bottom: 4px;
    font-size: 12px !important;
}

.strategy-salary-card>div:last-child .badge {
    min-width: 48px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    border-radius: 12px;
}

.salary-frequency-card>div:last-child {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 12px;
}

.salary-frequency-card #chartFrecuenciaRev {
    width: 360px !important;
    height: 360px !important;
    max-width: 360px !important;
    max-height: 360px !important;
}

.salary-frequency-card>div:last-child>div:first-child {
    margin-bottom: 26px !important;
}

.salary-frequency-card>div:last-child>div:first-child span,
.salary-frequency-card>div:last-child>div:last-child>span {
    color: #718096 !important;
    font-size: 16px !important;
    letter-spacing: .3px;
}

.salary-frequency-card>div:last-child>div:first-child div {
    color: #030B47 !important;
    font-size: 25px !important;
}

.variable-compensation-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

.variable-compensation-row {
    margin: 0;
}

.variable-compensation-row > .col-12 {
    padding: 0;
}

.variable-compensation-card {
    width: 100%;
    padding: 34px 36px 36px;
    border-radius: 20px;
}

.variable-compensation-card .chart-header {
    margin-bottom: 28px;
}

.variable-compensation-card .chart-header > .chart-left > span {
    color: #030B47;
    font-size: 22px;
    font-weight: 700;
}

.variable-compensation-card .frecuencia-table-wrapper {
    margin-top: 0;
}

.variable-compensation-card .frecuencia-table {
    width: 100%;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #E1E4E8;
    border-radius: 14px;
}

.variable-compensation-card .frecuencia-table thead tr:first-child th {
    height: 58px;
    padding: 0 22px !important;
    color: #fff !important;
    background: #030B47 !important;
    font-size: 15px !important;
    font-weight: 700;
}

.variable-compensation-card .frecuencia-table thead tr:nth-child(2) th {
    height: 42px;
    padding: 0 16px !important;
    color: #3F3F46 !important;
    background: #F5F4F1 !important;
    border-top: 1px solid #E1E4E8 !important;
    font-size: 14px !important;
    font-weight: 600;
}

.variable-compensation-card .frecuencia-table thead th:first-child {
    width: 30%;
    text-align: left !important;
}

.variable-compensation-card .frecuencia-table tbody td {
    height: 60px;
    padding: 0 22px !important;
    font-size: 15px;
}

.variable-compensation-card .frecuencia-table thead tr:nth-child(2) th:first-child {
    background: #F5F4F1 !important;
    border-top: 1px solid #E1E4E8 !important;
}

.variable-compensation-card .frecuencia-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Beneficios: composición compacta y alineada con el diseño de referencia. */
.benefits-management-grid {
    align-items: stretch;
    gap: 24px;
    margin-bottom: 0;
}

.benefits-management-grid > .chart-card {
    min-height: 0;
    padding: 24px;
    border-radius: 18px;
}

.benefits-management-grid .chart-header {
    margin-bottom: 22px;
}

.benefits-management-grid .chart-left > span {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.benefits-coverage-card .chart-body {
    padding-top: 0 !important;
}

.benefits-coverage-card .chart-body h4 {
    margin: 0 0 16px !important;
    color: #2b4c72 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.benefits-coverage-card .frecuencia-table-wrapper {
    margin: 0;
}

.benefits-coverage-card .frecuencia-table {
    width: 100%;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.benefits-coverage-card .frecuencia-table thead th {
    height: 54px;
    padding: 0 18px !important;
    background: #030b47 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.benefits-coverage-card .frecuencia-table thead th:first-child {
    width: 26%;
    text-align: left !important;
}

.benefits-coverage-card .frecuencia-table tbody td {
    height: 60px;
    padding: 0 18px !important;
    color: #3f3f46;
    font-size: 15px !important;
    line-height: 1.25;
}

.benefits-coverage-card .frecuencia-table tbody tr:nth-child(odd) td {
    background: #f8fafc;
}

.benefits-coverage-card .frecuencia-table tbody tr:last-child td {
    border-bottom: 0;
}

.benefits-prevalence-card .beneficios-ranking {
    display: flex !important;
    gap: 10px !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.benefits-prevalence-card .ben-item {
    min-height: 52px;
    margin: 0 !important;
    padding: 8px 14px 8px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06) !important;
}

.benefits-prevalence-card .ben-item::before {
    top: 10%;
    bottom: 10%;
    width: 4px;
}

.benefits-prevalence-card .ben-title {
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.benefits-prevalence-card .ben-item > div {
    gap: 10px !important;
}

.benefits-prevalence-card .badge-mercado,
.benefits-prevalence-card .badge-empresa-check,
.benefits-prevalence-card .badge-empresa-cross {
    min-height: 34px;
    padding: 7px 14px !important;
    border-radius: 18px;
    font-size: 14px !important;
    line-height: 20px;
    white-space: nowrap;
}

.benefits-prevalence-card .badge-empresa-check {
    min-width: 122px;
    background: #2b4c72;
}

.benefits-prevalence-card .badge-empresa-cross {
    min-width: 122px;
    background: #8fc6dc;
}

.benefits-note {
    width: 100%;
    margin: 22px 0 0;
    padding: 16px 4px 4px;
    border-top: 1px solid #d9dee7;
    color: #7c8ca1;
    font-size: 15px;
    line-height: 1.45;
}

.benefits-note strong {
    color: #334155;
}

/* Prevalencia de beneficios: colores propios del componente, no de la escala de indicadores. */
.benefits-prevalence-card .chart-header .icon-box {
    background: #f5f3ef !important;
    color: #030b47 !important;
}

.benefits-prevalence-card .chart-left > span {
    color: #030b47 !important;
    font-size: 18px !important;
}

.benefits-prevalence-card .ben-item {
    min-height: 52px;
    padding: 7px 12px 7px 14px !important;
    border-color: #dedede !important;
    border-width: 2px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.benefits-prevalence-card .ben-item::before {
    display: none;
}

.benefits-prevalence-card .ben-title {
    color: #303030 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.benefits-prevalence-card .badge-mercado {
    background: #f5f3ef !important;
    color: #718096 !important;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.benefits-prevalence-card .badge-empresa-check,
.benefits-prevalence-card .badge-empresa-cross {
    min-width: 112px;
    min-height: 30px;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.benefits-prevalence-card .badge-empresa-check {
    background: #030b47 !important;
}

.benefits-prevalence-card .badge-empresa-cross {
    background: #efc411 !important;
}

@media (max-width: 768px) {
    .benefits-management-grid {
        gap: 16px;
    }

    .benefits-management-grid > .chart-card {
        padding: 18px 14px;
    }

    .benefits-coverage-card .frecuencia-table {
        table-layout: auto;
    }

    .benefits-coverage-card .frecuencia-table thead th,
    .benefits-coverage-card .frecuencia-table tbody td {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12px !important;
    }

    .benefits-prevalence-card .ben-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .variable-compensation-card {
        padding: 22px 16px;
    }
}

@media (max-width: 768px) {
    .salary-management-card {
        min-height: 0;
        padding: 24px 18px;
    }

    .salary-frequency-card #chartFrecuenciaRev {
        width: 280px !important;
        height: 280px !important;
    }
}

.tab-content#general .chart-card-center {
    display: flex;
    flex-direction: column;
}

.tab-content#general .chart-card-center .chart-body {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    align-items: flex-start;
}

.chart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-left span {
    font-size: 18px;
    font-weight: 700;
}

.chart-subtitle {
    font-size: 15px;
    color: #888;
    margin-top: 2px;
}

.chart-card-rotation-causes .chart-subtitle {
    font-size: 13px;
}

.icon-box {
    width: 35px;
    height: 35px;
    background: #E6E7E8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-gra {
    background: #E6E7E8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: calc(13px + 2px);
}

.donut-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: auto;
}

.tab-content#general .madurez-donut {
    height: 220px;
    margin-top: 10px;
}

.tab-content#general .madurez-donut canvas {
    width: 100% !important;
    height: 100% !important;
}

.donut-center {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center h2 {
    margin: 0;
}

.chart-footer {
    text-align: right;
    margin-top: 10px;
    color: #666;
    cursor: pointer;
}

.percentile-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.position-distribution-card {
    padding: 34px 36px 36px;
    border-radius: 20px;
}

.position-distribution-card .chart-header {
    margin-bottom: 22px;
}

.position-distribution-card .chart-header>.chart-left>span {
    color: #030B47;
    font-size: 19px;
    font-weight: 700;
}

.position-distribution-card #chartCampana {
    display: block;
    width: 100% !important;
    height: 300px !important;
}

.position-distribution-card .percentile-summary {
    gap: 16px;
    margin-top: 22px;
}

.position-distribution-card .pct-position {
    min-height: 112px;
    padding: 22px 12px;
    background: #fff;
    border: 1px solid #DDE1E5;
    border-radius: 12px;
    color: #2B4C72;
}

.position-distribution-card .pct-position .pct-pct {
    color: #2B4C72;
    font-size: 30px;
}

.position-distribution-card .pct-position .pct-label {
    color: #2B4C72;
    font-size: 15px;
}

.position-distribution-card .pct-position .pct-count {
    color: #8A9AAE;
    font-size: 15px;
}

@media (max-width: 768px) {
    .position-distribution-card {
        padding: 22px 16px;
    }

    .position-distribution-card #chartCampana {
        height: 230px !important;
    }

    .position-distribution-card .percentile-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pct-block {
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.pct-block .pct-pct {
    font-size: calc(22px + 2px);
    font-weight: 700;
    line-height: 1.1;
}

.pct-block .pct-label {
    font-size: calc(11px + 2px);
    font-weight: 600;
    margin-top: 2px;
}

.pct-block .pct-count {
    font-size: calc(11px + 2px);
    color: #888;
    margin-top: 2px;
}

.pct-red {
    background: #FBE6E9;
    color: #FF3B30;
}

.pct-orange {
    background: #FFF0E6;
    color: #E07A00;
}

.pct-green {
    background: #E6F4ED;
    color: #107C41;
}

.pct-blue {
    background: #E8F0FE;
    color: #2B4C72;
}

.ref-selector {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ref-btn {
    font-size: calc(11px + 2px);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    border: 1.5px solid #D1D3D4;
    background: #fff;
    color: #555;
    font-family: inherit;
    transition: .2s;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {

    select,
    option,
    optgroup {
        font-family: 'Inter', sans-serif;
    }
}

.ref-btn.active {
    background: #030B47;
    color: #fff;
    border-color: #030B47;
}

.ref-btn:hover:not(.active) {
    border-color: #6FA2D9;
    color: #6FA2D9;
}

.pending-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: calc(11px + 2px);
    background: #FFF3CD;
    color: #B8860B;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.pending-notice {
    background: #FFFBEA;
    border: 1px dashed #F9B408;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: calc(13px + 2px);
    color: #7A5C00;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
}

.pending-notice i {
    font-size: calc(16px + 2px);
    color: #F9B408;
    margin-top: 1px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .percentile-summary {
        grid-template-columns: 1fr 1fr;
    }

    .tab-content#general .chart-card-center .chart-body {
        justify-content: flex-start;
    }

    .tab-content#general .madurez-donut {
        max-width: 180px;
        height: 180px;
    }
}

#pieChart1,
#pieChart2 {
    max-width: 300px;
    margin: auto;
}

#pieChart2 {
    height: 300px !important;
    width: 300px !important;
    max-width: 300px;
    margin: auto;
}

.benefits-section {
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid #D1D3D4;
}

.benefits-section-user {
    width: 100%;
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid #D1D3D4;
}

.benefits-table-user {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.benefits-table-user thead {
    background: #2B4C72;
    color: #fff;
}

.benefits-table-user th {
    padding: 18px;
    text-align: center;
    font-weight: 600;
}

.benefits-table-user td {
    padding: 20px;
    text-align: center;
    font-size: calc(16px + 2px);
}

.benefits-table-user tbody tr:nth-child(odd) {
    background: #FFF;
}

.benefits-table-user tbody tr:nth-child(even) {
    background: #E6E7E8;
}

.benefits-table-user td:first-child {
    text-align: center;
    padding-left: 30px;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.benefits-table thead {
    background: #2B4C72;
    color: #fff;
}

.benefits-table th {
    padding: 18px;
    text-align: center;
    font-weight: 600;
}

.benefits-table td {
    padding: 20px;
    text-align: center;
    font-size: calc(16px + 2px);
}

.benefits-table tbody tr:nth-child(odd) {
    background: #FFF;
}

.benefits-table tbody tr:nth-child(even) {
    background: #E6E7E8;
}

.benefits-table td:first-child {
    text-align: left;
    padding-left: 30px;
}

@media (max-width: 768px) {

    .benefits-table th,
    .benefits-table td {
        padding: 12px;
        font-size: calc(14px + 2px);
    }
}

/* --------------------- FOOTER --------------------------- */

.footer {
    width: 100%;
}

.footer-container,
.footer-top {
    height: 63px;
}

.footer-top {
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.19);
    background: #FFFFFF;
    padding: 20px 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-help {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3f638a;
    font-weight: 500;
    cursor: pointer;
}

.footer-help i {
    font-size: calc(22px + 2px);
    padding: 6px;
}

.footer-help span {
    font-size: calc(14px + 2px);
}

/* ---------------------- TAB Cargos ------------------------- */

.entries-widget {
    position: fixed;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #030B47;
    border-radius: 16px 0 0 16px;
    padding: 15px 10px;
    width: 60px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.entries-content {
    color: #fff;
    font-size: calc(15px + 2px);
    text-align: center;
}

.entries-content i {
    font-size: calc(20px + 2px);
}

.entries-toggle {
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    font-size: calc(15px + 2px);
}

.entries-modal {
    position: fixed;
    right: -500px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    background: #fff;
    border-radius: 10px 0 0 10px;
    box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    z-index: 9998;
    height: 100%;
    width: 25%;
}

.entries-modal.open {
    right: 0px;
    height: 100%;
    width: 25%;
}

.entries-modal-content {
    padding: 15px;
}

.entries-widget.shifted {
    right: 25%;
}

.entries-toggle i {
    transition: transform 0.3s ease;
}

.entries-widget.shifted .entries-toggle i {
    transform: rotate(180deg);
}

/* ==========================================================================
   Help FAB & iaRH Chat System (Figma Parity)
   ========================================================================== */

/* 1. Floating Action Button Container (Bottom Right) */
.help-fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.help-fab-triggers {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

/* Help FAB Button (?) */
.help-fab-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.help-fab-halo {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(51, 92, 240, 0.25);
    transform: scale(1);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
}

.help-fab-btn:hover .help-fab-halo {
    transform: scale(1.7);
    opacity: 1;
}

.help-fab-btn.open .help-fab-halo {
    transform: scale(1.8);
    opacity: 0.4;
}

.help-fab-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #C4C4C4;
    background-color: #F0F0F0;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(51, 92, 240, 0.30);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.help-fab-btn:hover .help-fab-circle {
    transform: scale(1.1);
    border-color: #030B47;
    background-color: #030B47;
    color: #FFFFFF;
}

.help-fab-btn.open .help-fab-circle {
    transform: scale(1.1) rotate(90deg);
    border-color: #030B47;
    background-color: #030B47;
    color: #FFFFFF;
}

/* Chat FAB Button (Spark in Navy circle) */
.chat-fab-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.chat-fab-halo {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(51, 92, 240, 0.25);
    transform: scale(1);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
}

.chat-fab-btn:hover .chat-fab-halo {
    transform: scale(1.5);
    opacity: 1;
}

.chat-fab-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #030B47;
    color: #FCCD06;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(51, 92, 240, 0.30);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.chat-fab-btn:hover .chat-fab-circle {
    transform: scale(1.1);
}

.chat-fab-btn:active .chat-fab-circle {
    transform: scale(0.95);
}

/* 2. Help Popup Menu */
.help-popup-menu {
    margin-bottom: 12px;
    width: 246px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #ECEEF2;
    background-color: #F8FAFC;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform-origin: bottom right;
    animation: helpPopupEnter 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
    pointer-events: auto;
}

.help-menu-item {
    display: flex;
    height: 52px;
    width: 100%;
    cursor: pointer;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ECEEF2;
    color: #2D3748;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.help-menu-item:last-child {
    border-bottom: none;
}

.help-menu-item:hover {
    background-color: #FFFFFF;
    color: #030B47;
}

.help-menu-icon {
    display: grid;
    place-items: center;
    color: #2D3748;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.help-menu-item:hover .help-menu-icon {
    transform: scale(1.1);
}

.help-menu-item .chat-spark-icon {
    color: #030B47;
}

.help-menu-label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2D3748;
    transition: transform 0.2s ease;
}

.help-menu-item:hover .help-menu-label {
    transform: translateX(2px);
    color: #030B47;
}

/* 3. Glosario Modal */
.glosario-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.glosario-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(3, 11, 71, 0.45);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.15s ease-out;
}

.glosario-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 874px;
    max-height: 88vh;
    border-radius: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: popIn 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
    z-index: 1;
}

.glosario-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 40px 16px;
}

.glosario-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #0B1F3A;
    margin: 0;
    line-height: 1.2;
}

.glosario-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease;
}

.glosario-modal-close:hover {
    background-color: #F1F5F9;
    color: #030B47;
}

.glosario-modal-body {
    overflow-y: auto;
    padding: 0 40px 40px;
    color: #0B1F3A;
}

.glosario-section {
    margin-top: 28px;
}

.glosario-section:first-child {
    margin-top: 0;
}

.glosario-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0B1F3A;
    margin: 0 0 12px;
}

.glosario-section-title.uppercase {
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.glosario-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #0B1F3A;
    margin: 0 0 12px;
}

.glosario-note {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.55;
    color: #0B1F3A;
    margin: 0;
}

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

.glosario-list li {
    display: flex;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #0B1F3A;
}

.glosario-bullet {
    user-select: none;
    flex-shrink: 0;
    color: #030B47;
}

/* 4. Chat Drawer (ChatIaRH) */
.chat-iarh-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.chat-iarh-overlay.active {
    pointer-events: auto;
}

.chat-iarh-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(3, 11, 71, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chat-iarh-overlay.active .chat-iarh-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.chat-iarh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 513px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.10);
    border-left: 1px solid #ECEEF2;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 1;
    pointer-events: auto;
}

.chat-iarh-overlay.active .chat-iarh-drawer {
    transform: translateX(0);
}

.chat-iarh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #030B47;
    padding: 20px 24px;
    flex-shrink: 0;
}

.chat-iarh-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-iarh-spark-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.30);
    color: #FCCD06;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.chat-iarh-header-info {
    display: flex;
    flex-direction: column;
}

.chat-iarh-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.chat-iarh-status {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.chat-iarh-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4ADE80;
}

.chat-iarh-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.chat-iarh-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.20);
}

.chat-iarh-body {
    flex: 1;
    overflow-y: auto;
    background-color: #F3F6FB;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-msg-row.user {
    align-items: flex-end;
}

.chat-msg-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-msg-row.user .chat-msg-wrapper {
    flex-direction: row-reverse;
}

.chat-avatar-spark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #030B47;
    color: #FCCD06;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-bubble {
    max-width: 320px;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-bubble.ia {
    background-color: #FFFFFF;
    color: #1B2044;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-bubble.user {
    background-color: #030B47;
    color: #FFFFFF;
}

/* Markdown styling inside ia bubbles */
.chat-bubble.ia p {
    margin: 0 0 0.5rem 0;
}

.chat-bubble.ia p:last-child {
    margin-bottom: 0;
}

.chat-bubble.ia ul,
.chat-bubble.ia ol {
    padding-left: 1.25rem;
    margin: 0.4rem 0;
}

.chat-bubble.ia li {
    margin-bottom: 0.25rem;
}

.chat-bubble.ia strong {
    font-weight: 700;
}

.chat-bubble.ia h1,
.chat-bubble.ia h2,
.chat-bubble.ia h3,
.chat-bubble.ia h4 {
    font-size: 1em;
    font-weight: 700;
    margin: 0.5rem 0 0.3rem;
}

.chat-bubble.ia code {
    background: rgba(0, 0, 0, 0.07);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

.chat-bubble.ia pre {
    background: rgba(0, 0, 0, 0.07);
    padding: 8px 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.chat-bubble.ia pre code {
    background: none;
    padding: 0;
}

.chat-bubble.ia a {
    color: #1D2D73;
    text-decoration: underline;
}

.chat-time {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #646B76;
}

.chat-time.ia {
    padding-left: 42px;
}

.chat-time.user {
    padding-right: 4px;
}

/* Suggestions box */
.chat-suggestions-box {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.chat-suggestions-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #646B76;
    margin: 0;
}

.chat-suggestion-chip {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ECEEF2;
    background-color: #FFFFFF;
    padding: 10px 14px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #1D2D63;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.chat-suggestion-chip:hover {
    border-color: rgba(3, 11, 71, 0.30);
    background-color: #F8FAFC;
}

/* Typing indicator */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #646B76;
    animation: typingBeat 1s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.16s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.32s;
}

/* Footer & Input Bar */
.chat-iarh-footer {
    background-color: #FFFFFF;
    border-top: 1px solid #ECEEF2;
    padding: 12px 16px 16px;
    flex-shrink: 0;
}

.chat-input-bar {
    display: flex;
    height: 48px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid #ECEEF2;
    background-color: #F3F6FB;
    padding-left: 16px;
    padding-right: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input-bar:focus-within {
    border-color: #030B47;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(3, 11, 71, 0.12);
}

.chat-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1B2044;
    outline: none;
}

.chat-input::placeholder {
    color: #646B76;
}

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background-color: #030B47;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
    background-color: #0A1560;
}

/* Keyframes */
@keyframes helpPopupEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes typingBeat {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* SplashLoader - Figma / Prototipo (Jobs-main/components/ui/SplashLoader.tsx) */
#page-loader.splash-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030B47;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: splashIn 0.35s ease-out forwards;
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

#page-loader.splash-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-loader__container {
    display: flex;
    width: 260px;
    flex-direction: column;
    align-items: center;
}

.splash-loader__logo {
    height: 52px;
    width: 118px;
    object-fit: contain;
    animation: splashPulse 2.2s ease-in-out infinite;
}

.splash-loader__track {
    margin-top: 36px;
    height: 3px;
    width: 100%;
    overflow: hidden;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.15);
}

.splash-loader__fill {
    height: 100%;
    border-radius: 9999px;
    background-color: #FCCD06;
    width: 0%;
}

.splash-loader__copy {
    position: relative;
    margin-top: 20px;
    height: 16px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.splash-loader__text {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 300ms ease;
    white-space: nowrap;
}

.splash-loader__text.active {
    opacity: 1;
}

@keyframes splashIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.82;
        transform: scale(0.975);
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-loader__logo {
        animation: none;
    }
}

/* BarraProgreso - Figma / Prototipo (Jobs-main/components/PageTransition.tsx) */
.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
}

.top-progress-bar__fill {
    height: 100%;
    border-radius: 0 9999px 9999px 0;
    background-color: #FCCD06;
    box-shadow: 0 0 8px rgba(245, 199, 69, 0.7);
    width: 0%;
}

.top-progress-bar__fill.running {
    animation: barraCorre 0.9s cubic-bezier(0.15, 0.85, 0.3, 1) forwards;
}

.top-progress-bar__fill.finishing {
    animation: barraTermina 0.26s ease-out forwards;
}

@keyframes barraCorre {
    from { width: 0%; }
    to { width: 90%; }
}

@keyframes barraTermina {
    from { width: 90%; opacity: 1; }
    to { width: 100%; opacity: 0; }
}

/* Skeleton shimmer utility (Jobs-main globals.css) */
@keyframes irh-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.skeleton {
    display: block;
    box-sizing: border-box;
    background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 50%, #eceef2 75%);
    background-size: 200% 100%;
    animation: irh-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

.sk-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(15, 23, 42, 0.02);
    box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
    }
}

/* PageSkeleton Overlay - Transición de carga con esqueleto por sección */
.page-skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    background-color: #f4f7fb;
    z-index: 120;
    opacity: 1;
    transition: opacity 0.25s ease-out;
    pointer-events: none;
}

.page-skeleton-overlay.fade-out {
    opacity: 0;
}



.filters {
    cursor: pointer;
}

.filters-wrapper {
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    transition: all 0.4s ease;
}

.filters-wrapper.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
}

.filters-wrapper-user {
    width: 100%;
    transition: all 0.4s ease;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.filter-item label {
    font-size: calc(14px + 2px);
    margin-bottom: 5px;
    display: block;
}

.filter-item select,
.filter-item input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
}

.tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    background: #e6f0ff;
    color: #2b5cb8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: calc(12px + 2px);
}

.filters-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.filters-actions-user {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.dashboard-header.expanded {
    height: auto;
    min-height: 146px;
    transition: all 0.4s ease;
    z-index: 100;
}

.filters-wrapper {
    width: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 110;
}

.filters-wrapper.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.btn-clear {
    background-color: #FFFFFF;
    color: #030B47;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background-color: #030B47;
    border: 2px solid #030B47 !important;
    color: #FFFFFF;
}

.btn-apply {
    background-color: #030B47;
    border: 2px solid #030B47;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #FFFFFF;
}

.btn-create {
    background-color: #030B47;
    border: 2px solid #030B47;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #FFFFFF;
}

.btn-create:hover {
    opacity: 0.7;
}

.btn-apply.active {
    opacity: 1;
    cursor: pointer;
}

.btn-apply:not(.active) {
    opacity: 0.9;
    cursor: not-allowed;
}

.filter-item {
    position: relative;
    z-index: 1;
}

.filter-item:has(.options.active),
.filter-item:focus-within {
    z-index: 1200;
}

.custom-select {
    position: relative;
}

.select-box {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #fff;
}

.options {
    position: absolute;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-top: 5px;
    display: none;
    z-index: 1500;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.options.active {
    display: block;
}

.option-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.option-item:hover {
    background: #f5f5f5;
}

.option-item.selected {
    background: #e6f0ff;
}

.filters-count {
    font-weight: 600;
    color: #00ab1a;
    padding: 2px 5px;
    border-radius: 12px;
    font-size: calc(14px + 2px);
}

/* ------------------ Filtro Encuesta ------------------- */

.filter-tabs {
    position: relative;
    display: flex;
    background: #eee;
    border-radius: 30px;
    padding: 5px;
    width: 100%;
    gap: 5px;
    height: 40px;
}

.filter-btn {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
    width: 300px;
    height: 100%;
}

.filter-btn.active {
    color: #000;
}

.filter-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    width: 100px;
    background: white;
    border-radius: 20px;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.survey-select {
    margin-bottom: 15px;
}

.survey-select select {
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    min-width: 250px;
}

/* ------------------------------------- FILTRO USUARIOS ------------------------------------- */

.user-filters {
    width: 100%;
}

.user-filters__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.user-filters__grid-holding {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.user-filter label {
    font-size: calc(14px + 2px);
    margin-bottom: 5px;
    display: block;
}

.user-select {
    width: 100%;
}

.select2-container .select2-selection--multiple {
    border-radius: 12px !important;
    padding: 5px;
    border: 1px solid #ccc;
    min-height: 44px;
}

.select2-selection__choice {
    background: #e6f0ff !important;
    color: #2b5cb8 !important;
    border-radius: 20px !important;
    padding: 3px 8px !important;
}

.user-filters__actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #ccc !important;
    display: flex !important;
    align-items: center;
    padding: 0 12px;
    background: #fff;
}

.select2-selection__rendered {
    color: #555 !important;
    line-height: normal !important;
    padding: 0 !important;
}

.select2-selection__placeholder {
    color: #999 !important;
}

.select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #ccc !important;
    overflow: hidden;
}

.select2-search__field {
    border-radius: 10px !important;
    padding: 8px !important;
    border: 1px solid #ccc !important;
}

.select2-results__option {
    padding: 10px !important;
}

.select2-results__option--highlighted {
    background: #e6f0ff !important;
    color: #2b5cb8 !important;
}

.select2-results__option--selected {
    background: #030B47 !important;
    color: #fff !important;
}

.select2-selection__clear {
    font-size: calc(20px + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 100% !important;
}

.btn-apply-user {
    background: #ccc !important;
    cursor: not-allowed !important;
    transition: 0.3s !important;
    border: 2px solid #ccc !important;
}

.btn-apply-user.active {
    background: #030B47 !important;
    color: #fff !important;
    cursor: pointer !important;
    border: 2px solid #030B47 !important;
}

.btn-apply-user.active:hover {
    opacity: 0.7;
}

.select2.select-active .select2-selection--single {
    background: #cddaff !important;
    transition: all ease 0.3s !important;
}

.select-wrapper {
    position: relative;
}

.clear-one {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: calc(14px + 2px);
    color: #999;
    display: none;
    transition: all ease 0.3s;
}

.clear-one:hover {
    color: #8c0000;
}

/* ------------------------------------- MODALES USUARIOS ------------------------------------- */

.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 500px;
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.custom-modal.active .custom-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #030B47;
    background: white;
    transition: all ease 0.3s;
    font-size: calc(13px + 2px);
}

.btn-cancel:hover {
    background: #030B47;
    color: #fff;
}

.btn-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid #030B47;
    background: #030B47;
    color: white;
    transition: all ease 0.3s;
    font-size: calc(13px + 2px);
}

.btn-confirm:hover {
    opacity: 0.7;
}

.btn-deleted {
    border: 1.5px solid #1E349E;
    background: #1E349E;
}

.success-modal {
    backdrop-filter: blur(3px);
}

.success-content {
    position: relative;
    animation: fadeInScale 0.3s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #e6f4ea;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(28px + 2px);
    margin: 0 auto 15px;
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: calc(18px + 2px);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.error-content {
    position: relative;
    animation: fadeInScale 0.3s ease;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: #fdecea;
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(28px + 2px);
    margin: 0 auto 15px;
}

.site-feedback-modal {
    backdrop-filter: blur(3px);
}

.site-feedback-modal__content {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    height: auto;
    min-height: 240px;
    padding: 28px 30px;
    justify-content: center;
    gap: 14px;
    animation: fadeInScale 0.3s ease;
}

.site-feedback-modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(28px + 2px);
    margin: 0 auto 4px;
}

.site-feedback-modal__title {
    margin: 0;
}

.site-feedback-modal__message {
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
}

.site-feedback-modal__actions {
    justify-content: center;
    margin-top: 8px;
}

.site-feedback-modal__actions .btn-confirm {
    min-width: 150px;
}

.site-feedback-modal--success .site-feedback-modal__icon {
    background: #e6f4ea;
    color: #28a745;
}

.site-feedback-modal--error .site-feedback-modal__icon {
    background: #fdecea;
    color: #dc3545;
}

.site-feedback-modal--warning .site-feedback-modal__icon {
    background: #fff4db;
    color: #d97706;
}

.site-feedback-modal--info .site-feedback-modal__icon {
    background: #e8f0fe;
    color: #1d4ed8;
}

.permissions-grid label.input-error {
    border: 1px solid red;
    padding: 5px;
    border-radius: 5px;
}

/* ------------------------------------- ICONOS TABLA USUARIO ------------------------------------- */

.actions-icons {
    display: flex;
    justify-content: space-around;
}

.delete-user {
    transition: all ease 0.3s;
}

.delete-user:hover {
    color: #be2938;
    cursor: pointer;
}

.delete-company {
    transition: all ease 0.3s;
}

.delete-company:hover {
    color: #be2938;
    cursor: pointer;
}

.edit-user {
    transition: all ease 0.3s;
}

.edit-user:hover {
    color: #d5ab22;
    cursor: pointer;
}

.edit-company {
    transition: all ease 0.3s;
}

.edit-company:hover {
    color: #d5ab22;
    cursor: pointer;
}

/* ------------------------------------- CREAR USUARIO ------------------------------------- */

.create-user-container {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-section h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
}

.password-group {
    position: relative;
}

.password-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(80%);
    cursor: pointer;
}

.password-group input {
    padding-right: 40px;
}

.permissions-section {
    margin-top: 30px;
}

.permissions-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.btn-create-user {
    width: 30%;
    padding: 15px;
    border-radius: 15px;
    border: none;
    background: #030B47;
    color: white;
    font-size: calc(16px + 2px);
    cursor: pointer;
    transition: all ease 0.3s;
}

.btn-create-user:hover {
    opacity: 0.7;
}

.btn-cancel-user {
    width: 30%;
    padding: 15px;
    border-radius: 15px;
    border: 1.5px solid #030B47;
    background: white;
    transition: all ease 0.3s;
    color: #030B47;
    font-size: calc(16px + 2px);
    cursor: pointer;
}

.btn-cancel-user:hover {
    border: 1.5px solid #030B47;
    background: #030B47;
    color: #ffffff;
}

.Create-modal {
    backdrop-filter: blur(3px);
}

.Create-content {
    position: relative;
    animation: fadeInScale 0.3s ease;
}

.Create-icon {
    width: 60px;
    height: 60px;
    background: #e6f4ea;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(28px + 2px);
    margin: 0 auto 15px;
}

.closeCreate {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: calc(18px + 2px);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.error-msg {
    color: red;
    font-size: calc(12px + 2px);
    display: none;
}

.input-error {
    border: 1px solid red;
}

.input-success {
    border: 1px solid green;
}

.input-error {
    border: 1px solid #e74c3c !important;
    background-color: #fdecea;
}

.input-success {
    border: 1px solid #2ecc71 !important;
    background-color: #eafaf1;
}

.error-msg {
    color: #e74c3c;
    font-size: calc(12px + 2px);
    display: none;
    margin-top: 5px;
}

/* ------------------------------------- HOLDING ------------------------------------- */

.company-row {
    cursor: pointer;
    transition: all ease 0.3s;
}

.company-row:hover {
    background-color: #030b472c !important;
}

.content-title-icon {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 25px;
}

.icon-back-hs {
    font-size: calc(25px + 2px);
    color: #030B47;
    cursor: pointer;
    z-index: 5;
    transition: all ease 0.3s;
    text-decoration: none;
}

.icon-arback {
    text-decoration: none;
    color: #030B47;
}

.icon-back-hs:hover {
    opacity: .5;
}

/* ------------------------------------- DASHBOARD UPDATE ------------------------------------- */

.dashboard-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8EEF7;
    border: 1px solid #D9E2EE;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    border-bottom: none;
}

.tab-item {
    position: relative;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: color .25s ease;
    z-index: 2;
    outline: none;
}

.tab-item:hover {
    color: #030B47;
}

.tab-item.active {
    color: #FFFFFF;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    height: calc(100% - 8px);
    background: #030B47;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(3, 11, 71, 0.2);
    transition:
        transform .3s cubic-bezier(.4, 0, .2, 1),
        width .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
}

.tab-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s;
    height: 0;
    overflow: hidden;
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    overflow: visible;
}

/* ---------------------- REPORTES ----------------------- */

.report-page.dashboard-container {
    --report-sans: 'Inter', sans-serif;
}

.report-page .report-head {
    background: #fff;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.report-page .report-head h1 {
    margin: 0;
    font-size: calc(24px + 2px);
    font-weight: 700;
    color: #030B47;
    letter-spacing: -.01em;
}

.report-page .report-head .subtitle {
    margin-top: 6px;
    color: #666;
    font-size: calc(13px + 2px);
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.report-page .report-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-page .report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #D1D3D4;
    background: #fff;
    color: #2B4C72;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    transition: all .2s ease;
}

.report-page .report-btn:hover {
    border-color: #6FA2D9;
    color: #6FA2D9;
}

.report-page .report-btn.primary {
    background: #030B47;
    color: #fff;
    border-color: #030B47;
}

.report-page .report-btn.primary:hover {
    background: #060E9F;
    border-color: #060E9F;
    color: #fff;
}

.report-page .report-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
    margin-bottom: 24px;
}

.report-page .report-nav .label {
    font-size: calc(11px + 2px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94A3B8;
    padding-right: 8px;
}

.report-page .report-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #D1D3D4;
    background: #fff;
    color: #555;
    font-size: calc(12px + 2px);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.report-page .report-chip:hover {
    border-color: #6FA2D9;
    color: #6FA2D9;
}

.report-page .report-chip.active {
    background: #030B47;
    border-color: #030B47;
    color: #fff;
}

.report-page .report-section {
    scroll-margin-top: 24px;
    margin-bottom: 28px;
}

.report-page .section-label {
    margin: 0 0 14px;
}

.report-page .group-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 14px;
}

.report-page .group-head .group-meta {
    font-size: calc(11px + 2px);
    font-weight: 600;
    letter-spacing: .04em;
    color: #94A3B8;
}

.report-page .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.report-page .kpi {
    background: #fff;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
}

.report-page .kpi-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-page .icon-tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: calc(14px + 2px);
    background: #E6E7E8;
    color: #030B47;
    flex-shrink: 0;
}

.report-page .icon-tile.green {
    background: #E6F4ED;
    color: #107C41;
}

.report-page .icon-tile.yellow {
    background: #FFF8DC;
    color: #F9B408;
}

.report-page .icon-tile.blue {
    background: #E8EEF8;
    color: #2B4C72;
}

.report-page .kpi-title {
    font-size: calc(12px + 2px);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #030B47;
    line-height: 1.3;
}

.report-page .kpi-value {
    font-size: calc(30px + 2px);
    font-weight: 700;
    color: #030B47;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.report-page .kpi-value.green {
    color: #107C41;
}

.report-page .kpi-value.yellow {
    color: #F9B408;
}

.report-page .kpi-foot {
    font-size: calc(11px + 2px);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
    line-height: 1.4;
}

.report-page .chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.report-page .chart-card,
.report-page .cargos-card,
.report-page .heatmap-wrap,
.report-page .donut-card {
    background: #fff;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
}

.report-page .chart-card {
    padding: 20px 22px;
}

.report-page .chart-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-page .chart-card-head .icon-tile {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: calc(12px + 2px);
}

.report-page .chart-card-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: #030B47;
    flex: 1;
    margin: 0;
}

.report-page .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: calc(11px + 2px);
    font-weight: 700;
    letter-spacing: .06em;
    background: #EEF1F5;
    color: #6B7280;
}

.report-page .badge.blue {
    background: #E8EEF8;
    color: #2B4C72;
}

.report-page .badge.green {
    background: #E6F4ED;
    color: #107C41;
}

.report-page .badge.gray {
    background: #EEF1F5;
    color: #6B7280;
}

.report-page .chart-body {
    position: relative;
    height: 280px;
}

.report-page .heatmap-wrap {
    padding: 16px;
}

.report-page .heatmap {
    display: grid;
    grid-template-columns: 180px repeat(5, 1fr);
    gap: 4px;
}

.report-page .hm-corner,
.report-page .hm-col-head,
.report-page .hm-row-head {
    font-size: calc(11px + 2px);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
    display: flex;
    align-items: center;
    min-height: 42px;
}

.report-page .hm-col-head {
    justify-content: center;
    color: #030B47;
}

.report-page .hm-row-head {
    padding: 10px 14px;
    font-size: calc(13px + 2px);
    text-transform: none;
    color: #030B47;
    letter-spacing: 0;
}

.report-page .hm-cell {
    padding: 16px 10px;
    text-align: center;
    position: relative;
    border-radius: 10px;
    transition: transform .12s, box-shadow .12s;
}

.report-page .hm-cell:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
    z-index: 2;
}

.report-page .hm-val {
    font-size: calc(18px + 2px);
    font-weight: 700;
    line-height: 1;
}

.report-page .hm-unit {
    display: block;
    margin-top: 4px;
    font-size: calc(10px + 2px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .75;
}

.report-page .hm-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
    font-size: calc(11px + 2px);
    font-weight: 600;
    color: #6B7280;
}

.report-page .hm-legend .hm-scale {
    display: flex;
    height: 10px;
    width: 240px;
    border-radius: 5px;
    overflow: hidden;
}

.report-page .hm-legend .hm-scale span {
    flex: 1;
}

.report-page .hm-legend .hm-tick {
    font-size: calc(11px + 2px);
    font-weight: 700;
    color: #030B47;
}

.report-page .hm-legend .note {
    font-size: calc(11px + 2px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
}

.report-page .salarial-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #D1D3D4;
    border-radius: 14px;
    margin-bottom: 18px;
}

.report-page .search-input {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #D1D3D4;
    border-radius: 10px;
    background: #F7F8FA;
    min-width: 280px;
    flex: 1;
    max-width: 360px;
}

.report-page .search-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: calc(13px + 2px);
    font-weight: 500;
    color: #030B47;
    flex: 1;
}

.report-page .search-input input::placeholder {
    color: #94A3B8;
}

.report-page .search-input i {
    color: #94A3B8;
    font-size: calc(12px + 2px);
}

.report-page .period-toggle {
    background: #F7F8FA;
    padding: 3px;
    border-radius: 10px;
    display: inline-flex;
    gap: 2px;
}

.report-page .period-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: calc(12px + 2px);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
}

.report-page .period-btn.is-active {
    background: #fff;
    color: #030B47;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.report-page .cargos-card {
    /* overflow: hidden eliminado para permitir cabecera sticky */
}

.report-page .cargos-table-head {
    display: grid;
    grid-template-columns: 1fr 80px repeat(9, minmax(95px, 1fr)) 32px;
    grid-template-rows: 36px 30px;
    background: #F7F8FA;
    border-bottom: 1px solid #D1D3D4;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.report-page .cargos-table-head .hc {
    display: flex;
    align-items: center;
    padding: 0 14px;
    white-space: nowrap;
}

.report-page .cargos-table-head .hc.cargo,
.report-page .cargos-table-head .hc.cases {
    font-size: calc(11px + 2px);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
    background: #F7F8FA;
    border-right: 1px solid #D1D3D4;
}

.report-page .cargos-table-head .hc.group {
    font-size: calc(12px + 2px);
    font-weight: 700;
    justify-content: center;
    background: #EEF1F5;
    border-bottom: 1px solid #D1D3D4;
    border-right: 1px solid #D1D3D4;
    color: #030B47;
}

.report-page .cargos-table-head .hc.sub {
    font-size: calc(10px + 2px);
    font-weight: 600;
    color: #6B7280;
    justify-content: flex-end;
    border-right: 1px solid #EEF1F5;
    background: #F7F8FA;
}

.report-page .cargos-table-head .hc.sub.tc-end {
    border-right: 1px solid #D1D3D4;
}

.report-page .cargos-table-head .hc.empty {
    background: #F7F8FA;
    border-radius: 0 16px 0 0;
}

.report-page #cargosBody {
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.report-page .cargos-empty {
    padding: 56px 24px;
    text-align: center;
    color: #64748B;
    font-size: calc(14px + 2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-radius: 16px;
}

.report-page .cargos-empty .cargos-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 6px;
}

.report-page .cargos-empty .cargos-empty-icon i {
    display: inline-block;
    margin: 0;
    font-size: 26px;
    color: #475569;
}

.report-page .cargos-empty h4 {
    font-size: calc(16px + 2px);
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.report-page .cargos-empty p {
    font-size: calc(13px + 2px);
    color: #64748B;
    margin: 0;
    max-width: 480px;
    line-height: 1.5;
}

.report-page .cargos-empty .btn-empty-action {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #030B47;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-page .cargos-empty .btn-empty-action:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.report-page .cargos-loading-wrap,
.dashboard-container .cargos-loading-wrap,
.cargos-loading-wrap {
    position: relative;
    min-height: 220px;
}

.report-page .cargos-loading-overlay,
.dashboard-container .cargos-loading-overlay,
.cargos-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    border-radius: 16px;
}

.report-page .cargos-loading-spinner,
.dashboard-container .cargos-loading-spinner,
.cargos-loading-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #E2E8F0;
    border-top-color: #030B47;
    border-radius: 50%;
    animation: cargosSpin 0.8s linear infinite;
}

.report-page .cargos-loading-text,
.dashboard-container .cargos-loading-text,
.cargos-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

@keyframes cargosSpin {
    to {
        transform: rotate(360deg);
    }
}

.report-page .area-group {
    border-bottom: 1px solid #D1D3D4;
}

.report-page .area-group:last-child {
    border-bottom: none;
}

.report-page .area-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: #F0F4FA;
    border: 0;
    border-bottom: 1px solid #D1D3D4;
    cursor: pointer;
    user-select: none;
    text-align: left;
    font-family: inherit;
}

.report-page .area-group-head:focus {
    outline: none;
}

.report-page .area-group-head:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(111, 162, 217, .45);
}

.report-page .area-group-head:hover {
    background: #E8F0FE;
}

.report-page .area-group-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: calc(12px + 2px);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #030B47;
}

.report-page .area-group-name i {
    transition: transform .2s ease;
    color: #107C41;
}

.report-page .area-group-count {
    font-size: calc(11px + 2px);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94A3B8;
}

.report-page .area-group.collapsed .area-group-name i {
    transform: rotate(-90deg);
}

.report-page .area-group.collapsed .area-group-rows {
    display: none;
}

.report-page .area-group-rows {
    background: #fff;
}

.report-page .cargo-row {
    display: grid;
    grid-template-columns: 1fr 80px repeat(9, minmax(95px, 1fr)) 32px;
    border-bottom: 1px solid #EEF1F5;
    transition: background .15s ease;
    cursor: pointer;
}

.report-page .cargo-row:last-child {
    border-bottom: none;
}

.report-page .cargo-row>div {
    padding: 14px 16px;
    font-size: calc(13px + 2px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.report-page .cargo-row>div:first-child {
    font-weight: 700;
    color: #030B47;
    line-height: 1.2;
    justify-content: flex-start;
}

.report-page .cargo-row small {
    display: block;
    margin-top: 4px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: calc(11px + 2px);
}

.report-page .cargo-row:hover {
    background: #E8F0FE;
}

.report-page .cargo-row>div:nth-child(2),
.report-page .cargo-row>div:nth-child(8),
.report-page .cargo-row>div:nth-child(9),
.report-page .cargo-row>div:nth-child(10),
.report-page .cargo-row>div:nth-child(11) {
    border-right: 1px solid #EEF1F5;
}

.report-page .cargo-row .cg-name {
    flex-direction: column;
    align-items: flex-start;
}

.report-page .cargo-row .cg-num {
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
}

.report-page .cargo-row .cg-num.muted {
    color: #64748B;
}

.report-page .cargo-row .cg-num.highlight {
    color: #107C41;
    font-weight: 700;
}

.report-page .cargo-row .cg-chevron {
    justify-content: center;
    color: #94A3B8;
}

.report-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 14px;
    border: 1px solid #D1D3D4;
    border-radius: 10px;
    background: #fff;
    color: #030B47;
    font-family: var(--report-sans);
    font-size: calc(12px + 2px);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.report-page .back-btn:hover {
    border-color: #6FA2D9;
    color: #6FA2D9;
}

.report-page .cargo-hero {
    padding: 28px 32px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #030B47 0%, #060E9F 100%);
    color: #fff;
    margin-bottom: 24px;
    position: sticky;
    top: 24px;
    z-index: 99;
    overflow: hidden;
    font-family: var(--report-sans);
}

.report-page .cargo-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 220, 0, .15) 0%, transparent 70%);
    pointer-events: none;
}

.report-page .area-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #EEDC00;
    font-size: calc(11px + 2px);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.report-page .cargo-hero h2 {
    margin: 12px 0 14px;
    font-size: calc(26px + 2px);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
    position: relative;
    z-index: 1;
}

.report-page .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .7);
    font-size: calc(12px + 2px);
    font-weight: 500;
    letter-spacing: .02em;
    position: relative;
    z-index: 1;
}

.report-page .hero-meta strong {
    color: #fff;
    font-weight: 700;
}

.report-page .hero-desc {
    margin: 0;
    max-width: 80ch;
    color: rgba(255, 255, 255, .85);
    font-size: calc(13px + 2px);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.report-page .hero-applied-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.report-page .applied-filter-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: calc(11px + 2px);
    font-weight: 700;
    color: #EEDC00;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.report-page .applied-filters-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.report-page .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: calc(11px + 2px);
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: background .15s ease, border-color .15s ease;
}

.report-page .filter-chip strong {
    font-weight: 700;
    color: #EEDC00;
}

.report-page .filter-chip i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.report-page .filter-chip.chip-unfiltered {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.report-page .cargo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.report-page .cargo-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    min-height: 0;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
    background: #F2F3F6;
}

.report-page .ck-label {
    color: #2B4C72;
    font-family: var(--report-sans);
    font-size: 14px;
    font-weight: 500;
}

.report-page .ck-value {
    font-family: var(--report-sans);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #030B47;
}

.report-page .ck-value.blue {
    color: #2B4C72;
}

.report-page .ck-value.green {
    color: #107C41;
}

.report-page .ck-value.yellow {
    color: #F9B408;
}

.report-page .ck-meta {
    margin-top: 2px;
    color: #94A3B8;
    font-family: var(--report-sans);
    font-size: calc(10px + 2px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-page .detail-range-card {
    padding: 22px 26px;
    border: 1px solid #D1D3D4;
    border-radius: 14px;
    background: #fff;
}

.report-page .detail-range {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    column-gap: 24px;
    align-items: center;
    padding: 16px 0;
}

.report-page .dr-label {
    color: #6B7280;
    font-family: var(--report-sans);
    font-size: calc(11px + 2px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.report-page .dr-track {
    position: relative;
    height: 50px;
}

.report-page .dr-value {
    font-family: var(--report-sans);
    font-weight: 700;
    font-size: calc(16px + 2px);
    color: #030B47;
    text-align: right;
    justify-self: end;
}

.report-page .dr-value span {
    display: block;
    font-size: calc(16px + 2px);
    font-weight: 700;
    line-height: 1;
}

.report-page .dr-value small {
    display: block;
    margin-top: 3px;
    color: #6B7280;
    font-family: var(--report-sans);
    font-size: calc(10px + 2px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-page .dr-scale {
    position: relative;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 18px;
    color: #94A3B8;
    font-family: var(--report-sans);
    font-size: calc(10px + 2px);
    font-weight: 600;
}

.report-page .dr-scale span {
    position: absolute;
    transform: translateX(-50%);
    color: #94A3B8;
    white-space: nowrap;
}

.report-page .dr-bar {
    position: relative;
    position: absolute;
    left: 0;
    right: 0;
    top: 25px;
    height: 20px;
}

.report-page .dr-whisker,
.report-page .dr-iqr,
.report-page .dr-mean,
.report-page .dr-mark {
    position: absolute;
}

.report-page .dr-whisker {
    top: 50%;
    height: 1px;
    background: #C7D6EE;
    transform: translateY(-50%);
}

.report-page .dr-whisker::before,
.report-page .dr-whisker::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 1px;
    height: 11px;
    background: #C7D6EE;
}

.report-page .dr-whisker::before {
    left: 0;
}

.report-page .dr-whisker::after {
    right: 0;
}

.report-page .dr-iqr {
    top: 0;
    height: 100%;
    background: #6FA2D9;
    border-radius: 6px;
}

.report-page .dr-mark {
    width: 3px;
    height: 30px;
    background: #030B47;
    top: -5px;
    transform: translateX(-50%);
}

.report-page .dr-mark-pill {
    position: absolute;
    transform: translateX(-50%);
    top: -28px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #030B47;
    color: #fff;
    font-size: calc(10px + 2px);
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
}

.report-page .dr-mean {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #94A3B8;
    border-radius: 50%;
    top: 4px;
    transform: translateX(-50%);
}

.report-page .detail-range-legend {
    display: flex;
    gap: 22px;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid #EEF1F5;
    flex-wrap: wrap;
    color: #6B7280;
    font-family: var(--report-sans);
    font-size: calc(11px + 2px);
    font-weight: 600;
    align-items: center;
}

.report-page .detail-range-legend .lg-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.report-page .detail-range-legend .lg-item span {
    display: inline-block;
    width: 24px;
    height: 10px;
    border-radius: 3px;
}

.report-page .detail-range-legend .lg-iqr {
    background: #6FA2D9;
}

.report-page .detail-range-legend .lg-med {
    width: 3px;
    height: 14px;
    background: #030B47;
    border-radius: 2px;
}

.report-page .detail-range-legend .lg-mean {
    width: 10px;
    height: 10px;
    border: 2px solid #94A3B8;
    border-radius: 50%;
    background: #fff;
}

.report-page .other-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-page .info-card {
    padding: 22px 24px;
    border: 1px solid #D1D3D4;
    border-radius: 16px;
    background: #fff;
}

.report-page .info-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #EEF1F5;
}

.report-page .info-card-head h3 {
    margin: 0;
    flex: 1;
    font-family: var(--report-sans);
    font-size: 18px;
    line-height: 1.25;
    color: #030B47;
    font-weight: 700;
}

.report-page .info-card-head .badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--report-sans);
    font-weight: 700;
    font-size: calc(11px + 2px);
    letter-spacing: .04em;
}

.report-page .info-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: center;
}

.report-page .donut-mini {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.report-page .donut-mini canvas {
    width: 100% !important;
    height: 100% !important;
}

.report-page .donut-center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.report-page .donut-center .val {
    color: #030B47;
    font-family: var(--report-sans);
    font-size: calc(22px + 2px);
    font-weight: 700;
    line-height: 1;
}

.report-page .donut-center .lab {
    margin-top: 4px;
    color: #6B7280;
    font-family: var(--report-sans);
    font-size: calc(10px + 2px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-page .info-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-page .info-row {
    display: grid;
    grid-template-columns: 12px 1fr 36px 56px;
    gap: 10px;
    align-items: center;
    color: #030B47;
    font-family: var(--report-sans);
    font-size: calc(12px + 2px);
}

.report-page .info-row .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.report-page .info-row .name {
    font-weight: 600;
}

.report-page .info-row .count,
.report-page .info-row .pct {
    font-weight: 700;
    color: #6B7280;
}

.report-page .info-row .count {
    text-align: right;
}

.report-page .info-row .pct {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-page .cargo-detail-view {
    margin-top: 4px;
    font-family: var(--report-sans);
}

.report-page .cargo-detail-view .section {
    margin-top: 24px;
}

.report-page .benefit-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 10px;
}

.report-page .benefit-card h4 {
    margin: 0;
    align-self: center;
    font-size: calc(16px + 2px);
    line-height: 1.25;
}

.report-page .benefit-row,
.report-page .benefit-bar,
.report-page .benefit-foot {
    grid-column: 1 / -1;
}

.report-page .benefit-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.report-page .benefit-pct {
    font-size: calc(28px + 2px);
    font-weight: 700;
    line-height: 1;
}

.report-page .benefit-counts {
    font-size: calc(12px + 2px);
    font-weight: 600;
    color: #666;
}

.report-page .benefit-bar {
    position: relative;
    height: 6px;
    background: #EEF1F5;
    border-radius: 999px;
    overflow: hidden;
}

.report-page .benefit-bar>span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
}

.report-page .benefit-foot {
    padding-top: 10px;
    border-top: 1px solid #EEF1F5;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: calc(12px + 2px);
    color: #666;
    line-height: 1.35;
}

.report-page .benefit-foot strong {
    color: #2B2B2B;
}

.report-page .practice-copy {
    font-size: calc(13px + 2px);
    line-height: 1.7;
    color: #445064;
}

.report-page .practice-copy p+p {
    margin-top: 10px;
}

.report-page .report-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #FFFBEA;
    border: 1px dashed #F9B408;
    color: #7A5C00;
    font-size: calc(13px + 2px);
    line-height: 1.5;
}

.report-page .report-note i {
    color: #F9B408;
    margin-top: 2px;
}

.report-page #salarial-detail,
.report-page .cargo-detail-view {
    display: block;
}

/* ---------------------- METODOLOGÍA ---------------------- */

.methodology-page .methodology-intro {
    padding: 28px 32px;
}

.methodology-page .methodology-intro h2 {
    margin: 0 0 8px;
    color: #030B47;
    font-size: 28px;
    font-weight: 700;
}

.methodology-page .methodology-intro p {
    margin: 0;
    color: #6B7280;
    font-size: 15px;
    line-height: 1.7;
}

.methodology-page .methodology-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    margin-bottom: 28px;
    background: #F7F8FA;
    border: 1px solid #EEF1F5;
    border-radius: 14px;
}

.methodology-page .methodology-tabs .tab-item {
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-radius: 10px;
}

.methodology-page .methodology-tabs .tab-item i {
    flex-shrink: 0;
    font-size: 17px;
}

.methodology-page .methodology-tabs .tab-item.active {
    color: #fff;
    background: #030B47;
}

.methodology-page .methodology-section-title {
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.methodology-page .methodology-section-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff !important;
    background: #030B47;
    border-radius: 8px;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.methodology-page .methodology-section-title h3 {
    font-size: 21px;
}

.methodology-page .methodology-filter {
    padding: 0;
    background: transparent;
    border: none;
}

.methodology-page .methodology-filter .search-input {
    flex: 0 1 340px;
}

.methodology-page .methodology-company-card {
    overflow: hidden;
}

.methodology-page .methodology-company-head {
    padding: 18px 24px;
    color: #fff;
    background: #030B47;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.methodology-page .methodology-list-scroll {
    overflow-x: auto;
}

.methodology-page .methodology-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 720px;
}

.methodology-page .methodology-company {
    min-height: 58px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    color: #1F2937;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}

.methodology-page .methodology-company:nth-child(6n + 4),
.methodology-page .methodology-company:nth-child(6n + 5),
.methodology-page .methodology-company:nth-child(6n + 6) {
    background: #F7F8FA;
}

.methodology-page .methodology-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    background: #fff;
    text-align: center;
}

.methodology-page .methodology-no-results {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    background: #fff;
    text-align: center;
}

.methodology-page .methodology-empty i {
    color: #94A3B8;
    font-size: 32px;
}

.methodology-page .methodology-no-results i {
    color: #94A3B8;
    font-size: 30px;
}

.methodology-page .methodology-empty p {
    margin: 0;
    font-size: 14px;
}

.methodology-page .methodology-no-results p {
    margin: 0;
    font-size: 14px;
}

.methodology-page .methodology-list-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.methodology-page .methodology-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.methodology-page .methodology-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
}

.methodology-page .methodology-pagination button.active {
    color: #fff;
    background: #030B47;
}

.methodology-page .methodology-pagination button:disabled {
    color: #CBD5E1;
}

.methodology-page .methodology-content-section {
    margin-top: 30px;
}

.methodology-page .methodology-rich-text {
    color: #1F2937;
    font-size: 14px;
    line-height: 1.75;
}

.methodology-page .methodology-rich-text p {
    margin: 0 0 10px;
}

.methodology-page .methodology-rich-text h4 {
    margin: 0 0 8px;
    color: #030B47;
    font-size: 17px;
    font-weight: 700;
}

.methodology-page .methodology-stacked-text {
    margin-top: 30px;
}

.methodology-page .methodology-stacked-text h4 {
    margin-top: 26px;
}

.methodology-page .methodology-highlight-card {
    padding: 42px 48px;
    color: #1F2937;
    background: #F1F7FE;
    border: 1px solid #BED0E7;
    border-radius: 22px;
}

.methodology-page .methodology-quote {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.methodology-page .methodology-source {
    max-width: 760px;
    margin: 0 auto;
    color: #6B7280;
    font-size: 16px;
}

.methodology-page .methodology-bullet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 48px;
    margin-top: 26px;
    color: #1F2937;
    font-size: 14px;
}

.methodology-page .methodology-bullet-grid span {
    position: relative;
    padding-left: 20px;
    line-height: 1.45;
}

.methodology-page .methodology-bullet-grid span::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #2D5C8A;
    border-radius: 50%;
}

.methodology-page .methodology-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.methodology-page .methodology-info-card {
    min-height: 132px;
    padding: 22px 24px;
    color: #111827;
    background: #fff;
    border: 1px solid #8AA6C8;
    border-radius: 14px;
}

.methodology-page .methodology-info-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.methodology-page .methodology-info-card h4 i {
    color: #2D5C8A;
}

.methodology-page .methodology-info-card p {
    margin: 0 0 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.65;
}

.methodology-page .methodology-info-card p:last-child {
    margin-bottom: 0;
}

.methodology-page .methodology-section-lead {
    margin: -6px 0 18px;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.7;
}

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

    .methodology-page .methodology-bullet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .methodology-page .methodology-intro {
        padding: 22px;
    }

    .methodology-page .methodology-tabs {
        grid-template-columns: 1fr;
    }

    .methodology-page .methodology-list-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .methodology-page .methodology-highlight-card {
        padding: 28px 24px;
    }

    .methodology-page .methodology-card-grid,
    .methodology-page .methodology-bullet-grid {
        grid-template-columns: 1fr;
    }
}

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

    .report-page .other-info-grid {
        grid-template-columns: 1fr;
    }

    .report-page .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {

    .report-page .report-head,
    .report-page .detail-range,
    .report-page .info-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-page .report-head-actions {
        width: 100%;
    }

    .report-page .report-btn {
        width: 100%;
        justify-content: center;
    }

    .report-page .cargo-kpi-grid {
        grid-template-columns: 1fr;
    }

    .report-page .cargos-table-head,
    .report-page .cargo-row {
        grid-template-columns: minmax(160px, 1fr) 70px repeat(9, minmax(84px, 1fr)) 28px;
    }

    .report-page .cargos-table-head .hc,
    .report-page .cargo-row>div {
        padding-left: 12px;
        padding-right: 12px;
    }

    .report-page .dr-label {
        min-width: 0;
        padding-top: 0;
    }
}

/* ===================== IMPORT LOADER OVERLAY ===================== */

#import-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.283);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#import-loader.is-visible {
    opacity: 1;
}

.import-loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.import-loader__logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    animation: importLoaderPulse 1.5s ease-in-out infinite;
}

.import-loader__text {
    color: #ffffff;
    font-size: calc(16px + 2px);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.import-loader__text small {
    display: block;
    margin-top: 0.3rem;
    font-size: calc(14px + 2px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes importLoaderPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.92);
    }
}

/* ===================== IRHJ-191 & 192 ===================== */

.cargo-matrix-card {
    padding: 8px 26px 22px;
    border: 1px solid #D1D3D4;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 28px;
}

.cargo-matrix-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 14px;
}

.cargo-matrix-head h3 {
    margin: 0;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: #030B47;
}

.matrix-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #C7D6EE;
    background: #EBF2FA;
    color: #030B47;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.matrix-toggle-btn:hover {
    background: #DCEAFA;
    border-color: #6FA2D9;
}

.matrix-toggle-btn i {
    transition: transform .2s ease;
    font-size: 11px;
}

.matrix-toggle-btn.is-open i {
    transform: rotate(180deg);
}

.cargo-matrix-table {
    margin-bottom: 0;
}

.cargo-matrix-table thead th {
    background-color: #F8FAFC;
    color: #64748B;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #EEF1F5;
    white-space: nowrap;
}

.cargo-matrix-table tbody td {
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 15px;
    color: #334155;
    white-space: nowrap;
}

.cargo-matrix-table .row-avg td {
    font-weight: 700;
    color: #030B47;
}

.cargo-matrix-table tbody.matrix-pct-body {
    display: none;
}

.cargo-matrix-table tbody.matrix-pct-body.is-open {
    display: table-row-group;
}

.cargo-matrix-table .row-p50 {
    background: #F2F6FC;
}

.cargo-matrix-table .row-p50 td {
    font-weight: 700;
    color: #030B47;
}

.matrix-median-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #E8EEF8;
    color: #2B4C72;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.cargo-matrix-table .cell-muted {
    color: #B7C0CC;
}

.cargo-matrix-legend {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid #EEF1F5;
    color: #6B7280;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
}

.is-hidden {
    display: none !important;
}

.homolog-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.homolog-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: none;
    cursor: pointer;
}

.homolog-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.homolog-switch-track {
    position: absolute;
    inset: 0;
    background: #D1D3D4;
    border-radius: 999px;
    transition: background .18s ease;
    pointer-events: none;
}

.homolog-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}

.homolog-switch input:checked+.homolog-switch-track {
    background: #030B47;
}

.homolog-switch input:checked+.homolog-switch-track .homolog-switch-thumb {
    transform: translateX(18px);
}

.homolog-switch input:focus-visible+.homolog-switch-track {
    box-shadow: 0 0 0 3px rgba(111, 162, 217, .45);
}

.homolog-switch-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-weight: 700;
    font-size: calc(13px + 2px);
    color: #030B47;
    cursor: pointer;
    user-select: none;
}

.homolog-switch-text small {
    font-weight: 600;
    font-size: calc(10px + 2px);
    color: #6B7280;
    margin-top: 2px;
}

.salarial-filter {
    gap: 22px;
}

.filter-divider {
    width: 1px;
    align-self: stretch;
    background: #EEF1F5;
}

.badge i {
    margin-right: 2px;
    font-size: 10px;
}

.badge.red {
    background: #FBE6E9;
    color: #FF3B30;
}

.badge.yellow {
    background: rgba(255, 198, 11, .18);
    color: #8A6D00;
}

.cargos-legend {
    padding: 14px 20px;
    border-top: 1px solid #EEF1F5;
    color: #6B7280;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
}

.cargos-legend .badge {
    margin: 0 2px;
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compare-area-group {
    margin-bottom: 22px;
}

.compare-area-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 2px;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
}

.compare-area-title i {
    color: #94A3B8;
}

.compare-card {
    padding: 20px 24px 22px;
    margin-bottom: 16px;
    border: 1px solid #D1D3D4;
    border-radius: 14px;
    background: #fff;
}

.compare-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EEF1F5;
}

.compare-card-titles h3 {
    margin: 6px 0 3px;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: #030B47;
}

.compare-homolog-badge {
    padding: 3px 10px !important;
    font-size: calc(10px + 2px) !important;
}

.compare-market-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--report-sans, 'Inter', sans-serif);
    color: #6FA2D9;
    font-weight: 600;
    font-size: calc(12px + 2px);
}

.area-pill-sm {
    padding: 6px 14px;
    border-radius: 999px;
    background: #EEF1F5;
    color: #030B47;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-weight: 700;
    font-size: calc(11px + 2px);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.compare-block-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: calc(13px + 2px);
    font-weight: 700;
    color: #030B47;
}

.compare-block-label i {
    color: #94A3B8;
    width: 16px;
    text-align: center;
}

.compare-table {
    margin-bottom: 0;
}

.compare-table thead th {
    background-color: #F8FAFC;
    color: #64748B;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #EEF1F5;
    white-space: nowrap;
}

.compare-table tbody td {
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
}

.compare-table tbody td.highlight {
    font-weight: 700;
    color: #030B47;
}

.compare-connector {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 18px 0;
    color: #94A3B8;
    font-family: var(--report-sans, 'Inter', sans-serif);
    font-size: calc(10px + 2px);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.compare-connector::before,
.compare-connector::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #EEF1F5;
}

.compare-connector i {
    color: #6FA2D9;
}

.compare-block-company {
    padding: 14px 16px 16px;
    border: 1px solid #E8F0FE;
    border-radius: 12px;
    background: #F7FAFF;
}

.compare-block-company .compare-table thead th {
    background-color: #EFF5FE;
}

.cards-1 {
    background: #EFF2FC;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
}

.cards-2 {
    background: #EEF2FF;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
}

.cards-3 {
    background: #ECF8FF;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
}

.cards-4 {
    background: #FFEEDD;
    border: none;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
}

.percentage-number {
    font-size: 35px !important;
}

.cards-1 .percentage-number {
    color: #030B47;
}

.cards-2 .percentage-number {
    color: #1E40AF;
}

.cards-3 .percentage-number {
    color: #0284C7;
}

.cards-4 .percentage-number {
    color: #F57C00;
}

.card-element {
    background: #F8FAFC;
    border: 1px solid #D1D3D4;
    border-radius: 12px;
    padding: 30px;
    transition: 0.3s;
}

.positioning-indicators .cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.positioning-indicators .card {
    min-height: 126px;
}

@media (max-width: 768px) {
    .positioning-indicators .cards-container {
        grid-template-columns: 1fr;
    }
}

.sub .text-firt {
    color: #2E3A5F;
    font-size: 15px;
    font-weight: bold;
}

.sub .text-second {
    color: #64748B;
    font-size: 13px;
    font-weight: normal;
}

.info-icon {
    color: #3232324D;
    border: 1.5px solid #3232324D;
    border-radius: 20px;
    font-size: 10px !important;
    padding: 5px;
}

.info-icon {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-icon:focus-visible {
    outline: 2px solid #6FA2D9;
    outline-offset: 3px;
}

.home-info-popover {
    position: fixed;
    z-index: 10001;
    box-sizing: border-box;
    max-width: 360px;
    padding: 12px 14px;
    color: #555;
    background: #fff;
    border: 2px solid #E1E4E8;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(3, 11, 71, .14);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.home-info-popover.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .home-info-popover {
        max-width: calc(100vw - 32px);
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* ==========================================================================
   REPORTES BENEFICIOS REDESIGN
   ========================================================================== */

/* Page Background & Container */
body:has(.report-page),
#layout-content:has(.report-page),
.report-page.dashboard-container {
    background-color: #F4F7FB !important;
}

/* Recuadros Blancos (Cards) */
.report-page .dashboard-header,
.report-page .report-white-card,
.report-page .report-chart-card {
    background: #FFFFFF !important;
    border: 1px solid #D1D3D4 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

.report-page .dashboard-header {
    padding: 20px 25px !important;
    margin-bottom: 22px !important;
}

.report-page .content-dash-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #030B47;
    margin: 0 0 5px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.report-page .content-dash-header p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.45;
}

/* Sub-bar Encuesta IRH en Números - Idéntico a survey-summary de Home */
.report-page .report-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
    padding: 0;
    border-bottom: none !important;
    flex-wrap: wrap;
}

.report-page .report-subbar .subbar-title {
    flex: 1 1 auto;
    margin: 0;
    color: #7D8DA1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.report-page .report-subbar .subbar-stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.report-page .report-subbar .subbar-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    white-space: nowrap;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.report-page .report-subbar .subbar-stat-item strong {
    color: #030B47;
    font-size: 14px;
    font-weight: 700;
    margin-right: 2px;
    font-family: 'Inter', sans-serif;
}

/* Header buttons */
.report-page .report-head-actions .btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #D1D3D4;
    background: #FFFFFF;
    color: #2B4C72;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 40px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.report-page .report-head-actions .btn-filter-toggle:hover,
.report-page .report-head-actions .btn-filter-toggle.active {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #030B47;
}

.report-page .report-head-actions .btn-export-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid #030B47;
    background: #030B47;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 40px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.report-page .report-head-actions .btn-export-dark:hover {
    background: #152763;
    border-color: #152763;
    color: #FFFFFF;
}

/* Section Headings - Idéntico a dashboard-title y charts-heading de Home */
.report-page .dashboard-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.report-page .dashboard-title h3,
.report-page .kpi-section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #030B47;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.report-page .dashboard-title span {
    font-size: 14px !important;
    color: #64748B !important;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif;
}

/* KPI Indicators Card Container */
.report-page .kpi-section-card {
    padding: 20px 24px !important;
    margin-bottom: 24px !important;
}

.report-page .kpi-section-header {
    margin-bottom: 16px;
}

.report-page .cards-container.kpi-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
}

.report-page .kpi-card {
    border-radius: 12px !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.report-page .kpi-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.report-page .kpi-card .kpi-card-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    margin: 0 0 10px 0 !important;
    align-self: flex-start !important;
    flex-shrink: 0 !important;
}

.report-page .kpi-card .value {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
    align-self: flex-start !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    color: #030B47 !important;
}

.report-page .kpi-card h4 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #030B47 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    align-self: flex-start !important;
    display: block !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
}

.report-page .kpi-card span {
    font-size: 12px !important;
    color: #64748B !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
}

/* Card Themes */
.report-page .kpi-card-blue {
    background-color: #EFF6FF !important;
    border-color: #DBEAFE !important;
}
.report-page .kpi-card-blue .kpi-card-icon {
    background-color: #DBEAFE !important;
    color: #1D4ED8 !important;
}
.report-page .kpi-card-blue .value {
    color: #030B47 !important;
}

.report-page .kpi-card-green {
    background-color: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
}
.report-page .kpi-card-green .kpi-card-icon {
    background-color: #D1FAE5 !important;
    color: #047857 !important;
}
.report-page .kpi-card-green .value {
    color: #047857 !important;
}

.report-page .kpi-card-orange {
    background-color: #FFF7ED !important;
    border-color: #FFEDD5 !important;
}
.report-page .kpi-card-orange .kpi-card-icon {
    background-color: #FFEDD5 !important;
    color: #C2410C !important;
}
.report-page .kpi-card-orange .value {
    color: #C2410C !important;
}

.report-page .kpi-card-cyan {
    background-color: #F0F9FF !important;
    border-color: #BAE6FD !important;
}
.report-page .kpi-card-cyan .kpi-card-icon {
    background-color: #E0F2FE !important;
    color: #0284C7 !important;
}
.report-page .kpi-card-cyan .value {
    color: #0284C7 !important;
}

/* Grids & Cards */
.report-page .report-grid-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.report-page .report-grid-two-cols .full-width {
    grid-column: 1 / -1;
}

.report-page .report-chart-card {
    padding: 20px 24px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
}

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

.report-page .report-card-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #030B47;
    margin: 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.report-page .report-card-subtitle {
    font-size: 14px;
    color: #888888;
    margin: 3px 0 0 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.report-page .report-card-badge {
    background-color: #F1F5F9;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #E2E8F0;
    font-family: 'Inter', sans-serif;
}

.report-page .report-info-icon {
    color: #CBD5E1;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.report-page .report-info-icon:hover {
    color: #64748B;
}

/* Tables - Idéntico a las tablas de Home */
.report-page .report-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.report-page .report-table thead th {
    background-color: #F8FAFC;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    border-bottom: 1px solid #E2E8F0;
    border-top: none;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
}

.report-page .report-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    color: #3F3F46;
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
}

.report-page .report-table tbody tr:last-child td {
    border-bottom: none;
}

.report-page .tbl-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.report-page .tbl-progress-track {
    flex: 1;
    max-width: 140px;
    height: 6px;
    background-color: #F1F5F9;
    border-radius: 999px;
    overflow: hidden;
}

.report-page .tbl-progress-fill {
    height: 100%;
    background-color: #030B47;
    border-radius: 999px;
}

.report-page .tbl-progress-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #030B47;
    min-width: 34px;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.report-page .badge-company-investment {
    display: inline-block;
    padding: 3px 10px;
    background-color: #ECFDF5;
    color: #059669;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

/* Responsive queries */
@media (max-width: 992px) {
    .report-page .cards-container.kpi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .report-page .report-grid-two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .report-page .cards-container.kpi-cards-grid {
        grid-template-columns: 1fr;
    }
    .report-page .report-subbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Terms & Conditions Modal (IRHJ-318)
   ========================================================================== */
.terms-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.terms-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.terms-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px rgba(3, 11, 71, 0.2);
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.terms-modal-backdrop.active .terms-modal-card {
    transform: translateY(0) scale(1);
}

.terms-modal-header {
    padding: 28px 32px 14px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
}

.terms-header-titles {
    flex: 1;
}

.terms-modal-title {
    margin: 0 0 6px 0;
    font-size: 19px;
    font-weight: 600;
    color: #030B47;
    line-height: 1.35;
}

.terms-modal-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: #555555;
    font-weight: 400;
}

.terms-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.terms-modal-close-btn:hover {
    background: #f1f5f9;
    color: #030B47;
}

.terms-modal-body {
    padding: 10px 32px 18px 32px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.65;
    color: #555555;
}

.terms-modal-paragraphs {
    white-space: pre-line;
    margin-bottom: 16px;
    color: #555555;
}

.terms-pdf-download {
    margin: 14px 0 10px;
}

.terms-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #030B47;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: underline;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.terms-pdf-link:hover {
    color: #1E349E;
    opacity: 0.8;
}

.terms-pdf-link i {
    color: #dc2626;
    font-size: 15px;
}

.terms-consultation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #030B47;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 10px;
}

.terms-modal-footer {
    padding: 14px 32px 28px 32px;
    background: #ffffff;
}

.terms-acceptance-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #444444;
    font-weight: 500;
}

.terms-checkbox-input {
    width: 17px;
    height: 17px;
    accent-color: #030B47;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.terms-checkbox-text {
    font-size: 13px;
    color: #444444;
    font-weight: 500;
    line-height: 1.4;
}

.terms-actions {
    display: flex;
    justify-content: flex-end;
}

.terms-btn-submit {
    padding: 12px 28px;
    border-radius: 10px;
    border: 1.5px solid #030B47;
    background: #030B47;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all ease 0.3s;
    box-shadow: 0 4px 12px rgba(3, 11, 71, 0.15);
}

.terms-btn-submit:hover:not(:disabled) {
    opacity: 0.85;
    background: #02072f;
    transform: translateY(-1px);
}

.terms-btn-submit:disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.terms-close-group {
    display: flex;
    justify-content: flex-end;
}

.terms-btn-close {
    padding: 10px 24px;
    border-radius: 10px;
    border: 1.5px solid #030B47;
    background: white;
    color: #030B47;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all ease 0.3s;
}

.terms-btn-close:hover {
    background: #030B47;
    color: white;
}

/* ==========================================================================
   FIGMA REDESIGN: MERCADO SALARIAL & EXPORT DRAWER (Jobs-main)
   ========================================================================== */

/* Header Mercado Salarial */
.report-page .page-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0 0 6px 0;
    font-family: 'Inter', sans-serif;
}

.report-page .page-subtitle {
    font-size: 13px;
    color: #5F6368;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* Scope Switch Card [ Mercado | Mi empresa ] */
.scope-switch-card {
    display: inline-flex;
    align-items: center;
    background: #F3F6FB;
    border: 1px solid #E0E0E0;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
}

.scope-switch-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #5F6368;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.scope-switch-btn:hover {
    color: #1D2D63;
}

.scope-switch-btn.active {
    background: #030B47;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(3, 11, 71, 0.08);
}

/* Outlined CSV / Excel Export Button */
.btn-export-excel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    background: #030B47;
    border: 1px solid #030B47;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 3px rgba(3, 11, 71, 0.12);
}

.btn-export-excel:hover {
    background: #17225E;
    border-color: #17225E;
}

/* Card de Filtros Figma (V1_Container) */
.figma-filters-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.figma-filters-title {
    font-size: 14px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0 0 12px 0;
    font-family: 'Inter', sans-serif;
}

.figma-filters-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.figma-main-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.figma-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.figma-filter-field--search {
    flex: 0 1 240px;
    min-width: 170px;
}

.figma-filter-field--area {
    flex: 0 1 220px;
    min-width: 160px;
}

.figma-filter-field--cargo {
    flex: 0 1 280px;
    min-width: 200px;
}

.figma-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #1D2D63;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* Buscador de cargos */
.figma-search-wrap {
    position: relative;
    width: 100%;
    max-width: 240px;
    display: flex;
    align-items: center;
}

.figma-search-icon {
    position: absolute;
    left: 10px;
    color: #8B9097;
    pointer-events: none;
    flex-shrink: 0;
}

.figma-search-input {
    width: 100%;
    height: 36px;
    padding: 0 32px 0 34px;
    background: #F3F6FB;
    border: 1px solid #E0E5EA;
    border-radius: 8px;
    font-size: 13px;
    color: #2B2B2B;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
}

.figma-search-input:focus {
    outline: none;
    border-color: #030B47;
    background: #FFFFFF;
}

.figma-search-input::placeholder {
    color: #8B9097;
}

.figma-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #8B9097;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-search-clear:hover {
    color: #2B2B2B;
}

/* Controles de la derecha (Toggles + Filtros avanzados) */
.figma-toggles-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Toggles segmentados [ Mensual | Anual ] & [ Millones | Miles ] */
.figma-segmented {
    display: inline-flex;
    align-items: center;
    height: 31px;
    background: #F3F6FB;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.figma-segmented-item {
    border: none;
    background: transparent;
    height: 27px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.figma-segmented-item:hover {
    color: #1D2D63;
}

.figma-segmented-item.active {
    background: #FFFFFF;
    color: #1D2D63;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(3, 11, 71, 0.08);
}

/* Variante pill (Figma: toggle de tarjeta Niveles jerárquicos | Rubros) */
.figma-segmented.figma-segmented--pill {
    height: auto;
    padding: 4px;
    gap: 4px;
    background: #F0F3F9;
    border: 1px solid #DDE3EE;
    border-radius: 999px;
}

.figma-segmented--pill .figma-segmented-item {
    height: 32px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
}

.figma-segmented--pill .figma-segmented-item:hover {
    color: #0F1B4C;
}

.figma-segmented--pill .figma-segmented-item.active {
    background: #0F1B4C;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: none;
}

/* Botón Filtros Avanzados */
.btn-advanced-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 31px;
    padding: 0 14px;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.btn-advanced-filters:hover {
    background: #F0F2F5;
}

.btn-advanced-filters.active,
.btn-advanced-filters[aria-expanded="true"] {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
    font-weight: 600;
}

.adv-close-badge {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #BFDBFE;
    background: #DBEAFE;
    color: #1D4ED8;
}

/* Dropdowns en línea (Inline Filter Pills) */
.figma-advanced-dropdowns {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F1F3F4;
}

.figma-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.figma-filter-pill {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.pill-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: #F3F6FB;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}

.pill-trigger:hover,
.figma-filter-pill.open .pill-trigger {
    background: #EDF2F9;
    border-color: #CBD5E1;
}

.pill-label {
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
}

.pill-value {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #1D2D63;
    text-align: left;
    margin-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pill-chevron {
    color: #5F6368;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.figma-filter-pill.open .pill-chevron {
    transform: rotate(180deg);
}

.pill-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
}

.figma-filter-pill.open .pill-menu {
    display: block;
}

.pill-option {
    padding: 8px 12px;
    font-size: 12px;
    color: #2B2B2B;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.pill-option:hover {
    background: #F3F6FB;
    color: #030B47;
}

.pill-option.active {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

/* Modificadores para pastillas superiores de Área y Cargo */
.figma-filter-pill--top {
    width: 100%;
    min-width: 0;
    flex: initial;
}

.figma-filter-pill--area,
#pillArea {
    width: 220px;
    min-width: 160px;
    max-width: 240px;
}

.figma-filter-pill--cargo,
#pillCargo {
    width: 280px;
    min-width: 200px;
    max-width: 320px;
}

.figma-filter-pill--top .pill-trigger {
    background: #F3F6FB;
    border: 1px solid #E0E5EA;
    border-radius: 8px;
    height: 36px;
    min-width: 0;
}

.figma-filter-pill--top .pill-trigger:hover,
.figma-filter-pill--top.open .pill-trigger {
    background: #FFFFFF;
    border-color: #030B47;
}

.figma-filter-pill--top .pill-value {
    color: #2B2B2B;
    font-weight: 500;
    min-width: 0;
}

.figma-filter-pill--top .pill-value.active-val {
    color: #030B47;
    font-weight: 600;
}

.figma-filter-pill--top .pill-menu {
    min-width: 240px;
    max-width: 360px;
    width: max-content;
}

.figma-filter-pill--top .pill-option {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .figma-main-filters {
        flex-wrap: wrap;
    }
    .figma-filter-field--search,
    .figma-filter-field--area,
    .figma-filter-field--cargo,
    .figma-search-wrap,
    .figma-filter-pill--area,
    .figma-filter-pill--cargo,
    #pillArea,
    #pillCargo {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .figma-filter-pill--top .pill-menu {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Búsqueda dentro del menú de pastilla */
.pill-menu:has(.pill-menu-items),
#pillCargoMenu {
    max-height: none;
    overflow: hidden;
}

.pill-menu-search-wrap {
    padding: 8px 10px;
    border-bottom: 1px solid #F1F3F4;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 2;
}

.pill-menu-search-input {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #F8FAFC;
    color: #2B2B2B;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
}

.pill-menu-search-input:focus {
    border-color: #030B47;
    background: #FFFFFF;
}

.pill-menu-items {
    max-height: 230px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.pill-menu-items::-webkit-scrollbar {
    width: 6px;
}

.pill-menu-items::-webkit-scrollbar-track {
    background: transparent;
}

.pill-menu-items::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.pill-menu-items::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Acciones de Filtro (Aplicar y Limpiar) */
.figma-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-filter-apply {
    height: 30px;
    padding: 0 20px;
    background: #030B47;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.btn-filter-apply:hover {
    background: #17225E;
}

.btn-filter-clear {
    height: 30px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1px solid #030B47;
    border-radius: 8px;
    color: #030B47;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.btn-filter-clear:hover {
    background: #F3F6FB;
}

/* ==========================================================================
   TABLA DE CARGOS CON SEPARADORES (Table with Separators)
   ========================================================================== */

.figma-cargos-table-wrapper {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.figma-table-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 52px;
    padding: 0 24px;
    background: #FFFFFF;
}

.figma-table-pagination-bar.border-bottom {
    border-bottom: 1px solid #E0E5EA;
}

.figma-table-pagination-bar.border-top {
    border-top: 1px solid #E0E5EA;
}

.pagination-left-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-page-size {
    height: 32px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
}

.select-page-size:focus {
    border-color: #030B47;
}

.table-results-counter,
.table-showing-counter {
    font-size: 13px;
    color: #5F6368;
    font-family: 'Inter', sans-serif;
}

.pagination-nav-flex {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #5F6368;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.page-btn:hover:not(:disabled) {
    background: #F3F6FB;
    color: #1D2D63;
}

.page-btn.active {
    background: #030B47;
    color: #FFFFFF;
    font-weight: 700;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-btn.page-arrow {
    font-size: 16px;
    font-weight: 700;
}

.table-scroll-container {
    overflow-x: auto;
}

.table-min-width-wrap {
    min-width: 1150px;
}

/* Grid layout idéntico a Jobs-main */
.figma-cargos-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) 68px minmax(96px, 1.05fr) minmax(104px, 1.15fr) minmax(84px, 0.95fr) minmax(88px, 1fr) minmax(62px, 0.7fr) minmax(62px, 0.7fr) minmax(88px, 1fr) minmax(124px, 1.4fr) minmax(88px, 1fr) 20px;
    align-items: center;
    column-gap: 8px;
    padding: 0 20px;
}

/* Capa de líneas divisorias idéntica a Jobs-main Lineas() */
.lines-layer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) 68px minmax(96px, 1.05fr) minmax(104px, 1.15fr) minmax(84px, 0.95fr) minmax(88px, 1fr) minmax(62px, 0.7fr) minmax(62px, 0.7fr) minmax(88px, 1fr) minmax(124px, 1.4fr) minmax(88px, 1fr) 20px;
    column-gap: 8px;
    padding: 0 20px;
}

.lines-layer span.has-line {
    margin-left: -4px;
    border-left: 1px solid #E0E0E0;
}

/* Cabecera agrupada de 2 pisos */
.figma-table-head-tier1 {
    position: relative;
    background: #F8FAFC;
    border-bottom: 1px solid #E0E0E0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.figma-table-head-tier2 {
    position: relative;
    background: #F8FAFC;
    border-bottom: 1px solid #E0E0E0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.th-label-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.th-label-wrap.justify-center {
    justify-content: center;
}

.th-label-wrap.justify-end {
    justify-content: flex-end;
}

.th-cell {
    font-size: 12px;
    font-weight: 700;
    color: #5F6368;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.th-cell.th-center {
    text-align: center;
}

.th-cell.th-group-title {
    color: #1D2D63;
    text-align: center;
}

.th-cell.sub {
    font-size: 11px;
    font-weight: 600;
    color: #5F6368;
    text-align: center;
}

/* Sección de Área (acordeón expandible idéntico a Jobs-main) */
.area-section {
    display: block;
}

.area-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 49px;
    padding: 0 20px;
    background: #F8FAFC;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.area-group-head:hover {
    background: #F1F5F9;
}

.area-group-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1D2D63;
}

.area-chevron {
    color: #5F6368;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.area-section.collapsed .area-chevron,
.area-group.collapsed .area-chevron {
    transform: rotate(-90deg);
}

.area-group-count {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #5F6368;
}

.area-section.collapsed .area-content {
    display: none;
}

.area-group-rows {
    display: block;
}

.area-group.collapsed .area-group-rows {
    display: none;
}

/* Filas de Cargo */
.cargo-row-grid {
    position: relative;
    border-bottom: 1px solid #F1F3F4;
    min-height: 66px;
    padding-top: 16px;
    padding-bottom: 16px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.cargo-row-grid:hover {
    background: #F8FAFC;
}

.cargo-row-grid:last-child {
    border-bottom: none;
}

/* Celdas de la fila */
.cell-cargo-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cargo-title-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #1D2D63;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

.cargo-area-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #5F6368;
    margin-top: 4px;
}

.cell-cases {
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cell-num {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cell-num.muted {
    color: #5F6368;
    font-weight: 500;
}

.cell-num.total-cash {
    font-weight: 700;
    color: #1D2D63;
}

.cell-num.highlight-p50 {
    font-weight: 700;
    color: #2E7D32;
}

.cell-chevron {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #5F6368;
    transition: transform 0.15s ease, color 0.15s ease;
}

.cargo-row-grid:hover .cell-chevron {
    transform: translateX(2px);
    color: #030B47;
}

/* Líneas divisorias verticales gestionadas por .lines-layer */

/* ==========================================================================
   TARJETA DE COMPARACIÓN (TarjetaComparacion)
   ========================================================================== */

.compare-area-block {
    margin-top: 16px;
}

.compare-area-block:first-child {
    margin-top: 8px;
}

.compare-area-accordion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.compare-area-chevron {
    color: #5F7085;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.compare-area-chevron.collapsed {
    transform: rotate(-90deg);
}

.compare-area-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5F7085;
    transition: color 0.15s ease;
}

.compare-area-accordion-btn:hover .compare-area-title {
    color: #1D2D63;
}

.compare-area-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.compare-area-cards-wrap.is-hidden {
    display: none;
}

.tarjeta-comparacion {
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tarjeta-comparacion-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tarjeta-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tarjeta-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #1D2D63;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.def-irh-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #E4F1FE;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1D2D63;
    font-family: 'Inter', sans-serif;
}

.tarjeta-area-pill {
    border-radius: 999px;
    background: #F0F4F8;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1D2D63;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.tarjeta-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #E0E0E0;
}

.tarjeta-block-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1D2D63;
    font-family: 'Inter', sans-serif;
}

.tarjeta-subtable-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
}

/* Todas las columnas visibles sin scroll horizontal (como el Excel): las columnas se reparten
   el ancho de la tarjeta; el min-width solo actúa como piso en pantallas angostas. */
.tarjeta-grid-mercado {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.8fr);
    align-items: center;
    column-gap: 10px;
    padding: 0 12px;
    min-width: 820px;
}

.tarjeta-grid-empresa {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(5, minmax(0, 1.05fr));
    align-items: center;
    column-gap: 10px;
    padding: 0 12px;
    min-width: 820px;
}

.tarjeta-subtable-head {
    min-height: 44px;
    background: #F7FAFC;
    border-bottom: 1px solid #E0E0E0;
}

.tarjeta-subtable-row {
    height: 48px;
    background: #FFFFFF;
}

.tarjeta-th {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #5F6368;
    white-space: normal;
    overflow-wrap: normal;
    padding: 8px 0;
    min-width: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.tarjeta-th .irh-tooltip-trigger {
    flex-shrink: 0;
}

.tarjeta-th.v-line {
    height: 100%;
    border-left: 1px solid #E0E0E0;
    padding-left: 8px;
}

.tarjeta-td {
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.tarjeta-td.muted {
    font-size: 13px;
    color: #5B6B80;
}

.tarjeta-td.total-cash {
    font-size: 15px;
    font-weight: 800;
    color: #1D2D63;
}

.tarjeta-td.v-line {
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #E0E0E0;
    padding-left: 8px;
}

.tarjeta-td {
    min-width: 0;
}

.tarjeta-td.v-line .ratio-bar-wrap {
    width: 100%;
    min-width: 0;
    gap: 6px;
}

.tarjeta-td.v-line .ratio-track {
    flex: 1 1 auto;
    width: auto;
    min-width: 28px;
}

/* Tipografía compacta para que las 9 columnas entren con aire entre valores. */
.tarjeta-subtable-row .tarjeta-td {
    font-size: 13px;
}

.tarjeta-subtable-row .tarjeta-td.muted {
    font-size: 12px;
}

.tarjeta-subtable-row .tarjeta-td.total-cash {
    font-size: 14px;
}

.tarjeta-subtable-row .ratio-text {
    font-size: 12px;
}

.tarjeta-subtable-row .delta-pill {
    padding: 3px 8px;
    font-size: 11px;
}

.ratio-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ratio-text {
    font-size: 13px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.ratio-track {
    display: flex;
    height: 9px;
    width: 110px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
    flex-shrink: 0;
}

.ratio-fill-fixed {
    height: 100%;
    background: #030B47;
}

.ratio-fill-variable {
    height: 100%;
    background: #EAB308;
}

.delta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.delta-pill-pos {
    background: #E8F8EE;
    color: #107C41;
}

.delta-pill-neg {
    background: #FEE2E2;
    color: #DC2626;
}

/* Compa-ratio levemente por debajo del mercado (de -10% a menos de 0%). */
.delta-pill-warn {
    background: #FEF3C7;
    color: #B45309;
}

/* ==========================================================================
   DRAWER DE EXPORTACIÓN A EXCEL (ExportDrawer)
   ========================================================================== */

.figma-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 11, 71, 0.25);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.figma-drawer-backdrop.active {
    display: block;
}

.figma-export-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    max-width: 100vw;
    background: #FFFFFF;
    border-left: 1px solid #E0E0E0;
    box-shadow: -8px 0 28px rgba(3, 10, 71, 0.18);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.figma-export-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
}

.drawer-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.drawer-btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #5F6368;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.drawer-btn-close:hover {
    background: #F3F6FB;
    color: #1D2D63;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.drawer-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1D2D63;
    margin-bottom: 12px;
}

.drawer-tree-area {
    margin-bottom: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.drawer-tree-area:hover {
    border-color: #CBD5E1;
}

.drawer-tree-area.is-open {
    border-color: #BFDBFE;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

.drawer-area-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #F8FAFC;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    gap: 12px;
}

.drawer-area-head:hover {
    background: #F1F5F9;
}

.drawer-tree-area.is-open .drawer-area-head {
    background: #F8FAFC;
    border-bottom: 1px solid #EFF6FF;
}

.drawer-area-head-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.drawer-area-title {
    font-size: 13px;
    font-weight: 600;
    color: #1D2D63;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-area-badge {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

.drawer-area-chevron-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: transform 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
}

.drawer-tree-area.is-open .drawer-area-chevron-wrap {
    transform: rotate(180deg);
    color: #1D4ED8;
}

.drawer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1D2D63;
    cursor: pointer;
    user-select: none;
}

.drawer-area-items {
    padding: 8px 12px 10px 36px;
    background: #FFFFFF;
}

.drawer-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.drawer-item-row:hover {
    color: #0F172A;
}

.drawer-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid #BCBEC0;
    border-radius: 4px;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.figma-custom-checkbox.checked {
    background: #030B47;
    border-color: #030B47;
    color: #FFFFFF;
}

.figma-custom-checkbox.partial {
    background: #030B47;
    border-color: #030B47;
}

.figma-custom-checkbox.partial::after {
    content: '';
    width: 8px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
}

.drawer-footer {
    padding: 18px 24px;
    border-top: 1px solid #E0E0E0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-context-note {
    font-size: 12px;
    color: #5F6368;
    text-align: center;
}

.drawer-context-note.is-error {
    color: #B91C1C;
    font-weight: 600;
}

.btn-drawer-download {
    width: 100%;
    height: 42px;
    background: #030B47;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.btn-drawer-download:hover {
    background: #17225E;
}

.btn-drawer-download:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
}

/* ==========================================================================
   CARGO DETAIL REDESIGN (Figma / Jobs-main CargoDetail.tsx)
   ========================================================================== */

.cargo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1D2D63;
    text-decoration: none;
    margin-bottom: 20px;
    transition: opacity 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.cargo-back-link:hover {
    opacity: 0.7;
    color: #1D2D63;
    margin-bottom: 20px;
}

.cargo-hero-figma {
    position: sticky;
    top: 16px;
    z-index: 30;
    overflow: hidden;
    border-radius: 12px;
    color: #FFFFFF;
    background: #182463 linear-gradient(135deg, #2A3586 0%, #080E39 100%);
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(8, 14, 57, 0.2);
    font-family: 'Inter', sans-serif;
    margin-bottom: 32px;
}

.hero-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.hero-title-group {
    min-width: 0;
}

.hero-area-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 4px;
}

.hero-cargo-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.hero-scope-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 500;
    white-space: nowrap;
}

.scope-pill-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.hero-meta-row {
    font-size: 12px;
    color: #C7D0EF;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hero-meta-row strong {
    color: #FFFFFF;
    font-weight: 700;
}

.detail-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2B2B2B;
    margin-top: 32px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.detail-desc-card {
    background: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #2B2B2B;
    font-family: 'Inter', sans-serif;
}

.detail-desc-card p {
    margin: 0;
}

.detail-matrix-card {
    background: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 16px;
    padding: 24px;
    font-family: 'Inter', sans-serif;
}

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

.matrix-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.matrix-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #030B47;
    margin: 0;
}

.matrix-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.detail-table-wrap {
    border: 1px solid #ECEEF2;
    border-radius: 10px;
    overflow-x: auto;
}

.detail-cargo-table {
    width: 100%;
    border-collapse: collapse;
    /* Debajo de este ancho (tablet/móvil) vuelve el scroll horizontal del contenedor. */
    min-width: 820px;
}

.detail-cargo-table th {
    background: #F7F8FA;
    border-bottom: 1px solid #ECEEF2;
    padding: 12px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: #5F6368;
    /* Los encabezados pueden partirse en dos líneas para que la tabla entre sin scroll. */
    white-space: normal;
}

.detail-cargo-table th.th-left,
.detail-cargo-table td.td-left {
    text-align: left;
}

.detail-cargo-table th.th-right,
.detail-cargo-table td.td-right {
    text-align: right;
}

.detail-cargo-table td {
    padding: 14px 10px;
    white-space: nowrap;
    border-bottom: 1px solid #F1F3F4;
    font-size: 13px;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.detail-cargo-table tr:last-child td {
    border-bottom: none;
}

.detail-cargo-table tr.highlight-p50 {
    background: #F7F9FD;
}

.badge-mediana {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #E7F5EF;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 700;
}

.ratio-bar-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.ratio-val {
    font-size: 13px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.ratio-track {
    display: inline-flex;
    height: 9px;
    width: 110px;
    border-radius: 999px;
    overflow: hidden;
    background: #ECEEF2;
}

.detail-cargo-table .ratio-bar-inline {
    gap: 6px;
}

.detail-cargo-table .ratio-track {
    width: 56px;
}

.ratio-fill-fixed {
    height: 100%;
    background: #030B47;
    transition: width 0.2s ease;
}

.ratio-fill-var {
    height: 100%;
    background: #FCCD06;
    transition: width 0.2s ease;
}

.matrix-legend-text {
    font-size: 12px;
    color: #6F6F6F;
    margin-top: 14px;
    line-height: 1.4;
}

/* Beneficios Grid */
.detail-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .detail-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.detail-benefit-card {
    background: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 16px;
    padding: 24px;
    font-family: 'Inter', sans-serif;
}

.benefit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.benefit-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F7F8FA;
    color: #030B47;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Figma "Beneficios" del detalle de cargo: seguro en azul, alimentaria en verde (IRHJ-332) */
.detail-benefit-card .benefit-icon-box,
.detail-benefit-card .badge-cases {
    background: #F3F6FB;
    color: #030B47;
}

.detail-benefit-card.is-food .benefit-icon-box,
.detail-benefit-card.is-food .badge-cases {
    background: #EBF9EB;
    color: #2E7D32;
}

/* Tooltip HTML de la dona: fuera del canvas para no recortarse y por encima del centro */
.mini-donut-tooltip {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, calc(-100% - 8px));
    background: #030B47;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.mini-donut-tooltip .tt-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-donut-tooltip .tt-body {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-donut-tooltip .tt-swatch {
    width: 10px;
    height: 10px;
    border: 1px solid #FFFFFF;
    flex-shrink: 0;
}

.benefit-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
}

.badge-cases {
    border-radius: 999px;
    background: #F7F8FA;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #2B2B2B;
}

.benefit-card-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mini-donut-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.mini-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.cov-val {
    font-size: 16px;
    font-weight: 800;
    color: #1D2D63;
    line-height: 1;
}

.cov-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6F6F6F;
    margin-top: 2px;
}

.benefit-breakdown-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2B2B2B;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.info-row:hover {
    background: #F7F8FA;
}

.info-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-row .name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row .count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.info-row .pct {
    width: 64px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   REPORTE DE BENEFICIOS (Figma Parity Redesign)
   ========================================================================== */

/* Page Surface */
.dashboard-container.surface-beneficios {
    background-color: #F4F7FB;
    min-height: 100vh;
    padding: 48px 28px;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 1280px) {
    .dashboard-container.surface-beneficios {
        padding: 48px 40px;
    }
}

.surface-beneficios .beneficios-inner {
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.surface-beneficios .beneficios-header {
    margin-bottom: 32px;
}

.surface-beneficios .beneficios-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
    line-height: 1.2;
}

.surface-beneficios .beneficios-header p {
    margin-top: 4px;
    font-size: 14px;
    color: #6F6F6F;
    margin-bottom: 0;
}

/* Beneficios Filter Bar (Figma V1_Container) */
.surface-beneficios .beneficios-filter-bar {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.surface-beneficios .beneficios-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #071442;
    margin: 0 0 16px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.surface-beneficios .beneficios-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.surface-beneficios .beneficios-pills-row {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.surface-beneficios .beneficios-pills-row .figma-filter-pill {
    position: relative;
    flex: 1 1 0%;
    min-width: 210px;
}

.surface-beneficios .beneficios-pills-row .figma-filter-pill .pill-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: #F3F6FB;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-beneficios .beneficios-pills-row .figma-filter-pill .pill-trigger:hover,
.surface-beneficios .beneficios-pills-row .figma-filter-pill.open .pill-trigger {
    background: #E8EEFA;
    box-shadow: 0 0 0 2px rgba(3, 11, 71, 0.18);
}

.surface-beneficios .beneficios-pills-row .pill-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
}

.surface-beneficios .beneficios-pills-row .pill-value {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1D2D63;
    text-align: left;
    margin-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surface-beneficios .beneficios-pills-row .pill-chevron {
    color: #5F6368;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.surface-beneficios .beneficios-pills-row .figma-filter-pill.open .pill-chevron {
    transform: rotate(180deg);
}

.surface-beneficios .beneficios-actions-row {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.surface-beneficios .beneficios-actions-row .btn-filter-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 20px;
    background: #030B47;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-beneficios .beneficios-actions-row .btn-filter-apply:hover {
    background: #0A1560;
}

.surface-beneficios .beneficios-actions-row .btn-filter-apply:active {
    background: #020836;
}

.surface-beneficios .beneficios-actions-row .btn-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #030B47;
    border-radius: 8px;
    color: #030B47;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-beneficios .beneficios-actions-row .btn-filter-clear:hover {
    background: #F3F6FB;
}

.surface-beneficios .beneficios-actions-row .btn-filter-clear:active {
    background: #E8EEFA;
}

.surface-beneficios .beneficios-actions-row .btn-filter-clear:disabled {
    cursor: not-allowed;
    border-color: #C7CBDB;
    color: #8B90A6;
    background: #FFFFFF;
}

/* Figma Chart Card */
.surface-beneficios .chart-card-figma {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.surface-beneficios .chart-card-figma .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.surface-beneficios .chart-card-figma .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #071442;
    margin: 0;
    line-height: 1.2;
}

.surface-beneficios .chart-card-figma.title-md .card-title {
    font-size: 16px;
}

.surface-beneficios .chart-card-figma .card-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #6F6F6F;
    margin-bottom: 0;
}

.surface-beneficios .chart-card-figma .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
}

.surface-beneficios .chart-card-figma.card-centrado .card-body,
.surface-beneficios .chart-card-figma .card-body-centrado {
    justify-content: center;
}

/* Section Title */
.surface-beneficios .section-title-figma {
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 800;
    color: #030B47;
    line-height: 1.2;
}

/* Donut Breakdown */
.surface-beneficios .donut-breakdown-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.surface-beneficios .donut-circle-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.surface-beneficios .donut-center-badge {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.surface-beneficios .donut-center-badge .pct {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .donut-center-badge .label {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #030B47;
    line-height: 1;
}

.surface-beneficios .donut-center-badge .sub {
    margin-top: 4px;
    font-size: 11px;
    color: #64748B;
    line-height: 1;
}

.surface-beneficios .donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 260px;
    flex: 1 1 0%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-beneficios .donut-legend-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px;
    width: 100%;
    cursor: help;
}

.surface-beneficios .donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.surface-beneficios .donut-legend-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2B2B2B;
}

.surface-beneficios .donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.surface-beneficios .donut-legend-pct {
    font-size: 14px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .donut-legend-track {
    height: 6px;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
    background: #F1F5F9;
}

.surface-beneficios .donut-legend-bar {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out, filter 0.2s ease;
}

.surface-beneficios .donut-legend-item:hover .donut-legend-bar {
    filter: brightness(1.1);
}

/* Columns Average */
.surface-beneficios .columns-avg-wrap {
    display: flex;
    flex-direction: column;
}

.surface-beneficios .columns-avg-plot {
    position: relative;
    padding-top: 28px;
    height: 208px;
}

.surface-beneficios .columns-avg-plot-inner {
    position: relative;
    height: 180px;
}

.surface-beneficios .columns-avg-line {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #94A3B8;
}

.surface-beneficios .columns-avg-line-label {
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
}

.surface-beneficios .columns-avg-bars {
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: space-around;
    gap: 32px;
    /* Margen para la etiqueta "Prom. X%", que va a la derecha: ninguna barra la tapa. */
    padding-right: 72px;
}

.surface-beneficios .columns-avg-col {
    position: relative;
    display: flex;
    height: 100%;
    flex: 1 1 0%;
    min-width: 0;
    cursor: help;
    align-items: flex-end;
    justify-content: center;
}

.surface-beneficios .columns-avg-val {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.surface-beneficios .columns-avg-bar {
    width: 56px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: height 0.5s ease-out, filter 0.2s ease;
}

.surface-beneficios .columns-avg-col:hover .columns-avg-bar {
    filter: brightness(1.1);
}

.surface-beneficios .columns-avg-labels {
    margin-top: 12px;
    display: flex;
    justify-content: space-around;
    gap: 32px;
    padding-right: 72px;
}

.surface-beneficios .columns-avg-label {
    flex: 1 1 0%;
    min-width: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #0F1B4C;
    white-space: nowrap;
}

/* Grouped Columns */
.surface-beneficios .grouped-cols-legend {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.surface-beneficios .grouped-cols-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.surface-beneficios .grouped-cols-legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.surface-beneficios .grouped-cols-legend-item .text {
    font-size: 12px;
    font-weight: 500;
    color: #2B2B2B;
}

.surface-beneficios .grouped-cols-chart-wrap {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    padding-top: 8px;
}

.surface-beneficios .grouped-cols-axis-y {
    position: relative;
    flex-shrink: 0;
    text-align: right;
    height: 240px;
    width: 36px;
}

.surface-beneficios .grouped-cols-tick {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    font-size: 10px;
    color: #6F6F6F;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .grouped-cols-plot-wrap {
    position: relative;
    min-width: 760px;
    flex: 1;
}

.surface-beneficios .grouped-cols-gridlines {
    position: absolute;
    left: 0;
    right: 0;
    height: 240px;
    pointer-events: none;
}

.surface-beneficios .grouped-cols-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #ECEEF2;
}

.surface-beneficios .grouped-cols-groups {
    position: relative;
    display: flex;
    height: 240px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.surface-beneficios .grouped-cols-group {
    display: flex;
    height: 100%;
    min-width: 0;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}

.surface-beneficios .grouped-cols-bar-wrap {
    position: relative;
    display: flex;
    height: 100%;
    width: 14px;
    flex-direction: column;
    justify-content: flex-end;
    cursor: help;
}

.surface-beneficios .grouped-cols-bar-val {
    margin-bottom: 4px;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.surface-beneficios .grouped-cols-bar {
    width: 100%;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    transition: height 0.5s ease-out, filter 0.2s ease;
}

.surface-beneficios .grouped-cols-bar-wrap:hover .grouped-cols-bar {
    filter: brightness(1.1);
}

.surface-beneficios .grouped-cols-cats {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #D9DDE3;
    padding-top: 10px;
}

.surface-beneficios .grouped-cols-cat {
    min-width: 0;
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #2B2B2B;
}

/* Ranked Bar Table */
.surface-beneficios .ranked-bar-table {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.surface-beneficios .ranked-bar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFC;
    padding: 12px 20px;
}

.surface-beneficios .ranked-bar-head .th-label {
    flex-shrink: 0;
    width: 196px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #071442;
}

.surface-beneficios .ranked-bar-head .th-spacer {
    flex: 1;
}

.surface-beneficios .ranked-bar-head .th-val {
    flex-shrink: 0;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #071442;
}

.surface-beneficios .ranked-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-beneficios .ranked-bar-row {
    display: flex;
    height: 64px;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #E2E8F0;
    padding: 0 20px;
    cursor: help;
    transition: background 0.15s ease;
}

.surface-beneficios .ranked-bar-row.striped {
    background: #F8FAFC;
}

.surface-beneficios .ranked-bar-row:not(.striped) {
    background: #FFFFFF;
}

.surface-beneficios .ranked-bar-row:hover {
    background: #EEF2F6;
}

.surface-beneficios .ranked-bar-name {
    flex-shrink: 0;
    width: 196px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #181D31;
}

.surface-beneficios .ranked-bar-track {
    height: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    border-radius: 9999px;
    background: #F1F5F9;
}

.surface-beneficios .ranked-bar-fill {
    display: block;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease-out, filter 0.2s ease;
}

.surface-beneficios .ranked-bar-row:hover .ranked-bar-fill {
    filter: brightness(1.1);
}

.surface-beneficios .ranked-bar-pct {
    width: 42px;
    flex-shrink: 0;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* SparkBar Table */
.surface-beneficios .spark-bar-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.surface-beneficios .spark-bar-inner {
    min-width: 860px;
}

.surface-beneficios .spark-bar-head {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    padding: 16px 24px;
}

.surface-beneficios .spark-bar-head .th-sector {
    min-width: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #475569;
}

.surface-beneficios .spark-bar-head .th-col {
    display: flex;
    width: 160px;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.surface-beneficios .spark-bar-head .th-col .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.surface-beneficios .spark-bar-head .th-col .name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0F172A;
}

.surface-beneficios .spark-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-beneficios .spark-bar-row {
    display: flex;
    height: 66px;
    align-items: center;
    border-top: 1px solid #E2E8F0;
    padding: 0 24px;
}

.surface-beneficios .spark-bar-row.striped {
    background: #F8FAFC;
}

.surface-beneficios .spark-bar-row:not(.striped) {
    background: #FFFFFF;
}

.surface-beneficios .spark-bar-sector {
    min-width: 0;
    flex: 1;
    padding-right: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

.surface-beneficios .spark-bar-cell {
    display: flex;
    width: 160px;
    flex-shrink: 0;
    flex-direction: column;
    gap: 6px;
    cursor: help;
}

.surface-beneficios .spark-bar-val {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .spark-bar-track {
    height: 6px;
    width: 120px;
    overflow: hidden;
    border-radius: 3px;
    background: #E2E8F0;
}

.surface-beneficios .spark-bar-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out, filter 0.2s ease;
}

.surface-beneficios .spark-bar-cell:hover .spark-bar-fill {
    filter: brightness(1.1);
}

/* Prevalencia Table */
.surface-beneficios .prevalencia-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.surface-beneficios .prevalencia-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.surface-beneficios .prevalencia-table thead tr {
    background: #F1F5F9;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4B5563;
}

.surface-beneficios .prevalencia-table th {
    padding: 16px 24px;
    text-align: left;
    border: none;
}

.surface-beneficios .prevalencia-table tbody tr {
    border-top: 1px solid #E2E8F0;
}

.surface-beneficios .prevalencia-table tbody tr.striped {
    background: #F8FAFC;
}

.surface-beneficios .prevalencia-table tbody tr:not(.striped) {
    background: #FFFFFF;
}

.surface-beneficios .prevalencia-table td {
    padding: 16px 24px;
    border: none;
}

.surface-beneficios .prevalencia-col-name {
    width: 24%;
    font-size: 14px;
    font-weight: 700;
    color: #0B0C30;
}

.surface-beneficios .prevalencia-col-bar {
    width: 26%;
}

.surface-beneficios .prevalencia-bar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.surface-beneficios .prevalencia-track {
    height: 6px;
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #F1F5F9;
}

.surface-beneficios .prevalencia-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #0B0C30;
}

.surface-beneficios .prevalencia-pct-val {
    font-size: 14px;
    font-weight: 700;
    color: #0B0C30;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .prevalencia-col-inv {
    width: 24%;
    font-size: 14px;
    font-weight: 700;
    color: #0B0C30;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .prevalencia-col-period {
    font-size: 14px;
    color: #64748B;
}

/* Level Table */
.surface-beneficios .level-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.surface-beneficios .level-table-inner {
    min-width: 440px;
}

.surface-beneficios .level-table-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.surface-beneficios .level-table-head {
    height: 44px;
    background: #F8FAFC;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.03em;
    color: #4B5563;
}

.surface-beneficios .level-table-head span.left {
    text-align: left;
}

.surface-beneficios .level-table-head span.center {
    text-align: center;
}

.surface-beneficios .level-table-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-beneficios .level-table-row {
    height: 68px;
    border-top: 1px solid #E2E8F0;
}

.surface-beneficios .level-table-row.striped {
    background: #F8FAFC;
}

.surface-beneficios .level-table-row:not(.striped) {
    background: #FFFFFF;
}

.surface-beneficios .level-table-cell {
    font-size: 14px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.surface-beneficios .level-table-cell.col-nivel {
    text-align: left;
    font-weight: 700;
    color: #111625;
}

.surface-beneficios .level-table-cell.col-empresas {
    text-align: center;
    font-weight: 500;
    color: #4B5563;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .level-table-cell.col-inversion {
    text-align: center;
    font-weight: 700;
    color: #4B5563;
    font-variant-numeric: tabular-nums;
}

.surface-beneficios .level-table-cell.col-custom {
    text-align: center;
    font-weight: 500;
    color: #4B5563;
    font-variant-numeric: tabular-nums;
}

/* Floating Chart Tooltip */
.chart-tooltip-floating {
    pointer-events: none;
    position: fixed;
    z-index: 200;
    max-width: 320px;
    width: max-content;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    color: #1A1A1A;
    box-shadow: 0px 8px 24px rgba(15, 23, 42, 0.14), 0px 2px 6px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Inter', sans-serif;
    transform: translate(-50%, -100%);
    transition: opacity 0.1s ease;
}

.chart-tooltip-floating .tooltip-title {
    font-weight: 700;
    color: #071442;
    margin-bottom: 2px;
}

.chart-tooltip-floating .tooltip-val {
    font-size: 13px;
    font-weight: 800;
    color: #0f1b4c;
}

.chart-tooltip-floating .tooltip-sub {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
}

/* Grid helper for 2 cols */
.surface-beneficios .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .surface-beneficios .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
}

/* Vertical Spacing & Utilities for Beneficios */
.surface-beneficios .mb-6 {
    margin-bottom: 24px !important;
}

.surface-beneficios .mb-8 {
    margin-bottom: 32px !important;
}

.surface-beneficios .mt-6 {
    margin-top: 24px !important;
}

.surface-beneficios .mt-8 {
    margin-top: 32px !important;
}

.surface-beneficios .gap-6 {
    gap: 24px !important;
}

/* =========================================================================
   PRÁCTICAS DE GESTIÓN (Figma parity with Jobs-main /practicas)
   ========================================================================= */

.dashboard-container.surface-practicas {
    background-color: #F4F7FB;
    min-height: 100vh;
    padding: 48px 28px;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 1280px) {
    .dashboard-container.surface-practicas {
        padding: 48px 40px;
    }
}

.surface-practicas .practicas-inner {
    max-width: 1314px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.surface-practicas .practicas-header {
    margin-bottom: 32px;
}

.surface-practicas .practicas-header .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #071442;
    margin: 0;
    letter-spacing: -0.01em;
}

.surface-practicas .practicas-header .page-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6F6F6F;
    margin-bottom: 0;
}

/* FilterBar (V1_Container) */
.surface-practicas .practicas-filter-bar {
    background: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.surface-practicas .practicas-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #071442;
    margin: 0 0 16px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.surface-practicas .practicas-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.surface-practicas .practicas-pills-row {
    display: flex;
    flex: 1 1 0%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.surface-practicas .practicas-pills-row .figma-filter-pill {
    position: relative;
    flex: 1 1 0%;
    min-width: 200px;
}

.surface-practicas .practicas-pills-row .figma-filter-pill .pill-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: #F3F6FB;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-practicas .practicas-pills-row .figma-filter-pill .pill-trigger:hover,
.surface-practicas .practicas-pills-row .figma-filter-pill.open .pill-trigger {
    background: #E8EEFA;
    box-shadow: 0 0 0 2px rgba(3, 11, 71, 0.18);
}

.surface-practicas .practicas-pills-row .pill-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
}

.surface-practicas .practicas-pills-row .pill-value {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1D2D63;
    text-align: left;
    margin-left: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surface-practicas .practicas-pills-row .pill-chevron {
    color: #5F6368;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.surface-practicas .practicas-pills-row .figma-filter-pill.open .pill-chevron {
    transform: rotate(180deg);
}

.surface-practicas .practicas-pills-row .pill-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 4px 0;
}

.surface-practicas .practicas-pills-row .figma-filter-pill.open .pill-menu {
    display: block;
}

.surface-practicas .practicas-pills-row .pill-option {
    padding: 6px 12px;
    font-size: 13px;
    color: #2B2B2B;
    cursor: pointer;
    transition: background-color 0.1s ease;
    white-space: nowrap;
}

.surface-practicas .practicas-pills-row .pill-option:hover {
    background: #F3F6FB;
    color: #030B47;
}

.surface-practicas .practicas-pills-row .pill-option.active {
    font-weight: 600;
    background: #E8EEFA;
    color: #030B47;
}

.surface-practicas .practicas-actions-row {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.surface-practicas .practicas-actions-row .btn-filter-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 20px;
    background: #030B47;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-practicas .practicas-actions-row .btn-filter-apply:hover {
    background: #0A1560;
}

.surface-practicas .practicas-actions-row .btn-filter-apply:active {
    background: #020836;
}

.surface-practicas .practicas-actions-row .btn-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 20px;
    background: #FFFFFF;
    border: 1px solid #030B47;
    border-radius: 8px;
    color: #030B47;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.surface-practicas .practicas-actions-row .btn-filter-clear:hover {
    background: #F3F6FB;
}

.surface-practicas .practicas-actions-row .btn-filter-clear:active {
    background: #E8EEFA;
}

/* 2-Column Grid */
.surface-practicas .grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .surface-practicas .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
}

/* Chart Card */
.surface-practicas .chart-card-figma {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.surface-practicas .chart-card-figma .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.surface-practicas .chart-card-figma .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #071442;
    margin: 0;
    line-height: 1.2;
}

.surface-practicas .chart-card-figma .card-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.surface-practicas .chart-card-figma .card-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #6F6F6F;
    margin-bottom: 0;
}

.surface-practicas .chart-card-figma .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
}

.surface-practicas .chart-card-figma.card-centrado .card-body,
.surface-practicas .chart-card-figma .card-body-centrado {
    justify-content: center;
}

/* Card Badge */
.surface-practicas .card-badge-figma {
    flex-shrink: 0;
    border-radius: 4px;
    background: #EBF3FF;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0F1B4C;
    line-height: 1.2;
}

/* NoteBox */
.surface-practicas .note-box-figma {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.5;
    background: #F0F4FF;
    color: #0F1B4C;
}

.surface-practicas .note-box-figma .icon {
    margin-top: 1px;
    flex-shrink: 0;
    color: #0F1B4C;
}

.surface-practicas .note-box-figma p {
    margin: 0;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.5;
    color: #0F1B4C;
}

.surface-practicas .note-box-figma strong {
    font-weight: 700;
    font-size: 12px !important;
    color: #0F1B4C;
}

/* ConclusionBox */
.surface-practicas .conclusion-box-figma {
    margin-top: 24px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 16px;
}

.surface-practicas .conclusion-box-figma .title {
    font-size: 13px !important;
    font-weight: 700;
    color: #0F1B4C;
    margin: 0;
    line-height: 1.4;
}

.surface-practicas .conclusion-box-figma .text {
    margin-top: 2px;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.4;
    color: #64748B;
    margin-bottom: 0;
}

.surface-practicas .conclusion-box-figma p {
    font-size: 12px;
    margin: 0;
}

/* 1. MaturityBar */
.surface-practicas .maturity-bar-wrap {
    padding-top: 20px;
}

.surface-practicas .maturity-numbers-row {
    display: flex;
    gap: 2px;
}

.surface-practicas .maturity-number-item {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.surface-practicas .maturity-number-item .val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.surface-practicas .maturity-track-row {
    margin-top: 4px;
    display: flex;
    height: 16px;
    gap: 2px;
    overflow: hidden;
    border-radius: 8px;
}

.surface-practicas .maturity-track-seg {
    height: 100%;
    cursor: help;
    transition: filter 0.15s ease;
}

.surface-practicas .maturity-track-seg:hover {
    filter: brightness(1.1);
}

.surface-practicas .maturity-labels-row {
    margin-top: 8px;
    display: flex;
    gap: 2px;
}

.surface-practicas .maturity-label-item {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}

.surface-practicas .maturity-breakdown-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.surface-practicas .maturity-breakdown-item {
    display: flex;
    height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    padding: 0 12px;
    cursor: help;
    transition: border-color 0.15s ease;
}

.surface-practicas .maturity-breakdown-item:hover {
    border-color: #CBD5E1;
}

.surface-practicas .maturity-breakdown-left {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.surface-practicas .maturity-breakdown-dot {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 3px;
}

.surface-practicas .maturity-breakdown-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    color: #0F1B4C;
}

.surface-practicas .maturity-breakdown-val {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* 2, 5, 6. ThinBarTable */
.surface-practicas .thin-bar-table {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.surface-practicas .thin-bar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 12px 20px;
}

.surface-practicas .thin-bar-head .th-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0F1B4C;
}

.surface-practicas .thin-bar-head .th-spacer {
    flex: 1 1 0%;
}

.surface-practicas .thin-bar-head .th-val {
    flex-shrink: 0;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0F1B4C;
}

.surface-practicas .thin-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-practicas .thin-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 20px;
    transition: background-color 0.15s ease;
    cursor: help;
}

.surface-practicas .thin-bar-row:last-child {
    border-bottom: none;
}

.surface-practicas .thin-bar-row.striped {
    background: #F8FAFC;
}

.surface-practicas .thin-bar-row:not(.striped) {
    background: #FFFFFF;
}

.surface-practicas .thin-bar-row:hover {
    background: #F1F5F9;
}

.surface-practicas .thin-bar-name {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surface-practicas .thin-bar-track {
    height: 6px;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
    border-radius: 4px;
    background: #E5E7EB;
}

.surface-practicas .thin-bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #0F1B4C;
    transition: width 0.5s ease-out, filter 0.15s ease;
}

.surface-practicas .thin-bar-row:hover .thin-bar-fill {
    filter: brightness(1.2);
}

.surface-practicas .thin-bar-pct {
    width: 52px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: #0F1B4C;
}

/* 3. StackedColumns */
.surface-practicas .stacked-cols-wrap {
    display: flex;
    flex-direction: column;
}

.surface-practicas .stacked-cols-main {
    display: flex;
    gap: 12px;
    /* Espacio para las etiquetas de nivel, que van debajo del eje (fuera de los 240px del plot). */
    padding-bottom: 28px;
}

.surface-practicas .stacked-cols-axis-y {
    position: relative;
    flex-shrink: 0;
    text-align: right;
    height: 240px;
    width: 32px;
}

.surface-practicas .stacked-cols-tick {
    position: absolute;
    right: 0;
    transform: translateY(50%);
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.surface-practicas .stacked-cols-plot {
    position: relative;
    min-width: 0;
    flex: 1 1 0%;
    height: 240px;
}

.surface-practicas .stacked-cols-gridlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.surface-practicas .stacked-cols-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #EEF2F7;
}

.surface-practicas .stacked-cols-columns {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 240px;
}

.surface-practicas .stacked-cols-cell {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 0%;
    height: 240px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.surface-practicas .stacked-cols-bar-stack {
    display: flex;
    width: 36px;
    height: 240px;
    flex-direction: column-reverse;
    gap: 2px;
    overflow: hidden;
    border-radius: 6px;
}

.surface-practicas .stacked-cols-segment {
    position: relative;
    display: grid;
    place-items: center;
    transition: filter 0.15s ease;
    cursor: help;
}

.surface-practicas .stacked-cols-segment:hover {
    filter: brightness(1.15);
}

.surface-practicas .stacked-cols-segment-val {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.surface-practicas .stacked-cols-col-label {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.surface-practicas .stacked-cols-legend {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.surface-practicas .stacked-cols-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.surface-practicas .stacked-cols-legend-item .box {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.surface-practicas .stacked-cols-legend-item .text {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

/* TooltipSgTc Popover */
.surface-practicas .tooltip-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1D2D63;
    padding: 2px;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.surface-practicas .tooltip-info-btn:hover {
    color: #030B47;
    background-color: #F1F5F9;
}

.surface-practicas .tooltip-sg-tc-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 304px;
    border-radius: 14px;
    border: 1px solid #E7ECF4;
    background: #FFFFFF;
    padding: 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 27, 76, 0.18), 0 8px 10px -6px rgba(15, 27, 76, 0.1);
    z-index: 200;
    display: none;
}

.surface-practicas .tooltip-sg-tc-popover.open {
    display: block;
}

.surface-practicas .tooltip-sg-tc-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.surface-practicas .tooltip-sg-tc-header .icon {
    margin-top: 1px;
    flex-shrink: 0;
    color: #1D2D63;
}

.surface-practicas .tooltip-sg-tc-header .title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #1D2D63;
}

.surface-practicas .tooltip-sg-tc-divider {
    margin-top: 8px;
    height: 1px;
    width: 100%;
    background: #EEF2F7;
}

.surface-practicas .tooltip-sg-tc-diagram {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.surface-practicas .tooltip-sg-tc-total {
    width: 156px;
    border-radius: 8px;
    border: 1px solid #DCE7F5;
    background: #F7FAFF;
    padding: 6px 12px;
    text-align: center;
}

.surface-practicas .tooltip-sg-tc-total .sigla {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #1B2A4A;
    margin: 0;
}

.surface-practicas .tooltip-sg-tc-total .nombre {
    margin-top: 1px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    color: #5F6E85;
    margin-bottom: 0;
}

.surface-practicas .tooltip-sg-tc-bracket {
    flex-shrink: 0;
}

.surface-practicas .tooltip-sg-tc-branches {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
}

.surface-practicas .tooltip-sg-tc-branch {
    display: flex;
    width: 130px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.surface-practicas .tooltip-sg-tc-branch .badge {
    width: 100%;
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.surface-practicas .tooltip-sg-tc-branch .formula {
    font-size: 10px;
    font-weight: 700;
}

.surface-practicas .tooltip-sg-tc-text {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #2B2B2B;
    margin-bottom: 0;
}

/* 4. DonutBreakdown (Remuneración Variable) */
.surface-practicas .donut-breakdown-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.surface-practicas .donut-circle-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.surface-practicas .donut-center-badge {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.surface-practicas .donut-center-badge .pct {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.surface-practicas .donut-center-badge .label {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 0;
}

.surface-practicas .donut-center-badge .sub {
    margin-top: 4px;
    font-size: 11px;
    color: #64748B;
    line-height: 1;
    margin-bottom: 0;
}

.surface-practicas .donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 240px;
    flex: 1 1 0%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-practicas .donut-legend-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px;
    width: 100%;
    cursor: help;
}

.surface-practicas .donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.surface-practicas .donut-legend-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2B2B2B;
}

.surface-practicas .donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.surface-practicas .donut-legend-pct {
    font-size: 14px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.surface-practicas .donut-legend-track {
    height: 6px;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
    background: #F1F5F9;
}

.surface-practicas .donut-legend-bar {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out, filter 0.2s ease;
}

.surface-practicas .donut-legend-item:hover .donut-legend-bar {
    filter: brightness(1.1);
}

/* 7. NumberedBars (Rotación) */
.surface-practicas .numbered-bars-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-practicas .numbered-bars-row {
    display: flex;
    height: 58px;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    padding: 0 16px;
    transition: border-color 0.15s ease;
    cursor: help;
}

.surface-practicas .numbered-bars-row:hover {
    border-color: #C7D2E4;
}

.surface-practicas .numbered-bars-rank {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.surface-practicas .numbered-bars-text {
    min-width: 0;
    flex: 1 1 0%;
}

.surface-practicas .numbered-bars-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    color: #0F1B4C;
}

.surface-practicas .numbered-bars-cat {
    margin-top: 2px;
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.surface-practicas .numbered-bars-track {
    height: 6px;
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #E5E7EB;
}

.surface-practicas .numbered-bars-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #0F1B4C;
    transition: width 0.5s ease-out;
}

.surface-practicas .numbered-bars-pct {
    width: 50px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 800;
    color: #0F1B4C;
    font-variant-numeric: tabular-nums;
}

.surface-practicas .numbered-bars-pct.rank-top {
    font-size: 18px;
}

.surface-practicas .numbered-bars-pct.rank-normal {
    font-size: 14px;
}

/* 8. PipelineRows (Evaluación de Clima) */
.surface-practicas .pipeline-rows-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-practicas .pipeline-rows-step {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: help;
}

.surface-practicas .pipeline-rows-step:hover .pipeline-rows-fill {
    filter: brightness(1.1);
}

.surface-practicas .pipeline-rows-rank {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.surface-practicas .pipeline-rows-label {
    width: 150px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.surface-practicas .pipeline-rows-track {
    height: 10px;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
    border-radius: 5px;
    background: #E2E8F0;
}

.surface-practicas .pipeline-rows-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-out, filter 0.15s ease;
}

.surface-practicas .pipeline-rows-pct {
    width: 40px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.surface-practicas .pipeline-rows-chevron {
    padding: 8px 0 8px 6px;
    display: flex;
    align-items: center;
}

/* =========================================================================
   DISTRIBUCIÓN MUESTRAL (Figma parity with Jobs-main /distribucion)
   ========================================================================= */

.dashboard-container.surface-distribucion {
    background-color: #F4F7FB;
    min-height: 100vh;
    padding: 48px 28px;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 1280px) {
    .dashboard-container.surface-distribucion {
        padding: 48px 40px;
    }
}

.surface-distribucion .distribucion-inner {
    max-width: 1290px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.surface-distribucion .distribucion-header {
    margin-bottom: 32px;
}

.surface-distribucion .distribucion-header .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #071442;
    margin: 0;
    letter-spacing: -0.01em;
}

.surface-distribucion .distribucion-header .page-meta {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 0;
}

.surface-distribucion .distribucion-header .page-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6F6F6F;
    margin-bottom: 0;
}

/* 2-Column Grid */
.surface-distribucion .grid-2-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .surface-distribucion .grid-2-cols {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* Chart Card */
.surface-distribucion .chart-card-figma {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.surface-distribucion .chart-card-figma .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.surface-distribucion .chart-card-figma .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #071442;
    margin: 0;
    line-height: 1.2;
}

.surface-distribucion .chart-card-figma .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

/* 1. Treemap (Distribución de empresas por rubro) */
.surface-distribucion .treemap-wrap {
    display: flex;
    width: 100%;
    gap: 6px;
    height: 288px;
    min-width: 0;
    overflow: hidden;
}

.surface-distribucion .treemap-col {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.surface-distribucion .treemap-row {
    display: flex;
    min-width: 0;
    min-height: 0;
    gap: 6px;
    overflow: hidden;
}

.surface-distribucion .treemap-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: filter 0.15s ease;
    cursor: help;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.surface-distribucion .treemap-tile:hover {
    filter: brightness(1.1);
}

.surface-distribucion .treemap-tile .tile-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.surface-distribucion .treemap-tile .tile-value {
    margin-top: 4px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0;
}

/* 2 & 5. ThinBarTable (Rango de facturación & Idiomas) */
.surface-distribucion .thin-bar-table {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.surface-distribucion .thin-bar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 12px 20px;
}

.surface-distribucion .thin-bar-head .th-rank {
    width: 20px;
    flex-shrink: 0;
}

.surface-distribucion .thin-bar-head .th-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0F1B4C;
}

.surface-distribucion .thin-bar-head .th-spacer {
    flex: 1 1 0%;
}

.surface-distribucion .thin-bar-head .th-val {
    flex-shrink: 0;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0F1B4C;
}

.surface-distribucion .thin-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-distribucion .thin-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 20px;
    transition: background-color 0.15s ease;
    cursor: help;
}

.surface-distribucion .thin-bar-row:last-child {
    border-bottom: none;
}

.surface-distribucion .thin-bar-row.striped {
    background: #F8FAFC;
}

.surface-distribucion .thin-bar-row:not(.striped) {
    background: #FFFFFF;
}

.surface-distribucion .thin-bar-row:hover {
    background: #F1F5F9;
}

.surface-distribucion .thin-bar-rank {
    width: 20px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    font-variant-numeric: tabular-nums;
}

.surface-distribucion .thin-bar-name {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2B2B2B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surface-distribucion .thin-bar-track {
    height: 6px;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
    border-radius: 4px;
    background: #EDEDED;
}

.surface-distribucion .thin-bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #030B47;
    transition: width 0.5s ease-out, filter 0.15s ease;
}

.surface-distribucion .thin-bar-row:hover .thin-bar-fill {
    filter: brightness(1.2);
}

.surface-distribucion .thin-bar-pct {
    width: 52px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: #2B2B2B;
}

/* 3. StackedBar (Sucursales por zona) */
.surface-distribucion .stacked-bar-total {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #111827;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.surface-distribucion .stacked-bar-total-label {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6B7280;
    margin-bottom: 0;
}

.surface-distribucion .stacked-bar-track {
    margin-top: 32px;
    display: flex;
    height: 40px;
    width: 100%;
    gap: 2px;
    overflow: hidden;
    border-radius: 8px;
}

.surface-distribucion .stacked-bar-seg {
    height: 100%;
    cursor: help;
    transition: filter 0.15s ease;
}

.surface-distribucion .stacked-bar-seg:hover {
    filter: brightness(1.1);
}

.surface-distribucion .stacked-bar-legend {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.surface-distribucion .stacked-bar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 2px 4px;
    transition: background-color 0.15s ease;
    cursor: help;
}

.surface-distribucion .stacked-bar-legend-item:hover {
    background-color: #F8FAFC;
}

.surface-distribucion .stacked-bar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.surface-distribucion .stacked-bar-legend-name {
    flex: 1 1 0%;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.surface-distribucion .stacked-bar-legend-val {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.surface-distribucion .stacked-bar-legend-pct {
    width: 52px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

/* 4. GroupedBars (Dotación por nivel jerárquico y género) */
.surface-distribucion .grouped-bars-legend {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    list-style: none;
    padding: 0;
}

.surface-distribucion .grouped-bars-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.surface-distribucion .grouped-bars-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.surface-distribucion .grouped-bars-legend-text {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

.surface-distribucion .grouped-bars-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-distribucion .grouped-bars-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.surface-distribucion .grouped-bars-cat {
    width: 140px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #2B2B2B;
    line-height: 1.25;
}

.surface-distribucion .grouped-bars-group {
    display: flex;
    min-width: 0;
    flex: 1 1 0%;
    flex-direction: column;
    gap: 8px;
}

.surface-distribucion .grouped-bars-bar-wrap {
    display: flex;
    height: 16px;
    align-items: center;
    gap: 8px;
    cursor: help;
}

.surface-distribucion .grouped-bars-bar {
    height: 12px;
    border-radius: 4px;
    transition: width 0.5s ease-out, filter 0.15s ease;
}

.surface-distribucion .grouped-bars-bar-wrap:hover .grouped-bars-bar {
    filter: brightness(1.1);
}

.surface-distribucion .grouped-bars-val {
    font-size: 13px;
    font-weight: 700;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

/* 6. Dual Donut (Características operativas) */
.surface-distribucion .dual-donut-wrap {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    padding: 8px 0;
}

.surface-distribucion .single-donut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.surface-distribucion .single-donut-circle {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.surface-distribucion .single-donut-center {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.surface-distribucion .single-donut-center .pct {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #0F1B4C;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.surface-distribucion .single-donut-center .caption {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #030B47;
    line-height: 1;
    margin-bottom: 0;
}

.surface-distribucion .single-donut-center .sublabel {
    margin-top: 4px;
    font-size: 12px;
    color: #64748B;
    line-height: 1;
    margin-bottom: 0;
}

.surface-distribucion .single-donut-legend {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.surface-distribucion .single-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.surface-distribucion .single-donut-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.surface-distribucion .single-donut-legend-text {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

/* =========================================================================
   METODOLOGÍA (Figma "Design Jobs (Final) (copia)" › "WorkArea" #4593:1979)
   Valores leídos vía Figma MCP (archivo lCBDdo3Da36xyxmodr7FJD).
   ========================================================================= */

.dashboard-container.surface-metodologia {
    background-color: #F3F6FB;
    min-height: 100vh;
    padding: 40px 40px 64px 48px;
    font-family: 'Roboto', 'Inter', sans-serif;
}

@media (max-width: 767px) {
    .dashboard-container.surface-metodologia {
        padding: 24px 16px 48px;
    }
}

.surface-metodologia .metodologia-inner {
    max-width: 1340px;
    margin: 0 auto;
    font-family: 'Roboto', 'Inter', sans-serif;
}

/* HeaderBlock */
.surface-metodologia .metodologia-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.surface-metodologia .metodologia-header .page-title {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #030B47;
    margin: 0;
}

.surface-metodologia .metodologia-header .page-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #6F6F6F;
}

/* ColumnsContainer */
.surface-metodologia .metodologia-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* FiltroTabsSidebar */
.surface-metodologia .metodologia-sticky-nav {
    display: none;
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .surface-metodologia .metodologia-sticky-nav {
        display: block;
    }
}

.surface-metodologia .metodologia-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-metodologia .metodologia-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2B2B2B;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.surface-metodologia .metodologia-nav-item:hover {
    background: #F3F6FB;
    color: #030B47;
}

.surface-metodologia .metodologia-nav-item.active {
    background: #030B47;
    color: #FFFFFF;
    font-weight: 600;
}

/* ContentSections */
.surface-metodologia .metodologia-content-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 0%;
    min-width: 0;
}

/* Card */
.surface-metodologia .metodologia-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: 32px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    padding: 32px;
}

@media (max-width: 767px) {
    .surface-metodologia .metodologia-card {
        padding: 20px;
    }
}

.surface-metodologia .metodologia-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.surface-metodologia .metodologia-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 6px;
    background: #030B47;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    flex-shrink: 0;
}

.surface-metodologia .metodologia-card-title {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #030B47;
    margin: 0;
}

/* CardBody */
.surface-metodologia .metodologia-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #2B2B2B;
}

.surface-metodologia .metodologia-card-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2B2B2B;
}

/* Sección 2: FilterRow (Search_Bar + contador) */
.surface-metodologia .metodologia-search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.surface-metodologia .metodologia-search-wrap {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.surface-metodologia .metodologia-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5F6368;
    font-size: 14px;
    pointer-events: none;
}

.surface-metodologia .metodologia-search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border-radius: 8px;
    border: 1px solid #D9DEE3;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #2B2B2B;
    background: #F3F6FB;
    outline: none;
    transition: border-color 0.15s ease;
}

.surface-metodologia .metodologia-search-input::placeholder {
    color: #5F6368;
}

.surface-metodologia .metodologia-search-input:focus {
    border-color: #030B47;
}

.surface-metodologia .metodologia-count-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6F6F6F;
}

/* CompaniesTable */
.surface-metodologia .metodologia-table-wrap {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.surface-metodologia .metodologia-table-head {
    background: #030B47;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
}

/* margin-bottom -1px: la última fila no lleva borde inferior (TableRow final sin strokeWeight) */
.surface-metodologia .metodologia-company-grid {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px;
}

.surface-metodologia .metodologia-company-item {
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 14px;
    line-height: 1.2;
    color: #2B2B2B;
    background: #FFFFFF;
}

.surface-metodologia .metodologia-company-item:nth-child(even) {
    background: #F8FAFC;
}

@media (min-width: 640px) {
    .surface-metodologia .metodologia-company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .surface-metodologia .metodologia-company-item:nth-child(even) {
        border-left: 1px solid #E2E8F0;
        background: #FFFFFF;
    }

    /* Cebrado por fila (2 columnas) */
    .surface-metodologia .metodologia-company-item:nth-child(4n+3),
    .surface-metodologia .metodologia-company-item:nth-child(4n+4) {
        background: #F8FAFC;
    }
}

@media (min-width: 1024px) {
    .surface-metodologia .metodologia-company-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .surface-metodologia .metodologia-company-item:nth-child(n) {
        border-left: 1px solid #E2E8F0;
        background: #FFFFFF;
    }

    .surface-metodologia .metodologia-company-item:nth-child(3n+1) {
        border-left: none;
    }

    /* Cebrado por fila (3 columnas) */
    .surface-metodologia .metodologia-company-item:nth-child(6n+4),
    .surface-metodologia .metodologia-company-item:nth-child(6n+5),
    .surface-metodologia .metodologia-company-item:nth-child(6n+6) {
        background: #F8FAFC;
    }
}

.surface-metodologia .metodologia-card-body p.metodologia-empty-notice {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: #6F6F6F;
    margin: 0;
    border-bottom: 1px solid #E2E8F0;
}

/* PaginationFooter (padding-top 12px + gap del CardBody) */
.surface-metodologia .metodologia-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
}

.surface-metodologia .metodologia-pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6F6F6F;
}

.surface-metodologia .metodologia-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.surface-metodologia .metodologia-pagination-btn {
    min-width: 34px;
    height: 34px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #2B2B2B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* PageBtn (flechas): padding 8px, ícono 16px #6F6F6F */
.surface-metodologia .metodologia-pagination-btn[aria-label] {
    padding: 8px;
    color: #6F6F6F;
    font-size: 12px;
}

.surface-metodologia .metodologia-pagination-btn:hover:not(:disabled) {
    background: #F8FAFC;
}

.surface-metodologia .metodologia-pagination-btn.active {
    background: #030B47;
    border-color: #030B47;
    color: #FFFFFF;
    font-weight: 700;
}

.surface-metodologia .metodologia-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Sección 1: QuoteBlock */
.surface-metodologia .metodologia-quote-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    margin: 0;
    border-left: 4px solid #325A84;
    border-radius: 8px;
    background: rgba(243, 246, 251, 0.31);
}

.surface-metodologia .metodologia-card-body .metodologia-quote-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #2B2B2B;
    font-style: normal;
}

.surface-metodologia .metodologia-quote-source {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #6F6F6F;
}

/* Subsection + Line */
.surface-metodologia .metodologia-subsection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.surface-metodologia .metodologia-divider {
    width: 100%;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid #F1F3F4;
    opacity: 1;
}

/* BulletList / Bullet (punto de 6px centrado en caja de 6×24) */
.surface-metodologia .metodologia-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.surface-metodologia .metodologia-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #2B2B2B;
}

.surface-metodologia .metodologia-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #325A84;
}

.surface-metodologia .metodologia-subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #325A84;
    margin: 0;
}

.surface-metodologia .metodologia-subicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(50, 90, 132, 0.08);
    color: #325A84;
    flex-shrink: 0;
}

/* RubrosContainer / RubroTag */
.surface-metodologia .metodologia-rubros-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
}

.surface-metodologia .metodologia-rubro-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: rgba(243, 246, 251, 0.38);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #2B2B2B;
}

.surface-metodologia .metodologia-rubro-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #325A84;
    flex-shrink: 0;
}

/* Sección 14: ConsiderationsGrid (2 filas x 2 ítems) */
.surface-metodologia .metodologia-consideraciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .surface-metodologia .metodologia-consideraciones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.surface-metodologia .metodologia-consideracion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: rgba(243, 246, 251, 0.25);
}

.surface-metodologia .metodologia-consideracion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #030B47;
    margin: 0;
}

.surface-metodologia .metodologia-consideracion-icon {
    width: 24px;
    height: 24px;
    color: #030B47;
    flex-shrink: 0;
}

.surface-metodologia .metodologia-card-body .metodologia-consideracion p {
    font-size: 14px;
    line-height: 1.5;
    color: #6F6F6F;
}

/* Secciones 9 y 10: DefinitionItem */
.surface-metodologia .metodologia-dl {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.surface-metodologia .metodologia-def-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: transparent;
}

.surface-metodologia .metodologia-def-title {
    font-family: 'Roboto', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #325A84;
    margin: 0;
}

.surface-metodologia .metodologia-card-body p.metodologia-def-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #2B2B2B;
    margin: 0;
}

/* Formula (Total Variable / Total Cash) */
.surface-metodologia .metodologia-card-body p.metodologia-formula {
    align-self: flex-start;
    padding: 9px 14px;
    border: 1px solid #DCE7F5;
    border-radius: 8px;
    background: rgba(243, 246, 251, 0.6);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #030B47;
    margin: 0;
}

/* =========================================================================
   USUARIOS (100% Visual & Functional Parity with Figma & Jobs-main prototype)
   ========================================================================= */

body:has(.surface-usuarios),
#layout-content:has(.surface-usuarios),
.dashboard-container.surface-usuarios {
    background-color: #FFFFFF !important;
}

.dashboard-container.surface-usuarios {
    min-height: 100vh;
    padding: 48px 28px;
    font-family: 'Inter', sans-serif;
    color: #2B2B2B;
}

@media (min-width: 1280px) {
    .dashboard-container.surface-usuarios {
        padding: 48px 40px;
    }
}

.surface-usuarios .usuarios-inner {
    max-width: 1204px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header: Title + Action */
.surface-usuarios .usuarios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.surface-usuarios .usuarios-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.surface-usuarios .usuarios-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #D9DDE3;
    background: #FFFFFF;
    color: #030B47;
    text-decoration: none;
    transition: all 0.15s ease;
}

.surface-usuarios .usuarios-back-btn:hover {
    background: #F7F8FA;
    border-color: #8B9097;
}

.surface-usuarios .usuarios-title {
    font-size: 24px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
    line-height: 1.25;
}

.surface-usuarios .btn-create-usuario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 16px;
    background-color: #030B47;
    border: 1px solid #030B47;
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 12px 26px -12px rgba(3, 11, 71, 0.13);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.surface-usuarios .btn-create-usuario:hover {
    background-color: #17225E;
    border-color: #17225E;
    box-shadow: 0px 4px 12px rgba(3, 11, 71, 0.18);
}

.surface-usuarios .btn-create-usuario:active {
    transform: translateY(1px);
}

/* Subheader */
.surface-usuarios .usuarios-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.surface-usuarios .usuarios-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0;
}

.surface-usuarios .usuarios-refresh-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #6F6F6F;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.surface-usuarios .usuarios-refresh-btn:hover {
    color: #030B47;
}

/* Table Card & Scroll Wrapper */
.surface-usuarios .usuarios-table-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
}

.surface-usuarios .usuarios-table-scroll {
    width: 100%;
    overflow-x: auto;
}

/* Grid Layout Rows (Matching exact Tailwind grid-cols-[220px_160px_160px_160px_120px_120px] gap-4) */
.surface-usuarios .usuarios-grid-header,
.surface-usuarios .usuarios-grid-filter,
.surface-usuarios .usuarios-grid-row {
    display: grid;
    grid-template-columns: 220px 160px 160px 160px 120px 120px;
    align-items: center;
    gap: 16px;
    min-width: 1068px;
}

/* Header Row */
.surface-usuarios .usuarios-grid-header {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E0E0E0;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #5F6368;
    letter-spacing: 0.02em;
}

.surface-usuarios .usuarios-grid-header > span:last-child {
    display: block;
    text-align: center;
    width: 120px;
}

/* Filter Row */
.surface-usuarios .usuarios-grid-filter {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E0E0E0;
    padding: 8px 24px;
}

.surface-usuarios .table-filter-input {
    height: 40px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #D9DEE3;
    background-color: #F3F6FB;
    padding: 0 16px;
    font-size: 14px;
    color: #2B2B2B;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.surface-usuarios .table-filter-input::placeholder {
    color: #5F6368;
}

.surface-usuarios .table-filter-input:hover {
    border-color: #8B9097;
}

.surface-usuarios .table-filter-input:focus {
    border-color: #030B47;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(3, 11, 71, 0.10);
}

.surface-usuarios .usuarios-select-wrap {
    position: relative;
    width: 120px;
}

.surface-usuarios .table-filter-select {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #BCBEC0;
    background-color: #FFFFFF;
    padding: 0 28px 0 10px;
    font-size: 12px;
    color: #2B2B2B;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.surface-usuarios .table-filter-select:hover {
    border-color: #8B9097;
}

.surface-usuarios .table-filter-select:focus {
    border-color: #030B47;
    box-shadow: 0 0 0 3px rgba(3, 11, 71, 0.10);
}

.surface-usuarios .select-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8B9097;
}

/* Data Rows */
.surface-usuarios .usuarios-grid-row {
    padding: 16px 24px;
    border-bottom: 1px solid #F1F3F4;
    transition: background-color 0.15s ease;
    background-color: #FFFFFF;
}

.surface-usuarios .usuarios-grid-row:last-child {
    border-bottom: none;
}

.surface-usuarios .usuarios-grid-row:hover {
    background-color: #F8FAFC;
}

.surface-usuarios .cell-name {
    width: 220px;
    font-size: 14px;
    font-weight: 700;
    color: #1D2D63;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surface-usuarios .cell-doc {
    width: 160px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    font-variant-numeric: tabular-nums;
}

.surface-usuarios .cell-role {
    width: 160px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surface-usuarios .cell-permission {
    width: 160px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2B2B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surface-usuarios .cell-status {
    width: 120px;
    font-size: 14px;
    font-weight: 700;
}

.surface-usuarios .cell-status.status-active {
    color: #2E7D32;
}

.surface-usuarios .cell-status.status-inactive {
    color: #6F6F6F;
}

.surface-usuarios .cell-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 120px;
}

.surface-usuarios .btn-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #6F6F6F;
    cursor: pointer;
    line-height: 0;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.surface-usuarios .btn-row-action svg {
    display: block;
    width: 20px;
    height: 20px;
}

.surface-usuarios .btn-row-action:hover {
    background-color: #F7F8FA;
    color: #030B47;
}

.surface-usuarios .btn-row-action.btn-danger:hover {
    background-color: #F7F8FA;
    color: #C62B2B;
}

.surface-usuarios .btn-row-action:active {
    transform: scale(0.95);
}

/* Empty State */
.surface-usuarios .empty-state-figma {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.surface-usuarios .empty-state-figma .empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #F3F6FB;
    color: #8B9097;
    font-size: 24px;
    margin-bottom: 16px;
}

.surface-usuarios .empty-state-figma .empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0 0 6px;
}

.surface-usuarios .empty-state-figma .empty-desc {
    font-size: 14px;
    color: #6F6F6F;
    margin: 0 0 20px;
    max-width: 380px;
}

.surface-usuarios .btn-clear-filters-outline {
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background: #FFFFFF;
    color: #030B47;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.surface-usuarios .btn-clear-filters-outline:hover {
    border-color: #030B47;
    background-color: rgba(3, 11, 71, 0.03);
}

/* =========================================================================
   MODALS (Matching Figma "Usuarios - crear usuario", "Editar", "Eliminar")
   ========================================================================= */

.usuarios-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(3, 11, 71, 0.45);
    backdrop-filter: blur(2px);
    animation: fadeInModal 0.15s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.usuarios-modal-card {
    position: relative;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    background: #FFFFFF;
    padding: 24px;
    box-shadow: 0px 8px 24px -6px rgba(3, 11, 71, 0.18), 0px 2px 6px rgba(0, 0, 0, 0.06);
    animation: popInModal 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes popInModal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.usuarios-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #8B9097;
    cursor: pointer;
    transition: all 0.15s ease;
}

.usuarios-modal-close:hover {
    background: #F7F8FA;
    color: #030B47;
}

.usuarios-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #030B47;
    margin: 0 0 6px;
    padding-right: 32px;
}

.usuarios-modal-desc {
    font-size: 13px;
    color: #6F6F6F;
    margin: 0 0 20px;
    line-height: 1.4;
}

/* User Form Grid */
.usuarios-form-wrap {
    margin-top: 16px;
}

.usuarios-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .usuarios-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.usuarios-form-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-col-heading {
    font-size: 14px;
    font-weight: 600;
    color: #030B47;
    margin: 0;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0;
}

.form-text-input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background-color: #FFFFFF;
    padding: 0 14px;
    font-size: 13px;
    color: #2B2B2B;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.form-text-input::placeholder {
    color: #8B9097;
}

.form-text-input:hover {
    border-color: #8B9097;
}

.form-text-input:focus {
    border-color: #030B47;
    box-shadow: 0 0 0 3px rgba(3, 11, 71, 0.10);
}

.form-doc-split {
    display: flex;
    gap: 8px;
}

.form-select-sm {
    width: 90px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background-color: #FFFFFF;
    padding: 0 8px;
    font-size: 13px;
    color: #2B2B2B;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.form-select-sm:focus {
    border-color: #030B47;
}

.form-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #030B47;
    margin: 6px 0 8px;
}

.form-permisos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.permiso-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #2B2B2B;
    user-select: none;
}

.permiso-radio-label input[type="radio"] {
    accent-color: #030B47;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.usuarios-form-footer {
    margin-top: 24px;
}

.btn-submit-form {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    background-color: #030B47;
    border: 1px solid #030B47;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 12px 26px -12px rgba(3, 11, 71, 0.13);
    transition: all 0.15s ease;
}

.btn-submit-form:hover {
    background-color: #17225E;
    border-color: #17225E;
}

.btn-submit-form:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Eliminar Actions */
.usuarios-modal-actions-split {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-modal-cancel {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background: #FFFFFF;
    color: #030B47;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
    border-color: #030B47;
    background-color: rgba(3, 11, 71, 0.03);
}

.btn-modal-confirm {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #030B47;
    background: #030B47;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 12px 26px -12px rgba(3, 11, 71, 0.13);
    transition: all 0.15s ease;
}

.btn-modal-confirm:hover {
    background-color: #17225E;
    border-color: #17225E;
}

.btn-modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================================
   Figma Toast Notification System (Jobs-main/components/ui/Toast.tsx)
   ========================================================================= */

.irh-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.irh-toast-item,
.usuarios-toast,
.profile-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    pointer-events: auto;
    width: 320px;
    max-width: calc(100vw - 48px);
    border-radius: 12px;
    border: 1px solid #ECEEF2;
    background-color: #FFFFFF;
    padding: 14px 16px;
    box-shadow: 0px 8px 24px -6px rgba(3, 11, 71, 0.18), 0px 2px 6px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: toastEnterTopRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.irh-toast-container .irh-toast-item {
    position: static;
}

.irh-toast-item.toast-leaving,
.usuarios-toast.toast-leaving,
.profile-toast.toast-leaving {
    opacity: 0 !important;
    transform: translateX(12px) !important;
    pointer-events: none;
}

@keyframes toastEnterTopRight {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.irh-toast-header,
.usuarios-toast .toast-header-row,
.profile-toast .toast-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.irh-toast-icon,
.usuarios-toast .toast-icon,
.profile-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.irh-toast-icon.text-success,
.usuarios-toast .toast-icon,
.profile-toast .toast-icon {
    color: #2E7D32;
}

.irh-toast-icon.text-danger {
    color: #C62B2B;
}

.irh-toast-icon.text-info {
    color: #1D5BBF;
}

.irh-toast-close,
.usuarios-toast .toast-close-btn,
.profile-toast .toast-close-btn {
    background: transparent;
    border: none;
    padding: 2px;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    color: #8B9097;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    flex-shrink: 0;
    line-height: 1;
}

.irh-toast-close:hover,
.usuarios-toast .toast-close-btn:hover,
.profile-toast .toast-close-btn:hover {
    color: #030B47;
}

.irh-toast-title,
.usuarios-toast .toast-title,
.profile-toast .toast-title {
    margin-top: 8px;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #2B2B2B;
    text-align: left;
}

.irh-toast-desc,
.usuarios-toast .toast-desc,
.profile-toast .toast-desc {
    margin-top: 4px;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: #6F6F6F;
    text-align: left;
}

/* =========================================================================
   MI PERFIL (100% Visual & Functional Parity with Figma & Jobs-main)
   ========================================================================= */

body:has(.surface-profile),
#layout-content:has(.surface-profile),
.dashboard-container.surface-profile {
    background-color: #F4F7FB !important;
}

.dashboard-container.surface-profile {
    min-height: 100vh;
    padding: 48px 28px;
    font-family: 'Inter', sans-serif;
    color: #2B2B2B;
}

@media (min-width: 1280px) {
    .dashboard-container.surface-profile {
        padding: 48px 40px;
    }
}

.surface-profile .profile-inner {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.surface-profile .profile-header {
    margin-bottom: 24px;
}

.surface-profile .profile-title {
    font-size: 24px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0;
    line-height: 1.25;
}

/* Cards Base */
.surface-profile .profile-card {
    background-color: #FFFFFF;
    border: 1px solid #ECEEF2;
    border-radius: 12px;
    padding: 24px;
}

/* 1. Identity Card */
.surface-profile .profile-identity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.surface-profile .profile-identity-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.surface-profile .profile-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E8EDF7;
    color: #030B47;
    flex-shrink: 0;
}

.surface-profile .profile-identity-info {
    min-width: 0;
}

.surface-profile .profile-identity-name {
    font-size: 18px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surface-profile .profile-identity-role {
    font-size: 13px;
    font-weight: 500;
    color: #6F6F6F;
    margin: 0 0 2px;
}

.surface-profile .profile-identity-email {
    font-size: 13px;
    color: #6F6F6F;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.surface-profile .btn-profile-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    background-color: #030B47;
    border: 1px solid #030B47;
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.surface-profile .btn-profile-edit:hover {
    background-color: #17225E;
    border-color: #17225E;
}

/* 2. Details Card */
.surface-profile .profile-details-card {
    margin-top: 20px;
}

.surface-profile .profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1D2D63;
    margin: 0 0 4px;
}

.surface-profile .profile-section-desc {
    font-size: 13px;
    color: #6F6F6F;
    margin: 0 0 20px;
}

/* View Mode Fields Grid */
.surface-profile .profile-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .surface-profile .profile-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.surface-profile .col-span-full {
    grid-column: 1 / -1;
}

.surface-profile .profile-field-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.surface-profile .profile-field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5F6368;
}

.surface-profile .profile-field-value {
    display: flex;
    align-items: center;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #ECEEF2;
    background-color: #F7F8FA;
    padding: 0 16px;
    font-size: 14px;
    color: #2B2B2B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Edit Mode Form */
.surface-profile .profile-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .surface-profile .profile-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.surface-profile .profile-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.surface-profile .profile-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0;
}

.surface-profile .profile-input {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background-color: #FFFFFF;
    padding: 0 14px;
    font-size: 14px;
    color: #2B2B2B;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.surface-profile .profile-input:hover {
    border-color: #8B9097;
}

.surface-profile .profile-input:focus {
    border-color: #030B47;
    box-shadow: 0 0 0 3px rgba(3, 11, 71, 0.10);
}

.surface-profile .profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.surface-profile .btn-profile-cancel {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #D9DDE3;
    background-color: #FFFFFF;
    color: #030B47;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.surface-profile .btn-profile-cancel:hover {
    border-color: #030B47;
    background-color: rgba(3, 11, 71, 0.03);
}

.surface-profile .btn-profile-save {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #030B47;
    background-color: #030B47;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 12px 26px -12px rgba(3, 11, 71, 0.13);
    transition: all 0.15s ease;
}

.surface-profile .btn-profile-save:hover {
    background-color: #17225E;
    border-color: #17225E;
}

.surface-profile .btn-profile-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 3. Permissions Card */
.surface-profile .profile-permissions-card {
    margin-top: 20px;
}

.surface-profile .profile-permissions-box {
    margin-top: 20px;
    border-radius: 10px;
    background-color: #F7F8FA;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.surface-profile .permissions-title {
    font-size: 13px;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0 0 2px;
}

.surface-profile .permissions-subtitle {
    font-size: 12px;
    color: #6F6F6F;
    margin: 0;
}

.surface-profile .profile-badge-navy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    background-color: #030B47;
    color: #FFFFFF;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}



/* ==========================================================================
   Estados compartidos de reportes (report-states.js): sin datos y error
   ========================================================================== */

.irh-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px 16px;
    border: 1px dashed #D5DAE1;
    border-radius: 12px;
    background: #F8FAFC;
    color: #6F6F6F;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.irh-report-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #FECACA;
    border-radius: 12px;
    background: #FEF2F2;
    color: #B91C1C;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Home: "Mi empresa" sin plan Socio Exclusivo (tooltip con el contacto de planes). */
.dashboard-scope-switch .tab-item.tab-item-locked {
    cursor: help;
    opacity: 0.6;
}
