/*Cards Home Ciudadano*/
.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}
/******************************************
*******************************************
************Servidor Judicial**************/
.icono-herramienta {
    width: 50px;
    max-width: 100%;
    height: auto;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}
/*SECCION: ALERTASJUDICIAL*/
.scroll-horizontal {
    scroll-padding-left: 2rem;
    scroll-padding-right: 2rem;
    scrollbar-width: thin;
}

    .scroll-horizontal::-webkit-scrollbar {
        height: 8px;
    }

    .scroll-horizontal::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

/* Centrado vertical del checkbox (por si fuera necesario ajustar más) */
.tarea-alerta .form-check-input {
    transform: translateY(2px);
}

/* Base visual de controles de seleccion reutilizables en SM2 */
.sm2-admin-page .form-check,
.sm2-profile-page .form-check,
.sm2-reportes-page .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0;
}

.sm2-admin-page .form-check .form-check-input,
.sm2-profile-page .form-check .form-check-input,
.sm2-reportes-page .form-check .form-check-input {
    float: none;
    margin: 0;
}

.sm2-admin-page .form-check-label,
.sm2-profile-page .form-check-label,
.sm2-reportes-page .form-check-label {
    margin-bottom: 0;
    margin-left: 0.1rem;
}

.sm2-admin-page input[type="checkbox"] + label,
.sm2-profile-page input[type="checkbox"] + label,
.sm2-reportes-page input[type="checkbox"] + label {
    margin-left: 0.35rem;
}
/*SECCION: BUSCADORRAPIDO*/
#modalResultados .card:hover {
    border-color: #198754;
    background-color: #f8fff8;
    transition: all 0.2s;
}

.cursor-pointer {
    cursor: pointer;
}

.sm2-home-section {
    position: relative;
}

.sm2-home-judicial #bienvenida-judicial,
.sm2-home-judicial #accesos-judicial,
.sm2-home-judicial #soporte {
    background: #ffffff !important;
}

.sm2-home-judicial #busqueda-rapida,
.sm2-home-judicial #alertas-judiciales,
.sm2-home-judicial #noticias {
    background: #f6f7f8 !important;
}

.sm2-home-judicial #busqueda-rapida.sm2-home-section-soft {
    background: #f6f7f8 !important;
}

.sm2-home-section-soft {
    background: #f6f7f8;
}

#MainContent_PanelActividad,
#MainContent_PanelMonitor,
.serviceBtnContainerPanActividad,
.fullSysContentSpecial {
    background: #ffffff !important;
}

#accesos-judicial {
    border-top: 1px solid #d8e2ec;
}

.sm2-home-activity-shell {
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    padding: 1.75rem 1.85rem;
    border: 1px solid #d8e2ec;
    border-radius: 1.25rem;
    box-shadow: 0 16px 36px rgba(19, 46, 73, 0.08);
    background: #ffffff !important;
}

.sm2-home-activity-shell .row {
    align-items: stretch;
}

.sm2-home-activity-shell .col-md-4,
.sm2-home-activity-shell .col-md-8 {
    display: flex;
    flex-direction: column;
}

.sm2-home-activity-shell .fullSysContentSpecial {
    flex: 1 1 auto;
    min-height: 225px;
    border: 1px solid #d8e2ec;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(19, 46, 73, 0.06);
    overflow: hidden;
}

