/* =====================================================================
   MERIDIAN Solutions — Estilos para Operaciones / Transacciones
   ---------------------------------------------------------------------
   Paleta heredada del sitio:
     #20ad96  primario (verde teal)
     #3f3a64  texto / oscuro
     #f5f7fa  fondo claro
     #16a085  acento del nav activo
   ===================================================================== */

/* ---------- Tarjetas de los 3 flujos ---------- */
.tx-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  /* Anula el borde verde global de .card-body heredado del FAQ */
  margin-left: 0 !important;
  padding-left: 24px !important;
  border-left: 1px solid #e9ecef !important;
  animation: none !important;
}

.tx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(63, 58, 100, 0.12);
  border-color: #20ad96;
}

.tx-card .tx-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(32, 173, 150, 0.10);
  color: #20ad96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.tx-card h4 {
  color: #3f3a64;
  margin-bottom: 12px;
  font-weight: 600;
}

.tx-card p {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 20px;
  min-height: 60px;
}

.tx-card .tx-card-cta {
  color: #20ad96;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.tx-card .tx-card-cta i {
  transition: transform .2s ease;
  display: inline-block;
}

.tx-card:hover .tx-card-cta i {
  transform: translateX(4px);
}

/* ---------- Página operations.html: header simplificado ---------- */
.ops-hero {
  background: linear-gradient(135deg, #20ad96 0%, #16a085 100%);
  color: #ffffff;
  padding: 110px 0 60px;
  text-align: center;
}

.ops-hero h1 {
  font-weight: 600;
  margin-bottom: 12px;
}

.ops-hero p {
  opacity: 0.92;
  font-size: 17px;
  margin-bottom: 0;
}

/* ---------- Selector de modo (tabs) ---------- */
.ops-mode-switch {
  display: flex;
  gap: 8px;
  background: #f5f7fa;
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.ops-mode-switch button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #6c757d;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 14px;
}

.ops-mode-switch button:hover {
  color: #3f3a64;
}

.ops-mode-switch button.active {
  background: #ffffff;
  color: #20ad96;
  box-shadow: 0 2px 8px rgba(63, 58, 100, 0.08);
}

/* ---------- Formulario de operaciones ---------- */
.ops-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(63, 58, 100, 0.06);
  border: 1px solid #eef0f3;
  /* anular reglas globales heredadas */
  margin-left: 0 !important;
  padding-left: 36px !important;
  border-left: 1px solid #eef0f3 !important;
  animation: none !important;
}

.ops-form-card .form-label {
  font-weight: 500;
  color: #3f3a64;
  font-size: 14px;
}

.ops-form-card .form-control {
  border: 1px solid #dde1e6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ops-form-card .form-control:focus {
  border-color: #20ad96;
  box-shadow: 0 0 0 3px rgba(32, 173, 150, 0.12);
  outline: none;
}

.ops-form-card .btn-primary {
  padding: 13px 28px;
  font-weight: 500;
  border-radius: 8px;
}

.ops-mode-title {
  color: #3f3a64;
  font-weight: 600;
  margin-bottom: 6px;
}

