/* ============================= */
/* CONTENEDOR GENERAL FORMULARIO */
/* ============================= */
.contenedor-deudas {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ============================= */
/* FORMULARIO DE CONSULTA */
/* ============================= */
.columna-formulario {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    padding: 35px;
    border-radius: 12px;
    border: 2px solid #b8962e;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: popupSlide .35s ease;
}

/* Campos en línea */
#formulario-deuda {
    display: flex;
    flex-direction: column;
}
.form-title {
    color: #e6c34a;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* Agrupa los campos para que estén en fila */
.form-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; /* centra horizontalmente */
}

/* Cada grupo de label + input */
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px; /* se ajusta al espacio disponible */
}

#formulario-deuda label {
    color: #e6c34a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

#formulario-deuda input[type="text"] {
    background: #111;
    border: 1px solid #b8962e;
    padding: 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.2s;
}

#formulario-deuda input[type="text"]:focus {
    outline: none;
    border: 1px solid #e6c34a;
    box-shadow: 0 0 10px rgba(230,195,74,0.4);
}

/* Footer del formulario: checkbox + botón */
.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: #e6c34a;
}

#formulario-deuda a {
    color: #e6c34a;
    text-decoration: none;
}

#formulario-deuda a:hover {
    text-decoration: underline;
}

/* Botón Consultar */
#formulario-deuda input[type="submit"] {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: bold;
    background: linear-gradient(135deg,#e6c34a,#b8962e);
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}

#formulario-deuda input[type="submit"]:hover {
    background: linear-gradient(135deg,#f5d76e,#c9a73b);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(230,195,74,0.4);
}

/* ============================= */
/* RESULTADOS DE LA CONSULTA */
/* ============================= */
.columna-deudas {
    width: 100%;
}

/* Tarjeta de deuda */
.deuda-info {
    background: #000;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #b8962e;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    animation: popupSlide .35s ease;
}

.deuda-info h2 {
    text-align: center;
    color: #e6c34a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.monto-deuda {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ccc;
}

.valor-monto {
    display: block;
    margin-top: 5px;
    font-size: 2rem;
    font-weight: bold;
    color: #e6c34a;
}

.otros-datos {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.otros-datos p {
    font-size: 0.95rem;
    margin: 6px 0;
    color: #ddd;
}

.otros-datos strong {
    color: #e6c34a;
}

/* Botón de pagar (si lo agregas) */
.deuda-info input[type="submit"] {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg,#e6c34a,#b8962e);
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}

.deuda-info input[type="submit"]:hover {
    background: linear-gradient(135deg,#f5d76e,#c9a73b);
    transform: translateY(-1px);
}

/* Resultados animados y mensajes */
.results-container {
    width: 100%;
    margin-top: 25px;
    animation: popupSlide .35s ease;
}

.error-msg {
    color: #f44336;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.no-deuda {
    background: #000;
    border-left: 5px solid #f44336;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================= */
/* Animación */
@keyframes popupSlide {
    from { opacity:0; transform: translateY(30px); }
    to { opacity:1; transform: translateY(0); }
}

/* ============================= */
/* RESPONSIVO */
@media(max-width:768px){
    .columna-formulario {
        padding:25px;
    }
    .deuda-info {
        padding:25px;
    }
    .valor-monto {
        font-size:1.7rem;
    }
    .form-fields {
        flex-direction: column;
        gap: 15px;
    }
    .form-footer {
        flex-direction: column;
        gap: 10px;
    }
}