/* Pop-up de próximo evento (portada). Aparece a los 2 s, una vez por sesión,
   y deja de mostrarse solo después de la fecha del evento (ver js/popup.js). */
.ev-pop[hidden] { display: none; }
.ev-pop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.ev-pop-bd {
  position: absolute;
  inset: 0;
  background: rgb(28 26 23 / 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: evfade 0.3s ease;
}
.ev-pop-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--sb-hueso, #f8f4ec);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
  animation: evrise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.ev-pop-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgb(28 26 23 / 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ev-pop-img { display: block; }
.ev-pop-img img {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: cover;
  object-position: top;
  display: block;
}
.ev-pop-txt {
  padding: var(--sp-5, 20px) var(--sp-6, 24px) var(--sp-6, 24px);
  text-align: center;
}
.ev-pop-k {
  font-family: var(--font-cuerpo);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-acento, #8a7a52);
}
.ev-pop-txt h3 {
  font-family: var(--font-titulo);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 6px 0 2px;
}
.ev-pop-txt p {
  color: var(--color-texto-suave, #5b544a);
  margin: 0 0 var(--sp-4, 16px);
  font-size: 0.95rem;
}
.ev-pop-txt .btn { width: 100%; }

@keyframes evfade { from { opacity: 0; } }
@keyframes evrise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .ev-pop-bd, .ev-pop-card { animation: none; }
}
