/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body, html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: rgb(0, 0, 0);
    color: white;
}

@font-face {
    font-family: NeoSans-Regular;
    src: url("assets/NeoSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: 'GothamBold'; 
  src: url('assets/Gotham\ Bold.otf') format('otf');
  font-weight: bold;
  font-style: normal;
}

.container, .bank-container, .accounts-container, .transfer-container, .comprobante, .modal, .details-container {
    display: none;
}

/* =========================
   MODAL BASE STYLES (COMMON)
   ========================= */
    .modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity 0.4s ease-out;
    }
    .modal.active {
      display: flex;
      opacity: 1;
    }
    
    /* Contenido del modal: cubrirÃƒÂ¡ el 100% de la altura de la pantalla */
    .modal-content {
      background: #fff;
      /* Para cubrir todo el alto, se eliminan los bordes redondeados */
      border-radius: 0;
      max-width: 800px;
      width: 90%;
      height: 100vh;
      padding: 2rem;
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
      color: #333;
      overflow-y: auto;
      /* Inicia fuera de la vista, en la parte inferior */
      transform: translateY(100vh);
    }

    /* Al abrir el modal, el contenido se desliza desde abajo (hacia arriba) */
    .modal.active .modal-content {
      animation: slideInUp 0.4s forwards;
    }

    /* Al cerrar, se aplica la animaciÃƒÂ³n para deslizar el contenido hacia abajo */
    .modal-content.closing {
      animation: slideOutDown 0.4s forwards;
    }

    .modal-content h3 {
      margin-bottom: 1.5rem;
      font-size: 1.5em;
      font-weight: 700;
      text-align: center;
      color: #ba0000;
    }

    /* Estructura del formulario */
    .modal-content form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .card-section {
      background: #fafafa;
      border: 1px solid rgba(123,123,123,0.08);
      padding: 1rem;
      border-radius: 10px;
    }
    .card-section h3 {
      margin-bottom: 1rem;
      font-size: 1.3em;
      font-weight: 600;
      color: #333;
      border-bottom: 1px solid #eee;
      padding-bottom: 0.5rem;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 0.75rem;
    }
    .form-group label {
      font-size: 0.9em;
      margin-bottom: 0.25rem;
      color: #555;
    }
    .form-group input[type="text"] {
      padding: 0.5rem;
      border: 1px solid rgba(191,191,191,0.39);
      border-radius: 6px;
      font-size: 1em;
      background: transparent;
      transition: border-color 0.3s, background 0.3s;
    }
    .form-group input[type="text"]:focus {
      border-color: #2196f3;
      background: #fff;
      outline: none;
    }

    /* RediseÃƒÂ±o del Toggle Switch */
    .toggle-container {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .toggle-label {
      font-size: 1em;
      color: #555;
    }
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 34px;
    }
    .slider:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    .toggle-switch input:checked + .slider {
      background-color: rgb(21,186,36);
    }
    .toggle-switch input:checked + .slider:before {
      transform: translateX(26px);
    }

    /* Botones de acciÃƒÂ³n del modal */
    .modal-actions {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 1rem;
    }
    .modal-actions button {
      padding: 0.75rem 1.5rem;
      cursor: pointer;
      border: none;
      background: rgb(0,157,253);
      color: #fff;
      border-radius: 8px;
      font-size: 1em;
      font-weight: 500;
      transition: background 0.3s, transform 0.3s;
    }
    .modal-actions button:hover {
      background: rgba(236,139,0,0.9);
      transform: translateY(-1px);
    }

    /* AnimaciÃƒÂ³n: al abrir, el contenido se desliza desde abajo (slideInUp) */
    @keyframes slideInUp {
      from {
        transform: translateY(100vh);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    /* AnimaciÃƒÂ³n: al cerrar, el contenido se desliza hacia abajo (slideOutDown) */
    @keyframes slideOutDown {
      from {
        transform: translateY(0);
        opacity: 1;
      }
      to {
        transform: translateY(100vh);
        opacity: 0;
      }
    }



.container.active,
.accounts-container.active,
.transfer-container.active,
.comprobante.active {
    display: block;
}

#main-container.container.active {
    background-image: url("assets/fondoazul.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Estilos para la pantalla de detalles */
.details-container {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgb(1, 7, 97) 7%, rgb(53, 119, 167) 23%, rgb(255, 255, 255) 40%);
}

    .details-container.active {
        display: block;
    }

.account-details-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    color: white;
}

    .account-details-header .back-button {
        position: absolute;
        left: 10px;
        font-size: 24px;
        cursor: pointer;
        color: white;
    }

    .account-details-header .title {
        font-size: 24px;
        text-align: center;
        font-weight: bold;
    }

.account-info {
    margin-top: 10px;
    font-size: 18px;
    color: #ffffffaa;
    text-align: center;
}

.account-number {
    font-size: 16px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffffaa;
}

.copy-icon {
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

/* BotÃƒÂ³n de cuenta regional */
.regional-account-button {
    background-color: #eef1f5;
    color: #0052a3;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 20px auto;
    width: fit-content;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tarjeta de detalles */
.details-card {
    background-color: #ffffff;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 90%;
}

    .details-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .details-card h3 .help-icon {
            color: #0052a3;
            font-size: 16px;
            cursor: pointer;
        }

.balance-detail {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 16px;
    color: #666;
}

.balance-amount {
    font-weight: bold;
    color: #0052a3;
    font-size: 18px;
}

.separator {
    height: 1px;
    background-color: #ccc;
    margin: 10px 0;
}

/* Ventana de transacciones */
.transactions-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 60px;
}

    .transactions-container.expanded {
        max-height: 70%;
    }

.transactions-header {
    background-color: #0052a3;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .transactions-header span {
        font-size: 16px;
        margin-right: 10px;
    }

.transactions-list {
    padding: 10px;
    overflow-y: auto;
    max-height: calc(70% - 60px);
}

.transaction-item {
    background-color: #eef1f5;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
}

    .transaction-item p {
        margin: 5px 0;
    }

/* Animaciones */
.fade-in {
    animation: fadeIn 0.3s forwards;
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Estilos para la pantalla de detalles */
.details-container {
    display: none;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

    .details-container.active {
        display: block;
    }

.account-details-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

    .account-details-header .back-button {
        position: absolute;
        left: 10px;
        font-size: 24px;
        cursor: pointer;
        color: white;
    }

    .account-details-header .title {
        font-size: 24px;
        text-align: center;
    }

.account-info {
    margin-top: 10px;
    font-size: 18px;
    color: #ffffffaa;
    text-align: center;
}

.account-number {
    font-size: 16px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffffaa;
}

.copy-icon {
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

/* BotÃƒÂ³n de cuenta regional */
.regional-account-button {
    background-color: #eef1f5;
    color: #0052a3;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 20px auto;
    width: fit-content;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tarjeta de detalles */
.details-card {
    background-color: #ffffff;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 350px;
    height: 260px;
}

    .details-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .details-card h3 .help-icon {
            color: #0052a3;
            font-size: 16px;
            cursor: pointer;
        }

.balance-detail {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 16px;
    color: #666;
}

.balance-amount {
    font-weight: bold;
    color: #0052a3;
    font-size: 18px;
}

.separator {
    height: 1px;
    background-color: #ccc;
    margin: 10px 0;
}

/* Ventana de transacciones */
.transactions-container {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 50px;
}

    .transactions-container.expanded {
        max-height: 300px;
    }

.transactions-header {
    background-color: #0052a3;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .transactions-header span {
        font-size: 16px;
        margin-right: 10px;
    }

.transactions-list {
    padding: 10px;
    overflow-y: auto;
    max-height: 240px;
}

.transaction-item {
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 5px;
}

    .transaction-item p {
        margin: 5px 0;
    }

.container, .bank-container, .accounts-container, .transfer-container, .comprobante, .modal {
    display: none;
}

    .container.active {
        display: block;
    }

*, *::before, *::after {
    box-sizing: border-box;
}

.accounts-container.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(rgb(1, 7, 97) 7%, rgb(53, 119, 167) 23%, rgb(255, 255, 255) 40%);
    box-sizing: border-box;
}

.bank-container.active, .transfer-container.active, .comprobante.active, .modal.active {
    display: block;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(-100px + 100vh);
    padding-top: 20px;
}

.bottom-icons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
}

.button {
    background-color: rgb(236, 139, 0);
    border: none;
    border-radius: 5px;
    padding: 15px;
    width: 325px;
    color: white;
    font-size: 18px;
    margin: 20px auto;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .button i {
        margin-right: 10px;
        font-size: 24px;
    }

    .button .loading-spinner {
        position: absolute;
        width: 24px;
        height: 24px;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(255, 255, 255) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
        border-image: initial;
        border-radius: 50%;
        animation: 1s linear 0s infinite normal none running spin;
        display: none;
    }

    .button.loading .loading-spinner {
        display: block;
    }

    .button.loading span, .button.loading i {
        visibility: hidden;
    }

    .button:hover {
        background-color: rgb(204, 127, 0);
    }

.link {
    display: block;
    color: white;
    margin: 10px auto 40px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
}

.loading-symbol {
    border-width: 5px;
    border-style: solid;
    border-color: rgb(255, 255, 255) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
    border-image: initial;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: 1s linear 0s infinite normal none running spin;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fingerprint-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.fingerprint-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

    .fingerprint-content i {
        font-size: 100px;
        margin-bottom: 20px;
        cursor: pointer;
    }

    .fingerprint-content p {
        font-size: 18px;
    }

.accounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 10px;
    position: sticky;
    top: 0px;
    z-index: 1000;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

/* Estilos para el encabezado principal */
.main-header {
    position: absolute;
    top: 30px; /* Ajusta segÃƒÂºn sea necesario */
    left: 17px; /* Ajusta segÃƒÂºn sea necesario */
    z-index: 1000; /* Asegura que estÃƒÂ© por encima de otros elementos */
}

/* Estilos para el ÃƒÂ­cono de menÃƒÂº */
.menu-icon {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

    .menu-icon .line {
        width: 100%;
        height: 3px;
        background-color: #333; /* Color de las lÃƒÂ­neas */
        border-radius: 2px;
    }

    .menu-icon .line {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 4px 0px;
    }

.header-content {
    flex: 1 1 0%;
    text-align: center;
}

@font-face {
    font-family: "Gotham Light";
    src: url("assets/Gotham-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.accounts-header {
    margin-bottom: 5px;
    color: rgb(255, 255, 255);
    font-family: NeoSans-Regular, sans-serif;
}

.date-text {
    margin-bottom: 0px;
    font-size: 16px;
    color: rgb(255, 255, 255);
}

.user-circle {
    width: 40px;
    height: 40px;
    background-color: rgb(0, 112, 156);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.filters {
    display: flex;
    justify-content: space-around;
    padding: 10px 0px;
    position: sticky;
    top: 60px;
    z-index: 999;
}

.filter-card {
    flex: 1 1 0%;
    margin: 0px 5px;
    padding: 10px;
    background-color: rgb(24, 90, 151);
    color: white;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .filter-card.active {
        background-color: rgb(236, 139, 0);
        color: white;
    }

    .filter-card:hover {
        background-color: rgba(255, 255, 255, 0.8);
        color: rgb(51, 51, 51);
    }

.card-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    align-items: center;
    overflow-y: auto;
    max-height: calc(-250px + 100vh);
    box-sizing: border-box;
}

.account-card {
    position: relative; /* Asegura el posicionamiento relativo */
    background-color: #fff;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: rgb(0 0 0 / 25%) 0px 2px 5px;
    width: 100%;
    max-width: 390px;
    cursor: pointer;
    transition: transform 0.2s;
    box-sizing: border-box;
    overflow: hidden;
    max-height: 100px;
    min-height: 100px; /* Ajusta segÃƒÂºn sea necesario para igualar la altura */
}

    .account-card:hover {
        transform: scale(1.02);
    }

.card-version-1,
.card-version-2 {
    transition: opacity 0.2s ease-in-out;
}

.certificate-card {
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255);
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
}


.icon-container {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgb(0, 85, 147), rgb(0, 85, 147) 10px, rgb(0, 71, 130) 10px, rgb(0, 71, 130) 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgb(255 255 255 / 86%);
    box-shadow: rgb(0 0 0 / 16%) 0px 4px 8px;
}

.certificate-card .title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 5px;
    text-align: left;
}

.title {
    color: #002168;
}


.certificate-card .balance {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    font-family: "NeoSans-Regular";
}

.balance {
    color: rgb(236 139 0);
}

.certificate-card .interest {
    font-size: 15px;
    color: rgb(102, 102, 102);
    text-align: left;
}

.card-version-1 {
    opacity: 1;
    z-index: 1;
}

.card-version-2 {
    opacity: 0;
    z-index: 0;
}

.card-version-1 {
    opacity: 1;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

.card-version-2 {
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.account-card:hover {
    transform: scale(1.02);
}

.card-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinea verticalmente las secciones */
}

.left-section,
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
}

.left-label {
    font-weight: bold;
    font-size: 1.03em;
    color: rgb(0, 33, 104);
    margin-bottom: 5px;
    overflow-wrap: break-word;
    line-height: 1.2em;
}

.left-value {
    font-size: 1.1em;
    color: rgb(0, 33, 104);
    overflow-wrap: normal;
}

.right-label {
    font-size: 1em;
    color: rgb(102, 102, 102);
    margin-bottom: 5px;
    text-align: right;
    white-space: nowrap;
}

.right-section .value {
    font-weight: bold;
    font-size: 1em;
    color: rgb(236, 139, 0);
    overflow-wrap: normal;
    text-align: right;
    font-family: NeoSans-Regular, sans-serif;
}

.balance-positive {
    color: rgb(255, 159, 0);
    text-align: right;
}

.balance-negative {
    color: rgb(255, 159, 0);
    text-align: right;
}

@media (max-width: 200px) {
    .card-content {
        flex-direction: column;
    }

    .left-section, .right-section {
        width: 100%;
    }

    .right-section {
        margin-top: 10px;
    }

        .right-label, .right-section .value {
            text-align: right;
        }
}

.account-card .left-section, .account-card .right-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.actions {
    position: fixed;
    bottom: 8px;
    left: 0px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-around;
    padding: 1px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px -2px 5px;
    z-index: 1001;
    border-top: 1px solid rgb(224, 224, 224);
}

    .actions .action-button {
        flex: 1 1 0%;
        text-align: center;
        color: rgb(16, 46, 110);
        transition: transform 0.2s, color 0.3s;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .actions .action-button img {
            width: 50px;
            height: 50px;
            margin-bottom: 8px;
        }

        .actions .action-button span {
            font-size: 16px;
            font-weight: bold;
        }

        .actions .action-button:not(:first-child)::before {
            content: "";
            position: absolute;
            left: 0px;
            top: 10%;
            bottom: 10%;
            border-left: 1px dashed rgb(204, 204, 204);
        }

        .actions .action-button:hover {
            transform: scale(1.1);
            color: rgb(255, 159, 0);
        }

.transfer-container {
    background-color: rgb(255, 255, 255);
    padding: 20px;
    color: rgb(51, 51, 51);
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    animation: 0.3s ease 0s 1 normal forwards running slideIn;
    box-sizing: border-box;
    z-index: 1003;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0px);
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(100%);
    }
}

.transfer-container.slide-out {
    animation: 0.3s ease 0s 1 normal forwards running slideOut;
}

.transfer-container .header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .transfer-container .header i {
        font-size: 20px;
        margin-right: 10px;
        color: rgb(16, 46, 110);
        cursor: pointer;
    }

    .transfer-container .header h1 {
        font-size: 20px;
        color: rgb(16, 46, 110);
    }

.transfer-container .field {
    margin-bottom: 20px;
}

    .transfer-container .field label {
        display: block;
        font-size: 16px;
        color: rgb(102, 102, 102);
        margin-bottom: 5px;
    }

.transfer-container .select-box, .transfer-container .input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 8px;
    padding: 15px;
    background-color: rgb(249, 249, 249);
    cursor: pointer;
}

    .transfer-container .select-box span, .transfer-container .input-box input {
        font-size: 16px;
        color: rgb(16, 46, 110);
        flex: 1 1 0%;
    }

    .transfer-container .input-box input {
        border: none;
        background: none;
        outline: none;
    }

    .transfer-container .input-box i {
        color: rgb(255, 159, 0);
        font-size: 18px;
        cursor: pointer;
    }

    .transfer-container .select-box i {
        color: rgb(255, 159, 0);
        font-size: 18px;
    }

.transfer-container .amount-input {
    width: 100%;
    padding: 10px;
    font-size: 40px;
    text-align: left;
    color: rgb(51, 51, 51);
    border-top: none;
    border-right: none;
    border-left: none;
    border-image: initial;
    border-bottom: 1px solid rgb(255, 159, 0);
    background: none;
    outline: none;
}

.transfer-container textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid rgb(255 255 255);
    border-radius: 8px;
    background-color: rgb(249, 249, 249);
    color: rgb(51, 51, 51);
    outline: none;
}

.transfer-container .button-container {
    text-align: center;
    margin-top: 30px;
    position: relative;
}

.transfer-container .continue-button {
    background-color: rgb(245, 245, 245);
    color: rgb(204, 204, 204);
    font-size: 18px;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    cursor: not-allowed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .transfer-container .continue-button.enabled {
        background-color: rgb(255, 159, 0);
        color: rgb(255, 255, 255);
        cursor: pointer;
    }

    .transfer-container .continue-button:hover.enabled {
        background-color: rgb(204, 127, 0);
    }

    .transfer-container .continue-button .loading-spinner {
        position: absolute;
        width: 24px;
        height: 24px;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(255, 255, 255) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
        border-image: initial;
        border-radius: 50%;
        animation: 1s linear 0s infinite normal none running spin;
        display: none;
    }

    .transfer-container .continue-button.loading .loading-spinner {
        display: block;
    }

    .transfer-container .continue-button.loading span {
        visibility: hidden;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1006;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(255, 255, 255);
    animation: 0.3s ease 0s 1 normal forwards running fadeInModal;
}

@keyframes fadeInModal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOutModal {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.modal.fade-out {
    animation: 0.3s ease 0s 1 normal forwards running fadeOutModal;
}

.modal-content {
    background-color: rgb(255, 255, 255);
    margin: 0px auto;
    padding: 20px;
    border-radius: 0px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

    .modal-content h2 {
        color: rgb(16, 46, 110);
        margin-bottom: 20px;
        text-align: center;
    }

    .modal-content ul {
        list-style-type: none;
        padding: 0px;
    }

    .modal-content li {
        padding: 10px;
        border-bottom: 1px solid rgb(204, 204, 204);
        cursor: pointer;
        color: rgb(16, 46, 110);
    }

        .modal-content li:last-child {
            border-bottom: none;
        }

        .modal-content li:hover {
            background-color: rgb(240, 240, 240);
        }

.add-beneficiary-button {
    background-color: rgb(255, 159, 0);
    color: rgb(255, 255, 255);
    font-size: 16px;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

    .add-beneficiary-button:hover {
        background-color: rgb(204, 127, 0);
    }

.input-container {
    margin-bottom: 15px;
}

    .input-container label {
        display: block;
        font-size: 14px;
        color: rgb(102, 102, 102);
        margin-bottom: 5px;
    }

    .input-container input {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid rgb(204, 204, 204);
        border-radius: 8px;
        background-color: rgb(249, 249, 249);
        color: rgb(51, 51, 51);
        outline: none;
    }

@font-face {
    font-family: NeoSans-Regular;
    src: url("assets/NeoSans-Regular.ttf") format("truetype");
}

@font-face {
    font-family: NeoSans-light;
    src: url("assets/Neo Sans Std Light.otf") format("truetype");
}

.comprobante {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(0, 6, 99), rgb(53, 119, 167), rgb(255, 255, 255) 40%);
    z-index: 1005;
    overflow-y: auto;
    animation: 0.3s ease 0s 1 normal forwards running fadeInComprobante;
    font-family: ROBOTO, sans-serif;
}

.comprobante-background {
    justify-content: center;
    align-items: center;
    padding: 25px;
    padding-block: 50px;
    box-sizing: border-box;
    padding-bottom: 40px;
}

.comprobante.fade-out {
    animation: 0.3s ease 0s 1 normal forwards running fadeOutComprobante;
}

.comprobante .receipt-container {
    position: relative;
    background-color: white;
    padding: 12px;
    max-width: 600px;
    max-width: 100%;
    padding-top: 0px;
    border-radius: 12px;
    gap: -10px;
    text-align: center;
    color: rgb(51, 51, 51);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-bottom: -90px;
}

/* Estilos para el ÃƒÂ­cono de compartir en el degradado */
.share-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1010; /* AsegÃƒÂºrate de que estÃƒÂ© por encima de otros elementos */
}

    .share-icon img {
        width: 24px; /* Ajusta el tamaÃƒÂ±o segÃƒÂºn sea necesario */
        height: 26px;
        cursor: pointer;
    }

.comprobante-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: auto;
}

.check-icon-image {
    width: 50px;
    display: block;
    margin: 0px auto;
}

.check-circle {
    margin-bottom: 10px;
}

.comprobante-title {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 24px;
    color: rgb(26, 25, 91);
}

.amount {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 32px;
    color: rgb(50 63 80);
    font-family: NeoSans-Regular, sans-serif;
}

.transfer-status {
    /* Propiedades de estilo que se mantienen */
    background-color: rgb(255, 242, 216);
    border-radius: 20px;
    white-space: nowrap; /* Mantiene el texto en una lÃ­nea */

    /* --- NUEVA ESTRATEGIA DE CENTRADO --- */
    display: block;          /* 1. Lo convertimos en un elemento de bloque. */
    width: fit-content;      /* 2. Hacemos que su ancho se ajuste al contenido. Â¡Esta es la clave! */
    margin-left: auto;       /* 3. Margen izquierdo automÃ¡tico. */
    margin-right: auto;      /* 4. Margen derecho automÃ¡tico. */

    /* 5. Mantenemos el espaciado inferior que ya tenÃ­as. */
    margin-bottom: 30px;

    /* 6. Y aquÃ­ sigues controlando quÃ© tan ancho es el fondo. */
    padding: 8px 15px;
}

    .transfer-status span {
        color: rgb(41 63 178);
        font-size: 13px;
        font-weight:300;
        -webkit-text-stroke: 0.2px rgb(5 18 106);;
    }

.details {
    border-radius: 10px;
    padding: 5px;
    text-align: left;
}

.detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid rgb(224, 224, 224);
    padding-bottom: 13px;
}


.detail:nth-child(2) {
  border-bottom: none;

}

    .detail:last-child {
        margin-bottom: -90px;
        display: block;
        border-bottom: none;

    }

    .detail span:first-child {
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: rgb(56 67 86);
        flex-basis: 50%;
        text-align: left;
        text-wrap: nowrap;
        margin-bottom: 5px;
    }

    .detail span:last-child {
        font-size: 14px;
        font-weight: 300;
        color: rgb(116, 116, 116);
        text-align: right;
        flex-basis: 50%;

    }

.comprobante-button {
    display: flex;
    flex-direction: column;
    padding: 18px;
    font-family: 'GothamBold', sans-serif;
    font-weight: bold;
    background-color: rgb(236, 139, 0);
    color: rgb(249, 250, 252);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 40px;

}

.comprobante-button2 {
    display: flex;
    flex-direction: column;
    padding: 18px;
    font-family: 'GothamBold', sans-serif;
    font-weight: bold;
    background-color: #eaf4fd;
    color: #3b4454;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;

}

.comprobante-button:hover {
    background-color: rgb(0, 47, 106);
}

#transfer-title {
    margin-bottom: -20px;
    font-size: 17px;
    padding-top: 40px;
    color: rgb(255 255 255);
    text-align: center;
    font-weight: 400;
}

@keyframes fadeInComprobante {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOutComprobante {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .comprobante-content {
        padding: 10px;
    }

    .comprobante-title {
        font-size: 13px;
        -webkit-text-stroke: 0.3px rgb(18 28 60);;
    }

    .amount {
        font-size: 30px;
        font-weight:500;
    }

    .check-icon-image {
        width: 38px;
        height: 38px;
        margin-top: 35px;
    }

    .account-card {
        width: 95%;
    }

    .balance {
        font-size: 1em;
    }

    .main-logo {
        position: absolute;
        width: 100px;
        margin-bottom: 600px;
        transition: transform 0.3s;
    }

    .actions .action-button i {
        font-size: 24px;
    }

    .actions .action-button span {
        font-size: 12px;
    }
}

.actions .action-button:active {
    transform: scale(0.9);
}

/* Estilos para la lista de beneficiarios */
#beneficiaryList {
    list-style: none;
    padding: 0;
    max-height: 300px; /* Ajusta segÃƒÂºn necesidad */
    overflow-y: auto;
}

/* Estilos para cada item de beneficiario */
.beneficiary-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

    /* Hover effect para los items */
    .beneficiary-item:hover {
        background-color: #f0f0f0;
    }

/* Estilos para el botÃƒÂ³n de eliminar */
.delete-beneficiary-btn {
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    margin-left: 10px;
}

    .delete-beneficiary-btn:hover {
        color: darkred;
    }

/* Estilos para el modal de confirmaciÃƒÂ³n personalizado */
.custom-confirm-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1007; /* AsegÃƒÂºrate de que estÃƒÂ© por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0 0 0 / 24%); /* Fondo semitransparente */
}

.custom-confirm-content {
    background-color: #999999;
    margin: 80% auto; /* Centrar verticalmente */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.confirm-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.confirm-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.yes-button {
    background-color: #616261;
    color: #fff;
}

.no-button {
    background-color: #616261;
    color: #fff;
}

/***********************************************
  MODAL DE DETALLES DE CUENTA/TARJETA
***********************************************/

/* El contenedor principal del modal */
.account-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999; /* Para quedar sobre otros elementos */
  background: transparent;
  flex-direction: column;
  justify-content: flex-start; /* Arriba */
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(rgb(1, 7, 97) 7%, rgb(53, 119, 167) 23%, rgb(255, 255, 255) 40%);
}

/* Muestra el modal */
.account-details-modal.active {
  display: flex;
}

/* Cabecera de la pantalla de detalles */
.details-header {
  position: relative;
  width: 100%;
  padding: 15px;
  color: #fff;
  box-sizing: border-box;
}

/* BotÃƒÂ³n atrÃƒÂ¡s (flecha) */
.back-button {
  position: absolute;
  left: 15px;
  top: 25px;
  cursor: pointer;
  font-size: 1.8em;
}

/* Contenedor de la info principal */
.account-info-container {
  text-align: center;
}

.account-type {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: 500;
}

.account-type2 {
  margin-top: 16px;
  font-size: 1.01em;
  font-weight: 5;
}

.account-number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 5px 0;
  font-weight: normal;
  font-size: 1em;
}
.account-number-container .copy-icon {
  cursor: pointer;
}

/* BotÃƒÂ³n "Ver cuenta regional" */
.regional-account-btn {
  margin: 20px auto;
  padding: 5px 15px;
  background-color: #ffffff22;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.3s;
  width: 180px;
}
.regional-account-btn:hover {
  background-color: #ffffff44;
}

/* Tarjeta blanca: "Detalles" */
.details-card {
  background: #fff;
  margin: 0 auto;
  margin-top: -20px; /* Solapa sobre el degradado */
  width: 87%;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  position: relative;
}

/* TÃƒÂ­tulo "Detalles" */
.details-title {
  margin-top: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
}

/* Contenedor para Balance Disponible */
.balance-disponible-container {
  margin-top: 5px;
  text-align: center;
}

/* Etiqueta para "Balance disponible:" */
.balance-disponible-label {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0;
}

/* Valor del balance disponible */
.balance-disponible-value {
  font-family: "NeoSans-Regular", sans-serif;
  font-size: 1.5em;
  color: #0D2F66;
}

/* Contenedor para los balances secundarios */
.secondary-balances {
  margin-top: 20px;
}

/* Fila para cada balance secundario (en trÃƒÂ¡nsito y total) */
.balance-detail-row {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
  font-size: 0.95em;
  color: #333333;
}

/* Estilo para balances en trÃƒÂ¡nsito y total */
.balance-amount {
  font-weight: 800;
  color: #3a3a3a;
  font-family: "NeoSans-light", sans-serif;
  font-size: 1.0em;
}


.balancetransito2 {
  font-weight: 800;
  color: #3a3a3a;
  font-family: "NeoSans-light", sans-serif;
  font-size: 1.0em;
}

/* Tarjeta blanca: "Tarjeta vinculada" */
.linked-card {
  background: #fff;
  margin: 10px auto;
  width: 90%;
  border-radius: 12px;
  padding: 55px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  box-sizing: border-box;
}
.linked-card h3 {
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
}
.linked-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
  font-size: 0.95em;
}
.linked-card-info i.fa-credit-card {
  margin-right: 5px;
}
.arrow-icon {
  color: #999;
}

