/* ================= GALERÍA SERVICIO ================= */

.galeria-servicio {
  padding: 100px 20px;
  background: #ffffff;
}

.galeria-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.galeria-titulo {
  font-family: 'BEBAS', sans-serif;
  font-size: 48px;
  letter-spacing: 0.05em;
  margin-bottom: 50px;
  position: relative;
  padding-left: 55px; /* espacio real para la línea */
}

.galeria-titulo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;        /* 👈 largo del guion */
  height: 4px;        /* 👈 grosor */
  background-color: #f5c400;
  transform: translateY(-50%);
}

/* ================= GRID ================= */

.galeria-grid {
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.galeria-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.galeria-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-item:hover::after {
  opacity: 1;
}

/* ================= LIGHTBOX ================= */

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

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 40px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .galeria-titulo {
    font-size: 34px;
    padding-left: 40px;
  }

  .galeria-titulo::before {
    width: 28px;
    height: 3px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 36px;
  }
}
 

