/* Tarjeta de celebracion — destaca en el catalogo */
.card-celebracion {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444, #a855f7, #fbbf24) border-box;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: celeb-glow 3s ease-in-out infinite;
}
@keyframes celeb-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 8px 24px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 0 36px rgba(239, 68, 68, 0.45), 0 8px 28px rgba(0, 0, 0, 0.14); }
}

.portada-celebracion,
.celeb-cuerpo {
  position: relative;
  overflow: hidden;
}

.portada-celebracion::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* Capa de efectos CSS — siempre visible, no depende de JS */
.celeb-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.celeb-confetti {
  position: absolute;
  top: -12px;
  left: var(--l, 50%);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.95;
  animation: celeb-caer 3.2s linear infinite;
  animation-delay: var(--d, 0s);
}
.celeb-confetti:nth-child(8n+1) { background: #fbbf24; }
.celeb-confetti:nth-child(8n+2) { background: #ef4444; }
.celeb-confetti:nth-child(8n+3) { background: #ec4899; }
.celeb-confetti:nth-child(8n+4) { background: #a855f7; }
.celeb-confetti:nth-child(8n+5) { background: #3b82f6; }
.celeb-confetti:nth-child(8n+6) { background: #22d3ee; }
.celeb-confetti:nth-child(8n+7) { background: #fde047; }
.celeb-confetti:nth-child(8n)   { background: #fff; }

@keyframes celeb-caer {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }
}

.celeb-serpentina {
  position: absolute;
  top: -80px;
  left: var(--l, 30%);
  width: 4px;
  height: 70px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ef4444, #fbbf24);
  opacity: 0.9;
  animation: celeb-serp 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  transform-origin: top center;
}
.celeb-serpentina:nth-child(odd) { background: linear-gradient(180deg, #a855f7, #22d3ee); }
@keyframes celeb-serp {
  0%   { transform: translateY(0) rotate(-8deg); }
  50%  { transform: translateY(45px) rotate(12deg); }
  100% { transform: translateY(110vh) rotate(-6deg); }
}

.celeb-fuego {
  position: absolute;
  bottom: 20%;
  left: var(--l, 50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px #fbbf24, 0 0 16px 6px #ef4444;
  opacity: 0;
  animation: celeb-burst 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.celeb-fuego::before,
.celeb-fuego::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: celeb-onda 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.celeb-fuego::before { border-top-color: #fbbf24; border-right-color: #ef4444; }
.celeb-fuego::after  { border-bottom-color: #a855f7; border-left-color: #22d3ee; inset: -32px; }

@keyframes celeb-burst {
  0%   { opacity: 0; transform: scale(0.2); }
  15%  { opacity: 1; transform: scale(1); }
  40%  { opacity: 0.8; transform: scale(2.5); }
  100% { opacity: 0; transform: scale(4); }
}
@keyframes celeb-onda {
  0%   { opacity: 0; transform: scale(0.3) rotate(0deg); }
  30%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(2.2) rotate(180deg); }
}

.celeb-canvas-portada,
.celeb-canvas-cuerpo,
.celeb-canvas-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 22;
  pointer-events: none;
}

.portada-celebracion .portada-media,
.portada-celebracion .badge-confirmada,
.portada-celebracion .badge-celebracion,
.portada-celebracion button {
  position: relative;
  z-index: 12;
}
.portada-celebracion .badge-celebracion { z-index: 30; }

.badge-celebracion {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5);
  animation: celeb-pulse 1.8s ease-in-out infinite;
}
@keyframes celeb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.celeb-cuerpo .celeb-fx-layer {
  z-index: 28;
}
.celeb-cuerpo .celeb-confetti,
.celeb-cuerpo .celeb-serpentina {
  mix-blend-mode: multiply;
}
.celeb-cuerpo > *:not(.celeb-fx-layer):not(.celeb-canvas-cuerpo) {
  position: relative;
  z-index: 32;
}

.card-celebracion .btn-primary,
.card-celebracion [data-id] {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  border: none;
}
.card-celebracion .btn-primary:hover,
.card-celebracion [data-id]:hover {
  filter: brightness(1.08);
}

.chip-celebracion {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #92400e !important;
  border-color: #fbbf24 !important;
  font-weight: 600;
}

.hero-celebracion { position: relative; overflow: hidden; }
.celeb-banner {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  position: relative;
  z-index: 12;
}
