*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#ebebeb;
}

body.pago-page{
    min-height:100vh;
}

body.pago-page .title{
    background:#dc0947;
}

body.pago-page .header{
    background:#dc0947;
}

body.pago-page .logo{
    justify-content:center;
}

body.pago-page .nav-epagos-logo{
    width:auto;
    height:88px;
    filter:drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

body.pago-page .btn-pagar{
    background:#dc0947;
}

body.pago-page .change-method,
body.pago-page .small-link{
    color:#dc0947;
}

body.pago-page .summary-amount{
    color:#dc0947;
}

body.pago-page .epagos-logo{
    width:90px;
    height:auto;
    display:block;
    margin:8px auto 0;
}

.header{
    background:#67738d;
    height:145px;
}

.logo{
    width:1120px;
    margin:auto;
    height:100%;
    display:flex;
    align-items:center;
}

.logo img{
    width:380px;
    height:auto;
}

.container{
    width:1120px;
    margin:50px auto;
}

.title{
    background:#67738d;
    color:white;
    text-align:center;
    font-weight:bold;
    font-size:20px;
    padding:14px;
}

.page-path{
    font-size:14px;
    color:#4d5a7d;
    margin-bottom:12px;
    font-weight:600;
}

.payment-form{
    display:flex;
    gap:24px;
    align-items:flex-start;
    margin-top:20px;
}

.payment-panel,
.summary-panel{
    background:white;
    border:1px solid #dde3ea;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(15, 33, 69, 0.08);
}

.payment-panel{
    flex:1;
    padding:26px;
}

.panel-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    border-bottom:1px solid #e6e9f1;
    padding-bottom:18px;
    margin-bottom:22px;
}

.section-label{
    font-size:16px;
    font-weight:600;
    color:#33475b;
}

.change-method,
.small-link{
    color:#3a5ac7;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
}

.panel-card{
    padding-top:6px;
}

.panel-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.panel-heading h2{
    margin:0;
    font-size:22px;
    color:#1a2536;
}

.form-grid{
    display:grid;
    gap:18px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.field-full{grid-column: span 12;}
.field-half{grid-column: span 6;}
.field-third{grid-column: span 4;}
.field-two-thirds{grid-column: span 8;}

label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:8px;
    color:#4c5b74;
}

input,
select{
    width:100%;
    height:50px;
    border:1px solid #d7d7e0;
    border-radius:12px;
    padding:0 16px;
    font-size:15px;
    background:#f9fbff;
    color:#1f3151;
}

input::placeholder{
    color:#90a0bb;
}

.summary-panel{
    width:320px;
    padding:26px;
    display:flex;
    flex-direction:column;
    gap:22px;
}

.summary-header p{
    font-size:15px;
    font-weight:700;
    color:#1f3151;
    margin:0;
}