/* Separador debajo de "Cuenta Corriente": 30% opacidad y ancho completo */
.separator2 {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 25px;
}

/* Separador entre "Balance en trÃƒÂ¡nsito" y "Balance total" */
.balance-separator {
  border: none;
  height: 1px;
  background: #ccc;
  margin: 20px 0;
}

/* ÃƒÂcono de ayuda sin el cÃƒÂ­rculo azul */
.help-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #007aff;
}
.help-icon ion-icon {
  font-size: 1.2em;
}

/* Barra "ÃƒÅ¡ltimas transacciones" con la barrita gris */
/* Modal de ÃƒÅ¡ltimas Transacciones: se mantiene el aspecto original cuando estÃƒÂ¡ contraÃƒÂ­do */
.transactions-bar {
  position: absolute;
  bottom: 105px;
  left: 0;
  right: 0;
  height: 60px; /* Altura contraÃƒÂ­da */
  background: #ffffff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  padding-top: 10px;
}

/* Contenedor interno de transacciones (creado dinÃƒÂ¡micamente) */
.transactions-content {
  width: 100%;
  background: #ffffff;
  /* No se aplica fondo gris ni redondeo; se mostrarÃƒÂ¡ sobre el fondo blanco del modal */
}

/* Ocultar la barra de scroll visualmente (para WebKit) */
.transactions-content::-webkit-scrollbar {
  display: none;
}