.sm2-home-judicial-server .sm2-home-activity-shell {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.sm2-home-judicial-server .sm2-judicial-monitor-row {
    --bs-gutter-x: 2.25rem;
    --bs-gutter-y: 0;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.sm2-home-judicial-server .sm2-judicial-monitor-actions,
.sm2-home-judicial-server .sm2-judicial-monitor-news {
    padding-left: 0;
    /*padding-right: 0;*/
    padding-top: 0;
}

.sm2-home-judicial-server .sm2-judicial-monitor-actions {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.sm2-home-judicial-server .sm2-judicial-monitor-actions > a {
    display: block;
}

.sm2-home-judicial-server .sm2-judicial-monitor-actions .serviceBox {
    margin-bottom: 0;
}

.sm2-home-judicial-server .sm2-judicial-monitor-news .fullSysContentSpecial {
    width: 100%;
    margin: 0;
}

.sm2-home-search-inline .input-group-text,
.sm2-home-search-shell .input-group-text {
    border-color: #d5e0ea;
    color: #31506b;
    background: #ffffff;
}

.sm2-home-search-inline .form-control,
.sm2-home-search-shell .form-control {
    border-color: #d5e0ea;
}

.sm2-home-search-shell {
    border: 1px solid #d8e2ec;
    border-radius: 1rem !important;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(19, 46, 73, 0.08) !important;
}

.sm2-home-search-action-group {
    align-items: stretch;
}

.sm2-home-search-action-group .sm2-home-search-clear,
.sm2-home-search-action-group .sm2-home-search-submit {
    /*margin: 0.35rem 0.35rem 0.35rem 0;*/
    transform: none !important;
    box-shadow: none !important;
}

.sm2-home-search-action-group .sm2-home-search-clear:hover,
.sm2-home-search-action-group .sm2-home-search-clear:focus,
.sm2-home-search-action-group .sm2-home-search-submit:hover,
.sm2-home-search-action-group .sm2-home-search-submit:focus {
    transform: none !important;
    box-shadow: none !important;
}

.sm2-home-search-action-group .sm2-home-search-clear {
    min-width: 2.8rem;
    border-radius: 0.8rem;
}

.sm2-home-search-action-group .sm2-home-search-submit {
    min-width: 7.25rem;
    padding-inline: 1rem 1.15rem;
    border-radius: 0.8rem;
}

.sm2-inline-toast {
    min-width: 22rem;
    max-width: 28rem;
    border: 1px solid rgba(32, 71, 110, 0.12);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(18, 40, 64, 0.18);
    background: #ffffff;
}

.sm2-inline-toast .toast-header {
    background: linear-gradient(180deg, #eff5fb 0%, #e5eef8 100%);
    color: #163558;
    border-bottom: 1px solid rgba(32, 71, 110, 0.12);
    padding: 0.9rem 1rem;
}

.sm2-inline-toast .toast-header strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.sm2-inline-toast .toast-body {
    padding: 1rem 1rem 1.05rem;
}

.sm2-inline-toast-body {
    display: grid;
    gap: 0.45rem;
}

.sm2-inline-toast-title {
    font-size: 1rem;
    font-weight: 800;
    color: #163558;
    line-height: 1.2;
}

.sm2-inline-toast-text {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #41586f;
}

.sm2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sm2-btn:hover,
.sm2-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.sm2-btn-lg {
    min-height: 3.35rem;
    padding: 0.92rem 1.65rem;
    border-radius: 1.15rem;
    font-size: 1rem;
}

.sm2-btn-md {
    min-height: 3rem;
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
}

.sm2-btn-sm {
    min-height: 2.65rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.95rem;
    font-size: 0.9rem;
}

.sm2-btn-primary {
    background: linear-gradient(180deg, #20476e 0%, #163558 100%);
    border-color: #163558;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(9, 24, 42, 0.18);
}

.sm2-btn-primary:hover,
.sm2-btn-primary:focus {
    color: #ffffff;
    background: linear-gradient(180deg, #25517e 0%, #183c62 100%);
    border-color: #183c62;
    box-shadow: 0 20px 34px rgba(9, 24, 42, 0.22);
}

.sm2-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(32, 71, 110, 0.14);
    color: #20476e;
    box-shadow: none;
}

.sm2-btn-secondary:hover,
.sm2-btn-secondary:focus {
    color: #163558;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(32, 71, 110, 0.24);
}

.sm2-top-navbar {
    min-height: 86px;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(32, 71, 110, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sm2-top-navbar .container-fluid {
    align-items: center;
    gap: 0.75rem;
    padding-inline: 1rem;
}

.sm2-top-navbar .navbar-collapse {
    flex-grow: 1;
}

.sm2-top-navbar .navbar-brand {
    margin-right: 1.35rem;
    padding-block: 0;
}

.sm2-navbar-brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

.sm2-top-navbar-nav {
    align-items: center;
    column-gap: 0.05rem;
    row-gap: 0.12rem;
}

.sm2-top-navbar-nav > .nav-item {
    display: flex;
    align-items: center;
}

.sm2-top-navbar-seal {
    margin-inline: 0.35rem 0.2rem;
    padding-inline: 0.35rem;
    border-left: 1px solid rgba(32, 71, 110, 0.14);
}

.sm2-navbar-seal-logo {
    height: 48px;
    width: auto;
    display: block;
}

.sm2-top-nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.46rem 0.56rem !important;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1.02;
    text-align: center;
    color: #21425f !important;
    white-space: normal;
}

.sm2-top-nav-link i {
    flex: 0 0 auto;
    font-size: 0.94rem;
    line-height: 1;
    color: #355a7b;
}

.sm2-top-nav-link span {
    display: block;
}

.sm2-top-nav-link:hover,
.sm2-top-nav-link:focus {
    background: rgba(32, 71, 110, 0.08);
    color: #163558 !important;
}

.sm2-top-nav-link:hover i,
.sm2-top-nav-link:focus i {
    color: #163558;
}

.sm2-top-nav-link-active {
    background: #eef5fc;
    border-color: transparent;
    color: #20476e !important;
}

.sm2-top-nav-link-active i {
    color: #20476e;
}

.sm2-top-navbar .dropdown-toggle {
    padding: 0.55rem 0.7rem !important;
    border-radius: 999px;
}

.sm2-top-navbar .dropdown-toggle::after {
    margin-left: 0.35rem;
}

.sm2-top-navbar .dropdown-toggle:hover,
.sm2-top-navbar .dropdown-toggle:focus {
    background: rgba(32, 71, 110, 0.08);
}

.sm2-top-navbar .dropdown-menu {
    margin-top: 0.65rem;
    border: 1px solid rgba(32, 71, 110, 0.12);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(9, 24, 42, 0.14);
    padding: 0.55rem;
}

.sm2-top-navbar .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-weight: 500;
    color: #21425f;
}

.sm2-top-navbar .dropdown-item i {
    width: 1rem;
    margin-right: 0.5rem;
    color: #355a7b;
}

.sm2-top-navbar .dropdown-item:hover,
.sm2-top-navbar .dropdown-item:focus {
    background: #eef5fc;
    color: #163558;
}

.sm2-top-navbar .navbar-toggler {
    border-color: rgba(32, 71, 110, 0.16);
    border-radius: 0.9rem;
    padding: 0.45rem 0.7rem;
    box-shadow: none !important;
}

.sm2-top-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 71, 110, 0.12) !important;
}

@media (max-width: 991.98px) {
    .sm2-top-navbar .container-fluid {
        padding-inline: 0.85rem;
    }

    .sm2-top-navbar-nav {
        align-items: stretch;
        gap: 0.1rem;
        padding-top: 0.6rem;
    }

    .sm2-top-navbar-nav > .nav-item {
        width: 100%;
    }

    .sm2-top-navbar-seal {
        width: auto;
        margin-top: 0.45rem;
        padding-top: 0.45rem;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(32, 71, 110, 0.14);
    }

    .sm2-top-nav-link {
        width: 100%;
        padding: 0.75rem 0.9rem !important;
    }
}

.sm2-btn-outline {
    background: transparent;
    border-color: rgba(32, 71, 110, 0.26);
    color: #20476e;
    box-shadow: none;
}

.sm2-btn-outline:hover,
.sm2-btn-outline:focus {
    color: #163558;
    background: rgba(32, 71, 110, 0.06);
    border-color: rgba(32, 71, 110, 0.4);
}

.sm2-footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

.sm2-footer-links a:hover,
.sm2-footer-links a:focus {
    color: rgba(255, 255, 255, 0.9);
}

.sm2-btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.sm2-btn-outline-light:hover,
.sm2-btn-outline-light:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.52);
}

.sm2-btn-icon {
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border-radius: 999px;
    background: #ffffff;
    border-color: #d8e2ec;
    color: #20476e;
    box-shadow: 0 10px 24px rgba(12, 30, 52, 0.12);
}

.sm2-btn-icon:hover,
.sm2-btn-icon:focus {
    color: #163558;
    background: #f7fbff;
    border-color: #aac4da;
    box-shadow: 0 14px 28px rgba(12, 30, 52, 0.16);
}

.sm2-btn-compact {
    min-height: 2.1rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.8rem;
    background: transparent;
    border-color: transparent;
    color: #5a6e82;
    box-shadow: none;
}

.sm2-btn-compact:hover,
.sm2-btn-compact:focus {
    color: #163558;
    background: rgba(32, 71, 110, 0.08);
    border-color: rgba(32, 71, 110, 0.12);
}

.sm2-btn-danger-soft {
    min-height: 2.1rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.8rem;
    background: transparent;
    border-color: transparent;
    color: #c14b5a;
    box-shadow: none;
}

.sm2-btn-danger-soft:hover,
.sm2-btn-danger-soft:focus {
    color: #9f2636;
    background: rgba(193, 75, 90, 0.1);
    border-color: rgba(193, 75, 90, 0.14);
}

.sm2-home-guide-section {
    padding: 3rem 0;
    background: radial-gradient(circle at top left, rgba(45, 108, 76, 0.08), transparent 32%), linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    border-top: 1px solid rgba(32, 71, 110, 0.08);
    border-bottom: 1px solid rgba(32, 71, 110, 0.08);
}

.sm2-home-guide-wrap {
    position: relative;
}

.sm2-home-guide-intro {
    height: 100%;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(155deg, #20476e 0%, #163558 55%, #0e2339 100%);
    box-shadow: 0 24px 56px rgba(10, 25, 45, 0.22), 0 4px 14px rgba(10, 25, 45, 0.12);
    color: #ffffff;
}

.sm2-home-guide-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sm2-home-guide-title {
    margin: 1.1rem 0 0;
    font-size: clamp(1.8rem, 2.7vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
}

.sm2-home-guide-copy {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.sm2-home-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
}

.sm2-home-guide-note i {
    margin-top: 0.15rem;
    color: #b7d4ef;
    flex-shrink: 0;
}

.sm2-home-guide-steps {
    display: grid;
    gap: 1rem;
    height: 100%;
}

.sm2-home-guide-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 1.35rem;
    border-radius: 1.3rem;
    border: 1px solid rgba(32, 71, 110, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(12, 30, 52, 0.08);
}

.sm2-home-guide-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(32, 71, 110, 0.12) 0%, rgba(32, 71, 110, 0.22) 100%);
    color: #20476e;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.sm2-home-guide-step-content {
    min-width: 0;
}

.sm2-home-guide-step-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #21384d;
}

.sm2-home-guide-step-text {
    margin: 0.45rem 0 0;
    color: #58708a;
    font-size: 0.94rem;
    line-height: 1.6;
}

.sm2-home-metrics-section {
    padding: 3.25rem 0;
    color: #ffffff;
    background: linear-gradient(145deg, #1a2d46 0%, #122742 52%, #0c1c31 100%);
}

.sm2-home-metrics-copy {
    color: rgba(255, 255, 255, 0.7);
}

.sm2-home-metric-item {
    height: 100%;
    padding: 0.4rem 0.6rem;
}

.sm2-home-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    margin-bottom: 0.9rem;
}

