/* GALERÍA */
.gallery-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid) 60%, var(--green-bright));
  padding: 7rem 2rem 3rem; text-align: center;
}
.gallery-hero h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; color: var(--pear-yellow); }
.gallery-hero p { color: var(--green-pale); margin-top: 0.5rem; font-size: 1.05rem; }

.tabs { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; padding: 2rem 2rem 0; max-width: 1200px; margin: 0 auto; }
.tab-btn {
  padding: 0.5rem 1.4rem; border-radius: 25px; border: 2px solid #ccc;
  background: white; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: 0.9rem; transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }

.gallery-section { padding: 2rem 2rem 5rem; max-width: 1200px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: 16px; overflow: hidden;
  cursor: pointer; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--green-light), var(--green-bright));
  box-shadow: 0 4px 15px rgba(0,0,0,0.12); transition: all 0.3s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(45,122,45,0.3); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; transition: transform 0.3s;
}
.gallery-item:hover .gallery-item-inner { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,74,26,0.7);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info { color: white; }
.gallery-info h4 { font-size: 0.9rem; font-weight: 700; }
.gallery-info p { font-size: 0.75rem; opacity: 0.8; }
.gallery-zoom {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.2); color: white;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transition: 0.3s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  animation: lbIn 0.3s ease;
}
@keyframes lbIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-img-wrap {
  width: min(700px,85vw); height: min(520px,75vh);
  border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 10rem; background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-info { color: white; text-align: center; padding: 1.2rem 0.5rem; }
.lightbox-info h3 { font-size: 1.2rem; font-weight: 700; }
.lightbox-info p { font-size: 0.9rem; opacity: 0.7; }
.lb-close {
  position: absolute; top: -15px; right: -15px;
  background: rgba(255,255,255,0.15); color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.3); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: white; border: none;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center;
}
.lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: -65px; }
.lb-next { right: -65px; }
.lb-counter { position: absolute; bottom: -35px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.fb-notice {
  background: white; border-radius: 16px; padding: 1.5rem 2rem;
  margin-bottom: 2rem; border-left: 4px solid #1877f2;
  display: flex; align-items: center; gap: 1rem;
}
.fb-notice i { color: #1877f2; font-size: 1.5rem; }
.fb-notice p { font-size: 0.9rem; color: #555; }
.fb-notice a { color: #1877f2; font-weight: 600; }

#scrollTopBtn {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--pear-yellow));
  color: white; border: none; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 15px rgba(45,122,45,0.4); opacity: 0; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
#scrollTopBtn.visible { opacity: 1; }
#scrollTopBtn:hover { transform: scale(1.1) translateY(-3px); }

footer { background: var(--green-dark); color: var(--green-pale); text-align: center; padding: 2.5rem 2rem; }
footer p { font-size: 0.85rem; opacity: 0.7; }
.footer-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.footer-links a { color: var(--green-pale); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--pear-yellow); }

.nav-back {
  background: rgba(255,255,255,0.1); color: var(--green-pale);
  text-decoration: none; padding: 0.5rem 1.2rem; border-radius: 25px;
  font-size: 0.9rem; font-weight: 600; border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem;
}
.nav-back:hover { background: rgba(255,255,255,0.2); color: white; }

@media (max-width: 768px) {
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }
  .lb-prev { left: -45px; }
  .lb-next { right: -45px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 5px; }
  .lb-next { right: 5px; }
  .lb-close { top: 5px; right: 5px; }
}