.summary-body{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.summary-label{
    margin:0;
    color:#5c6d88;
    font-size:14px;
}

.summary-amount{
    margin:0;
    font-size:38px;
    font-weight:800;
    color:#2e57c8;
}

.summary-footer{
    text-align:center;
    padding-top:18px;
    border-top:1px solid #e5e9f3;
    color:#6d7a92;
    font-size:13px;
}

.summary-footer strong{
    display:block;
    margin-top:4px;
    color:#2e57c8;
}

.payment-footer{
    margin-top:24px;
    padding:18px 22px;
    background:#f2f5fb;
    border-radius:14px;
    color:#5d6f92;
    font-size:14px;
    text-align:center;
}

.btn-pagar{
    width:100%;
    padding:14px 0;
    font-size:16px;
}

hr{
    border:none;
    border-top:1px solid #d7d7d7;
    margin:20px 0 10px;
}

.tabs{
    display:flex;
    gap:18px;
    margin-bottom:30px;
}

.tab{
    flex:1;
    padding:16px;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
    background:#d4d4d4;
    color:white;
}

.tab.active{
    background:#67738d;
    color:white;
}

.form{
    margin-top:20px;
}

label{
    display:block;
    font-size:20px;
    font-weight:bold;
    margin-bottom:12px;
}

input,
select{
    width:100%;
    height:42px;
    border:1px solid #cfd4d8;
    border-radius:3px;
    padding:0 12px;
    font-size:16px;
    background:white;
}

select{
    appearance:none;
}

.help{
    margin-top:10px;
    color:#70829c;
    font-size:14px;
}

.note{
    text-align:center;
    margin-top:170px;
    color:#6d7f98;
    font-size:17px;
    font-style:italic;
}

.captcha{
    width:330px;
    height:82px;
    background:white;
    border:1px solid #d5d5d5;
    margin:28px auto 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px;
    cursor:pointer;
}

.checkbox{
    width:30px;
    height:30px;
    border:2px solid #555;
    margin-right:15px;
    position:relative;
    border-radius:6px;
    transition:background .2s ease, border-color .2s ease;
    overflow:visible;
}

/* Spinner shown while pending */
.checkbox.pending{
    background:transparent;
    border-color:transparent;
}

.checkbox.pending::before{
    content:'';
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:22px;
    height:22px;
    border-radius:50%;
    /* make most of the ring transparent so only a small arc is visible */
    border:3px solid transparent;
    border-top-color:#4aa3ff;
    border-right-color:#4aa3ff;
    animation:spin 0.8s linear infinite;
}

@keyframes spin{
    to{ transform: translate(-50%,-50%) rotate(360deg); }
}

/* Checked state: green background with white tick */
.checkbox.checked{
    background:transparent;
    /* remove visible border but keep layout by making it transparent */
    border-color:transparent;
    border-radius:6px;
    box-shadow:none;
}

.checkbox.checked::after{
    content:'';
    position:absolute;
    left:8px;
    top:4px;
    width:8px;
    height:16px;
    border-right:3px solid #22c55e;
    border-bottom:3px solid #22c55e;
    transform:rotate(45deg);
}

.captcha-text{
    flex:1;
    font-size:18px;
}

.captcha-icon{
    width:40px;
    height:40px;
    margin-left:16px;
}

.metodo img{
    width:32px;
    height:auto;
    margin-right:10px;
}

.metodo{
    width:auto;
    padding:10px 14px;
    gap:8px;
}

.btn{
    display:block;
    width:185px;
    margin:0 auto;
    padding:13px;
    border:none;
    border-radius:4px;
    background:#67738d;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

.btn:hover{
    opacity:.9;
}

#form-documento{
    display:none;
}

.doc-number{
    margin-top:20px;
}

.resultados-container{
    width:1120px;
    margin:50px auto;
    background:white;
    padding:30px;
    border-radius:4px;
}

.resultados-content{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.resultado-header{
    text-align:center;
    padding-bottom:20px;
    border-bottom:1px solid #d7d7d7;
}

.resultado-subtitle{
    font-size:14px;
    color:#70829c;
    margin-bottom:12px;
}

.resultado-dni{
    font-size:32px;
    color:#333;
    margin:10px 0;
}

.resultado-fecha{
    font-size:14px;
    color:#999;
}

.resultado-important{
    background:#f0f0f0;
    padding:15px;
    border-radius:4px;
    color:#666;
    font-size:14px;
}

.resultado-actas h3{
    font-size:20px;
    color:#333;
    margin-bottom:15px;
}

.actas-summary{
    display:flex;
    gap:30px;
    padding:20px;
    background:#f9f9f9;
    border-radius:4px;
}

.acta-item{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.acta-label{
    font-size:14px;
    color:#666;
}

.acta-amount{
    font-size:20px;
    font-weight:bold;
    color:#333;
}

.btn-seleccionar-todas{
    background:#67738d;
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:4px;
    cursor:pointer;
    font-size:14px;
    margin-bottom:15px;
}

.btn-seleccionar-todas:hover{
    opacity:.9;
}

.resultado-tabla{
    border:1px solid #d5d5d5;
    border-radius:4px;
    overflow:hidden;
}

.acta-fila{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px;
    border-bottom:1px solid #e0e0e0;
    font-size:16px;
    transition:background-color .2s ease;
}

.acta-fila:not(.header-fila):hover{
    background-color:#f0f0f0;
}

.acta-fila input[type="checkbox"]{
    width:20px;
    height:20px;
    cursor:pointer;
}

.acta-fila.header-fila{
    background:#67738d;
    color:white;
    border-bottom:2px solid #67738d;
}

.acta-monto{
    margin-left:auto;
    font-weight:bold;
}

.acta-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px;
    background:#67738d;
    color:white;
    font-weight:bold;
}

.acta-buttons{
    display:flex;
    gap:10px;
}

.btn-paginacion{
    background:transparent;
    border:1px solid white;
    color:white;
    padding:8px 12px;
    cursor:pointer;
    border-radius:3px;
    font-size:13px;
}

.btn-paginacion:hover{
    background:rgba(255,255,255,.2);
}

.resultado-pago{
    text-align:center;
    padding:25px;
    background:#f9f9f9;
    border-radius:4px;
}

.resultado-pago h3{
    font-size:18px;
    color:#67738d;
    margin-bottom:20px;
}

.metodos-pago{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.metodo{
    width:80px;
    height:80px;
    border:2px solid transparent;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:white;
    cursor:pointer;
    transition:all .2s ease;
    padding:10px;
}

.metodo img{
    width:100%;
    height:auto;
    object-fit:contain;
}

.metodo.active{
    border-color:#67738d;
    box-shadow:0 0 0 4px rgba(103,115,141,.12);
}

.metodo:hover{
    border-color:#67738d;
    box-shadow:0 2px 6px rgba(103,115,141,.2);
}

.btn-pagar{
    background:#67738d;
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:4px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
}

.btn-pagar:hover{
    opacity:.9;
}

.btn-nueva-consulta{
    margin-top:25px;
}