.sm2-home-metric-icon img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.sm2-home-metric-value {
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.sm2-home-metric-label {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
}

.sm2-home-access-card {
    border: 1px solid #d8e2ec;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sm2-home-access-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
}

.sm2-home-access-media {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm2-home-access-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.sm2-home-access-body {
    min-width: 0;
    display: flex;
    align-items: center;
}

.sm2-home-access-body h6 {
    line-height: 1.25;
}

.sm2-home-access-card:hover {
    border-color: #86abcf;
    box-shadow: 0 12px 26px rgba(17, 52, 84, 0.12);
}

.sm2-home-accordion .accordion-item {
    border: 1px solid #d7e1eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(13, 42, 69, 0.05);
}

.sm2-home-accordion .accordion-button {
    /* background: linear-gradient(135deg, #2d6c4c 0%, #1f4f38 100%); */
    background: linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
    color: #2d4358;
    font-weight: 700;
    box-shadow: none;
}

.sm2-home-accordion .accordion-button:not(.collapsed) {
    color: #2d4358;
    box-shadow: none;
}

.sm2-home-accordion .accordion-button::after {
    filter: none;
}

.sm2-home-accordion .accordion-body {
    background: #fbfdff;
}

.sm2-home-judicial-server .sm2-home-accordion > .accordion-item > .accordion-header .accordion-button {
    /* background: linear-gradient(135deg, #2d6c4c 0%, #1f4f38 100%); */
    background: linear-gradient(180deg, #f2f4f7 0%, #e6ebf1 100%);
    color: #2d4358;
    border-color: #d7e1eb;
}

.sm2-home-judicial-server .sm2-home-accordion > .accordion-item > .accordion-header .accordion-button:not(.collapsed) {
    /* background: linear-gradient(135deg, #2d6c4c 0%, #1f4f38 100%); */
    background: linear-gradient(180deg, #eef2f6 0%, #dfe6ee 100%);
    color: #2d4358;
    box-shadow: none;
}

.sm2-home-judicial-server .sm2-home-accordion > .accordion-item > .accordion-header .accordion-button::after {
    filter: none;
}

@media (max-width: 767.98px) {
    .sm2-home-judicial-server .sm2-judicial-monitor-wrap {
        padding-inline: 0.4rem;
    }
}

.sm2-home-access-tabs {
    gap: 0.75rem;
}

.sm2-home-access-tabs .nav-link {
    border-radius: 0.85rem;
    border: 1px solid #d7e1eb;
    background: #ffffff;
    color: #173652;
    font-weight: 700;
    padding: 0.75rem 1.15rem;
    box-shadow: 0 8px 18px rgba(13, 42, 69, 0.06);
}

.sm2-home-access-tabs .nav-link.active {
    background: linear-gradient(135deg, #2d6c4c 0%, #1f4f38 100%);
    border-color: #2d6c4c;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(31, 79, 56, 0.22);
}

.sm2-home-modal .modal-dialog {
    margin: 1rem;
}

.sm2-home-modal-content {
    border: 1px solid #d6e0ea;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(10, 37, 61, 0.18);
}

.sm2-home-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #2d6c4c 0%, #1f4f38 100%);
    color: #ffffff;
}

.sm2-home-modal-body {
    background: linear-gradient(180deg, #fcfdff 0%, #f5f8fb 100%);
}

.sm2-home-resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    margin-bottom: 1rem;
}

.sm2-home-resource-icon img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.sm2-home-dark-icon,
.sm2-home-tool-icon,
.sm2-home-smart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.sm2-home-dark-icon img,
.sm2-home-tool-icon img,
.sm2-home-smart-icon img {
    width: 3.6rem;
    height: 3.6rem;
    object-fit: contain;
}

.sm2-home-dashboard-panel {
    height: 100%;
    padding: 1.35rem 1.1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(7, 18, 32, 0.18);
}

.sm2-home-tool-card,
.sm2-home-smart-card {
    border: 1px solid #d8e2ec;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sm2-home-tool-card:hover,
.sm2-home-smart-card:hover {
    border-color: #86abcf;
    box-shadow: 0 12px 26px rgba(17, 52, 84, 0.12);
}

.sm2-home-smart-card .badge {
    align-self: center;
}

.sm2-home-smart-phase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2rem;
    margin-top: 0.15rem;
    border-radius: 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.sm2-page-hero {
    position: relative;
    padding: 4rem 0 3.4rem;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sm2-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(155deg, rgba(32, 71, 110, 0.88) 0%, rgba(22, 53, 88, 0.84) 55%, rgba(14, 35, 57, 0.9) 100%); */
    background: rgba(0, 0, 0, 0.62);
}

.sm2-page-hero > .container {
    position: relative;
    z-index: 1;
}

.sm2-ciudadano-hero {
    padding: 4.5rem 0 3.75rem;
}

.sm2-ciudadano-hero-copy {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.6;
    margin-left: auto;
    text-wrap: balance;
}

.sm2-page-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #d7e8f7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sm2-page-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.08;
}

.sm2-page-copy {
    max-width: 44rem;
    margin: 0.85rem auto 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.sm2-page-section {
    padding: 3rem 0;
    background: #f6f7f8;
}

.sm2-page-section-head {
    margin-bottom: 1.8rem;
}

.sm2-page-card {
    border: 1px solid #d8e2ec;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 12px 28px rgba(17, 52, 84, 0.08);
}

.sm2-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.sm2-logout-card {
    max-width: 52rem;
    margin-inline: auto;
}

.sm2-logout-icon {
    width: 5.25rem;
    height: 5.25rem;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #eef5fc 0%, #dfeaf6 100%);
    color: #20476e;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(32, 71, 110, 0.08);
}

.sm2-logout-copy {
    max-width: 38rem;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.7;
}

.sm2-logout-btn {
    min-width: 13.5rem;
    justify-content: center;
}

.sm2-faq-accordion .accordion-item {
    border: 1px solid #d7e1eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(13, 42, 69, 0.05);
}

.sm2-faq-accordion .accordion-button {
    background: #ffffff;
    color: #173652;
    font-weight: 700;
    box-shadow: none;
}

.sm2-faq-accordion .accordion-button:not(.collapsed) {
    color: #173652;
    background: #f7fbfe;
    box-shadow: none;
}

.sm2-faq-accordion .accordion-body {
    background: #fbfdff;
    color: #55697e;
    line-height: 1.7;
}

.sm2-about-block {
    border: 1px solid #d8e2ec;
    border-radius: 1.2rem;
    padding: 1.45rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: 0 14px 30px rgba(17, 52, 84, 0.06);
}

.sm2-about-block p:last-child,
.sm2-faq-answer > *:last-child,
.sm2-news-content > *:last-child {
    margin-bottom: 0;
}

.sm2-home-favorite-list {
    border: 1px solid #d9e3ed;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #ffffff;
}

.sm2-home-favorite-item {
    border-color: #e7eef5;
    padding: 0.78rem 0.9rem;
    background: #ffffff;
}

.sm2-home-favorite-item:hover {
    background: #f8fbff;
}

.sm2-home-search-result-card:hover {
    border-color: #2d6c4c;
    background-color: #f8fff8;
}

.sm2-home-search-result-card {
    border: 1px solid #d7e1eb;
    border-radius: 0.95rem;
    overflow: hidden;
}

.sm2-home-search-result-actions .btn {
    min-width: 7rem;
}

@media (max-width: 767.98px) {
    .sm2-home-search-shell {
        border-radius: 0.85rem !important;
    }

    .sm2-home-search-result-actions {
        width: 100%;
        max-width: none !important;
    }

    .sm2-home-search-result-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .sm2-home-modal .modal-dialog {
        margin: 0.65rem;
    }

    .sm2-home-favorite-item {
        align-items: flex-start !important;
        gap: 0.65rem;
    }
}


/******************************************
**************** ROADMAP ******************
******************************************/
.timeline {
    position: relative;
    padding-left: 50px; /* espacio para la línea + margen cómodo entre línea y tarjeta */
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 20px; /* Espacio arriba de la linea justo donde inicia punto */
        bottom: 140px; /* Espacio abajo de la linea justo donde termina punto */
        left: 20px; /* lugar donde va la línea (deja margen entre línea y card) */
        width: 3px;
        background-color: #0d6efd;
        z-index: 0;
    }

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

    /* Punto centrado sobre la línea */
    .timeline-item::before {
        content: "";
        position: absolute;
        top: 20px;
        left: -35px; /* Punto en medio de linea */
        width: 16px;
        height: 16px;
        background-color: #0d6efd;
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 0 0 3px #0d6efd33;
        z-index: 2;
    }

.timeline-content {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.timeline-content img {
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/******************************************
*************** ALERTAS SJ ****************
******************************************/
.card.tarea-alerta {
    max-width: 340px;
    min-width: 280px;
    width: 100%;
    height: 210px;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Ponente y Fecha: una sola línea truncada */
.linea-una {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 308px;
}

/* Anotación: máximo 3 líneas truncadas */
.linea-tres {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 308px;
    word-break: break-word; /* <-- Esto ayuda a cortar palabras largas */
}

/***************************************************
*************** CONSULTAS RECIENTES ****************
****************************************************/
.semaforo-circle {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
}


/***************************************************
******************* SLIDE NOTICIAS *****************
/***************************************************/

/* Track */
#noticias .noticias-track {
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

    #noticias .noticias-track::-webkit-scrollbar {
        display: none;
    }

/* Cards (base) */
#noticias .noticia-card {
    scroll-snap-align: start;
    min-height: 220px;
}

.card.noticia-card {
    border-radius: 1rem !important;
    box-sizing: border-box;
}

@media (max-width: 575.98px) {

    /* Quitamos padding grande del contenedor del carrusel */
    #noticias .position-relative {
        padding-left: 0;
        padding-right: 0;
    }

    #noticias .noticias-track-wrapper {
        padding-left: 1rem;
        padding-right: 0.25rem; /* un poco menos a la derecha */
        padding-bottom: 2.5rem;
    }

    /* La card ocupa ~90% para que se vea la siguiente */
    #noticias .noticia-card {
        flex: 0 0 88%;
        max-width: 88%;
    }

    /* Flechas fuera en móvil */
    #noticias .noticias-left,
    #noticias .noticias-right {
        display: none !important;
    }
}

/* ---------- TABLET / DESKTOP ---------- */
@media (min-width: 576px) {
    #noticias .noticia-card {
        flex: 0 0 360px;
        max-width: 360px;
    }

    #noticias .noticias-track-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 992px) {
    #noticias .noticia-card {
        flex: 0 0 400px;
        max-width: 400px;
    }
}


