/* ══════════════════════════════════════════════════════════
   DINAMISMO — countdown, reveal on scroll, urgencia
   ══════════════════════════════════════════════════════════ */

.activity-toast {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 340px;
  padding: .75rem .8rem;
  border-radius: 14px;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
  transform: translateY(12px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}

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

.activity-toast-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.05rem;
}

.activity-toast-body {
  min-width: 0;
}

.activity-toast-text {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.35;
}

.activity-toast-text strong {
  color: var(--heading-color);
}

.activity-toast-time {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

.activity-toast-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  padding: .2rem;
  align-self: flex-start;
  cursor: pointer;
  flex-shrink: 0;
}

.activity-toast-close:hover {
  color: var(--text-light);
}

@media (max-width: 575.98px) {
  .activity-toast {
    left: .6rem;
    right: .6rem;
    max-width: none;
    bottom: .6rem;
  }
}

.rifa-card-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .55rem;
  min-height: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  white-space: nowrap;
  line-height: 1;
}

.countdown-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.countdown-chip.is-urgent {
  background: #fef2f2;
  color: #dc2626;
  animation: pubPulse 1.4s ease-in-out infinite;
}

.countdown-chip.is-over {
  background: #f1f5f9;
  color: #64748b;
  animation: none;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  animation: pubPulse 1.6s ease-in-out infinite;
}

.detalle-urgency-badge {
  margin-top: .6rem;
}

.urgency-badge::before {
  content: '\f356';
  font-family: 'bootstrap-icons', sans-serif;
  font-size: .8rem;
}

@keyframes pubPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .countdown-chip.is-urgent,
  .urgency-badge {
    animation: none;
  }
}
