/* Notificación de Ventas Recientes (Social Proof) */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff; /* Siempre claro */
  color: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  width: calc(100% - 48px);
  max-width: 360px;
  z-index: 99999;
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.social-proof-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.social-proof-toast .sp-img-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.social-proof-toast .sp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-proof-toast .sp-content {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.4;
}

.social-proof-toast .sp-title {
  margin: 0 0 4px 0;
}

.social-proof-toast .sp-title strong {
  font-weight: 700;
  color: #000;
}

.social-proof-toast .sp-product {
  font-weight: 600;
  color: #3b82f6; /* Un color de acento para el producto */
  margin-bottom: 4px;
}

.social-proof-toast .sp-time {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-proof-toast .sp-time svg {
  color: #10b981; /* Verde de verificado */
}

.social-proof-toast .sp-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: underline;
}

.social-proof-toast .sp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.social-proof-toast .sp-close:hover {
  background: #f0f0f0;
  color: #333;
}

@media (max-width: 768px) {
  .social-proof-toast {
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: 320px;
    padding: 12px;
    gap: 12px;
  }
  .social-proof-toast .sp-img-wrap {
    width: 50px;
    height: 50px;
  }
  .social-proof-toast .sp-content {
    font-size: 13px;
  }
  .social-proof-toast .sp-link {
    margin-top: 4px;
    font-size: 12px;
  }
}
