
.container-fluid {
    background: linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%);
    height: auto !important;
    padding: 0 !important;
}

.row>* {
    padding-right: calc(var(--bs-gutter-x)/ 2) !important;
    padding-left: calc(var(--bs-gutter-x)/ 2) !important;
}

.basa-btn-tex {
    color: #FAF6EE;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.basa-btn-tex:hover {
    background: #b59155;
    color: #d6d1c8;
}

/* Contenedor principal */
.inv-wrapper {
    max-width: 1770px;
    margin: 30px auto;
    background: #F5F4F7;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    max-height: 624px;
}

/* Columna izquierda - Descripción */
.inv-sidebar {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.insider-content{
    position: relative;
    background: #F1E2CB;
    max-width: 739px;
    min-height: 483px;
    border-radius: 30px;
    padding: 46px 46px;
    box-shadow: var(--sds-size-depth-0) 0 30px 4px rgba(115, 115, 115, 0.10);
}

.insider-content .fondo-icon {
    position: absolute;
    top: 2px;
    right: 1px;
    width: 120px;
    height: auto;
    pointer-events: none;
}

.inv-sidebar h4 {
    max-width: 469px;
    color: #D1A257;
    font-family: "Cera Pro";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 40px;
}

@media screen and (min-width: 1020px) and (max-width: 1300px) {
    .inv-sidebar h4 {
        font-size: calc(1.275rem + .3vw);
    }

}

.inv-sidebar .inv-sidebar-subtitle {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    text-align: justify;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.inv-sidebar p {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Columna derecha - Cards */
.inv-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Tabs */
.inv-tabs {
    margin: 50px 0px 30px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-tab {
    width: 100px;
    height: 36px;
    text-align: center;
    font-weight: 400;
    cursor: pointer;
    background: #E6E9EE;
    border: none;
    border-radius: 100px;
    transition: all 0.2s;
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-400) var(--sds-size-depth-400) var(--sds-size-depth-negative-200) var(--sds-color-black-200), var(--sds-size-depth-0) var(--sds-size-depth-100) var(--sds-size-depth-100) var(--sds-size-depth-negative-100) var(--sds-color-black-100);
}

.inv-tab:hover {
    color: #002453;
}

.inv-tab.active {
    color: #E6E9EE;
    font-family: "Cera Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background: #002453;
}

/* Zona scrollable de cards */
.inv-cards-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #002453 transparent;
    padding-right: 6px;
}

.inv-cards-scroll::-webkit-scrollbar {
    width: 8px;
}

.inv-cards-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 250px;
    margin: 8px 0;
}

.inv-cards-scroll::-webkit-scrollbar-thumb {
    background: #c5cdd8;
    border-radius: 250px;
}

.inv-cards-scroll::-webkit-scrollbar-thumb:hover {
    background: #adb5c0;
}

/* Cards de inversión rediseñadas */
.inv-card {
    background: #fff;
    box-shadow: 10px 10px var(--sds-size-depth-800) var(--sds-size-depth-negative-100) var(--sds-color-black-200);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    max-width: 790px;
}

.inv-card:hover {
    box-shadow: 0 4px 16px rgba(0, 36, 83, 0.08);
}

.inv-card-title {
    align-self: stretch;
    color: #002453;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.inv-card-balance {
    font-family: "Cera Pro", sans-serif;
    color: #002453;
    margin-bottom: 0;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.inv-card-currency {
    font-family: "Cera Pro", sans-serif;
    color: #002453;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}
.inv-card-serie {
    font-family: "Cera Pro", sans-serif;
    color: #002453;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.inv-card hr {
    background: #002453;
    height: 0.3px;
    margin: 12px 0;
}

.inv-card-detail {
    text-align: justify;
    font-family: "Cera Pro", sans-serif;
    font-size: 16px;
    color: #002453;
    margin-bottom: 4px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.detail-span {
    color: #002453;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.inv-card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.inv-btn-subscribe {
    color: #fff;
    background: #cba462;
    border: none;
    border-radius: 20px;
    padding: 8px 28px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.inv-btn-subscribe:hover {
    background: #b59155;
}

.inv-btn-rescue {
    background: #E6E9EE;
    color: #152B50;
    border: none;
    border-radius: 20px;
    padding: 8px 28px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.inv-btn-rescue:hover {
    background: #c9ccd1;
}

.inv-btn-select-bond {
    color: #fff;
    background: #b5b8ba;
    border: none;
    border-radius: 20px;
    padding: 8px 28px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.inv-btn-select-bond:hover {
    background: #9ea1a3;
}

.inv-pill {
    background-color: #205093;
    display: inline-block;
    padding: 2px 14px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-family: "Cera Pro", sans-serif;
    margin-left: 8px;
}

.inv-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e9eb3;
    font-family: "Cera Pro", sans-serif;
    font-size: 15px;
}

@media screen and (min-width: 1020px) and (max-width: 1300px) {
    .inv-btn-rescue,
    .inv-btn-select-bond,
    .inv-btn-subscribe {
        font-size: inherit;
    }

}

/* =============================================
   Responsive - Tablets y pantallas medianas
   (max-width: 1024px)
   ============================================= */
@media only screen and (max-width: 1024px) {
    #header {
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 27px !important;
    }

    /* Botón Añadir Cuenta - responsive */
    .btn-open-account {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }

    .inv-wrapper {
        flex-direction: column;
        margin: 10px 10px;
        border-radius: 20px;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .inv-sidebar {
        flex: none;
        max-width: 100%;
        padding: 24px 20px;
        border-right: none;
    }

    .insider-content {
        min-height: auto;
        padding: 30px 30px;
    }

    .inv-sidebar h4 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .inv-content {
        padding: 0 16px 16px 16px;
    }

    .inv-tabs {
        margin: 24px 0 20px 0;
        justify-content: center;
    }

    /* Corregir conflicto con custom.css .active */
    .inv-tab.active {
        color: #E6E9EE !important;
        background: #002453;
    }

    /* En responsive toda la pagina es scrolleable, no solo las cards */
    .inv-cards-scroll {
        max-height: none;
        overflow-y: visible;
        padding: 0 0 16px 0;
    }

    .inv-card {
        margin-bottom: 12px;
        padding: 20px 24px;
        max-width: 100%;
    }

    /* Fondos: detalles en 2 columnas centradas */
    .inv-card .row .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .inv-card .row .col-8 .row {
        justify-content: center;
    }

    .inv-card .row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Bonos: outer col-6 va 100% pero las columnas internas se mantienen */
    .inv-card .row > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Bonos: detalles col-8 + col-4 en linea */
    .inv-card .row > .col-6 .row .col-8,
    .inv-card .row > .col-6 .row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .inv-card .row > .col-6 .row {
        justify-content: center;
    }

    /* Divider al nivel del titulo */
    .inv-card-title {
        font-size: 18px;
        margin-bottom: 0;
    }

    .inv-card-balance {
        margin-bottom: 0;
        font-size: 22px;
    }

    .inv-card hr {
        margin: 6px 0 10px 0;
    }

    .inv-card-detail {
        font-size: 14px;
    }

    .detail-span {
        font-size: 14px;
    }

    .inv-card-actions {
        flex-direction: column;
        margin-top: 16px;
    }

    .inv-card-actions button {
        width: 100%;
    }

    .inv-btn-subscribe,
    .inv-btn-rescue,
    .inv-btn-select-bond {
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* =============================================
   Responsive - Tablets portrait / pantallas md
   (max-width: 768px)
   ============================================= */
@media only screen and (max-width: 768px) {
    .inv-wrapper {
        margin: 8px 8px;
        border-radius: 16px;
    }

    .btn-open-account {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }

    .btn-open-account svg {
        width: 16px;
        height: 16px;
    }

    .inv-sidebar {
        padding: 20px 16px;
    }

    .insider-content {
        padding: 24px 24px;
        border-radius: 20px;
    }

    .insider-content .fondo-icon {
        width: 90px;
    }

    .inv-sidebar h4 {
        font-size: 26px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .inv-content {
        padding: 0 12px 12px 12px;
    }

    .inv-tabs {
        margin: 20px 0 16px 0;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .inv-tab {
        width: 90px;
        height: 32px;
        font-size: 14px;
    }

    .inv-tab.active {
        font-size: 14px;
    }

    .inv-card {
        padding: 16px 16px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .inv-card-title {
        font-size: 16px;
        height: auto;
    }

    .inv-card-balance {
        font-size: 20px;
    }

    .inv-card-currency {
        font-size: 12px;
    }

    .inv-card-serie {
        font-size: 14px;
    }

    /* Mantener detalles en 2 columnas centradas en md */
    .inv-card .row .col-8 .row .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Bonos: detalles en 2 columnas en md */
    .inv-card .row > .col-6 .row .col-8,
    .inv-card .row > .col-6 .row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .inv-card-detail {
        font-size: 13px;
    }

    .detail-span {
        font-size: 13px;
    }

    .inv-pill {
        font-size: 11px;
        padding: 2px 10px;
    }

    .inv-btn-subscribe,
    .inv-btn-rescue,
    .inv-btn-select-bond {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media screen and (min-width: 1030px) and (max-width: 1200px) {
    .account-package {
        max-width: 250px;
    }
}


/* =============================================
   Responsive - Pantallas pequeñas / sm
   (max-width: 576px)
   ============================================= */
@media only screen and (max-width: 576px) {
    .inv-wrapper {
        margin: 0px 0px;
        border-radius: 0px;
    }

    .btn-open-account {
        padding: 7px 10px !important;
        font-size: 16px !important;
    }

    .btn-open-account svg {
        width: 16px;
        height: 16px;
    }

    .account-package {
        font-size: 16px !important;
        background-position: right 10px center !important;
        background-size: 10px 6px !important;
    }

    .inv-sidebar {
        padding: 16px 10px;
    }

    .insider-content {
        padding: 20px 18px;
        border-radius: 16px;
        box-shadow: 0 0 15px 2px rgba(115, 115, 115, 0.10);
    }

    .insider-content .fondo-icon {
        width: 70px;
    }

    .inv-sidebar h4 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .inv-content {
        padding: 0 8px 10px 8px;
    }

    .inv-tabs {
        margin: 16px 0 12px 0;
        gap: 6px;
    }

    .inv-tab {
        width: 80px;
        height: 30px;
        font-size: 13px;
    }

    .inv-tab.active {
        font-size: 13px;
    }

    .inv-card {
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .inv-card-title {
        font-size: 15px;
        height: auto;
    }

    .inv-card-balance {
        font-size: 18px;
    }

    .inv-card-currency {
        font-size: 11px;
    }

    .inv-card-serie {
        font-size: 13px;
    }

    .inv-card hr {
        margin: 4px 0 8px 0;
    }

    /* Detalles en 2 columnas centradas en sm */
    .inv-card .row .col-8 .row .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .inv-card .row .col-8 .row {
        text-align: center;
    }

    /* Bonos: detalles en 2 columnas en sm */
    .inv-card .row > .col-6 .row .col-8,
    .inv-card .row > .col-6 .row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .inv-card .row > .col-6 .row {
        text-align: center;
    }

    .inv-card-detail {
        font-size: 12px;
        text-align: center;
    }

    .detail-span {
        font-size: 12px;
    }

    .inv-pill {
        font-size: 10px;
        padding: 1px 8px;
        margin-left: 4px;
    }

    .inv-card-actions {
        gap: 8px;
        margin-top: 12px;
    }

    .inv-btn-subscribe,
    .inv-btn-rescue,
    .inv-btn-select-bond {
        font-size: 15px;
        padding: 8px 14px;
        border-radius: 16px;
    }

    .inv-empty {
        padding: 24px 12px;
        font-size: 13px;
    }
}


/* =============================================
   Rescue (Rescate) - Multi-step design
   ============================================= */

.rescue-wrapper {
    max-height: none;
    min-height: 601px;
}


/* Sidebar izquierdo del rescate */
.rescue-sidebar {
    flex: 0 0 50%;
    max-width: 50%;
}

.rescue-insider {
background: var(--Gradiend---Primary, linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%));
box-shadow: var(--sds-size-depth-0) 0 30px 4px rgba(115, 115, 115, 0.10);
    width: 739px;
height: 483px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Burbujas decorativas */
.rescue-bubbles {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.rescue-title {
    color: #FFFFFF !important;
    font-family: "Cera Pro";
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 36px;
}

/* Pasos del rescate */
.rescue-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rescue-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rescue-step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #CBA462;
    color: #CBA462;
    font-family: "Cera Pro";
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.rescue-step-label {
    color: var(--Foundation-Azul-BC-azul-bc-50, #E6E9EE);
    text-align: justify;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.rescue-step-text {
    color: var(--Foundation-Azul-BC-azul-bc-50, #E6E9EE);
    font-family: "Cera Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Contenido derecho */
.rescue-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    align-items: center;
}

.rescue-content-title {
    color: #002453;
    text-align: center;
    font-family: "Cera Pro";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 35px;
}

/* Card del fondo */
.rescue-fund-card {
    width: 428px;
    background: #E6E9EE;
    border: 1.5px solid #E0E4EA;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 36, 83, 0.06);
}

.rescue-fund-name {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.rescue-fund-balance {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
}

.rescue-fund-currency {
    font-size: 16px;
    font-weight: 400;
    color: #002453;
}

.rescue-fund-divider {
    background: #002453;
    height: 0.5px;
    margin: 12px 0;
    opacity: 0.2;
}

.rescue-fund-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rescue-fund-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rescue-fund-detail-label {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 14px;
    font-weight: 400;
}

.rescue-fund-detail-value {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 14px;
    font-weight: 400;
    text-align: right;
}

/* Input de monto */
.rescue-amount-input-wrapper {
    margin-bottom: 12px;
}

.rescue-amount-input {
    border-radius: 30px;
    border: 1px solid var(--Foundation-Azul-BC-azul-bc-500, #002453);
    padding: 14px 18px;
    background: #F5F4F7;
    width: 432px;
    color: var(--Black, #030303);
    font-family: "Cera Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-bottom: 35px;
}

.rescue-amount-input:focus {
    background: #F5F4F7;
    border-color: #005B98;
    box-shadow: 0 0 0 3px rgba(0, 91, 152, 0.1);
    outline: none;
}

.rescue-checkbox-label {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 14px;
    margin-bottom: 0;
    cursor: pointer;
}

/* Botón Siguiente */
.rescue-btn-next {
    width: 420px;
    height: 60px;
    border-radius: 32px;
    background: var(--Gradiend---Primary, linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%));
    padding: 14px 28px;
    color: var(--Primary-primary-50, #E6EEF5);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.rescue-btn-next:hover {
    background: #004A7A;
    color: #FFFFFF;
}

/* Cards de cuentas bancarias */
.rescue-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    width: 432px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #002453 transparent;
    box-shadow: 10px 10px var(--sds-size-depth-800) var(--sds-size-depth-negative-100) var(--sds-color-black-200);

}

.rescue-accounts-list::-webkit-scrollbar {
    width: 6px;
}

.rescue-accounts-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 250px;
}

.rescue-accounts-list::-webkit-scrollbar-thumb {
    background: #c5cdd8;
    border-radius: 250px;
}

.rescue-accounts-list::-webkit-scrollbar-thumb:hover {
    background: #adb5c0;
}

.rescue-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E0E4EA;
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    box-shadow: 10px 10px var(--sds-size-depth-800) var(--sds-size-depth-negative-100) var(--sds-color-black-200);
    height: 80px;
}

.rescue-account-card:hover {
    border-color: #005B98;
    box-shadow: 0 2px 8px rgba(0, 91, 152, 0.08);
}

.rescue-account-card input[type="radio"] {
    accent-color: #005B98;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rescue-account-card input[type="radio"]:checked ~ .rescue-account-info {
    color: #002453;
}

.rescue-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rescue-account-holder {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.rescue-account-detail {
    color: var(--Black, #030303);
    font-family: "Cera Pro";
    font-size: 17px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Link agregar cuenta */
.rescue-add-account {
    display: block;
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.rescue-add-account:hover {
    color: #005B98;
}

/* Botón Confirmar rescate */
.rescue-btn-confirm {
    width: 420px;
    height: 60px;
    border-radius: 32px;
    background: var(--Gradiend---Primary, linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%));
    padding: 14px 28px;
    color: var(--Primary-primary-50, #E6EEF5);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 2rem;
}

.rescue-btn-confirm:hover {
    color: #FFFFFF;
}

/* Botón volver */
.rescue-btn-back {
    display: block;
    text-align: center;
    color: #5A6B82;
    font-family: "Cera Pro";
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 1rem;
}

.rescue-btn-back:hover {
    color: #002453;
    text-decoration: underline;
}

/* Sin cuentas */
.rescue-empty-text {
    color: #5A6B82;
    font-family: "Cera Pro";
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.rescue-no-accounts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sección agregar cuenta (inline) */
.rescue-add-account-subtitle {
    color: var(--Black, #030303);
    max-width: 420px;
    text-align: center;
    font-family: "Cera Pro";
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-bottom: 2rem;
}

.rescue-add-account-form {
    width: 432px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.rescue-form-group {
    width: 100%;
    margin-bottom: 1.3rem;
}

.rescue-form-input {
    width: 100%;
    border-radius: 30px;
    border: 1px solid var(--Foundation-Azul-BC-azul-bc-500, #002453);
    padding: 14px 18px;
    background: #F5F4F7;
    color: var(--Black, #030303);
    font-family: "Cera Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.rescue-form-input::placeholder {
    color: #8E9EB3;
    font-weight: 300;
}

.rescue-form-input:focus {
    background: #F5F4F7;
    border-color: #005B98;
    box-shadow: 0 0 0 3px rgba(0, 91, 152, 0.1);
}

.rescue-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23002453' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.rescue-form-select option[disabled] {
    color: #8E9EB3;
}

.rescue-form-select option {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    font-family: "Cera Pro";
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* =============================================
   Rescue - Responsive 1024px
   ============================================= */
@media only screen and (max-width: 1024px) {
    .rescue-wrapper {
        flex-direction: column;
    }

    .rescue-sidebar {
        flex: none;
        max-width: 100%;
    }

    .rescue-insider {
        min-height: auto;
        padding: 30px 24px;
    }

    .rescue-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .rescue-content {
        padding: 24px 20px;
    }

    .rescue-content-title {
        font-size: 24px;
    }

    .rescue-fund-balance {
        font-size: 26px;
    }
}

/* =============================================
   Rescue - Responsive 768px
   ============================================= */
@media only screen and (max-width: 768px) {
    .rescue-insider {
        padding: 24px 18px;
        width: auto;
        height: auto;
    }

    .rescue-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rescue-steps {
        gap: 18px;
    }

    .rescue-step-label {
        font-size: 16px;
    }

    .rescue-step-text {
        font-size: 16px;
    }

    .rescue-content {
        padding: 20px 16px;
    }

    .rescue-content-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .rescue-fund-balance {
        font-size: 22px;
    }

    .rescue-btn-next,
    .rescue-btn-confirm {
        font-size: 16px;
        padding: 12px 20px;
        width: 420px;
        height: 60px;
    }

    .rescue-account-card {
        padding: 14px 16px;
    }
    .rescue-fund-card {
        width: 100%;
    }

    .rescue-add-account-form {
        width: 100%;
    }
    .rescue-step-panel {
        width: 90%;
    }
}

/* =============================================
   Rescue - Responsive 576px
   ============================================= */
@media only screen and (max-width: 576px) {
    .rescue-insider {
        padding: 20px 14px;
        border-radius: 16px;
        width: 95%;
        height: auto;
    }

    .rescue-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .rescue-step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .rescue-step-label {
        font-size: 14px;
    }

    .rescue-step-text {
        font-size: 14px;
    }

    .rescue-content {
        padding: 16px 10px;
    }

    .rescue-content-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .rescue-fund-card {
        width: 100%;
        max-height: none;
        padding: 16px 14px;
        border-radius: 14px;
        padding-bottom: 20px;
    }

    .rescue-fund-name {
        font-size: 14px;
    }

    .rescue-fund-balance {
        font-size: 20px;
    }

    .rescue-fund-detail-label,
    .rescue-fund-detail-value {
        font-size: 12px;
    }

    .rescue-amount-input {
        width: 100%;
        font-size: 18px;
        padding: 12px 14px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .rescue-btn-next,
    .rescue-btn-confirm {
        width: 100%;
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 24px;
    }

    .rescue-accounts-list {
        display: flex;
        justify-content: center;
        width: 95%;
    }

    .rescue-account-card {
        padding: 12px 12px;
        border-radius: 10px;
    }

    .rescue-account-holder {
        font-size: 14px;
    }

    .rescue-account-detail {
        font-size: 12px;
    }

    .rescue-add-account-form {
        width: 100%;
    }

    .rescue-form-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .rescue-add-account-subtitle {
        display: flex;
        justify-content: center;
        color: var(--Black, #030303);
        text-align: center;
        font-family: "Cera Pro";
        font-size: 18px;
        font-style: normal;
        font-weight: 300;
        line-height: normal;
    }
    .rescue-step-panel {
        width: 95%;
    }
    .rescue-success-row {
        width: 90%;
    }
}

/* =============================================
   Modal de confirmación/éxito del rescate
   ============================================= */
.rescue-modal-content {
    padding-bottom: 40px;
    width: 570px;
    height: 522px;
}
.create-account-step {
    padding: 0px;
}

.rescue-modal-icon {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.rescue-modal-icon img {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1;
}

.rescue-modal-title {
    font-size: 29px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 20px;
    margin-bottom: 20px;
    height: auto;
}

.rescue-modal-subtitle {
    height: auto;
}

/* Éxito del rescate */
.rescue-success-heading {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.rescue-success-amount {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.rescue-success-card {
    display: flex;
    padding: 10px 17px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    background: var(--Primary-primary-50, #E6EEF5);
    border-radius: 20px;
}
@media only screen and (min-width: 1024px) {
    .rescue-success-card {
        width: 432px;
    }
}

.rescue-success-card-title {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    align-self: stretch;
    text-align: center;
    font-family: "Cera Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.rescue-success-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rescue-success-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 0.5px solid #e1d8d8;
}

@media only screen and (min-width: 1024px) {
    .rescue-success-row {
        width: 398px;
    }
}

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

.rescue-success-label {
    color: var(--Black, #030303);
    font-family: "Cera Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}
.rescue-success-label-last {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.rescue-strong {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}


.rescue-success-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #F5F8FB;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.rescue-success-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.rescue-success-info-text {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

/* Responsive modal rescate */
@media only screen and (max-width: 576px) {
    .rescue-modal-title {
        font-size: 20px;
    }

    .rescue-modal-content {
        width: 100%;
        height: auto;
        padding: 1.5rem 0;
    }
    .rescue-modal-icon{
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .rescue-modal-icon img {
        width: 5rem;
        height: auto;
    }

    .rescue-modal-subtitle {
        font-size: 15px;
    }

    .rescue-success-heading {
        font-size: 20px;
    }

    .rescue-success-amount {
        font-size: 24px;
    }
}

/* =============================================
   Print - Solo mostrar card de éxito del rescate
   ============================================= */
@media print {
    /* Ocultar header, navbar, sidebar y modal */
    #header-container,
    .rescue-sidebar,
    #modal-rescue,
    .modal-backdrop,
    #btn-rescue-download {
        display: none !important;
    }

    /* Quitar fondos y bordes del contenedor */
    body,
    .container-fluid,
    #blurred,
    .inv-wrapper,
    .rescue-wrapper {
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .inv-wrapper,
    .rescue-wrapper {
        display: block !important;
    }

    /* Columna derecha ocupa todo el ancho */
    .rescue-content,
    .inv-content {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    /* Ocultar todos los paneles excepto el de éxito */
    #rescue-step-1,
    #rescue-step-2,
    #rescue-step-add-account,
    #rescue-no-accounts {
        display: none !important;
    }

    /* Forzar que el panel de éxito se muestre */
    #after-message {
        display: block !important;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Estilos limpios para impresión */
    .rescue-success-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .rescue-success-card-title {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .rescue-success-info {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        break-inside: avoid;
    }

    .create-account-btn-confirm {
        display: none !important;
    }
}

/* =============================================
   Suscripción
   ============================================= */

.subscribe-wrapper {
    max-height: none;
    min-height: 601px;
}

/* Sidebar naranja para suscripción */
.subscribe-insider {
    background: var(--Secondary-secondary-100, #F1E2CB);
    box-shadow: var(--sds-size-depth-0) 0 30px 4px rgba(115, 115, 115, 0.10);
    width: 739px;
    height: 483px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subscribe-title {
    color: #D1A257 !important;
    font-family: "Cera Pro";
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 36px;
    max-width: 469px;
}

.subscribe-step-label {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    text-align: justify;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.subscribe-step-text {
    color: var(--Foundation-Azul-BC-azul-bc-500, #002453);
    font-family: "Cera Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Botón confirmar suscripción (dorado) */
.subscribe-btn-confirm {
    background: var(--Gradiend---Primary, linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%));
}

.subscribe-btn-confirm:hover {
    background: var(--Gradiend---Primary, linear-gradient(92deg, #01568f 3.1%, #152B50 97.65%));
    color: #fff !important;
}

/* Disclaimer label */
.subscribe-disclaimer-label {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
}

/* Info cuota partes */
.subscribe-fee-info {
    color: #002453;
    font-family: "Cera Pro";
    font-size: 14px;
    font-weight: 400;
}

/* Unclickable state */
.unclickable {
    pointer-events: none;
    opacity: 0.6;
}

@media only screen and (max-width: 1600px) {
    .subscribe-insider {
        width: 100%;
    }
    .rescue-insider {
        width: 100%;
    }
}

/* =============================================
   Subscribe - Responsive 1024px
   ============================================= */
@media only screen and (max-width: 1024px) {
    .subscribe-insider {
        min-height: auto;
        padding: 30px 24px;
        width: auto;
        height: auto;
    }

    .subscribe-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
}

/* =============================================
   Subscribe - Responsive 768px
   ============================================= */
@media only screen and (max-width: 768px) {
    .subscribe-insider {
        padding: 24px 18px;
        width: auto;
        height: auto;
    }

    .subscribe-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

}

/* =============================================
   Subscribe - Responsive 576px
   ============================================= */
@media only screen and (max-width: 576px) {
    .subscribe-insider {
        padding: 20px 14px;
        border-radius: 16px;
        width: 95%;
        height: auto;
    }

    .subscribe-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

}

/* =============================================
   Copy button + Tooltip
   ============================================= */
.copy-btn {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(0, 36, 83, 0.08);
}

.copy-btn img {
    width: 18px;
    height: 18px;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #002453;
    color: #fff;
    font-family: "Cera Pro", sans-serif;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #002453;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.copy-tooltip.copied {
    background: #28a745;
}

.copy-tooltip.copied::after {
    border-top-color: #28a745;
}

/* =============================================
   Print - Suscripción
   ============================================= */
@media print {
    .subscribe-wrapper .inv-sidebar {
        display: none !important;
    }

    .subscribe-wrapper #subscribe-step-1 {
        display: none !important;
    }

    .subscribe-wrapper #after-message {
        display: block !important;
        max-width: 500px;
        margin: 0 auto;
    }

    #modal-subscribe-loading {
        display: none !important;
    }

    #btn-subscribe-download {
        display: none !important;
    }

    .copy-btn {
        display: none !important;
    }
}

#blurred {
    margin: 0 3%;
}
@media only screen and (max-width: 768px) {
    #blurred {
        margin: 0 0%;
    }
}

/* =============================================
   Operaciones
   ============================================= */
   .table-head {
    background: var(--Primary-primary-900, #002342);
   }

   .table-operations {
    border-radius: 30px;
    background: #F5F4F7;
   }
   .table-responsive .row > .col-12 {
    padding: 0;
   }
.text-basa-title {
    color: var(--Foundation-Azul-BC-azul-bc-50, #E6E9EE);
    font-family: "Cera Pro";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.text-basa-title-desc {
    color: var(--Foundation-Azul-BC-azul-bc-50, #E6E9EE);
    font-family: "Cera Pro";
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

@media only screen and (max-width: 576px) {
    .desc-content {
        display: flex;
        justify-content: center;
    }
    .text-basa-title {
        align-items: center;
        font-size: 20px;
    }
    .text-basa-title-desc {
        font-size: 18px;
    }

}
.inv-bonds-empty {
    max-width: 280px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.b-empty-title {
    align-self: stretch;
    color: #002453;
    text-align: center;
    font-family: "Cera Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 1.2rem 0;
}

.b-empty {
    color: var(--Neutral-neutral-800, #7B7B7B);
    text-align: center;
    font-family: "Cera Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Estilos de login  */
        /* ── Layout principal ── */
        .login-wrapper {
            display: flex;
            min-height: 100vh;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: var(--Azul-Capital, #002453);
        }

        .login-card {
            display: flex;
            width: 100%;
            max-width: 1787px;
            min-height: 774px;
            overflow: hidden;
            border-radius: 1.875rem;
            background: var(--Gradiend---Primary, linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%));
        }

        /* ── Panel izquierdo (gradiente) ── */
        .login-left {
            flex: 0 0 50%;
            background: linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 48px 40px;
            text-align: center;
        }

        .login-left .logo-img {
            max-width: 314px;
            margin-bottom: 1.875rem;
        }

        .login-left .tagline {
            max-width: 354px;
            color: #E6E9EE;
            text-align: center;
            font-family: "Cera Pro";
            font-size: 1.875rem;
            font-style: normal;
            font-weight: 400;
            line-height: 40px;
        }

        .login-left .tagline span {
            max-width: 354px;
            color: #E6E9EE;
            text-align: center;
            font-family: "Cera Pro";
            font-size: 1.875rem;
            font-style: normal;
            font-weight: 700;
            line-height: 40px;
        }

        /* ── Panel derecho (formulario) ── */
        .login-right {
            flex: 1;
            background: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 48px 44px;
        }

        .login-right .form-wrapper {
            width: 100%;
            max-width: 445px;
        }

        .login-right .welcome-text {
            text-align: center;
            margin-bottom: 32px;
        }

        .login-right .welcome-text .small-label {
            color: #002453;
            text-align: center;
            font-family: "Cera Pro", sans-serif;
            font-size: 1.875rem;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }

        .login-right .welcome-text h2 {
            color: #002453;
            text-align: center;
            font-family: "Cera Pro";
            font-size: 2.5rem;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
        }


        .login-right .welcome-text .subtitle {
            color: #002453;
            text-align: center;
            font-family: "Cera Pro";
            font-size: 1.5rem;
            font-style: normal;
            font-weight: 300;
            line-height: normal;
        }

        /* ── Inputs (floating label) ── */
        .login-input-group {
            position: relative;
        }
        #ci-group {
            margin-bottom: 2.5rem;
        }

        /* Floating label: hidden by default, visible when input has value or focus */
        .login-input-group .floating-label {
            margin: 0 2.5rem;
            display: block;
            font-family: "Cera Pro", sans-serif;
            font-size: 1rem;
            font-weight: 400;
            color: #002453;
            margin-bottom: 4px;
            opacity: 0;
            transform: translateY(6px);
            transition: opacity 0.2s ease, transform 0.2s ease;
            pointer-events: none;
            height: 0;
            overflow: visible;
            font-style: normal;
            line-height: normal;
        }

        .login-input-group.has-value .floating-label,
        .login-input-group.is-focused .floating-label {
            opacity: 1;
            transform: translateY(0);
            height: auto;
            margin-bottom: 4px;
        }

        .login-input-group .input-wrap {
            position: relative;
            width: 100%;
            height: 60px;
            display: flex;
            align-items: center;
        }

        /* Icon */
        .login-input-group .input-icon {
            position: absolute;
            left: 18px;
            width: 20px;
            height: 20px;
            color: #002453;
            pointer-events: none;
            z-index: 2;
        }

        /* Vertical separator bar */
        .login-input-group .input-separator {
            position: absolute;
            left: 46px;
            top: 50%;
            transform: translateY(-50%);
            width: 1.5px;
            height: 24px;
            background: #002453;
            pointer-events: none;
            z-index: 2;
        }

        .login-input-group input {
            width: 100%;
            height: 100%;
            padding: 0 48px 0 58px;
            border: 0.5px solid #002453;
            border-radius: 1.875rem;
            background: #FCFCFC;
            font-family: "Cera Pro", sans-serif;
            font-size: 20px;
            font-weight: 300;
            outline: none;
            transition: border-color 0.2s;
        }

        #password[type="password"] {
            letter-spacing: 0.625rem;
        }

        #password[type="password"]::placeholder {
            letter-spacing: normal;
        }

        #password[type="text"] {
            letter-spacing: normal;
        }

        .login-input-group input::placeholder {
            color: #002453;
            font-weight: 300;
            font-size: 1.5rem;
            font-style: normal;
            line-height: normal;
        }

        /* Hide placeholder when floating label is visible */
        .login-input-group.has-value input::placeholder,
        .login-input-group.is-focused input::placeholder {
            color: transparent;
        }

        .login-input-group input:focus {
            border-color: #ccc;
        }

        /* Ocultar el botón nativo del navegador (Chrome/Edge/Safari) */
        #password::-ms-reveal,
        #password::-ms-clear,
        #password::-webkit-contacts-auto-fill-button,
        #password::-webkit-credentials-auto-fill-button {
            display: none !important;
        }

        .toggle-password {
            position: absolute;
            right: 18px;
            cursor: pointer;
            color: #002453;
            font-size: 18px;
            transition: color 0.2s;
            z-index: 2;
        }

        .toggle-password:hover {
            color: #002453;
        }

        .forgot-link {
            margin-top: 0.75rem;
            display: block;
            text-align: right;
            font-family: "Cera Pro", sans-serif;
            font-size: 1rem;
            font-weight: 400;
            color: #002453;
            text-decoration: none;
            margin-bottom: 28px;
            font-style: normal;
            line-height: normal;
        }

        .forgot-link:hover {
            color: #1054ac;
        }

        /* ── Botón ── */
        .btn-login {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 28px;
            background: #E6E9EE;
            color: #8e9eb3;
            font-family: "Cera Pro", sans-serif;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .btn-login.filled {
            background: linear-gradient(92deg, #005B98 3.1%, #152B50 97.65%);
            color: #fff;
        }

        .btn-login.filled:hover {
            background: linear-gradient(92deg, #0070b8 3.1%, #1e3a6e 97.65%);
            color: #fff;
        }

        .btn-login:active {
            opacity: 0.9;
        }

        /* ── Link cliente ── */
        .client-link {
            display: block;
            text-align: center;
            margin-top: 20px;
            font-size: 1rem;
            color: #002453;
            text-decoration: none;
            font-weight: 500;
            font-style: normal;
            line-height: normal;
        }

        .client-link:hover {
            color: #6c7a8d;
        }

        /* ── Welcome overlay (post-login) ── */
        .welcome-overlay {
            position: fixed;
            inset: 0;
            background: #002453;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            z-index: 99999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
            overflow: hidden;
        }

        .welcome-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        /* Arch shape — rotated rounded rectangle */
        .welcome-arch, .welcome-arch-2 {
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 1287px;
            height: 1049px;
            transform: translateX(-50%) translateY(100%);
            border-radius: 1000px 1000px 0 0;
            background: linear-gradient(180deg, #00538B 0%, #152B50 100%);
            transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
            z-index: 1;
        }

        .welcome-overlay.show-arch .welcome-arch {
            transform: translateX(-50%) translateY(20%);
        }

        .welcome-overlay.show-arch-2 .welcome-arch-2 {
            transform: translateX(-50%) translateY(53%);
        }

        /* Text content — initially hidden */
        .welcome-content {
            position: relative;
            z-index: 2;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .welcome-overlay.show-text .welcome-content {
            opacity: 1;
            transform: translateY(0);
        }

        .welcome-greeting {
            color: #FFF;
            font-family: "Cera Pro", sans-serif;
            font-size: 5rem;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
        }

        .welcome-name {
            color: #FFF;
            font-family: "Cera Pro", sans-serif;
            font-size: 5rem;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            margin-bottom: 12px;
        }

        .welcome-subtitle {
            color: #D1A257;
            font-family: "Cera Pro";
            font-size: 2.5rem;
            font-style: normal;
            font-weight: 300;
            line-height: normal;
        }

        .welcome-overlay h6 {
            position: relative;
            z-index: 2;
            color: #c5cdd8;
            font-size: 14px;
            font-weight: 300;
            margin-top: 16px;
            opacity: 0;
            transition: opacity 0.6s ease 1.2s;
        }

        .welcome-overlay.show-text h6 {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .welcome-arch {
                width: 90%;
                height: 100%;
            }

            .welcome-arch-2 {
                width: 90%;
                height: 120%;
            }


            .welcome-overlay.show-arch .welcome-arch {
                transform: translateX(-50%) translateY(20%);
            }

            .welcome-name {
                font-size: 4rem;
            }

            .welcome-greeting {
                font-size: 4rem;
            }
        }

        @media (max-width: 480px) {
            .welcome-arch {
                width: 100%;
                height: 100%;
            }

            .welcome-arch-2 {
                width: 100%;
                height: 100%;
            }

            .welcome-name {
                font-size: 2rem;
            }
        }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            .login-card {
                flex-direction: column;
                max-width: 480px;
                min-height: auto;
            }

            .login-left {
                flex: none;
                padding: 36px 24px 28px;
            }

            .login-left .logo-img {
                max-width: 70%;
                margin-bottom: 20px;
            }

            .login-left .tagline, .login-left .tagline span {
                font-size: 2rem;
            }

            .login-right {
                padding: 32px 24px 40px;
            }

            .login-right .welcome-text h2 {
                font-size: 2rem;
            }

            .small-label {
                font-size: 1.625rem;
            }
            .login-right .welcome-text .subtitle {
                font-size: 1.375rem;
            }
        }

        @media (max-width: 480px) {
            .login-wrapper {
                padding: 12px;
            }

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

            .login-left {
                padding: 28px 16px 20px;
            }

            .login-left .logo-img {
                max-width: 90%;
                margin-bottom: 14px;
                aspect-ratio: 155/47;
            }

            .login-left .tagline, .login-left .tagline span {
                font-size: 1.5rem;
            }

            .login-right {
                padding: 24px 20px 32px;
            }
            .small-label {
                font-size: 1.375rem;
            }
            .login-right .welcome-text .subtitle {
                font-size: 1.25rem;
            }
        }

/* =============================================
   Estilos compartidos Restore & Recover
   ============================================= */

/* Spacing between input groups */
#documento-group {
    margin-bottom: 2.5rem;
}

#new-pass-group {
    margin-bottom: 2.5rem;
}

/* Button spacing when there is no forgot-link */
#restore-form .btn-login,
#recover-form .btn-login {
    margin-top: 2rem;
}

/* Password requirements box */
.password-requirements-box {
    display: flex;
    flex-direction: column;
    background: #F1F9FE;
    border-radius: 30px;
    margin: 1.25rem 0 0;
    padding: 1.2rem;
    gap: 15px;
}

.password-req {
    font-family: "Cera Pro", sans-serif;
    font-size: 1.25rem;
    color: #030303;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
    border-bottom: #B0BBCA 0.5px solid;
    padding: 0 0 5px 0;
}
#nonConsecutives {
    margin-bottom: 0;
    border-bottom: none;
}

.password-req i {
    font-size: 1.25rem;
    transition: color 0.2s ease;
}


.password-req.valid i {
    color: #28a745;
}

/* Disabled button state */
.btn-login.button-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

/* Password confirm letter-spacing */
#password-confirm[type="password"] {
    letter-spacing: 0.625rem;
}

#password-confirm[type="password"]::placeholder {
    letter-spacing: normal;
}

/* Button loading spinner */
.btn-login.is-loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.btn-login .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

.btn-login.is-loading .btn-spinner {
    display: inline-block;
}

.btn-login.is-loading .btn-text {
    opacity: 0.9;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
