/* ============================================================ */
/* PROOF TOAST + NET BG v1.0                                    */
/* Notificación de prueba social (abajo-izquierda, deslizable)  */
/* + canvas de red interactiva de fondo (puntos conectados)     */
/* ============================================================ */

/* === Red de fondo (canvas detrás de las secciones) === */
.net-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* El footer no tiene position: aseguramos que pinte sobre el canvas */
.footer { position: relative; }

/* === Toast de prueba social === */
.proof-toast {
  position: fixed;
  left: var(--space-lg);
  bottom: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 340px;
  padding: 12px 40px 12px 14px;
  background: rgba(14, 14, 22, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  pointer-events: none;
}

.proof-toast--visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.proof-toast__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #0A0A0A;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.proof-toast__body { min-width: 0; }

.proof-toast__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.proof-toast__text {
  font-size: 12.5px;
  color: #22D3EE; /* cian fluorescente */
  line-height: 1.45;
}

.proof-toast__text strong { color: #7DF9FF; }

.proof-toast__time {
  color: var(--text-muted);
  font-size: 11px;
}

/* Punto verde "en línea" */
.proof-toast__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
  animation: proof-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes proof-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.proof-toast__close {
  position: absolute;
  top: 2px;
  right: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  min-height: 0;
  min-width: 0;
}

.proof-toast__close:hover { color: var(--text-primary); }

/* Móvil: justo encima de la barra sticky (~76px). La burbuja de
   WhatsApp ya no flota en móvil (vive en la navbar), así que el
   toast vuelve a su altura original sobre la barra. */
@media (max-width: 767px) {
  .proof-toast {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-toast { transition: none; }
  .proof-toast__dot { animation: none; }
}
