/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/consulta-deuda/styles.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Consulta Deuda — Finova
   Paleta: #1468B1 (primario) · #12274B (oscuro) · #D0EDFC (claro)
   ========================================================================== */

:root {
  --f-primary: #1468B1;
  --f-primary-dark: #12274B;
  --f-primary-light: #D0EDFC;
  --f-accent: #2A7ABF;
  --f-success: #10b981;
  --f-success-dark: #059669;
  --f-warning: #f59e0b;
  --f-danger: #ef4444;
  --f-gray-50: #f8fafc;
  --f-gray-100: #f1f5f9;
  --f-gray-200: #e2e8f0;
  --f-gray-500: #64748b;
  --f-gray-700: #334155;
  --f-shadow-sm: 0 1px 3px rgba(18, 39, 75, 0.08);
  --f-shadow-md: 0 8px 24px rgba(18, 39, 75, 0.10);
  --f-shadow-lg: 0 20px 50px rgba(18, 39, 75, 0.18);
  --f-radius: 20px;
  --f-radius-lg: 28px;
}

/* =====  Layout general  =====================================================
   El header global es position:absolute; top:40px; height:100px (~140px total).
   Por eso el contenedor necesita ~180px de padding-top para no quedar tapado.
   ============================================================================ */
.consulta-container {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(20, 104, 177, 0.08), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(42, 122, 191, 0.06), transparent 60%),
    var(--f-gray-50);
  padding: clamp(10rem, 13vw, 12rem) 1rem 5rem;
  font-family: var(--body-color-font), 'Urbanist', system-ui, sans-serif;
  color: var(--f-primary-dark);
}

.consulta-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* =====  Hero / Page header band  =========================================== */
.consulta-hero {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-top: 0.5rem;
}

.consulta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--f-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  border: 1px solid var(--f-primary-light);
  box-shadow: 0 2px 8px rgba(20, 104, 177, 0.08);
}

.consulta-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f-primary);
  box-shadow: 0 0 0 3px rgba(20, 104, 177, 0.22);
}

.consulta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--f-primary-dark);
  margin: 0 0 1rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.consulta-subtitle {
  color: var(--f-gray-500);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =====  Buscador  =========================================================== */
.consulta-card {
  background: #fff;
  border-radius: var(--f-radius-lg);
  padding: 2rem;
  box-shadow: var(--f-shadow-md);
  border: 1px solid var(--f-gray-200);
  margin-bottom: 2rem;
}

.consulta-input-label {
  display: block;
  font-weight: 600;
  color: var(--f-primary-dark);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.consulta-input-group {
  display: flex;
  gap: 0.75rem;
}

.consulta-input {
  flex: 1 1;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  border: 2px solid var(--f-gray-200);
  border-radius: 14px;
  background: var(--f-gray-50);
  transition: all 0.2s;
  color: var(--f-primary-dark);
}

.consulta-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.consulta-input:focus {
  outline: none;
  border-color: var(--f-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 104, 177, 0.12);
}

.consulta-button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--f-primary) 0%, var(--f-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(20, 104, 177, 0.28);
  letter-spacing: 0.02em;
}

.consulta-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 104, 177, 0.38);
}

.consulta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.consulta-hint {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--f-gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.consulta-hint i { color: var(--f-success); }

/* =====  Errores / loading  ================================================= */
.consulta-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid var(--f-danger);
  border-radius: 14px;
  color: #9f1239;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.consulta-error i { font-size: 1.3rem; }
.consulta-error p { margin: 0; }

.consulta-loading {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: var(--f-radius-lg);
  box-shadow: var(--f-shadow-md);
}
.loading-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--f-primary-light);
  border-top-color: var(--f-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  color: var(--f-primary-dark);
  font-weight: 600;
  margin: 0;
}

/* =====  Tarjeta de crédito  ================================================ */
.credito-card {
  background: #fff;
  border-radius: var(--f-radius-lg);
  padding: 2rem;
  box-shadow: var(--f-shadow-md);
  border: 1px solid var(--f-gray-200);
  margin-bottom: 1.5rem;
}

.credito-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--f-gray-200);
}

.credito-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.credito-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--f-primary-dark);
  margin: 0;
}

.credito-status {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-al-dia {
  background: #dcfce7;
  color: var(--f-success-dark);
}
.status-mora {
  background: #fee2e2;
  color: #b91c1c;
}

.credito-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-item {
  background: var(--f-gray-50);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--f-gray-200);
}

.info-label {
  font-size: 0.78rem;
  color: var(--f-gray-500);
  margin: 0 0 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--f-primary-dark);
  margin: 0;
}

.info-mora { color: var(--f-danger); }

.pagar-button {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--f-success) 0%, var(--f-success-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pagar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.4);
}

/* =====  Tabla de cuotas  =================================================== */
.cuotas-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--f-primary-dark);
  margin: 0 0 1rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--f-gray-200);
}

.cuotas-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.cuotas-table thead tr {
  background: linear-gradient(135deg, var(--f-primary) 0%, var(--f-primary-dark) 100%);
}

