/* ==========================================================================
   BANKZILLA ONBOARDING STYLES
   ========================================================================== */

/* --- Variables Globales y Root --- */
:root {
  --bs-primary: #059669;
  --bs-primary-rgb: 5, 150, 105;
  font-size: 17px;
}

/* --- Clases de Validación y Soporte --- */
.c-red { 
  color: #dc3545 !important; 
}
.msg_validation { 
  font-size: 0.875em; 
  margin-top: 0.25rem; 
  font-weight: 500; 
}

/* --- Elementos de Formulario Generales --- */
.form-control {
  border-radius: 50rem;
  padding: 0.85rem 1.5rem !important;
  padding-left: 1.5rem !important;
  font-size: 1rem !important;
  min-height: 52px;
  border-color: #c3cedb;
}
.form-control::placeholder {
  color: #bcc3cf;
  opacity: 1;
  font-size: 1rem;
}
.form-select {
  border-radius: 50rem;
  padding: 0.85rem 1.5rem !important;
  padding-left: 1.5rem !important;
  font-size: 1rem !important;
  min-height: 52px;
  border-color: #c3cedb;
}
textarea.form-control {
  border-radius: 1.25rem;
  min-height: unset;
  padding: 1rem 1.5rem !important;
}
.form-floating > .form-control,
.form-floating > .form-select {
  padding-top: 1.625rem !important;
  padding-bottom: 0.625rem !important;
  padding-left: 1.5rem !important;
}
.form-floating > label {
  padding-left: 1.5rem !important;
}
.form-control:focus,
.form-select:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}
.form-check-input:checked {
  background-color: #059669;
  border-color: #059669;
}
.form-check-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}

/* --- Botones --- */
.btn-primary {
  --bs-btn-bg: #059669;
  --bs-btn-border-color: #059669;
  --bs-btn-hover-bg: #047857;
  --bs-btn-hover-border-color: #047857;
  --bs-btn-active-bg: #065f46;
  --bs-btn-active-border-color: #065f46;
  --bs-btn-disabled-bg: #059669;
  --bs-btn-disabled-border-color: #059669;
}
.btn-primary.next-step,
.btn-primary.prev-step,
.btn-light.prev-step {
  border-radius: 50rem;
}
.btn-outline-primary {
  --bs-btn-color: #059669;
  --bs-btn-border-color: #059669;
  --bs-btn-hover-bg: #059669;
  --bs-btn-hover-border-color: #059669;
  --bs-btn-active-bg: #047857;
  --bs-btn-active-border-color: #047857;
}
.btn-pill-toggle {
  border: 1px solid #d1d5db;
  color: #6b7280;
  background-color: #fff;
  border-radius: 50rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0.4rem 0.4rem 0;
}
.btn-pill-toggle::before {
  content: "\2713";
  display: none;
  margin-right: 0.35rem;
  font-weight: 700;
}
.btn-check:checked + .btn-pill-toggle {
  border-color: #059669;
  color: #047857;
  background-color: #ecfdf5;
}
.btn-check:checked + .btn-pill-toggle::before {
  display: inline-block;
}
.btn-check:focus-visible + .btn-pill-toggle {
  box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}
.btn-add-dashed {
  border: 1px dashed #059669;
  color: #059669;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-add-dashed:hover {
  background-color: #ecfdf5;
  border-color: #047857;
  color: #047857;
}

/* --- Firma Canvas (Paso 5) --- */
#signature_pad {
  touch-action: none;
  cursor: crosshair;
}

/* --- Layout y Estética Portal Emisor --- */
body {
  background-color: #f2f7f5;
}
.brand-logo {
  color: #059669;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.login-link {
  color: #059669;
}
.login-link:hover {
  color: #047857;
}
/* Form labels y textos de apoyo */
.form-label {
  font-size: 0.97rem !important;
  font-weight: 500;
}
.step-description {
  font-size: 1rem !important;
}
/* Textos secondary pequeños dentro de formularios */
.form-step .text-secondary.small {
  font-size: 0.95rem !important;
}
/* Panel lateral — cardcito de ayuda */
#side-panel h2 {
  font-size: 1.65rem !important;
}
#side-panel p {
  font-size: 1rem !important;
}
#side-panel li span {
  font-size: 1rem !important;
}
.form-legend {
  color: #059669;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card-soft {
  box-shadow: 0 0 1.5rem rgba(17, 24, 39, 0.08);
}
@media (min-width: 992px) {
  .panel-divider {
    border-right: 1px solid #e9ecef;
  }
}

/* --- Tarjetas de Contacto e Información --- */
.contact-card {
  border: 1px solid #a7f3d0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
  background-color: #f6fef9;
}
.digitized-doc {
  background-color: #f6fef9 !important;
  border: 1px solid #a7f3d0 !important;
}
.contact-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.check-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.75rem;
  flex: none;
}
.info-card {
  border: 1px solid #ccd5df;
  border-radius: 0.75rem;
  padding: 1.25rem;
  background-color: #fff;
}
.info-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4b5563;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.info-card p.small,
.info-card ul.small,
.info-card .small,
.info-card a.small {
  font-size: 0.95rem !important;
}
.info-num {
  color: #059669;
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 1.05rem;
}