.ops-mode-subtitle {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---------- Panel de resultado ---------- */
.ops-result {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  animation: opsFade .35s ease;
  /* anular reglas globales heredadas */
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: 1px solid #eef0f3 !important;
}

@keyframes opsFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ops-result-header {
  padding: 22px 28px;
  background: #f5f7fa;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-result-header h5 {
  margin: 0;
  color: #3f3a64;
  font-weight: 600;
}

.ops-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ops-status-pending  { background: #fff7e0; color: #b88300; }
.ops-status-approved { background: #e7f8ec; color: #0f8b1d; }
.ops-status-completed{ background: #e7f8ec; color: #0f8b1d; }
.ops-status-rejected { background: #fde8e8; color: #c0392b; }

.ops-result-body {
  padding: 22px 28px;
}

.ops-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

@media (max-width: 640px) {
  .ops-result-grid { grid-template-columns: 1fr; }
  .ops-form-card { padding: 24px; padding-left: 24px !important; }
  .ops-result-header, .ops-result-body { padding: 18px 20px; }
}

.ops-field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8a8fa3;
  margin-bottom: 4px;
}

.ops-field-value {
  font-size: 14px;
  color: #3f3a64;
  font-weight: 500;
  word-break: break-all;
}

.ops-field-value.mono {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
}

.ops-field-full { grid-column: 1 / -1; }

.ops-result-actions {
  padding: 18px 28px 22px;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ops-result-actions .btn {
  padding: 10px 18px;
  font-weight: 500;
  border-radius: 8px;
  font-size: 14px;
}

.btn-outline-primary {
  border: 1px solid #20ad96;
  color: #20ad96;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #20ad96;
  color: #fff;
}

/* ---------- Notas de privacidad para "Ver Detalles" ---------- */
.ops-privacy-note {
  background: #fff7e0;
  border-left: 3px solid #e7bc2f;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #6b5409;
  margin-top: 18px;
}

/* ---------- Mensajes de error ---------- */
.ops-error {
  margin-top: 22px;
  padding: 14px 18px;
  background: #fde8e8;
  border-left: 3px solid #f72b2b;
  border-radius: 8px;
  color: #8e1a1a;
  font-size: 14px;
  animation: opsFade .25s ease;
}

/* ---------- Bloque de Validación ---------- */
.ops-validate-card {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
  animation: opsFade .35s ease;
  /* anular reglas globales heredadas */
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: 1px solid #eef0f3 !important;
}

.ops-validate-header {
  padding: 18px 28px;
  background: #f5f7fa;
  border-bottom: 1px solid #eef0f3;
}

.ops-validate-header h5 {
  margin: 0;
  color: #3f3a64;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-validate-header h5 i {
  color: #20ad96;
}

.ops-validate-body {
  padding: 24px 28px 26px;
}

.ops-validate-intro {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Input deshabilitado del código de validación */
.ops-validate-body .form-control:disabled {
  background-color: #f5f7fa;
  border: 1px dashed #c4c9d4;
  color: #8a8fa3;
  cursor: not-allowed;
}

/* Botón deshabilitado */
.ops-validate-body .btn-primary:disabled,
.ops-validate-body .btn-primary[disabled] {
  background-color: #c4c9d4 !important;
  border-color: #c4c9d4 !important;
  color: #ffffff !important;
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

/* Aviso formal estilo banco */
.ops-validate-notice {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fafbfc;
  border: 1px solid #e7eaf0;
  border-left: 3px solid #3f3a64;
  border-radius: 8px;
  color: #3f3a64;
  font-size: 14px;
  line-height: 1.5;
}

.ops-validate-notice i {
  color: #3f3a64;
  font-size: 22px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.ops-validate-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #3f3a64;
}

.ops-validate-notice-sub {
  color: #6c757d;
  font-size: 13px;
}

@media (max-width: 640px) {
  .ops-validate-header,
  .ops-validate-body { padding: 18px 20px; }
}

/* ---------- Secciones de Wallets (Custodia / Registradas) ---------- */
.ops-divider {
  border: 0;
  border-top: 1px solid #eef0f3;
  margin: 26px 0 22px;
}

.ops-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #3f3a64;
  font-weight: 600;
  font-size: 15px;
}

.ops-section-header i {
  color: #20ad96;
  font-size: 20px;
}

/* Wallets de custodia: filas con info + botón a BscScan */
.ops-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fafbfc;
  flex-wrap: wrap;
}

.ops-wallet-info {
  flex: 1;
  min-width: 240px;
}

.ops-wallet-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8a8fa3;
  margin-bottom: 4px;
}

.ops-wallet-address {
  color: #3f3a64;
  font-size: 13px;
  word-break: break-all;
  margin-bottom: 4px;
}

.ops-wallet-balance {
  font-size: 13px;
  color: #6c757d;
}

.ops-wallet-balance strong {
  color: #3f3a64;
  font-weight: 600;
}

.ops-wallet-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.ops-wallet-btn i {
  margin-right: 4px;
}

/* Wallets registradas: filas con info + badge de estado a la derecha */
.ops-reg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f5f7fa;
  flex-wrap: wrap;
}

.ops-reg-info {
  flex: 1;
  min-width: 220px;
}

.ops-reg-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8a8fa3;
  margin-bottom: 3px;
}

.ops-reg-address {
  color: #3f3a64;
  font-size: 13px;
  word-break: break-all;
}

/* Badge de estado */
.ops-reg-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ops-reg-status i {
  font-size: 14px;
}

.ops-reg-status-updated {
  background: #e7f8ec;
  color: #0f8b1d;
}

.ops-reg-status-pending {
  background: #fff7e0;
  color: #b88300;
}

@media (max-width: 640px) {
  .ops-wallet-row { align-items: flex-start; }
  .ops-wallet-btn { width: 100%; }
  .ops-reg-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ops-reg-status { align-self: flex-start; }
}

/* =====================================================================
   CERTIFICATE — Estilos para flujo "Gestión de Certificado"
===================================================================== */

/* Badge especial para "Acción requerida" */
.ops-status-action-required {
  background: #fff1e0;
  color: #b8470b;
}

/* Banner de tiempo estimado de entrega */
.ops-cert-eta {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #f0faf7;
  border: 1px solid #cfeae3;
  border-left: 3px solid #20ad96;
  border-radius: 8px;
}
.ops-cert-eta i {
  color: #20ad96;
  font-size: 24px;
  line-height: 1;
  margin-top: 1px;
}
.ops-cert-eta strong {
  color: #3f3a64;
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.ops-cert-eta-sub {
  color: #6c757d;
  font-size: 13px;
}

/* ---------- Timeline ---------- */
.ops-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.ops-step {
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
  position: relative;
}

/* Línea vertical conectora */
.ops-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: #e7eaf0;
}
.ops-step-last::before { display: none; }

/* Marcador (círculo con ícono) */
.ops-step-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid #e7eaf0;
  color: #8a8fa3;
  z-index: 1;
}

.ops-step-done .ops-step-marker {
  background: #e7f8ec;
  border-color: #0f8b1d;
  color: #0f8b1d;
}
.ops-step-done::before { background: #cfeed6; }

.ops-step-current .ops-step-marker {
  background: #fff7e0;
  border-color: #b88300;
  color: #b88300;
  box-shadow: 0 0 0 4px rgba(184, 131, 0, 0.12);
  animation: opsStepPulse 2.2s ease-in-out infinite;
}
@keyframes opsStepPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 131, 0, 0.12); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 131, 0, 0.04); }
}

