/* =========================================================
   ÍNDICE · COMPONENTES / SECCIONES AVANZADAS
   =========================================================

   01. Servicios 2026 · Contenedor general
   02. Servicios 2026 · Título y layout
   03. Servicios 2026 · Fila de servicio
   04. Servicios 2026 · Interacción (hover / active)
   05. Servicios 2026 · Contenido textual
   06. Servicios 2026 · Imagen del servicio
   07. Servicios 2026 · CTA
   08. Servicios 2026 · Responsive base
   09. Servicios 2026 · Ajustes mobile avanzados
   10. Servicios 2026 · Fix esquinas imagen (mobile)
   11. Galería proyectos · Listado
   12. Galería proyectos · Modal / fullscreen
   13. Galería proyectos · Cierre por click exterior
   14. Galería proyectos · Flechas fijas (desktop)

   ========================================================= */


/* =========================================================
   01. SERVICIOS 2026 · CONTENEDOR GENERAL
========================================================= */

.services-2026 {
  background: #ffffff;
  padding: 6rem 0;
}


/* =========================================================
   02. SERVICIOS 2026 · TÍTULO Y LAYOUT
========================================================= */

.services-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 4.5rem;
  color: #0a2540;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}


/* =========================================================
   03. SERVICIOS 2026 · FILA DE SERVICIO
========================================================= */

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  padding: 3rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(10,37,64,.18);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Fondo base */
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,37,64,.015);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 28px rgba(10,37,64,.12);
  z-index: -1;
  transition: background .3s ease, box-shadow .35s ease;
}


/* =========================================================
   04. SERVICIOS 2026 · INTERACCIÓN
========================================================= */

/* Desktop hover */
@media (hover: hover) {
  .service-row:hover::before {
    background: rgba(10,37,64,.03);
    box-shadow: 0 18px 45px rgba(10,37,64,.18);
  }
}

/* Mobile active */
.service-row:focus-within::before,
.service-row:active::before {
  background: rgba(10,37,64,.03);
  box-shadow: 0 18px 45px rgba(10,37,64,.18);
}


/* =========================================================
   05. SERVICIOS 2026 · CONTENIDO TEXTUAL
========================================================= */

.service-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .35s ease;
}

@media (hover: hover) {
  .service-row:hover .service-main {
    transform: translateX(14px);
  }
}

.service-row:focus-within .service-main,
.service-row:active .service-main {
  transform: translateX(14px);
}

.service-name {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000000;
}

.service-summary {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}


/* =========================================================
   06. SERVICIOS 2026 · IMAGEN DEL SERVICIO
========================================================= */

.service-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #000;
  transition: transform .45s ease, box-shadow .45s ease;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}

@media (hover: hover) {
  .service-row:hover .service-media {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(10,37,64,.25);
  }
}

.service-row:focus-within .service-media,
.service-row:active .service-media {
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(10,37,64,.25);
}


/* =========================================================
   07. SERVICIOS 2026 · CTA
========================================================= */

.services-cta {
  text-align: center;
  margin-top: 4rem;
}


/* =========================================================
   08. SERVICIOS 2026 · RESPONSIVE BASE
========================================================= */

@media (max-width: 992px) {

  .services-list {
    gap: 2.5rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 2.25rem 2rem;
  }

  .service-name {
    font-size: 1.6rem;
  }

  .service-summary {
    font-size: 1rem;
    max-width: 100%;
  }

  .service-media {
    margin-top: 1.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 576px) {

  .services-2026 {
    padding: 4.5rem 0;
  }

  .services-title {
    font-size: 1.9rem;
    margin-bottom: 3rem;
  }

  .service-row {
    padding: 2rem 1.5rem;
  }

  .service-name {
    font-size: 1.45rem;
  }

  .service-summary {
    font-size: .95rem;
    line-height: 1.65;
  }
}


/* =========================================================
   09. SERVICIOS 2026 · AJUSTES MOBILE AVANZADOS
========================================================= */

@media (max-width: 992px) {

  .service-media {
    aspect-ratio: 4 / 3;
    transition:
      transform .6s cubic-bezier(.22,1,.36,1),
      box-shadow .6s cubic-bezier(.22,1,.36,1);
  }

  .service-row:active .service-media,
  .service-row:focus-within .service-media {
    transform: scale(1.08);
    box-shadow: 0 32px 70px rgba(10,37,64,.3);
  }

  .service-main {
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }

  .service-row:active .service-main,
  .service-row:focus-within .service-main {
    transform: translateX(18px);
  }
}

@media (max-width: 576px) {

  .service-media {
    aspect-ratio: 1 / 1;
    margin-top: 2rem;
  }

  .service-row:active .service-media,
  .service-row:focus-within .service-media {
    transform: scale(1.1);
  }
}


/* =========================================================
   10. SERVICIOS 2026 · FIX ESQUINAS IMAGEN (MOBILE)
========================================================= */

@media (max-width: 992px) {

  .service-media {
    border-radius: 12px 12px 0 0 !important;
  }

  .service-media img {
    border-radius: 12px 12px 0 0 !important;
  }
}

@media (max-width: 576px) {

  .service-media {
    border-radius: 10px 10px 0 0 !important;
  }

  .service-media img {
    border-radius: 10px 10px 0 0 !important;
  }
}


/* =========================================================
   11. GALERÍA PROYECTOS · LISTADO
========================================================= */

.project-gallery {
  margin-top: 2rem;
}

.project-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
}

.project-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

@media (hover: hover) {
  .project-gallery-item:hover .project-gallery-img {
    transform: scale(1.04);
    transition: transform 0.25s ease;
  }
}

@media (max-width: 576px) {
  .project-gallery-item {
    aspect-ratio: 1 / 1;
  }
}


/* =========================================================
   12. GALERÍA PROYECTOS · MODAL / FULLSCREEN
========================================================= */

#galleryModal .modal-dialog {
  max-width: 100vw;
  margin: 0;
}

#galleryModal .modal-content {
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#galleryCarousel,
#galleryCarousel .carousel-inner,
#galleryCarousel .carousel-item {
  height: 100%;
}

.gallery-full-img {
  max-width: 100%;
  max-height: 85vh;
  margin: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .gallery-full-img {
    max-width: 95vw;
    max-height: 75vh;
  }
}


/* =========================================================
   13. GALERÍA PROYECTOS · CIERRE CLICK FUERA
========================================================= */

.modal-backdrop {
  opacity: 0.85 !important;
}

#galleryModal .modal-content {
  pointer-events: none;
}

#galleryModal .gallery-full-img,
#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
  pointer-events: auto;
}


/* =========================================================
   14. GALERÍA PROYECTOS · FLECHAS FIJAS (DESKTOP)
========================================================= */

@media (min-width: 992px) {

  #galleryModal .carousel-control-prev,
  #galleryModal .carousel-control-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    opacity: 1;
    z-index: 1060;
  }

  #galleryModal .carousel-control-prev {
    left: 32px;
  }

  #galleryModal .carousel-control-next {
    right: 32px;
  }

  #galleryModal .carousel-control-prev-icon,
  #galleryModal .carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-size: 32px 32px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  }
}
