.centered-container {
    display: none;
}

.centered-container.is-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ------------------ Vista general ------------------ */
.no-existe {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    width: 100%;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
}
/* --------------------------------------------------- */

/* ------------------ Contenedor de cedula ------------------ */
.content-card {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card {
    overflow: auto;
    border-radius: 12px;
    padding: 1.5rem;
    width: min(510px, 92vw);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}

.card .cedula, 
.card h2 {
    text-align: center;
}

.card .cedula {
    width: 100%;
}

.card h2 {
    padding: 0;
    margin-bottom: 25px;
}
/* --------------------------------------------------------- */

.content-left, .content-right {
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* ------------- Contenedor izquierdo - left ------------- */
.content-left { 
    align-items: center;
    grid-column: 1 / -1;
}

.content-left .content-form {
    width: min(420px, 92vw);
    height: 90vh;
    overflow-x: hidden;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    border-radius: 12px;
}

.content-form .content-info-cedula {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.content-form .content-info-cedula input {
    text-align: center;
    font-weight: bold;
}

.content-form .content-info-cedula h2,
.content-form .content-info-cedula h6 {
    text-align: center;
    width: 100%;
    padding: 0;
}

.centered-container.is-split .content-left {
    grid-column: 1 / 1;
}

.formulario-pago {
    display: none;
}

.formulario-pago .form-group {
    margin: 5px 0;
}

.formulario-pago h4 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 20px;
}

/* --------------- Check list entidad financiera --------------- */
.combobox { 
    padding: 0 20px; 
    position: relative; 
}

.combobox .label {
    display: block; 
    font-size: 13px; 
    color: #6b7280; 
    margin-bottom: 6px;
}

.combobox.is-disabled {
  opacity: .6;
  pointer-events: none;
}

.combobox-input-wrap { position: relative; }
.combobox-input {
    width: 100%; padding: 10px 32px 10px 10px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    outline: none;
}

.combobox-input:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.cb-clear {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; font-size: 18px; color: #6b7280;
    cursor: pointer; display: none;
}

.combobox-input:not(:placeholder-shown) ~ .cb-clear { display: block; }

.combobox-list {
    display: none;
    position: absolute;
    left: 20px; right: 20px;
    z-index: 50;
    max-height: 260px; overflow: auto; margin-top: 6px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 4px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.combobox.open .combobox-list,
.combobox-list.open {
    display: block;
}

.combobox-list li,
.combobox-item {
    list-style: none; 
    padding: 8px; 
    border-radius: 8px; 
    cursor: pointer;
}

.combobox-item.disabled { 
    cursor: default; 
    color: #9ca3af; 
}

.combobox-list li:hover,
.combobox-item:hover,
.combobox-item.is-active {
    background: #f3f4f6;
}

.combobox-list::-webkit-scrollbar { width: 10px; }

.combobox-list::-webkit-scrollbar-thumb { 
    background: #e5e7eb; 
    border-radius: 8px; 
}

.combobox-list::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

@media (prefers-reduced-motion: reduce) {
    .combobox-input:focus { 
        box-shadow: none;
    }
}
/* ------------------------------------------------------------- */
/* ------------------------------------------------------- */

/* ------------- Contenedor derecho - right ------------- */
.content-right { 
    background: #021e3d;
    opacity: 0; 
    transform: translateX(40px); 
    transition: opacity .45s ease, transform .45s ease;
}

.detail-card {
    width: min(420px, 92vw);
    border-radius: 12px;
}

.detail-card .content-logo {
    height: 15vh;
}

.content-right .detail-card .content-logo {
    width: 100%;
    text-align: center;
}

.content-right .detail-card .content-logo .logo {
    margin-top: 10%;
    width: 50%;
}

.detail-card .content-detail {
    height: 70vh;
}

.detail-card .content-right-footer {
    height: 15vh;
}

.detail-card li:last-child{ border-bottom: 0; }

.centered-container.is-split .content-right {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.content-right .content-detail h3 {
    font-weight: bold;
    text-align: center;
    color: #fff;
    padding: 20px 0px;
}

.detail-card ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.detail-card li {
    font-weight: bold;
    display: flex;
    color: #fff;
    padding: 10px 0px;
    justify-content: space-between;
}

.content-right h6, 
.content-right p {
    color: #fff;
    text-align: center;
}

.content-right h6 {
    font-weight: bold;
}
/* ------------------------------------------------------ */

/* ------------ Pantalla de confirmacion de pago ------------ */
.cardConfirmation {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.content-confirmation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
    width: 410px;
}

.success {
    width: 100%;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(22, 164, 74, 0.1);
    text-align: center;
    margin: 0;
}

.success h4 {
    color: #16a34a;
}

.success p {
    margin: 0 0 10px 0;
    font-size: 11px;
}

.checkmark-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 12px auto;
}

.checkmark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    line-height: 50px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
}

.checkmark-wrap .orbit {
    position: absolute;
    inset: -6px;
    border: 3px solid transparent;
    border-top-color: #2563eb;
    border-right-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.content-confirmation .detail {
    padding: 20px;
    background: #e6eefd;
    width: 100%;
    text-align: left;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.detail p {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.detail button {
    margin-left: 50%;
    transform: translateX(-50%);
    width: 50%;
    border: none;
    padding: 6px;
    border-radius: 5%;
    background: #88a4e2;
    color: #fff;
    margin-top: 30px;
}
/* ---------------------------------------------------------- */

/* -------------- Pantalla de carga -------------- */
.overlay {
    position: fixed;
    inset: 0;           
    background: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.overlay .loaderPag {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #2563eb;
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin{ from{transform:rotate(0)} to{transform:rotate(360deg)} }
/* ----------------------------------------------- */

/* --------------- Estilizar input tipo number --------------- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}
/* ------------------------------------------------------------------------ */

/* ------------- Estilizar barra de navegacion ------------- */
.content-left .content-form::-webkit-scrollbar {
    width: 7px;
}

.content-left .content-form::-webkit-scrollbar-track {
    background: #eef2ff;
    border-radius: 12px;
}

.content-form::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 12px;
    border: 2px solid #eef2ff;
}
/* --------------------------------------------------------- */

/* --------------- Clases globales --------------- */
.hidden {
    display: none;
}
/* ----------------------------------------------- */

/* ---------- Medios de pagos ---------- */
.logo_pay_pse {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-left: 8px;
}

.logo_pay {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
/* ------------------------------------- */

@media screen and (max-width: 544px) {
    .centered-container.is-split {
        display: flex;
        flex-direction: column-reverse;
        grid-template-columns: none;
    }

    /* Contenedor derecho */
    .centered-container .content-right {
        width: 100% !important;
        min-height: auto !important;
    }

    .centered-container .content-right .detail-card {
        width: 95%;
        height: auto !important;
        padding: 0 !important;
        margin: 0px 0px 20px 0px !important;
    }

    .content-right .detail-card .content-logo .logo {
        width: 150px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .content-right .detail-card .content-detail {
        height: auto !important; 
        margin-bottom: 55px !important;
        overflow-y: auto !important;
        padding: 0 10px !important;
    }

    .content-right .detail-card .content-detail h3 {
        padding: 0 !important;
    }

    .content-right .detail-card .content-detail li {
        padding: 5px !important;
        margin: 0 !important;
    }

    .content-right .detail-card .content-right-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto !important;
    }

    .content-right .detail-card .content-right-footer h6, 
    .content-right .detail-card .content-right-footer p {
        padding: 0 !important;
        margin: 0 !important;
        font-size: 3.3vw;
    }
    /* ------------------ */

    /* Contenedor izquierdo */
    .centered-container .content-left {
        width: 100% !important;
        height: auto !important;
    }
    /* -------------------- */
}

@media screen and (max-width: 315px) {
    .content-left .content-form .content-info-cedula h2 {
        font-size: 7.6vw;
    }

    .content-left .content-form h4 {
        font-size: 7.6vw;
    }
}

@media screen and (min-width: 545px) and (max-width: 915px) {
    .centered-container.is-split {
        display: flex;
        flex-direction: row;
        grid-template-columns: none;
    }

    .centered-container .content-left,
    .centered-container .content-right {
        width: 50% !important;
    }

    .centered-container .content-right .detail-card {
        width: 90% !important;
    }

    .content-left .content-form .content-info-cedula h2 {
        font-size: 23px;
    }

    .content-left .content-form h4 {
        font-size: 23px;
    }

    .content-left .content-form .title-info {
        font-size: 20px;
    }
}

@media screen and (min-width: 1660px) {
    .centered-container .content-left .content-form {
        width: 60% !important;
    }
}