/***************************************************
******************* TOAST GENERICOS *****************
/***************************************************/
#toastAutogen_container {
    overflow-x: auto;
    max-height: 80%;
    z-index: 9999;
}

.toastAutogenovershadow {
    box-shadow: 0px 0px 8px 0px #000000;
}

.toastAGall {
    border-radius: 0.3rem 0.3rem 0.3rem 0.3rem;
}

.toastAGcontenido {
    background-color: #2E2E2E;
    color: white;
    border-radius: 0rem 0rem 0.15rem 0.15rem;
}

.toastAGheader {
    background-color: #363636;
    color: white;
    border-bottom-width: 0px;
    border-radius: 0.15rem 0.15rem 0rem 0rem;
}

/***************************************************
**************** EMERGENTES SM2 *******************
/***************************************************/
.sm2-modal-scroll {
    max-height: min(60vh, 560px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.sm2-feedback-section .btn.active {
    background-color: #212529;
    color: #fff;
    border-color: #212529;
}

.sm2-form-required::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

/***************************************************
******************* PERFIL SM2 ********************
***************************************************/
.sm2-profile-page .sm2-profile-shell {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-profile-header {
    border-bottom: 1px solid #d9e3ed;
    padding-bottom: 0.85rem;
}

.sm2-profile-chipbar {
    border: 1px solid #d3dee9;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    background: #f6f7f8;
}

.sm2-profile-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.35rem;
    padding: 1.35rem 1.45rem;
    background: linear-gradient(145deg, #20476e 0%, #163558 56%, #0f2437 100%);
    box-shadow: 0 24px 54px rgba(10, 25, 45, 0.18);
}

.sm2-profile-hero-card::before {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 200, 244, 0.22) 0%, rgba(126, 200, 244, 0) 72%);
    pointer-events: none;
}

.sm2-profile-hero-card > .text-muted,
.sm2-profile-hero-list > .text-muted {
    display: none;
}

.sm2-profile-hero-main,
.sm2-profile-hero-list {
    position: relative;
    z-index: 1;
}

.sm2-profile-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #d8ecfb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm2-profile-hero-title {
    color: #ffffff;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
}

.sm2-profile-hero-text {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.sm2-profile-hero-list {
    display: grid;
    gap: 0.75rem;
    align-content: center;
}

.sm2-profile-hero-list span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.15rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f5fbff;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.sm2-profile-hero-list i {
    color: #8fd3ff;
}

.sm2-profile-layout {
    align-items: flex-start;
}

.sm2-admin-edit-sidebar,
.sm2-profile-sidebar {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    padding: 0.85rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-profile-sidebar {
    border-color: #d2dce8;
    background: #ffffff;
}

.sm2-profile-sidebar-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #dde7f0;
}

.sm2-profile-sidebar-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #2a628f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sm2-admin-vertical-menu,
.sm2-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sm2-admin-vertical-menu .nav-item,
.sm2-profile-menu .nav-item {
    width: 100%;
}

.sm2-admin-vertical-menu .nav-link,
.sm2-profile-menu .nav-link {
    width: 100%;
    text-align: left;
    border: 1px solid #d0d9e3;
    background: #ffffff;
    color: #1f2b37;
    font-weight: 600;
    border-radius: 0.65rem;
    transition: all 0.2s ease-in-out;
}

.sm2-admin-step-tab {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.sm2-datos-simple {
    padding-top: 0.1rem;
}

.sm2-datos-grid .form-label {
    color: #334a62;
    font-weight: 600;
}

.sm2-datos-section-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #274a6c;
}

.sm2-datos-divider {
    border: 0;
    border-top: 1px solid #d9e3ed;
    margin: 0.35rem 0 0.45rem;
    opacity: 1;
}

.sm2-datos-estado-row {
    padding-top: 0.15rem;
}

.sm2-admin-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sm2-admin-tab-check {
    display: none;
    color: #1f9d55;
    font-size: 0.88rem;
}

.sm2-admin-step-tab.is-complete .sm2-admin-tab-check {
    display: inline-flex;
}

.sm2-admin-vertical-menu .nav-link:hover,
.sm2-profile-menu .nav-link:hover {
    border-color: #3d5975;
    transform: translateY(-1px);
}

.sm2-admin-vertical-menu.nav-pills .nav-link.active,
.sm2-admin-vertical-menu.nav-pills .show > .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, #198754 0%, #198754 75%, #25c47a 100%);
    border-color: #198754 !important;
}

.sm2-profile-menu.nav-pills .nav-link.active,
.sm2-profile-menu.nav-pills .show > .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1f3d5a 0%, #0f2436 100%);
    border-color: #0f2436 !important;
}

.sm2-admin-vertical-menu .sm2-admin-step-tab.active .sm2-admin-tab-check {
    color: #8ff0ba;
}

.sm2-wizard-only,
.sm2-wizard-only.sm2-wizard-next-btn {
    display: none !important;
}

.sm2-admin-page[data-admin-mode="NUEVO"] .sm2-wizard-only.sm2-wizard-next-btn {
    display: inline-flex !important;
}

.sm2-admin-page[data-admin-mode="NUEVO"] .d-flex.sm2-wizard-only {
    display: flex !important;
}

