/* === Modal: Información de Deuda Pendiente · Epunemi ===
   Modal compacto, sin imágenes ni GIFs, paleta institucional. */

.deuda-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(11, 46, 68, 0.45);
    background: #fff;
}

.deuda-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0B2E44 0%, #1f4361 100%);
    color: #fff;
    position: relative;
}

.deuda-modal-head .icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4);
}

.deuda-modal-head .icon i { color: #ffffff !important; }

.deuda-modal-head .eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd9b3;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 1;
}

.deuda-modal-head .modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.deuda-modal-head .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
}

.deuda-modal-head .btn-close:hover {
    opacity: 1;
}

.deuda-resumen {
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, #fff8f1 0%, #fde7cf 100%);
    border-bottom: 1px solid #fbd0a6;
}

.deuda-resumen .cell {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.deuda-resumen .sep {
    width: 1px;
    background: #fbd0a6;
    margin: 12px 0;
}

.deuda-resumen .lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a4a00;
}

.deuda-resumen .val {
    font-size: 22px;
    font-weight: 800;
    color: #0B2E44;
    line-height: 1.1;
}

.deuda-resumen .val-monto {
    color: #c0392b;
}

.deuda-pasos {
    padding: 18px 22px 4px;
}

.deuda-pasos .head {
    font-size: 14px;
    font-weight: 700;
    color: #0B2E44;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.deuda-pasos .head i {
    color: #F86F03;
}

.deuda-pasos ol {
    padding-left: 22px;
    margin: 0;
    color: #1f4361;
    font-size: 13.5px;
    line-height: 1.55;
}

.deuda-pasos ol li {
    margin-bottom: 4px;
}

.deuda-pasos ol li strong {
    color: #0B2E44;
}

.deuda-guia {
    padding: 0 22px 12px;
}

.deuda-guia .head {
    font-size: 13px;
    font-weight: 700;
    color: #0B2E44;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.deuda-guia .head .pill-vencida {
    background: #f6dbd6;
    color: #8a2418;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #e6b4a8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.deuda-guia .gif-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    background: #f4f7fb;
}

.deuda-guia .gif-wrap img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 240px;
    object-fit: contain;
    background: #fff;
}

.deuda-guia .gif-wrap .badge-vencida-abs {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(192, 57, 43, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}

.deuda-help {
    padding: 6px 22px 16px;
    text-align: center;
}

.deuda-help a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f4361;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #eef2f7;
    transition: background 0.18s ease;
}

.deuda-help a:hover {
    background: #dde6f0;
    color: #0B2E44;
}

.deuda-help a i {
    color: #c0392b;
}

.deuda-footer {
    border-top: 1px solid #eef2f7;
    padding: 14px 18px;
    background: #fafbfc;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-deuda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.18s ease;
}

.btn-deuda.primary {
    background: linear-gradient(180deg, #F86F03, #d05a00);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(248, 111, 3, 0.7);
}

.btn-deuda.primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #fff;
}

.btn-deuda.ghost {
    background: #fff;
    color: #5b6675;
    border: 1.5px solid #d6dee8;
}

.btn-deuda.ghost:hover {
    background: #f4f7fb;
    color: #0B2E44;
}

@media (max-width: 575px) {
    .deuda-resumen { flex-direction: column; }
    .deuda-resumen .sep { width: auto; height: 1px; margin: 0 18px; }
    .deuda-modal-head { padding: 16px; }
    .deuda-modal-head .modal-title { font-size: 15px; }
}
