/* ═══════════════════════════════════════════════════════
   servicios.css — Estilos de la página Servicios
   B&R Maestranza · Bacian y Rocha Ltda.
═══════════════════════════════════════════════════════ */

/* ── Lista de servicios ───────────────────────────── */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 6rem;
}

.service-item {
  position: relative;
  background: var(--gray-light);
  padding: 3rem;
  overflow: hidden;
  transition: background var(--transition);
}

.service-item:hover {
  background: var(--white);
}

.service-item__num {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(240, 90, 26, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.service-item__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.service-item__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: var(--orange);
  flex-shrink: 0;
}

.service-item__desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-dark);
}

/* ── Service Photo Thumbnails ─────────────────────── */
.service-item__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 1.25rem;
}

.service-item__photo {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.service-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.8);
}

.service-item__photo:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.service-item__photo::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 90, 26, 0.6);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-item__photo:hover::after {
  opacity: 1;
}

/* ── Lightbox Modal ──────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 19, 32, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox__img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.lightbox__close:hover {
  color: var(--orange);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(240, 90, 26, 0.8);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox__nav:hover {
  background: var(--orange);
}

.lightbox__nav--prev {
  left: -60px;
}

.lightbox__nav--next {
  right: -60px;
}

.lightbox__caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.lightbox__counter {
  text-align: center;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── Banner CTA ───────────────────────────────────── */
.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--navy);
  padding: 3.5rem 4rem;
  margin-top: 5rem;
}

.services-cta__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.services-cta__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
}

@media (max-width: 768px) {
  .services-list  { grid-template-columns: 1fr; }
  .services-cta   { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .service-item__photos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .service-item__photos { grid-template-columns: repeat(2, 1fr); }
}