.sm2-admin-page[data-admin-mode="NUEVO"] .sm2-edit-only-save {
    display: none !important;
}

.sm2-wizard-action-bar {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #d9e3ed;
}

.sm2-profile-pane,
#adminTabContent > .tab-pane {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    padding: 1rem 1.05rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-profile-pane {
    border-color: #d2dce8;
    border-radius: 1.35rem;
    padding: 1.15rem 1.2rem;
    background: #ffffff;
}

.sm2-admin-edit-panel {
    padding: 0;
}

.sm2-admin-edit-panel-body {
    padding: 1rem 1.05rem;
}

.sm2-admin-edit-layout #adminTabContent {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.sm2-admin-edit-layout #adminTabContent > .tab-pane {
    min-height: 320px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.sm2-admin-page #adminTabContent .card {
    border: 1px solid #d6e0ea;
    border-radius: 0.85rem;
    box-shadow: none;
}

.sm2-admin-page #adminTabContent .card.bg-light-subtle {
    background: #ffffff !important;
}

.sm2-profile-section-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: #1f2b37;
}

.sm2-profile-inline-note {
    border-color: #dbe7f2 !important;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sm2-profile-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sm2-profile-summary-item {
    border: 1px solid #dbe4ee;
    border-radius: 0.95rem;
    padding: 0.7rem 0.85rem;
    background: #ffffff;
}

.sm2-profile-summary-label {
    display: block;
    font-size: 0.78rem;
    color: #5b6876;
    margin-bottom: 0.2rem;
}

.sm2-profile-summary-value {
    display: block;
    font-weight: 600;
    color: #1f2b37;
    word-break: break-word;
}

.sm2-profile-table {
    margin-bottom: 0;
}

.sm2-profile-actions {
    padding-top: 0.25rem;
}

.sm2-workspace-page {
    background: #f6f7f8;
}

.sm2-workspace-shell {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-workspace-body {
    padding: 1.25rem;
}

.sm2-workspace-header h2 {
    color: #1f2b37;
}

.sm2-admin-page .sm2-workspace-header {
    border-bottom: 1px solid #d9e3ed;
    padding-bottom: 0.85rem;
}

.sm2-workspace-panel {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    background: #ffffff;
    padding: 0.95rem 1rem;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-admin-shell {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.sm2-admin-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.35rem;
    padding: 1.35rem 1.45rem;
    background: linear-gradient(145deg, #20476e 0%, #163558 56%, #0f2437 100%);
    box-shadow: 0 24px 54px rgba(10, 25, 45, 0.18);
}

.sm2-admin-hero-card::before {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 200, 244, 0.22) 0%, rgba(126, 200, 244, 0) 72%);
    pointer-events: none;
}

.sm2-admin-hero-main,
.sm2-admin-hero-list {
    position: relative;
    z-index: 1;
}

.sm2-admin-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #d8ecfb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm2-admin-hero-title {
    color: #ffffff;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
}

.sm2-admin-hero-text {
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.sm2-admin-hero-list {
    display: grid;
    gap: 0.75rem;
    align-content: center;
}

.sm2-admin-hero-list span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.15rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f5fbff;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.sm2-admin-hero-list i {
    color: #8fd3ff;
}

.sm2-admin-container {
    max-width: 1720px;
    margin-inline: auto;
}

.sm2-profile-container {
    max-width: 1480px;
    margin-inline: auto;
}

.sm2-admin-filtro-panel {
    border-color: #d2dce8;
    background: #ffffff;
}

.sm2-admin-filtro-panel {
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
    box-shadow: 0 18px 38px rgba(16, 41, 65, 0.06);
}

.sm2-admin-filtro-panel .input-group-text {
    border-color: #cbd5df;
    color: #31475f;
}

.sm2-admin-subsection {
    border: 1px solid #dbe4ee;
    border-radius: 0.95rem;
    background: #ffffff;
    padding: 0.9rem 0.95rem;
}

.sm2-admin-subsection {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(16, 41, 65, 0.05);
}

.sm2-admin-subsection > .d-flex h6 {
    color: #23415f;
}

.sm2-admin-helper-card {
    border: 1px dashed #c9d7e5;
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
    background: #ffffff;
}

.sm2-admin-helper-card {
    border-style: solid;
    border-color: #d6e2ed;
    background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sm2-admin-sidebar-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #dde7f0;
}

.sm2-admin-sidebar-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #2a628f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sm2-admin-helper-card strong {
    display: block;
    color: #20394f;
    margin-bottom: 0.35rem;
}

.sm2-admin-helper-card p {
    color: #4a627a;
}

.sm2-admin-grid-wrap {
    border: 1px solid #dbe4ee;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: none;
}

.sm2-admin-grid-wrap {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sm2-admin-grid {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.sm2-admin-grid thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    background: #f3f4f5;
    color: #1f3347;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom: 1px solid #cfdae7;
    padding: 0.78rem 0.7rem;
    vertical-align: middle;
}

.sm2-admin-grid tbody td {
    padding: 0.72rem 0.7rem;
    border-top: 1px solid #e8eef5;
    color: #233548;
    font-size: 0.92rem;
    vertical-align: middle;
}

.sm2-admin-grid.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fbfdff;
}

.sm2-admin-grid.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #ffffff;
}

.sm2-admin-grid.table-hover > tbody > tr:hover > * {
    background-color: #f1f3f5 !important;
}

.sm2-admin-grid tbody tr:last-child td {
    border-bottom: 0;
}

.sm2-admin-grid thead th a {
    color: #1f2b37 !important;
    text-decoration: none !important;
    font-weight: 700;
}

.sm2-admin-grid thead th a:hover {
    color: #0f2436 !important;
    text-decoration: none !important;
}

.sm2-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sm2-sort-icon {
    color: #6f7f8f;
    font-size: 0.82rem;
}

.sm2-sort-icon.fa-sort-up,
.sm2-sort-icon.fa-sort-down {
    color: #1d4f82;
}

.sm2-admin-btn-view {
    min-width: 2.15rem;
    text-align: center;
}