.ultimastranscolor {
    color:#002457;
    font-weight:500;
    margin-bottom: 15px;
}

/* Cada ÃƒÂ­tem de transacciÃƒÂ³n se mostrarÃƒÂ¡ como un contenedor flexible */
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #dddddd45; /* Separador horizontal */
}

/* Izquierda: contenedor para icono y textos */
.transaction-left {
  display: flex;
  align-items: center;
}

/* Icono: se mantiene el cÃƒÂ­rculo */
.transaction-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 1.2em;
}

/* Texto de la transacciÃƒÂ³n */
.transaction-text {
  display: flex;
  flex-direction: column;
}

/* Primera lÃƒÂ­nea: prefijo y nÃƒÂºmero de cuenta en negro */
.transaction-line1 {
  font-size: 1em;
  color: #000;
}

/* Segunda lÃƒÂ­nea: fecha en tamaÃƒÂ±o menor y en gris */
.transaction-line2 {
  font-size: 0.8em;
  color: #666;
}

/* Derecha: contenedor para el monto */
.transaction-amount {
  font-size: 1em;
  font-family: "NeoSans-Regular", sans-serif;
  text-align: right;
  min-width: 100px; /* Para ocupar el ancho disponible */
}

/* Monto en transacciones de crÃƒÂ©dito (ingresos): color azul */
.transaction-item.credit .transaction-amount {
  color: #007aff;
}

