/* ==========================================================================
   POP-UP DE EVENTOS - ESTRUCTURA Y ANIMACIÓN
   ========================================================================== */

/* Fondo oscuro (Overlay) */
.event-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.event-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Caja de contenido */
.event-popup-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-popup-overlay.show .event-popup-content {
  transform: scale(1);
}

/* Botón cerrar (X) */
.event-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.event-popup-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* ==========================================================================
   CUERPO Y CONTENIDO VISUAL
   ========================================================================== */

.event-popup-body {
  padding: 15px 10px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-popup-image img {
  width: 100%;
  max-height: 75vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  object-fit: contain;
}

.event-popup-title {
  color: var(--main-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 20px 0;
  line-height: 1.3;
}

.event-popup-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.event-popup-details {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.event-popup-details p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* ==========================================================================
   ACCIONES (BOTONES)
   ========================================================================== */

.event-popup-actions {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  background-color: white !important;
  padding: 15px 0 !important;
  border-top: 1px solid #eee !important;
  width: 100% !important;
}

.event-popup-actions .btn {
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.event-popup-actions .btn-primary {
  background-color: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: white !important;
}

.event-popup-actions .btn-primary:hover,
.event-popup-actions .btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   DISEÑO RESPONSIVO
   ========================================================================== */

/* PC y Tablets Grandes */
@media (min-width: 769px) {
  .event-popup-content {
    max-width: 500px;
  }
}

/* Celulares */
@media (max-width: 576px) {
  .event-popup-content {
    width: 95%;
    max-height: 98vh;
  }
  .event-popup-title {
    font-size: 1.5rem;
  }
  .event-popup-actions {
    flex-direction: column;
  }
  .event-popup-actions .btn {
    width: 100%;
  }
}