.sm2-btn-primary:disabled,
.sm2-btn-primary.disabled {
    color: #ffffff !important;
    background: linear-gradient(180deg, #20476e 0%, #163558 100%);
    border-color: #163558;
    opacity: 0.65;
    box-shadow: none;
}

/* ════════════════════════════════════════
   LOGIN SM2
   ════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 76px);
}

.login-page-container {
    max-width: 1320px;
}

/* ── Tarjeta del formulario ── */
.login-card {
    border: 1px solid #d2dce8;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(12, 30, 52, 0.10), 0 4px 12px rgba(12, 30, 52, 0.05);
}

.login-card-body {
    padding: 2rem 2rem 2.2rem;
}

/* ── Marca / logo dentro del formulario ── */
.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.login-brand-logo {
    height: 44px;
    width: auto;
}

.login-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d3dfeb;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    background: #f4f8fd;
    color: #24435f;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Cabecera del formulario ── */
.login-header {
    margin: 0 0 1.5rem;
}

.login-title {
    margin-bottom: 0.55rem;
    color: #1a2733;
    font-size: clamp(1.75rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
}

.login-lead {
    color: #4e6173;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ── Etiquetas ── */
.login-label {
    color: #253d53;
    font-weight: 700;
    font-size: 0.93rem;
    margin-bottom: 0.4rem;
}

/* ── Grupo de input con icono izquierdo ── */
.login-input-group .input-group-text.login-input-icon {
    border-right: none;
    border-color: #cdd9e5;
    border-radius: 0.9rem 0 0 0.9rem;
    background: #f8fbff;
    color: #5e7d97;
    padding-inline: 1rem;
}

.login-input-group .login-input {
    border-left: none;
    border-color: #cdd9e5;
    border-radius: 0 0.9rem 0.9rem 0;
}

.login-input-group:focus-within .login-input-icon {
    border-color: #3c76a8;
}

.login-input {
    min-height: 3.4rem;
    border-color: #cdd9e5;
    border-radius: 0.9rem;
    padding-inline: 1rem;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input:focus {
    border-color: #3c76a8;
    box-shadow: 0 0 0 0.2rem rgba(32, 71, 110, 0.14);
}

/* ── Toggle mostrar/ocultar contraseña ── */
.login-password-group .login-input {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.login-password-toggle {
    border: 1px solid #cdd9e5;
    border-left: none;
    border-radius: 0 0.9rem 0.9rem 0;
    background: #f8fbff;
    color: #5e7d97;
    padding-inline: 1rem;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    color: #20476e;
    background: #eef5fc;
    border-color: #3c76a8;
    box-shadow: none;
    outline: none;
}

.login-password-group:focus-within .login-input-icon,
.login-password-group:focus-within .login-input,
.login-password-group:focus-within .login-password-toggle {
    border-color: #3c76a8;
}

/* ── Botón principal ── */
.login-submit {
    min-height: 3.4rem;
    border-radius: 0.95rem;
    font-weight: 700;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.login-submit:active {
    transform: translateY(1px);
}

/* ── Alerta de error ── */
.login-alert {
    border-radius: 0.95rem;
    border-color: #efc5c1;
    background: #fff7f6;
    font-size: 0.94rem;
}

/* ── Divisor "o continúe con" ── */
.auth-divider {
    position: relative;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid #dde6ef;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.85rem;
    background: #ffffff;
    color: #6b8096;
    font-size: 0.88rem;
}

/* ── Botón Microsoft Entra ── */
.btn-login-entra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.35rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.btn-login-entra:hover,
.btn-login-entra:focus {
    color: #16344f;
    box-shadow: 0 10px 26px rgba(17, 52, 84, 0.09);
    transform: translateY(-1px);
}

.btn-login-entra:focus-visible,
.login-forgot-link:focus-visible,
.ventanilla-cta:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(32, 71, 110, 0.2);
}

.btn-login-entra-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #eef5fc 0%, #f6faff 100%);
    color: #0a66c2;
    font-size: 1rem;
}

/* ── Link de contraseña olvidada ── */
.login-links {
    border-top: 1px solid #edf2f7;
    padding-top: 1.1rem;
}

.login-forgot-link {
    color: #1d4f82;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.login-forgot-link:hover {
    color: #134070;
}

/* ════════════════════════════════════════
   PANEL VENTANILLA VIRTUAL (lado derecho)
   ════════════════════════════════════════ */
.login-side-panel.ventanilla-panel {
    border: none;
    border-radius: 1.35rem;
    background: linear-gradient(155deg, #20476e 0%, #163558 55%, #0e2339 100%);
    box-shadow: 0 24px 56px rgba(10, 25, 45, 0.22), 0 4px 14px rgba(10, 25, 45, 0.12);
    overflow: hidden;
    position: relative;
}

/* ── Cabecera decorativa con anillos ── */
.ventanilla-hero {
    position: relative;
    height: 130px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ventanilla-hero-icon {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ventanilla-hero-icon i {
    color: #e8f3ff;
    font-size: 1.75rem;
    line-height: 1;
}

.ventanilla-hero-icon img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.ventanilla-hero-rings {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ventanilla-hero-rings::before,
.ventanilla-hero-rings::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ventanilla-hero-rings::before {
    width: 130px;
    height: 130px;
}

.ventanilla-hero-rings::after {
    width: 200px;
    height: 200px;
}

/* ── Cuerpo del panel ── */
.ventanilla-panel-body {
    padding: 1.6rem 1.8rem 2rem;
}

.ventanilla-kicker {
    color: rgba(149, 195, 232, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    margin-bottom: 0.6rem;
}

.ventanilla-title {
    color: #ffffff;
    font-size: clamp(1.4rem, 1.6vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.ventanilla-lead {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.97rem;
    line-height: 1.65;
}

.ventanilla-steps {
    padding-left: 1.3rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ventanilla-steps li::marker {
    font-weight: 800;
    color: #7ec8f4;
}

/* ── Botón CTA sobre fondo oscuro ── */
.ventanilla-cta {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    font-weight: 700;
    padding-inline: 1.4rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.ventanilla-cta:hover,
.ventanilla-cta:focus {
    color: #ffffff;
    transform: translateY(-1px);
}

.ventanilla-note {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.87rem;
    line-height: 1.6;
}

/* ── Chips de institución ── */
.login-side-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ventanilla-help-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ventanilla-help-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.ventanilla-help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 2.7rem;
    padding: 0.2rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(4px);
}

.ventanilla-help-link:hover,
.ventanilla-help-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 18px rgba(5, 24, 42, 0.12);
    transform: translateY(-1px);
}

.ventanilla-help-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.16);
}

.ventanilla-help-link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ventanilla-help-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    color: #cfe8fb;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.ventanilla-help-link > .fa-arrow-up-right-from-square {
    opacity: 0.7;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.login-side-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
}


.sm2-btn-danger {
    color: #b42318;
    background: #ffffff;
    border: 1px solid #e4b4b0;
    box-shadow: none;
}

.sm2-btn-danger:hover,
.sm2-btn-danger:focus {
    color: #ffffff;
    background: #b42318;
    border-color: #b42318;
}

.sm2-status-dot {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 1px solid #b8c3cf;
    vertical-align: middle;
}

.sm2-status-dot-active {
    background: #20a95c;
    border-color: #17854a;
    box-shadow: 0 0 0 2px rgba(32, 169, 92, 0.15);
}

.sm2-status-dot-inactive {
    background: #a0a8b2;
    border-color: #858f9a;
}

.sm2-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 20, 30, 0.62);
    backdrop-filter: blur(1px);
}

.sm2-search-backdrop.show {
    display: flex;
}

.sm2-search-backdrop-content {
    min-width: 260px;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 24, 35, 0.9);
    color: #ffffff;
    padding: 0.95rem 1.2rem;
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.sm2-admin-vertical-form,
.sm2-profile-form {
    width: 100%;
    max-width: none;
}

.sm2-admin-vertical-form > [class*="col-"],
.sm2-profile-form > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.sm2-admin-vertical-form .form-check,
.sm2-profile-form .form-check {
    margin-top: 0.35rem;
}

.sm2-admin-vertical-form .form-label,
.sm2-profile-form .form-label {
    color: #334a62;
    font-weight: 600;
}

.sm2-admin-vertical-form .d-flex.align-items-end,
.sm2-profile-form .d-flex.align-items-end {
    align-items: flex-start !important;
}

.sm2-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    margin: 0;
    min-height: 1.5rem;
}

.sm2-choice-input {
    position: absolute;
    opacity: 0;
    inset: 0 auto auto 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
}

.sm2-choice-control {
    position: relative;
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    border: 1.5px solid #93a6bb;
    border-radius: 0.35rem;
    background: #ffffff;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.sm2-choice-control::after {
    content: "";
    position: absolute;
    inset: 0.12rem 0.28rem 0.26rem 0.28rem;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.sm2-choice-text {
    color: #233548;
    font-weight: 500;
    line-height: 1.4;
}

.sm2-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    border: 1px solid #d8e2ec;
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: #fbfdff;
}

.sm2-choice-card-body {
    display: block;
    min-width: 0;
    line-height: 1.45;
}

.sm2-choice-card-body strong {
    display: block;
    color: #21384d;
    margin-bottom: 0.15rem;
}

.sm2-choice-input:focus-visible + .sm2-choice-control {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.16);
    border-color: #198754;
}

.sm2-choice-input:checked + .sm2-choice-control {
    background: #198754;
    border-color: #198754;
}

.sm2-choice-input:checked + .sm2-choice-control::after {
    transform: rotate(45deg) scale(1);
}

.sm2-choice-input:checked + .sm2-choice-control + .sm2-choice-text,
.sm2-choice-input:checked + .sm2-choice-control + .sm2-choice-card-body strong {
    color: #123d2b;
}

.sm2-profile-form-block {
    border: 1px solid #d9e3ed;
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
    background: #fbfdff;
}

.sm2-profile-form-block {
    border-color: #d6e2ed;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: 0 12px 30px rgba(18, 45, 72, 0.05);
}

.sm2-profile-form-block .form-control,
.sm2-profile-form-block .form-select {
    min-height: 3rem;
    border-radius: 0.9rem;
    border-color: #cfdae5;
}

.sm2-profile-form-block .form-control:focus,
.sm2-profile-form-block .form-select:focus {
    border-color: #3c76a8;
    box-shadow: 0 0 0 0.18rem rgba(32, 71, 110, 0.14);
}

.sm2-profile-form-block + .sm2-profile-form-block {
    margin-top: 1rem;
}

.sm2-profile-form-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #173652;
    margin-bottom: 0.85rem;
}

.sm2-profile-form-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.18rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2a628f 0%, #84b6dd 100%);
}

.sm2-profile-form-actions {
    border-top-color: #d6e2ed;
}

.sm2-profile-form-actions .btn {
    min-width: 12rem;
}

.sm2-profile-form-actions {
    border-top: 1px solid #d9e3ed;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

@media (max-width: 991.98px) {
    .ventanilla-help-links {
        grid-template-columns: 1fr;
    }

    .sm2-admin-hero-card,
    .sm2-profile-hero-card {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.15rem;
    }

    .sm2-profile-summary-list {
        grid-template-columns: 1fr;
    }

    .sm2-admin-edit-sidebar,
    .sm2-profile-sidebar {
        padding: 0.55rem;
    }

    .sm2-admin-vertical-menu,
    .sm2-profile-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .sm2-admin-vertical-menu .nav-item,
    .sm2-profile-menu .nav-item {
        flex: 0 0 auto;
    }

    .sm2-admin-vertical-menu .nav-link,
    .sm2-profile-menu .nav-link {
        white-space: nowrap;
    }

    .sm2-workspace-body {
        padding: 0.75rem;
    }

    .sm2-workspace-panel {
        padding: 0.7rem 0.75rem;
    }

    .sm2-admin-edit-panel-body {
        padding: 0.75rem;
    }

    .sm2-datos-estado-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .login-card-body {
        padding: 1.4rem 1.25rem 1.5rem;
    }

    .ventanilla-hero {
        height: 100px;
    }

    .ventanilla-panel-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .login-title {
        font-size: 1.65rem;
    }

    .login-brand-logo {
        height: 36px;
    }

    .btn-login-entra,
    .ventanilla-cta {
        width: 100%;
    }

    .sm2-admin-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .sm2-profile-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .sm2-workspace-shell {
        border-radius: 0.8rem;
    }

    .sm2-workspace-body {
        padding: 0.65rem;
    }

    .sm2-workspace-header,
    .sm2-profile-header {
        margin-bottom: 0.9rem !important;
    }

    .sm2-workspace-header h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .sm2-profile-chipbar,
    .sm2-admin-filtro-panel,
    .sm2-workspace-panel,
    .sm2-profile-form-block,
    .sm2-admin-subsection,
    .sm2-admin-helper-card {
        border-radius: 0.75rem;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .sm2-profile-hero-card {
        border-radius: 1rem;
    }

    .sm2-admin-hero-card {
        border-radius: 1rem;
    }

    .sm2-profile-hero-title {
        font-size: 1.25rem;
    }

    .sm2-admin-hero-title {
        font-size: 1.25rem;
    }

    .sm2-profile-hero-list span {
        min-height: 0;
        padding: 0.72rem 0.8rem;
    }

    .sm2-admin-hero-list span {
        min-height: 0;
        padding: 0.72rem 0.8rem;
    }

    .sm2-admin-vertical-menu,
    .sm2-profile-menu {
        gap: 0.35rem;
        padding-bottom: 0.15rem;
        scroll-snap-type: x proximity;
    }

    .sm2-admin-vertical-menu .nav-item,
    .sm2-profile-menu .nav-item {
        scroll-snap-align: start;
    }

    .sm2-admin-vertical-menu .nav-link,
    .sm2-profile-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.62rem 0.8rem;
    }

    .sm2-admin-tab-label {
        white-space: normal;
        line-height: 1.25;
    }

    .sm2-profile-summary-item {
        padding: 0.7rem 0.75rem;
    }

    .sm2-admin-grid thead th,
    .sm2-admin-grid tbody td {
        font-size: 0.84rem;
        padding: 0.62rem 0.55rem;
    }

    .sm2-admin-grid-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sm2-admin-grid {
        min-width: 720px;
    }

    .sm2-profile-form-actions,
    .sm2-wizard-action-bar,
    .sm2-admin-page .d-flex.justify-content-end,
    .sm2-profile-pane .d-flex.justify-content-end {
        width: 100%;
    }

    .sm2-profile-form-actions .btn,
    .sm2-wizard-action-bar .btn,
    .sm2-admin-page .d-flex.justify-content-end > .btn,
    .sm2-profile-pane .d-flex.justify-content-end > .btn {
        width: 100%;
    }

    .sm2-choice {
        align-items: flex-start;
    }

    .sm2-choice-text,
    .sm2-choice-card-body {
        min-width: 0;
    }

    #modalFormacion .modal-dialog,
    #modalExperiencia .modal-dialog,
    #modalHistorial .modal-dialog {
        margin: 0.65rem;
    }
}

@media (orientation: portrait) and (min-width: 992px) and (max-width: 1400px) {
    .sm2-admin-edit-layout > [class*="col-lg-3"],
    .sm2-admin-edit-layout > [class*="col-lg-9"],
    .sm2-profile-layout > [class*="col-lg-3"],
    .sm2-profile-layout > [class*="col-lg-9"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sm2-admin-edit-sidebar,
    .sm2-profile-sidebar {
        margin-bottom: 0.35rem;
    }

    .sm2-admin-vertical-menu,
    .sm2-profile-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .sm2-admin-vertical-menu .nav-item,
    .sm2-profile-menu .nav-item {
        flex: 0 0 auto;
        width: auto;
    }

    .sm2-admin-vertical-menu .nav-link,
    .sm2-profile-menu .nav-link {
        white-space: nowrap;
    }

    .sm2-workspace-body {
        padding: 1rem;
    }

    .sm2-admin-grid {
        min-width: 980px;
    }
}

/* REPORTES SM2 */
.sm2-reportes-page {
    background: #f6f7f8;
    border: 1px solid #dce6f0;
    border-radius: 0.9rem;
    box-shadow: 0 12px 28px rgba(12, 42, 74, 0.08);
}

.sm2-reportes-wizard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.sm2-step {
    border: 1px solid #c8d7e7;
    background: #f3f4f5;
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-weight: 600;
    color: #37516d;
    text-align: left;
}

.sm2-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    border: 1px solid #a8c0d9;
    background: #ffffff;
    font-size: 0.78rem;
}

.sm2-step.active {
    border-color: #1f4f7f;
    color: #ffffff;
    background: linear-gradient(135deg, #1f4f7f 0%, #16395b 100%);
}

.sm2-step.active span {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.sm2-step-panel {
    display: none;
}

.sm2-step-panel.active {
    display: block;
}

.sm2-report-type {
    border: 1px solid #cad8e7;
    width: 100%;
    text-align: left;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sm2-report-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 46, 80, 0.12);
    border-color: #8fb1d5;
}

.sm2-report-type.selected {
    border-color: #205989;
    box-shadow: 0 0 0 2px rgba(32, 89, 137, 0.2);
}

.sm2-reportes-page.is-busy {
    opacity: 0.72;
    transition: opacity 0.15s ease-in-out;
}

#selectionMeta {
    border: 1px dashed #c2d2e2;
    border-radius: 0.55rem;
    padding: 0.4rem 0.6rem;
    background: #f5f9fd;
}

#resultsTable thead th {
    white-space: nowrap;
}

#resultsTable td {
    vertical-align: top;
}