/* Monto en transacciones de dÃƒÂ©bito: "color ojo" (aquÃƒÂ­ lo defino en naranja, ajÃƒÂºstalo segÃƒÂºn prefieras) */
.transaction-item.debit .transaction-amount {
  color: #ff9500;
}



/* Ajustes responsivos (opcional) */
@media (max-width: 400px) {
  .details-card, .linked-card {
    width: 87%;
  }
  .regional-account-btn {
    font-size: 0.8em;
  }
}

/* Ã¢â‚¬â€Ã¢â‚¬â€ BotÃƒÂ³n Ã¢â‚¬Å“Agregar beneficiarioÃ¢â‚¬Â en comprobante Ã¢â‚¬â€Ã¢â‚¬â€ */
.comprobante-add-beneficiario {
  display: inline-flex;
  align-items: center;
  height: 55px;
  margin: 20px auto 0;      /* centra y separa del detalle */
  padding: 13px 15px;         /* altura y espacio lateral */
  background-color: #ffffff; /* fondo blanco */
  border: none;
  width: 160px;
  height: 38px;
  border-radius: 8px;        /* esquinas redondeadas */
  box-shadow: 0 4px 32px rgb(0 0 0 / 10%);
  font-size: 13px;
  border: solid 1px #7f7f7f2b;
  font-weight: 412;
  color: #030d21d1;            /* texto oscuro */
  cursor: pointer;
  flex-direction: row;
    margin-top: -20px;
    white-space:nowrap;
}

.detailcontent {
    display: flex;
    flex-direction: row;
    align-items:end;
    margin-left: 140px;
    margin-bottom: 20px;
    border-bottom:#ca0000;

}

/* Icono Ã¢â‚¬Å“+Ã¢â‚¬Â en naranja */
.comprobante-add-beneficiario i {
  margin-right: 0px;
  font-size: 22px;
  color: #EC8B00;
  font-weight:20;
  margin-left: -7px;
    padding-right: 4px;
}

/* Hover opcional */
.comprobante-add-beneficiario:hover {
  box-shadow: 0 6px 36px rgba(0,0,0,0.15);
}




