/* =========================
   PAGE BG (gris debajo de todo)
========================= */
.projectPage {
  background: #efefef;
}

/* =========================
   HERO TOP IMAGE
========================= */
.projectHero {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #ddd;
  margin-top: 89px;
}
.projectHero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   SECTION + PANEL BLANCO
========================= */
.projectSection {
  background: #ffffff;
  padding: 0 0 60px;
}

.projectPanel {
  position: relative;
  padding: 34px 40px 34px;
}

/* título PROYECTOS rojo */
.projectPanel .sectionTitle {
  margin: 35px 0px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* texto */
.projectText {
  max-width: 860px;
}

.projCompany {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #6d6d6d;
}
.projTitle {
  margin: 0 0 12px;
  font-family: var(--ff-title);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}
.projSummary {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #111;
}
.projBullets {
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.35;
}
.projBullets li {
  margin: 6px 0;
}

/* =========================
   GALLERY SLIDER (2-up)
========================= */
.projectGalleryWrap {
  margin-top: 18px;
  position: relative;
}

.galleryViewport {
  overflow: hidden;
}

.galleryTrack {
  display: flex;
  gap: 22px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.galleryItem {
  flex: 0 0 calc(50% - 11px);
  overflow: hidden;
  background: transparent; /* chau gris */
  aspect-ratio: 16 / 10; /* ajustá a gusto */
  cursor: pointer;
}

.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta para llenar */
  display: block;
}

/* flechas rojas del slider */
.galleryArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}
.galleryArrow--left {
  left: -62px;
}
.galleryArrow--right {
  right: -62px;
}
.galleryArrow img {
  width: 22px;
  height: 22px;
  display: block;
}

/* =========================
   FLECHAS LATERALES DEL PROYECTO (prev/next proyecto)
========================= */
.projDetailArrow {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 6;
}
.projDetailArrow--left {
  left: -62px;
}
.projDetailArrow--right {
  right: -62px;
}
.projDetailArrow img {
  width: 22px;
  height: 22px;
  display: block;
}

/* =========================
   BOTTOM NAV (botones rojos)
========================= */
.projectBottomNav {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.projectNavBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.projectNavBtn__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.projectNavBtn__icon img {
  width: 14px;
  height: 14px;
  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .galleryArrow--left,
  .projDetailArrow--left {
    left: -42px;
  }

  .galleryArrow--right,
  .projDetailArrow--right {
    right: -42px;
  }
}

@media (max-width: 992px) {
  .projectPanel {
    padding: 30px 26px;
  }
  .projTitle {
    font-size: 24px;
  }

  .galleryItem {
    flex: 0 0 100%;
  } /* 1 por vista */
  .galleryArrow--left,
  .projDetailArrow--left {
    left: -20px;
  }

  .galleryArrow--right,
  .projDetailArrow--right {
    right: -20px;
  }

  .galleryArrow {
    background: #f8fafd;
    border-radius: 160%;
  }
}

@media (max-width: 768px) {
  .projectHero {
    height: 190px;
  }

  .projectPanel {
    margin-top: -18px;
    padding: 24px 18px 26px;
  }

  .projTitle {
    font-size: 22px;
  }

  /* flechas fuera molestan en mobile: las dejamos pegadas */
  .galleryArrow--left {
    left: -22px;
  }
  .galleryArrow--right {
    right: -22px;
  }
  .projDetailArrow--left {
    left: 6px;
  }
  .projDetailArrow--right {
    right: 6px;
  }

  .projectBottomNav {
    flex-direction: row;
  }
  .projectNavBtn {
    width: 100%;
    justify-content: center;
    gap: 0px;
    padding: 10px 10px;
  }
}

/* =========================
   Animación flechas nav proyecto
========================= */

.projectNavBtn {
  transition:
    background 0.25s ease,
    transform 0.2s ease;
}

.projectNavBtn__icon {
  transition: background 0.25s ease;
}

.projectNavBtn__icon img {
  transition: transform 0.3s ease;
}

/* NEXT */
.projectNavBtn--next:hover .projectNavBtn__icon img {
  transform: translateX(6px);
}

/* PREV */
.projectNavBtn--prev:hover .projectNavBtn__icon img {
  transform: translateX(-6px);
}

/* =========================
   LIGHTBOX (modal imágenes)
========================= */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__panel {
  position: relative;
  width: min(1100px, 92vw);
  height: min(78vh, 720px);
  margin: 6vh auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* clave para swipe: no "tire" scroll horizontal */
  touch-action: pan-y;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

.lightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__arrow img {
  width: 16px;
  height: 16px;
  display: block;
}

.lightbox__arrow--left {
  left: -62px;
}
.lightbox__arrow--right {
  right: -62px;
}

.lightbox__counter {
  position: absolute;
  bottom: -42px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Mobile */
@media (max-width: 768px) {
  .lightbox__panel {
    width: 94vw;
    height: 74vh;
    margin-top: 10vh;
  }
  .lightbox__arrow--left {
    left: 8px;
  }
  .lightbox__arrow--right {
    right: 8px;
  }
  .lightbox__counter {
    bottom: -34px;
  }
}

@media (max-width: 576px) {
  .projectHero {
    margin-top: 68px;
  }
}

/* =========================
   VIDEO EN GALERÍA
========================= */

.galleryItem--video {
  cursor: default;
}

.galleryVideoWrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.galleryVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}