#resultsTable .js-doc-select[disabled] {
    cursor: not-allowed;
    opacity: 0.45;
}

.sm2-acciones-layout {
    align-items: flex-start;
}

.sm2-acciones-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #d3dfea;
    border-radius: 0.85rem;
    padding: 0.65rem;
    background: #f6faff;
}

.sm2-acciones-step {
    width: 100%;
    text-align: left;
    border: 1px solid #c9d8e8;
    border-radius: 0.6rem;
    background: #ffffff;
    color: #24415d;
    font-weight: 600;
    padding: 0.48rem 0.65rem;
}

.sm2-acciones-step.active {
    color: #ffffff;
    border-color: #1f4f7f;
    background: linear-gradient(135deg, #1f4f7f 0%, #16395b 100%);
}

.sm2-acciones-panel {
    display: none;
}

.sm2-acciones-panel.active {
    display: block;
}

.sm2-action-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.35rem;
    border: 1px solid #c7d8e7;
    border-radius: 0.75rem;
    padding: 0.8rem 0.9rem;
    background: #ffffff;
    transition: all 0.15s ease-in-out;
}

.sm2-action-card span {
    color: #5a6978;
    font-size: 0.88rem;
}

.sm2-action-card:hover {
    border-color: #86abcf;
    box-shadow: 0 8px 18px rgba(17, 52, 84, 0.12);
}

