* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.payment-page {
    min-height: 100vh;
    margin: 0;
    color: #18304f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(33, 126, 184, 0.18), transparent 34rem),
        linear-gradient(180deg, #f3f8fb 0%, #ffffff 56%, #edf5f8 100%);
}

button,
input,
select {
    font: inherit;
}

button {
    appearance: none;
}

.headercobrado {
    width: 100%;
    min-height: 128px;
    margin-bottom: 28px;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(15, 67, 110, 0.72), rgba(29, 126, 167, 0.45)),
        url(../img/header.jpg);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 32px rgba(21, 73, 112, 0.16);
}

.headercobrado__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    min-height: 128px;
    margin: 0 auto;
    gap: 24px;
}

.logovida {
    display: block;
    width: min(220px, 44vw);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(3, 36, 61, 0.24));
}

.mequedoencasa {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: right;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(4, 54, 90, 0.42);
}

.mequedoencasa b {
    display: block;
    color: #fff7d8;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(4, 54, 90, 0.5);
}

.hasthtagmequedoencasa {
    display: block;
    font-style: normal;
}

.hasthtagmequedoencasa img {
    display: block;
    width: 132px;
    height: auto;
}

.payment-shell {
    width: min(1040px, calc(100% - 28px));
    max-width: 1040px;
    padding: 0 0 44px;
}

.payment-card {
    width: 100%;
    margin-bottom: 18px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dce8ef;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(24, 68, 97, 0.12);
}

.lookup-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: end;
    gap: 28px;
}

.lookup-copy {
    min-width: 0;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #26728f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lookup-copy h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #173b66;
    font-size: 26px !important;
    font-weight: 750;
    line-height: 1.16;
}

.iconcobrado {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0;
    float: none;
}

.lookup-form label {
    display: block;
    margin-bottom: 8px;
    color: #36546f;
    font-size: 14px;
    font-weight: 700;
}

.lookup-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

input,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: #17304f;
    background: #fff;
    border: 1px solid #bed0dd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus {
    border-color: #238bb1;
    box-shadow: 0 0 0 4px rgba(35, 139, 177, 0.16);
}

.consultar,
.seleccionartodo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.consultar {
    min-width: 140px;
    background: linear-gradient(180deg, #2c93ba 0%, #176d92 100%);
    border-color: #176d92;
    box-shadow: 0 10px 20px rgba(23, 109, 146, 0.24);
}

.consultar:hover,
.consultar:focus {
    color: #fff;
    background: linear-gradient(180deg, #237fa3 0%, #125b7b 100%);
    border-color: #125b7b;
    box-shadow: 0 12px 24px rgba(23, 109, 146, 0.32);
    transform: translateY(-2px);
}

#pagarMLBtn {
    min-width: 156px;
    background: linear-gradient(180deg, #20a86c 0%, #127749 100%);
    border-color: #127749;
    box-shadow: 0 12px 24px rgba(18, 119, 73, 0.26);
}

#pagarMLBtn:hover,
#pagarMLBtn:focus {
    background: linear-gradient(180deg, #178f59 0%, #0d623a 100%);
    border-color: #0d623a;
    box-shadow: 0 14px 28px rgba(18, 119, 73, 0.34);
}

.seleccionartodo {
    min-width: 168px;
    color: #30485f;
    background: #f7fafc;
    border-color: #bdcedb;
    box-shadow: 0 8px 18px rgba(49, 76, 96, 0.08);
}

.seleccionartodo:hover,
.seleccionartodo:focus {
    color: #173b66;
    background: #edf5f8;
    border-color: #93b9ca;
    transform: translateY(-2px);
}

.greyBackground,
.greyBackground:hover {
    color: #fff !important;
    background: #9aa9b3 !important;
    border-color: #9aa9b3 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#cobroPendiente:empty {
    display: none;
}

.member-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.member-summary__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef8fb 100%);
    border: 1px solid #c9e2eb;
    border-left: 5px solid #2b87a8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(25, 71, 99, 0.12);
}

.member-summary__item:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f3 100%);
    border-color: #cfe7d7;
    border-left-color: #1f9563;
}

.member-summary__item--wide {
    grid-column: 1 / -1;
}

.member-summary__label {
    display: block;
    margin-bottom: 2px;
    color: #527187;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.member-summary__value {
    display: block;
    color: #102f54;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.icons,
.icons2 {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
}

.debt-card {
    padding: 0;
    overflow: hidden;
}

.debt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    background: #f7fbfd;
    border-bottom: 1px solid #dce8ef;
}

.titulos {
    display: block;
    margin: 0;
    padding: 0;
    color: #173b66;
    background: transparent;
    border: 0;
    font-size: 21px !important;
    font-weight: 750;
    line-height: 1.2;
}

.section-help {
    margin-top: 5px;
    color: #5d7488;
    font-size: 14px !important;
    font-weight: 500;
}

.table-shell {
    width: 100%;
    overflow-x: auto;
    padding: 0 24px 6px;
}

#TableDeuda {
    width: 100% !important;
    margin: 18px 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    color: #223b54;
}

#TableDeuda thead th {
    padding: 13px 14px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    background: #173b66;
    border: 0;
}

