/* ────────────────────────────────────────────────
   EVENTOS · Estilos página pública
──────────────────────────────────────────────── */

/* ── HERO ───────────────────────────────────────── */
.ev-hero {
  position: relative;
  padding: 140px 5vw 64px;
  text-align: center;
  overflow: hidden;
}
.ev-hero-content { position: relative; z-index: 1; }
.ev-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--olive);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeUp .8s ease both;
}
.ev-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
  animation: fadeUp .8s .15s ease both;
}

/* ── FILTROS ─────────────────────────────────────── */
.ev-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 5vw 40px;
  animation: fadeUp .6s .25s ease both;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--beige-mid);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--sage); color: var(--sage-dark); }
.filter-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

/* ── GRID ────────────────────────────────────────── */
.ev-grid-section { padding: 0 5vw 96px; }
.ev-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── EVENT CARD ──────────────────────────────────── */
.ev-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp .5s ease both;
  display: flex;
  flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(60,70,50,.13);
}

.ev-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--sage-light), var(--beige-dark));
  flex-shrink: 0;
}
.ev-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ev-card:hover .ev-card-img img { transform: scale(1.04); }
.ev-card-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.ev-card-type {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive);
}

.ev-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ev-card-dates {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.ev-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--olive);
  line-height: 1.3;
}
.ev-card-objetivo {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--beige-mid);
}
.ev-card-cta {
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.ev-card:hover .ev-card-cta { gap: 10px; }
.ev-card-incl-count {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--beige);
  border-radius: 50px;
  padding: 3px 10px;
}

/* ── EMPTY STATE ─────────────────────────────────── */
.ev-empty {
  max-width: 360px;
  margin: 40px auto 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ev-empty-icon { font-size: 3rem; }
.ev-empty p { font-size: .95rem; color: var(--text-muted); }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,38,26,.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn .25s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -14px 0;
  z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--beige-mid);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }

.modal-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--sage-light), var(--beige-dark));
  flex-shrink: 0;
}
.modal-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.modal-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.modal-body { padding: 28px 28px 32px; }

.modal-meta {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.modal-meta .meta-type {
  background: rgba(122,158,126,.12);
  border-radius: 50px;
  padding: 3px 10px;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--olive);
  line-height: 1.25;
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 18px;
}
.modal-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-section p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.65;
}
.modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modal-section ul li {
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.modal-section ul li::before {
  content: '·';
  color: var(--sage);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-cta {
  margin-top: 24px;
  background: #25d366;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
}
.modal-cta:hover { background: #1da851; box-shadow: 0 8px 24px rgba(37,211,102,.3); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 600px) {
  .ev-hero { padding: 120px 5vw 48px; }
  .ev-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 20px 18px 24px; }
}