
.credex-consulta-wrap{max-width:960px;margin:30px auto;padding:15px;font-family:inherit;box-sizing:border-box}
.credex-consulta-card{position:relative;overflow:hidden;background:#fff;border-radius:24px;padding:42px;box-shadow:0 18px 60px rgba(17,32,56,.12);border:1px solid rgba(20,40,70,.08)}
.credex-consulta-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#0d2342,#1c5f8d,#0d2342)}
.credex-brand-mark{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#0d2342;color:#fff;font-weight:800;font-size:23px;margin-bottom:18px;box-shadow:0 8px 20px rgba(13,35,66,.2)}
.credex-eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#5b7188}
.credex-consulta-heading h2{margin:8px 0 8px;color:#102842;font-size:clamp(26px,4vw,38px);line-height:1.12}
.credex-consulta-heading p{margin:0 0 28px;color:#657487;font-size:16px;line-height:1.6}
.credex-form label{display:block;font-weight:700;color:#1a2e45;margin-bottom:8px}
.credex-input-row{display:flex;gap:12px}
.credex-input-row input{flex:1;min-width:0;height:52px;border:1px solid #d7e0e9;border-radius:12px;padding:0 16px;font-size:16px;outline:none;background:#fbfcfd;box-sizing:border-box}
.credex-input-row input:focus{border-color:#1c5f8d;box-shadow:0 0 0 3px rgba(28,95,141,.12)}
#credex-consultar-btn{height:52px;border:0;border-radius:12px;background:#0d2342;color:#fff;padding:0 22px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.2s;display:flex;align-items:center;gap:10px}
#credex-consultar-btn:hover{transform:translateY(-1px);background:#163b64}
#credex-consultar-btn:disabled{opacity:.7;cursor:wait}
.credex-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;display:none;animation:credexspin .7s linear infinite}
.credex-loading .credex-spinner{display:inline-block}
@keyframes credexspin{to{transform:rotate(360deg)}}
.credex-form-note{margin-top:10px;color:#8a98a7;font-size:12px}
.credex-message{display:none;margin-top:20px;border-radius:12px;padding:13px 15px;font-size:14px}
.credex-message.error{display:block;background:#fff1f1;color:#9c2f2f;border:1px solid #ffd7d7}
.credex-message.success{display:block;background:#effaf4;color:#17663c;border:1px solid #cfeedd}
.credex-result{display:none;margin-top:30px;border-top:1px solid #e7edf2;padding-top:30px}
.credex-result.show{display:block}
.credex-result-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.credex-result-title h3{margin:0;color:#102842;font-size:22px}
.credex-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.credex-data{background:#f7f9fb;border:1px solid #e5ebf0;border-radius:14px;padding:17px 18px}
.credex-data-label{display:block;color:#7a8795;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.credex-data-value{display:block;color:#172c43;font-size:16px;font-weight:700;word-break:break-word}
.credex-data.full{grid-column:1/-1}
.credex-status-box{margin-top:14px;padding:18px 20px;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.credex-status-box .label{font-weight:700;color:#26384b}
.credex-status-pill{padding:8px 13px;border-radius:999px;font-size:13px;font-weight:800}
.credex-status-box.aldia{background:#eefaf3}.credex-status-box.aldia .credex-status-pill{background:#d6f3e1;color:#187347}
.credex-status-box.mora{background:#fff3f1}.credex-status-box.mora .credex-status-pill{background:#ffdeda;color:#a53b30}
.credex-status-box.pendiente{background:#fff8e8}.credex-status-box.pendiente .credex-status-pill{background:#ffe9ad;color:#805b00}
.credex-status-box.cancelado{background:#f0f3f6}.credex-status-box.cancelado .credex-status-pill{background:#dce3ea;color:#4b5b6b}
@media(max-width:700px){
 .credex-consulta-card{padding:27px 20px;border-radius:18px}
 .credex-input-row{flex-direction:column}
 #credex-consultar-btn{width:100%;justify-content:center}
 .credex-result-grid{grid-template-columns:1fr}
 .credex-data.full{grid-column:auto}
 .credex-status-box{align-items:flex-start;flex-direction:column}
}

.credex-public-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.credex-public-grid label{display:block;font-weight:700;color:#1a2e45;margin-bottom:8px}.credex-public-grid input{width:100%;height:52px;border:1px solid #d7e0e9;border-radius:12px;padding:0 16px;font-size:16px;outline:none;background:#fbfcfd;box-sizing:border-box}.credex-public-grid input:focus{border-color:#1c5f8d;box-shadow:0 0 0 3px rgba(28,95,141,.12)}#credex-consultar-btn{width:100%;justify-content:center}@media(max-width:700px){.credex-public-grid{grid-template-columns:1fr}}

.credex-status-hero{border:2px solid #23884f;border-radius:18px;padding:34px 24px;text-align:center;margin-bottom:30px;background:#effbf3}.credex-status-title{font-weight:900;letter-spacing:1px}.credex-status-hero.approved .credex-status-title{font-size:44px;color:#168344}.credex-status-subtitle{font-size:20px;color:#2b8a57;margin-top:10px;line-height:1.45}.credex-section{margin:30px 0}.credex-section h3{font-size:24px;color:#4b20a3;margin:0 0 14px;padding-bottom:11px;border-bottom:2px solid #eee6ff;letter-spacing:.3px}.credex-detail{padding:14px 0;border-bottom:1px solid #e5e5e5;display:flex;flex-direction:column;gap:5px}.credex-detail strong{font-size:17px;color:#222}.credex-detail span{font-size:17px;color:#6d7178}.credex-highlight{font-size:24px!important;font-weight:800;color:#4b20a3!important}.credex-status-inline{font-weight:800!important;color:#19884c!important}.credex-payout-card{border:2px solid #5a26ae;border-radius:17px;padding:24px;background:#f7f2ff}.credex-payout-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.credex-payout-option{border:1px solid #ddd3ee;border-radius:12px;padding:14px 16px;background:#fff;color:#4a4a4a;font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:10px}.credex-payout-option.selected{border:2px solid #5a26ae;background:#eee5ff;color:#4b20a3}.credex-payout-option strong{font-size:13px;white-space:nowrap}@media(max-width:700px){.credex-payout-options{grid-template-columns:1fr}.credex-payout-option{font-size:16px}}.credex-payout-title{font-size:21px;font-weight:800;color:#222}.credex-payout-subtitle{font-size:16px;color:#70757d;margin:8px 0 18px}.credex-disbursement-date{margin-top:22px;display:flex;flex-direction:column;gap:7px;font-size:18px}.credex-disbursement-date span{font-size:22px;font-weight:800;color:#4b20a3}.credex-observation-card{border-left:8px solid #c56800;border-radius:14px;background:#fff9e7;padding:25px}.credex-observation-title{font-size:21px;font-weight:800;color:#a65700;margin:0 0 14px}.credex-observation-text{font-size:17px;line-height:1.7;color:#303030}.credex-new-search{width:100%;margin-top:10px;padding:14px 20px;border:0;border-radius:12px;background:#4b20a3;color:#fff;font-weight:800;cursor:pointer}.credex-status-box.aprobado{background:#effbf3}.credex-status-box.aprobado .credex-status-pill{background:#d6f3e1;color:#187347}@media(max-width:700px){.credex-status-hero.approved .credex-status-title{font-size:34px}.credex-status-subtitle{font-size:17px}.credex-section h3{font-size:21px}}

/* Modal de resultados */
.credex-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.credex-modal.show{display:flex}
.credex-modal-backdrop{position:absolute;inset:0;background:rgba(8,22,38,.72);backdrop-filter:blur(4px)}
.credex-modal-dialog{position:relative;z-index:2;width:min(920px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.28);padding:34px;box-sizing:border-box;animation:credexModalIn .2s ease-out}
.credex-modal-close{position:absolute;right:18px;top:18px;width:44px;height:44px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(241,244,247,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(16,40,66,.14),inset 0 1px 0 rgba(255,255,255,.9);color:#25384c;font-size:25px;font-weight:600;line-height:44px;text-align:center;padding:0;margin:0;cursor:pointer;z-index:3;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,background .2s ease,box-shadow .2s ease}.credex-modal-close:hover{background:rgba(229,235,240,.96);transform:scale(1.06);box-shadow:0 10px 28px rgba(16,40,66,.2),inset 0 1px 0 rgba(255,255,255,1)}.credex-modal-close:focus-visible{outline:3px solid rgba(28,95,141,.25);outline-offset:3px}
.credex-modal-content>h2{margin:0 45px 24px 0;color:#102842;font-size:28px}
body.credex-modal-open{overflow:hidden}
@keyframes credexModalIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.credex-modal{padding:10px}.credex-modal-dialog{max-height:94vh;border-radius:17px;padding:25px 18px}.credex-modal-content>h2{font-size:23px;margin-right:35px}}

.credex-disbursement-note{margin-top:22px;padding:18px 20px;border:1px solid #d9c9f5;border-radius:14px;background:linear-gradient(135deg,#faf7ff,#f4edff);color:#3f246f;font-size:16px;line-height:1.65;font-weight:600;box-shadow:0 6px 18px rgba(75,32,163,.07)}
@media(max-width:700px){.credex-disbursement-note{font-size:15px;padding:16px}}

/* Encabezado de marca en la ventana emergente */
.credex-modal-brand-header{margin:-34px -34px 28px;padding:28px 34px 25px;background:linear-gradient(135deg,#4b20a3,#6f35c7);color:#fff;text-align:center;border-radius:22px 22px 0 0;box-shadow:0 8px 24px rgba(75,32,163,.18)}
.credex-modal-brand-name{font-size:30px;font-weight:900;line-height:1.15;letter-spacing:.2px}
.credex-modal-brand-tagline{margin-top:8px;font-size:17px;font-weight:600;line-height:1.45;opacity:.98}
@media(max-width:700px){.credex-modal-brand-header{margin:-25px -18px 24px;padding:23px 18px 21px;border-radius:17px 17px 0 0}.credex-modal-brand-name{font-size:23px}.credex-modal-brand-tagline{font-size:15px}}
.credex-payout-card .credex-payout-subtitle{margin-bottom:10px}