#TableDeuda thead th:first-child {
    border-top-left-radius: 8px;
}

#TableDeuda thead th:last-child {
    border-top-right-radius: 8px;
}

#TableDeuda tbody td {
    padding: 14px;
    vertical-align: middle;
    background: #fff;
    border-top: 1px solid #e2edf3;
}

#TableDeuda tbody tr:hover td {
    background: #f8fcfd;
}

#TableDeuda_wrapper .dataTables_empty {
    padding: 24px 14px;
    color: #667f92;
}

input[type=checkbox].chiller_cb {
    width: auto !important;
    min-height: 0;
    transform: scale(1.25);
    accent-color: #16835e;
}

.payment-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 24px 24px;
    background: linear-gradient(180deg, #fbfdfe 0%, #f2f8f6 100%);
    border-top: 1px solid #dce8ef;
}

.totalapagar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 64px;
    margin: 0;
    padding: 14px 20px;
    color: #0d4f35;
    text-align: right;
    background: linear-gradient(135deg, #ffffff 0%, #e6f7ef 100%);
    border: 1px solid #b9e0ca;
    border-left: 5px solid #20a86c;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 119, 73, 0.12);
}

.totalapagar h3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    color: #0d6842;
    font-size: 24px !important;
    font-weight: 850;
}

.totalapagar-label {
    color: #16543b;
    font-size: 19px;
    font-weight: 700;
}

.totalapagar-monto {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 3px 12px 5px;
    color: #08724d;
    font-family: inherit;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    background: #fff7d8;
    border: 2px solid #f0c34b;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(176, 126, 18, 0.14);
}

.tarjetasimagen {
    float: right;
    right: 20px;
}

.tarjetasimagen img {
    width: 300px;
}

.tarjetasimagencell {
    display: none;
}

.modal-body input,
.modal-body select {
    width: 100% !important;
}

.pl-1 {
    padding-left: 10px;
}

.backgroundmodal {
    background-image: url(../img/header.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.loadervidashop {
    display: none;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    position: fixed;
    inset: 0;
}

.backgroundvidashop {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 0;
}

.loadervidashop .contenedorlogo {
    display: flex;
    justify-content: center;
    padding-top: 0;
    animation: latidos 3s infinite;
    transform-origin: center;
    z-index: 1;
    position: relative;
    top: 30%;
    bottom: 0;
    left: 0;
    right: 0;
    width: 50%;
    height: 30%;
    margin: auto;
}

.loadervidashop .uno {
    width: 220px;
    height: auto;
    position: absolute;
    margin-top: -10px;
}

.loadervidashop .dos {
    width: 230px;
    height: auto;
    position: absolute;
    margin-top: 90px;
}

.loadervidashop .tres {
    width: 60px;
    height: auto;
    position: absolute;
    margin-left: 3px;
    animation: spin 4s linear infinite;
}

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

@keyframes latidos {
    from {
        transform: none;
    }

    50% {
        transform: scale(1.1);
    }

    to {
        transform: none;
    }
}

@media (max-width: 820px) {
    .headercobrado,
    .headercobrado__inner {
        min-height: 112px;
    }

    .headercobrado {
        margin-bottom: 18px;
    }

    .mequedoencasa {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        font-size: 16px;
    }

    .hasthtagmequedoencasa img {
        width: 104px;
    }

    .payment-shell {
        width: min(100% - 20px, 1040px);
        padding-bottom: 28px;
    }

    .payment-card {
        padding: 18px;
    }

    .lookup-card,
    .member-summary,
    .payment-actions {
        grid-template-columns: 1fr;
    }

    .lookup-copy h1 {
        font-size: 22px !important;
    }

    .lookup-controls {
        grid-template-columns: 1fr;
    }

    .consultar,
    .seleccionartodo {
        width: 100%;
    }

    .debt-header {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .table-shell {
        padding: 0 12px 4px;
    }

    #TableDeuda {
        min-width: 620px;
    }

    .payment-actions {
        padding: 16px 18px 18px;
    }

    .totalapagar {
        justify-content: center;
        text-align: center;
    }

    .totalapagar h3 {
        justify-content: center;
    }

    .tarjetasimagen {
        display: none;
    }

    .tarjetasimagencell {
        display: block;
    }

    .tarjetasimagencell img {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .headercobrado,
    .headercobrado__inner {
        min-height: 96px;
    }

    .headercobrado__inner {
        width: calc(100% - 24px);
        gap: 12px;
    }

    .logovida {
        width: 148px;
    }

    .mequedoencasa b {
        font-size: 15px;
    }

    .hasthtagmequedoencasa img {
        width: 86px;
    }

    .payment-card {
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(24, 68, 97, 0.1);
    }

    .lookup-copy h1 {
        align-items: flex-start;
        font-size: 20px !important;
    }

    .iconcobrado {
        width: 36px;
        height: 36px;
    }

    .member-summary__item {
        padding: 13px 14px;
    }

    .member-summary__value {
        font-size: 16px;
    }

    .totalapagar-label {
        font-size: 17px;
    }

    .totalapagar-monto {
        font-size: 27px;
        min-height: 38px;
    }

    .loadervidashop .contenedorlogo {
        width: 78%;
    }

}
