
/* =========================================================
   STATS GRID
========================================================= */
.statsGrid{
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.statCard{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  min-height: 66px;
}

.statCard__value{
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  flex: 0 0 auto;
}

.statCard__label{
  color: rgba(255,255,255,.90);
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.25;
}

@media (max-width: 980px){
  .statsGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .statsGrid{ grid-template-columns: 1fr; }
}


/* =========================================================
   GALLERY
========================================================= */

.galleryMasonry{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-auto-flow: dense;

  /* altura base de cada fila (ajústala) */
  grid-auto-rows: 190px;
}

@media (min-width: 900px){
  .galleryMasonry{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }
}



.galleryMasonry__item{
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;

  background: rgba(15,47,31,.04);
  border: 1px solid rgba(15,47,31,.10);
  box-shadow: 0 1px 0 rgba(15,47,31,.02);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}



.galleryMasonry__item:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(15,47,31,.14);
}

.galleryMasonry__item img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform .25s ease;
}


.galleryMasonry__item:hover img{
  transform: scale(1.03);
}

.galleryMasonry__item.is-wide{
  grid-column: span 2;  
}

.galleryMasonry__item.is-tall{
  grid-row: span 2;      
}

/* Overlay */
.galleryMasonry__overlay{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .18s ease;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.32) 70%, rgba(0,0,0,.42) 100%),
    linear-gradient(180deg, rgba(15,47,31,.10), rgba(15,47,31,.44));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
}

.galleryMasonry__item:hover .galleryMasonry__overlay{
  opacity: 1;
}

.galleryMasonry__pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.galleryMasonry__pillIcon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(118,193,74,.30);
  border: 1px solid rgba(118,193,74,.22);
  color: #fff;
  font-size: 14px;
}

/* View more */
.galleryMasonry__more{
  margin-top: 18px;
  display: grid;
  place-items: center;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.galleryLightbox{
  position: fixed;
  inset: 0;
  background: rgba(7,16,12,.86);
  display: none;
  z-index: 9999;
  padding: 18px;
}

.galleryLightbox.is-open{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.galleryLightbox__figure{
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.galleryLightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 70px rgba(0,0,0,.40);
}

.galleryLightbox__caption{
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  text-align: center;
  max-width: 70ch;
}

.galleryLightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.galleryLightbox__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
}

.galleryLightbox__nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}

.galleryLightbox__nav:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
}

@media (max-width: 560px){
  .galleryLightbox.is-open{ grid-template-columns: 1fr; }
  .galleryLightbox__nav{ display: none; }
}
.galleryClamp{
  overflow: hidden;
  transition: max-height .25s ease;
}