/* --- Video Demo (Paso 3) --- */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 850px;
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-brand {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}
.video-tag {
  position: absolute;
  top: 1.45rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  font-weight: 600;
}
.video-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding-left: 0.4rem;
}
.video-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Banners Informativos --- */
.alert-banner-amber {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #92400e;
}
.step-kicker {
  color: #059669;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

/* ==========================================================================
   PASO 4 — RECAUDOS LEGALES
   ========================================================================== */
.doc-section-title {
  color: #059669;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Document Icons --- */
.doc-icon-green  { background-color: #d1fae5; color: #059669; }
.doc-icon-blue   { background-color: #dbeafe; color: #2563eb; }
.doc-icon-purple { background-color: #ede9fe; color: #7c3aed; }
.doc-icon-orange { background-color: #ffedd5; color: #ea580c; }
.doc-icon-teal   { background-color: #ccfbf1; color: #0d9488; }
.doc-icon-rose   { background-color: #ffe4e6; color: #e11d48; }

.sample-upload {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px dashed #d1d5db;
  border-radius: 50rem;
  padding: 0.65rem 1.5rem;
  background-color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.sample-upload:hover {
  border-color: #059669;
}
.sample-upload .sample-label {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}
.sample-upload input[type="file"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sample-upload .msg_validation {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

/* --- Mini Document Cards (Grilla 3x2) --- */
.doc-mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 0.875rem;
  padding: 2rem 0.75rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
  width: 100%;
  min-height: 185px;
  justify-content: flex-start;
  gap: 0.5rem;
  user-select: none;
}
.doc-mini-card:hover {
  border-color: #6ee7b7;
  box-shadow: 0 3px 12px rgba(5,150,105,0.07);
}
.doc-mini-card.is-loaded {
  border-color: #a7f3d0;
  background-color: #f6fef9;
}
.doc-mini-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.doc-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  flex: 1;
}
.doc-mini-subtitle {
  font-size: 0.76rem;
  color: #b0b9c6;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.doc-state-pill {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border-radius: 50rem;
  text-transform: uppercase;
}
.doc-state-pill i { 
  font-size: 0.72rem; 
}
.doc-state-approved {
  background-color: #d1fae5;
  color: #065f46;
}
.doc-state-review {
  background-color: #fef3c7;
  color: #92400e;
}
.doc-state-pending {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* --- Botones Mini Document --- */
.doc-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #059669;
  border: 1px solid #d1fae5;
  border-radius: 50rem;
  padding: 0.4rem 1.1rem;
  background: #f0fdf4;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 0.35rem;
  text-decoration: none !important;
}
label.doc-mini-card:hover .doc-mini-btn {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.doc-mini-card.is-loaded .doc-mini-btn {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
.doc-mini-btn:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* --- Botón Descarga Específico (Cartas) --- */
.letter-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.5rem;
}
.letter-btn-group .doc-mini-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}
.letter-btn-dl {
  color: #6b7280;
  border-color: #e5e7eb;
  background: #f9fafb;
}
.letter-btn-dl:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

/* --- Sidebar Lateral de Progreso --- */
.recaudos-sidebar-card {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 0.875rem;
  padding: 1.1rem 1.25rem;
}
.recaudos-sidebar-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.recaudos-progress-num {
  font-size: 2rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}
.recaudos-progress-of {
  font-size: 0.85rem;
  font-weight: 400;
  color: #9ca3af;
}

/* ==========================================================================
   PASO 6 — PAGO DE SERVICIO
   ========================================================================== */
.payment-info-card {
  background: #f8fafc;
  border: 1px solid #edf0f4;
  border-radius: 0.875rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.payment-factura-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.payment-factura-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.payment-pdf-dl {
  font-size: 0.84rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.payment-pdf-dl:hover {
  color: #047857;
}
.payment-factura-meta {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.payment-amount-huge {
  font-size: 2.2rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.payment-amount-huge span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: 0.2rem;
}
.payment-exchange-rate {
  font-size: 0.76rem;
  color: #6b7280;
}

/* --- Datos para la Transferencia --- */
.transfer-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.transfer-detail-row:last-child {
  border-bottom: none;
}
.transfer-detail-label {
  color: #9ca3af;
}
.transfer-detail-value {
  font-weight: 700;
  color: #1f2937;
  text-align: right;
}
.copy-btn {
  background: none;
  border: none;
  color: #059669;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
  margin-left: 0.4rem;
  cursor: pointer;
  transition: color 0.15s;
}
.copy-btn:hover {
  color: #047857;
}

/* --- Drag and Drop Dropzone --- */
.payment-dropzone {
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  background: #f8fafc;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.payment-dropzone:hover {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.04);
}
.payment-dropzone.is-loaded {
  border-color: #a7f3d0;
  background-color: #f6fef9;
  border-style: solid;
}
.payment-dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.2s;
}
.payment-dropzone:hover .payment-dropzone-icon {
  transform: translateY(-2px);
}
.payment-dropzone.is-loaded .payment-dropzone-icon {
  background-color: #d1fae5;
}
.payment-dropzone-title {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}
.payment-dropzone-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
}
.payment-dropzone-browse {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
}
.payment-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.payment-footer-note {
  font-size: 0.88rem;
  color: #64748b;
}

