/* ===============================
   🌟 EVENT POPUP - Estilo Unexpected-CO (Fondo blanco + dorado elegante + flecha dorada)
   =============================== */

.event-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.45); /* fondo translúcido sutil */
  backdrop-filter: blur(2px);
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

/* Caja principal del contenido */
.event-popup .popup-content {
  position: relative;
  background: #ffffff; /* fondo blanco igual al bloque de noticias */
  border: 1px solid rgba(210, 165, 50, 0.9);
  border-radius: 10px;
  max-width: 420px;
  margin: 10% auto;
  padding: 25px 30px;
  color: #1a1a1a;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  text-align: left;
  animation: popupAppear 0.35s ease;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ✨ Flecha dorada arriba del cuadro */
.event-popup .popup-content::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent rgba(210, 165, 50, 0.9) transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

/* Efecto de iluminación dorada interior */
.event-popup .popup-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  background: radial-gradient(circle at top center,
    rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  z-index: 0;
}

/* Título */
.event-popup .popup-content h2 {
  color: #b88a0f;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  padding-bottom: 6px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.5px;
}

/* Texto del contenido */
.event-popup .popup-content p {
  display: block;
  font-size: 0.95em;
  line-height: 1.55;
  color: #333;
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  word-break: normal;
  white-space: normal;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

/* Icono dorado al lado del texto */
.event-popup .popup-content p::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: #b88a0f;
  font-weight: 700;
  line-height: 1.6;
  font-size: 1.1em;
}

/* Botón de cierre */
.event-popup .popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 22px;
  color: #b88a0f;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Open Sans', sans-serif;
  z-index: 2;
}

.event-popup .popup-close:hover {
  color: #000;
  transform: scale(1.15);
}

/* ✨ Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupAppear {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .event-popup .popup-content {
    width: 90%;
    margin: 25% auto;
    padding: 20px;
  }

  .event-popup .popup-content::after {
    top: -8px;
    border-width: 0 8px 8px 8px;
  }

  .event-popup .popup-content h2 {
    font-size: 1.15em;
  }

  .event-popup .popup-content p {
    font-size: 0.9em;
    padding-left: 18px;
  }

  .event-popup .popup-content p::before {
    font-size: 1em;
    line-height: 1.4;
  }

  .event-popup .popup-close {
    font-size: 20px;
    top: 6px;
    right: 10px;
  }
}

/* 🌙 Transición suave al abrir/cerrar */
.event-popup[style*="display: block"] .popup-content {
  animation: popupAppear 0.3s ease forwards;
}
/* 👑 Footer de crédito dentro del popup */
.popup-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
  color: #d4af37; /* tono oro clásico */
  opacity: 0.95;
  border-top: 1px solid rgba(255, 215, 0, 0.25);
  padding-top: 6px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* ✨ Efecto de brillo dorado animado */
.popup-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 200, 0.8),
    transparent
  );
  animation: shine 5s linear infinite;
  opacity: 0.8;
}

/* 💫 Animación del brillo */
@keyframes shine {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* 💎 Sutil aparición */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}