.cuotas-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cuotas-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--f-gray-200);
  color: var(--f-primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.cuotas-table tr:last-child td { border-bottom: none; }

.row-vencida { background: #fff5f5; }

.text-right { text-align: right; }
.text-center { text-align: center; }

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge-vencida { background: #fee2e2; color: #991b1b; }
.badge-pendiente { background: var(--f-primary-light); color: var(--f-primary); }

.no-cuotas {
  color: var(--f-gray-500);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}

/* =====  MODAL  ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 39, 75, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: #fff;
  border-radius: var(--f-radius-lg);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--f-shadow-lg);
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--f-gray-100);
  color: var(--f-primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--f-gray-200); }

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-badge {
  display: inline-block;
  background: #dcfce7;
  color: var(--f-success-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--f-primary-dark);
  margin: 0 0 0.25rem;
}

.modal-subtitle {
  color: var(--f-gray-500);
  margin: 0;
  font-weight: 500;
}

.modal-section { margin-bottom: 1.5rem; }

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--f-primary-dark);
  margin: 0 0 0.75rem;
}

/* ---- Opciones de monto ---- */
.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.7rem;
  gap: 0.7rem;
}

.pay-option {
  background: #fff;
  border: 2px solid var(--f-gray-200);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pay-option:hover { border-color: var(--f-primary); }

.pay-option.is-active {
  border-color: var(--f-primary);
  background: linear-gradient(180deg, rgba(20, 104, 177, 0.06), transparent);
  box-shadow: 0 0 0 3px rgba(20, 104, 177, 0.1);
}

.pay-option-mora.is-active {
  border-color: var(--f-warning);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.pay-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--f-gray-700);
  margin-bottom: 0.3rem;
}

.pay-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--f-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.pay-option.is-active .pay-check { opacity: 1; }
.pay-option-mora.is-active .pay-check { background: var(--f-warning); }

.pay-option-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--f-primary-dark);
}

.pay-option-custom { min-height: 1.8rem; display: flex; align-items: center; }
.pay-option-hint { color: #94a3b8; font-weight: 500; font-size: 0.95rem; }
.pay-option-input {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--f-primary-dark);
  width: 100%;
  outline: none;
  padding: 0;
  font-family: inherit;
}
.pay-option-input::placeholder { color: #cbd5e1; }

/* ---- Métodos de pago ---- */
.metodos-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.7rem;
  gap: 0.7rem;
}

.metodo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 2px solid var(--f-gray-200);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: left;
}
.metodo-card:hover { border-color: var(--f-primary); background: var(--f-gray-50); }

.metodo-card.is-active {
  border-color: var(--metodo-color, var(--f-primary));
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--metodo-color, var(--f-primary)) 20%, transparent);
}

.metodo-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--f-gray-50);
  flex-shrink: 0;
}

.metodo-info {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-width: 0;
}
.metodo-name {
  font-weight: 700;
  color: var(--f-primary-dark);
  font-size: 1rem;
}
.metodo-desc {
  font-size: 0.82rem;
  color: var(--f-gray-500);
}

.metodo-radio {
  width: 22px; height: 22px;
  color: var(--metodo-color, var(--f-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ---- Resumen ---- */
.modal-summary {
  background: linear-gradient(135deg, var(--f-primary) 0%, var(--f-primary-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.summary-row strong { font-size: 1.45rem; font-weight: 800; }
.summary-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ---- Botones ---- */
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-button {
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.modal-button-primary {
  background: linear-gradient(135deg, var(--f-success) 0%, var(--f-success-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.modal-button-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.45);
}

.modal-button-cancel {
  background: var(--f-gray-100);
  color: var(--f-primary-dark);
}
.modal-button-cancel:hover:not(:disabled) { background: var(--f-gray-200); }

.modal-button:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.modal-trust {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--f-gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}
.modal-trust i { color: var(--f-success); }

/* =====  Toast  ============================================================= */
.toast-message {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--f-primary-dark);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--f-shadow-lg);
  z-index: 2000;
  font-weight: 600;
  animation: toastIn 3.5s ease forwards;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  10%, 90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* =====  Responsive  ======================================================== */
@media (max-width: 991px) {
  .consulta-container { padding-top: clamp(8rem, 18vw, 10rem); }
  .consulta-hero { margin-bottom: 2.5rem; }
}

@media (max-width: 640px) {
  .consulta-container { padding: 7.5rem 0.75rem 3rem; }
  .consulta-hero { margin-bottom: 2rem; }
  .consulta-eyebrow { font-size: 0.72rem; padding: 0.45rem 0.9rem; }
  .consulta-card, .credito-card { padding: 1.5rem 1.25rem; }
  .consulta-input-group { flex-direction: column; }
  .consulta-button { padding: 1rem; }
  .credito-info-grid { grid-template-columns: 1fr 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .modal-content { padding: 1.5rem 1.25rem; }
  .modal-title { font-size: 1.4rem; }
}