.ops-step-content {
  flex: 1;
  padding-top: 4px;
  min-width: 0;
}

.ops-step-title {
  font-weight: 600;
  color: #3f3a64;
  font-size: 15px;
  margin-bottom: 4px;
}
.ops-step-pending .ops-step-title { color: #8a8fa3; font-weight: 500; }
.ops-step-current .ops-step-title { color: #b8470b; }

.ops-step-desc {
  color: #6c757d;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Bloque de acción dentro de un paso (Contactar soporte) */
.ops-step-action {
  margin-top: 14px;
}
.ops-step-action .btn-primary {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
}
.ops-step-action-hint {
  margin-top: 8px;
  color: #8a8fa3;
  font-size: 12px;
}

/* ---------- Entregables ---------- */
.ops-deliverables {
  margin-top: 14px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 16px;
}

.ops-deliverables-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8a8fa3;
  font-weight: 600;
  margin-bottom: 10px;
}

.ops-deliverable {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  margin-bottom: 8px;
}
.ops-deliverable:last-of-type { margin-bottom: 0; }

.ops-deliverable-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #20ad96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ops-deliverable-disabled .ops-deliverable-icon {
  color: #8a8fa3;
}

.ops-deliverable-info { flex: 1; min-width: 0; }

.ops-deliverable-name {
  font-weight: 600;
  color: #3f3a64;
  font-size: 14px;
  margin-bottom: 2px;
}

.ops-deliverable-desc {
  color: #8a8fa3;
  font-size: 12.5px;
}

.ops-deliverable .btn[disabled],
.ops-deliverable .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;   /* importante: dejar que reciba el click para mostrar el mensaje */
}

.ops-deliverables-notice {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff7e0;
  border: 1px solid #f5e4a8;
  border-left: 3px solid #b88300;
  border-radius: 8px;
  color: #6b5409;
  font-size: 13px;
  line-height: 1.45;
}
.ops-deliverables-notice i {
  color: #b88300;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.ops-deliverables-notice-shake {
  animation: opsShake 0.4s ease;
}
@keyframes opsShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 640px) {
  .ops-deliverable { flex-wrap: wrap; }
  .ops-deliverable .btn { width: 100%; margin-top: 4px; }
}

/* ---------- Notificaciones a soporte (parcial / total) ---------- */
.ops-notify-block {
  margin-top: 14px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 16px;
}

.ops-notify-block-title {
  font-size: 13px;
  font-weight: 600;
  color: #3f3a64;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ops-notify-block-title i {
  color: #20ad96;
  font-size: 18px;
}

.ops-notify-block-intro {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 14px;
}

.ops-notify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ops-notify-card {
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.ops-notify-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #3f3a64;
  font-size: 14px;
  margin-bottom: 8px;
}

.ops-notify-partial .ops-notify-card-header i { color: #b88300; }
.ops-notify-total   .ops-notify-card-header i { color: #20ad96; }

.ops-notify-card-desc {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.ops-notify-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.ops-notify-card-list li {
  position: relative;
  padding-left: 18px;
  color: #3f3a64;
  font-size: 13px;
  margin-bottom: 4px;
}

.ops-notify-card-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #20ad96;
  font-weight: 700;
}

.ops-notify-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .ops-notify-grid { grid-template-columns: 1fr; }
  .ops-notify-card .btn { width: 100%; }
}

/* ---------- Aviso de última verificación (azul info) ---------- */
.ops-verify-notice {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: #e7f3fb;
  border: 1px solid #c5e0f3;
  border-left: 3px solid #229bee;
  border-radius: 8px;
  color: #155a85;
  font-size: 14px;
  line-height: 1.5;
}

.ops-verify-notice i {
  color: #229bee;
  font-size: 22px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.ops-verify-notice strong {
  color: #0e4868;
}
