/* ============================================================
   whatsapp.css  –  Estado de la vinculación de WhatsApp
   Banner en el sidebar (si está desconectado) + modal con el QR
   ============================================================ */

.wa-estado-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(217,80,61,.18);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.wa-estado-banner[hidden] { display: none; }
.wa-estado-punto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(217,80,61,.5);
  animation: waEstadoPulso 1.6s ease-in-out infinite;
}
@keyframes waEstadoPulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,80,61,.45); }
  50%      { box-shadow: 0 0 0 4px rgba(217,80,61,0); }
}
.wa-estado-texto {
  flex: 1; min-width: 0;
  font-size: .76rem; font-weight: 600;
  color: var(--on-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wa-estado-btn {
  flex-shrink: 0;
  background: var(--on-dark);
  color: var(--petroleo);
  font-size: .7rem; font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--r-full);
}
.wa-estado-btn:hover { background: #fff; }

/* ── Modal del QR ────────────────────────────────────────────── */
.wa-qr-modal {
  position: fixed; inset: 0;
  background: rgba(18,33,31,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.wa-qr-modal[hidden] { display: none; }
.wa-qr-card {
  position: relative;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: var(--r-xl);
  padding: 30px 26px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.wa-qr-cerrar {
  position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.wa-qr-cerrar:hover { background: var(--gray-100); color: var(--tinta); }
.wa-qr-card h3 { font-size: .95rem; color: var(--petroleo); margin-bottom: 16px; }
.wa-qr-img-wrap {
  width: 200px; height: 200px;
  margin: 0 auto 14px;
  background: var(--gray-50);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wa-qr-img { width: 100%; height: 100%; object-fit: contain; }
.wa-qr-loading { font-size: .78rem; color: var(--gray-500); padding: 0 16px; text-align: center; }
.wa-qr-msg { font-size: .76rem; color: var(--gray-600); min-height: 1.2em; }
