/* ── PARTICIPACIÓN Y COMUNIDAD SECTION ── */
.comunidad-section {
  background: var(--bg-base);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.comunidad-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 80% 60%, rgba(34,197,94,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.events-panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid rgba(30,90,173,0.07);
  box-shadow: var(--card-shadow);
}
.events-panel-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30,90,173,0.07);
  transition: all .2s ease;
  border-radius: 10px;
  cursor: default;
}
.event-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.event-item:first-of-type { padding-top: 0; }
.event-date-box {
  min-width: 46px;
  text-align: center;
  background: rgba(30,90,173,0.06);
  border-radius: 10px;
  padding: 6px 8px;
  transition: background .25s ease;
}
.event-item:hover .event-date-box { background: rgba(30,90,173,0.12); }
.event-date-month {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-bright);
  line-height: 1;
}
.event-date-day {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.event-info-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}
.event-info-location {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}
.ver-calendario {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-accent);
  text-decoration: none;
  transition: gap .2s ease, opacity .2s ease;
}
.ver-calendario:hover { gap: 9px; opacity: .75; }
.gallery-panel-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.gallery-img:hover img { transform: scale(1.06); }
.gallery-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,28,50,0.38) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-img:hover::after { opacity: 1; }
.gallery-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(34,197,94,0.92);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 50px;
  z-index: 2;
  text-transform: uppercase;
}


.events-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 8px;
}

.evidence-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(40, 114, 212, 0.1);
    border-radius: 8px;
}

.gallery-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1rem;
  gap:1rem;
}

.gallery-history-btn{
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
  color:var(--green-accent);
}

.gallery-img{
  position:relative;
  cursor:pointer;
  border-radius:18px;
  overflow:hidden;
  height:240px;
  width:100%;
}

.gallery-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}

.gallery-img:hover img{
  transform:scale(1.05);
}

.gallery-tag{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
}

/* LIGHTBOX */

#galleryLightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

#galleryLightbox.active{
  display:flex;
}

#galleryPreview{
  max-width:90vw;
  max-height:90vh;
  border-radius:16px;
}

#galleryClose{
  position:absolute;
  top:20px;
  right:25px;
  border:none;
  background:none;
  color:white;
  font-size:2rem;
  cursor:pointer;
}

/* =========================================
   SPLIDE EVIDENCIAS
========================================= */

#evidenciasSplide{
  overflow: visible;
}

#evidenciasSplide .splide__track{
  overflow: hidden;
}

#evidenciasSplide .splide__pagination{
  position: static;
  margin-top: 1.25rem;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

#evidenciasSplide .splide__pagination__page{
  width: 10px;
  height: 10px;
  margin: 0;

  border: none;
  border-radius: 999px;

  background: rgba(40,114,212,.25);

  transform: none;
  transition: all .25s ease;
}

#evidenciasSplide .splide__pagination__page.is-active{
  width: 28px;

  background: #2872d4;

  transform: none;
}