.sm2-action-card.selected {
    border-color: #1f4f7f;
    box-shadow: 0 0 0 2px rgba(31, 79, 127, 0.2);
}

@media (max-width: 991.98px) {
    .sm2-reportes-wizard {
        grid-template-columns: 1fr 1fr;
    }

    .sm2-acciones-sidebar {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .sm2-acciones-step {
        white-space: nowrap;
        width: auto;
    }
}

.sm2-recovery-page {
    background:
        radial-gradient(circle at top right, rgba(27, 72, 122, 0.08), transparent 34%),
        linear-gradient(180deg, #f6f7f8 0%, #eef2f6 100%);
}

.sm2-recovery-card {
    overflow: hidden;
}

.sm2-recovery-kicker {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(27, 72, 122, 0.1);
    color: #1b487a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm2-recovery-stage-card,
.sm2-recovery-password-card,
.sm2-recovery-warning-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #d6e0ea;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 42px rgba(34, 59, 87, 0.08);
}

.sm2-recovery-stage-header {
    margin-bottom: 1.25rem;
}

.sm2-recovery-stage-title {
    margin: 0;
    color: #14324f;
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 1rem;
}

.sm2-recovery-stage-copy,
.sm2-inline-note {
    color: #4a5d73;
    line-height: 1.6;
}

.sm2-recovery-terms {
    display: grid;
    gap: 0.85rem;
    color: #23384d;
    font-size: 0.95rem;
    line-height: 1.65;
}

.sm2-recovery-terms p {
    margin: 0;
}

.sm2-recovery-terms-highlight {
    font-weight: 700;
    color: #8b1e2d;
}

.sm2-recovery-links {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.sm2-recovery-link {
    background: #f8fbfe;
    color: #173652;
    border-color: #d5e1ec;
    box-shadow: none;
    backdrop-filter: none;
}

.sm2-recovery-link:hover,
.sm2-recovery-link:focus {
    color: #102b43;
    background: #eef5fb;
    border-color: #aac4da;
    box-shadow: 0 10px 22px rgba(20, 50, 79, 0.08);
}

.sm2-recovery-link .ventanilla-help-link-icon {
    background: linear-gradient(135deg, #eaf3fb 0%, #f7fbff 100%);
    color: #1d628f;
}

.sm2-recovery-link > .fa-arrow-up-right-from-square {
    color: #567089;
    opacity: 1;
}

.sm2-recovery-consent {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.sm2-recovery-consent-control {
    position: relative;
}

.sm2-recovery-consent-input {
    position: absolute;
    inset: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sm2-recovery-consent-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid #d6e2ed;
    border-radius: 1rem;
    background: #f8fbfd;
    color: #20384d;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

.sm2-recovery-consent-toggle:hover {
    border-color: #9eb7cd;
    background: #f3f8fc;
}

.sm2-recovery-consent-control.is-checked .sm2-recovery-consent-toggle {
    border-color: #2f6fa1;
    background: #edf6fd;
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 161, 0.12);
}

.sm2-recovery-consent-control:focus-within .sm2-recovery-consent-toggle {
    border-color: #2f6fa1;
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 161, 0.14);
}

.sm2-recovery-consent-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.1rem;
    border: 1px solid #b7c9d9;
    border-radius: 0.45rem;
    background: #ffffff;
    color: transparent;
    flex-shrink: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sm2-recovery-consent-control.is-checked .sm2-recovery-consent-indicator {
    background: #1f5e8f;
    border-color: #1f5e8f;
    color: #ffffff;
}

.sm2-recovery-consent-text {
    color: #22384a;
    line-height: 1.6;
}

.sm2-recovery-actions-inline {
    margin-top: 0;
}

.sm2-recovery-next[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none;
}

.sm2-recovery-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.sm2-recovery-field-wide {
    grid-column: 1 / -1;
}

.sm2-recovery-field-hidden {
    display: none;
}

.sm2-recovery-field .form-control,
.sm2-recovery-field .form-select,
.sm2-listbox-single {
    min-height: 3rem;
    border-radius: 0.9rem;
}

.sm2-recovery-field .form-label {
    display: block;
    margin-bottom: 0.55rem;
}

.sm2-recovery-field .form-control:focus,
.sm2-recovery-field .form-select:focus,
.sm2-listbox-single:focus {
    border-color: #1b487a;
    box-shadow: 0 0 0 0.18rem rgba(27, 72, 122, 0.18);
}

.sm2-static-field {
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid #d6e0ea;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #223b57;
    font-weight: 600;
}

.sm2-recovery-feedback {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.sm2-recovery-feedback .alert:empty,
.sm2-recovery-warning-card .alert:empty,
.sm2-recovery-password-card .alert:empty,
.sm2-recovery-stage-card .alert:empty {
    display: none !important;
}

.sm2-recovery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.sm2-recovery-stage-card > .sm2-recovery-password-card,
.sm2-recovery-stage-card > .sm2-recovery-warning-card {
    margin-top: 1.75rem;
    padding: 1.35rem 0 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sm2-recovery-subsection {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e6edf4;
}

.sm2-recovery-subsection-title {
    margin: 0 0 0.45rem;
    color: #173652;
    font-size: 1rem;
    font-weight: 700;
}

.sm2-recovery-password-card .sm2-recovery-subsection:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.sm2-recovery-password-card .sm2-recovery-actions {
    padding-top: 1.1rem;
    border-top: 1px solid #e6edf4;
}

.sm2-recovery-inline-link {
    text-decoration: none;
}

.sm2-recovery-password-header {
    margin-bottom: 1rem;
}

.sm2-recovery-hidden {
    display: none;
}

.sm2-recovery-side {
    position: sticky;
    top: 0;
}

@media (max-width: 991.98px) {
    .sm2-recovery-side {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .sm2-recovery-form-grid {
        grid-template-columns: 1fr;
    }

    .sm2-recovery-stage-card,
    .sm2-recovery-password-card,
    .sm2-recovery-warning-card {
        padding: 1.1rem;
        border-radius: 1rem;
    }
}


