
/* ==================================================
   ABOUT PAGE
================================================== */
.about-hero {
  height: 220px;
  background: url("../images/BgRedesSociales.jpg") center / cover no-repeat;
  position: relative;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.about-hero-overlay h1 {
  font-size: 2.8rem;
  letter-spacing: 1px;
}
/* ==================================================
   GALLERY
================================================== */

body {
    margin: 0;
}

main {
    width: 100%;
}

.gallery-section {
    width: 100%;
    padding: 30px 20px;   /* margen pequeño real */
    background-color: #fff;
}

.gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}


.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 3 columnas */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2 columnas */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 columna */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* CLOSE */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* ARROWS */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.lightbox-arrow.left {
    left: 40px;
}

.lightbox-arrow.right {
    right: 40px;
}
.gallery-section {
    padding: 20px clamp(15px, 5vw, 120px) 0px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 180px;
    }
}

.video-section {
  padding: 20px 10px;
  background: #ffffff;
  text-align: center;
}


/* Contenedor responsive 16:9 */
.video-wrapper {
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 768px) {
  .video-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .video-section {
    padding: 40px 16px;
  }
}
