body .gallery-grid,
section .gallery-grid,
.container .gallery-grid,
.gallery-grid {
  column-count: 1 !important;
  column-gap: 0 !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

body .gallery-grid.images-loaded,
section .gallery-grid.images-loaded,
.container .gallery-grid.images-loaded,
.gallery-grid.images-loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-grid.reveal,
.gallery-grid.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.gallery-grid .g-item.reveal,
.gallery-grid .g-item.reveal.is-visible,
.gallery-grid .g-item {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (min-width: 640px) {
  body .gallery-grid,
  section .gallery-grid,
  .container .gallery-grid,
  .gallery-grid {
    column-count: 2 !important;
  }
}

@media (min-width: 768px) {
  body .gallery-grid,
  section .gallery-grid,
  .container .gallery-grid,
  .gallery-grid {
    column-count: 3 !important;
  }
}

@media (min-width: 1024px) {
  body .gallery-grid,
  section .gallery-grid,
  .container .gallery-grid,
  .gallery-grid {
    column-count: 4 !important;
  }
}

body .gallery-grid .g-item,
section .gallery-grid .g-item,
.container .gallery-grid .g-item,
.gallery-grid .g-item {
  display: block !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  page-break-inside: avoid !important;
  margin: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .gallery-grid .g-item img,
section .gallery-grid .g-item img,
.container .gallery-grid .g-item img,
.gallery-grid .g-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 150px !important;
  object-fit: cover !important;
  margin: 0 !important;
  transform: scale(1) !important;
  transition: transform var(--t-med, 0.3s) ease;
  background-color: #f0f0f0;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  max-width: 100% !important;
}

.gallery-grid .g-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-grid .g-item:hover {
  box-shadow: 0 8px 24px rgba(14,165,233,0.2);
}

.gallery-grid .g-item img {
  transition: transform 0.4s ease;

  content-visibility: auto !important;
}

.gallery-grid .g-item:hover img {
  transform: scale(1.08);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
}

.lightbox::backdrop {
  display: none;
}

.lightbox .lb-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 14, 28, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 0;
  margin: 0;
  padding: 0;
}

.lightbox .lb-stage {
  position: fixed;
  z-index: 1;
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 85vh;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lightbox .lb-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease-out;
  pointer-events: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.zoomed .lb-image {
  cursor: grab;
  transition: transform 0.1s ease-out;
}

.lightbox.zoomed .lb-image:active {
  cursor: grabbing;
}

.lightbox .lb-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lightbox .lb-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-nav .lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  background: rgba(10, 37, 52, 0.35);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lb-nav .lb-prev {
  left: 12px;
}

.lb-nav .lb-next {
  right: 12px;
}

.lb-nav .lb-arrow:hover {
  background: rgba(10, 37, 52, 0.5);
}

.lb-thumbs {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  align-items: center;
  justify-content: flex-start;
  background: rgba(2, 14, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  min-height: 80px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  scroll-behavior: auto;
  cursor: grab;
}

.lb-thumbs:active {
  cursor: grabbing;
}

.lb-thumbs:focus {
  outline: 2px solid rgba(30, 77, 107, 0.5);
  outline-offset: 2px;
}

.lb-thumbs::-webkit-scrollbar {
  height: 8px;
}

.lb-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 0 4px;
}

.lb-thumbs::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(30, 77, 107, 0.6), rgba(30, 77, 107, 0.5));
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: none;
  min-width: 40px;
}

.lb-thumbs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(30, 77, 107, 0.7), rgba(30, 77, 107, 0.6));
  box-shadow: 0 3px 6px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.lb-thumbs::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(30, 77, 107, 0.65), rgba(30, 77, 107, 0.55));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lb-thumb {
  width: 80px;
  height: 60px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: block;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: none;
  opacity: 0.7;
}

.lb-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.lb-thumb:focus {
  outline: none;
}

.lb-thumb:focus-visible {
  outline: 2px solid #78c8ff;
  outline-offset: 2px;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.lb-thumb[aria-current="true"] {
  border-color: #78c8ff;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(30, 77, 107, .2), 0 4px 12px rgba(15, 23, 42, .15);
  transform: scale(1.08);
  transition: none;
}

body.lightbox-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

body.lightbox-open .wa-float,
body.lightbox-open .topbar,
body.lightbox-open .site-header {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.process-step {
  counter-increment: step-counter;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,165,233,0.15);
}

.process-step strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-step-number {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
  flex-shrink: 0;
}

.equipment-list {
  list-style: none;
  padding: 0;
}

.equipment-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e6eef6;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.equipment-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(14,165,233,0.12);
  border-color: var(--primary);
}

.equipment-item i {
  color: var(--primary);
  font-size: 1.75rem;
  min-width: 1.75rem;
  margin-top: 0.2rem;
}

.equipment-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.equipment-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: #fff;
  border: 1px solid #e6eef6;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14,165,233,0.15);
  border-color: var(--primary);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.feature-card h3 i {
  color: var(--primary);
  font-size: 1.4rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.hero {
  background-attachment: fixed;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(2,132,199,0.05) 100%);
  border: 2px solid rgba(14,165,233,0.2);
  border-radius: 24px;
  padding: 3rem 2rem;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 60vh !important;
  }

  .hero-inner h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }

  .hero-inner .lead {
    font-size: 1rem !important;
  }

  .process-step {
    padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  }

  .process-step-number {
    left: 1.25rem;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .equipment-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1rem;
  }

  .equipment-item i {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh !important;
  }

  .breadcrumbs {
    font-size: 0.85rem;
  }

  .gallery-grid {
    column-count: 1 !important;
  }
}

.hero.project-hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
}

.project-hero-alberca-hidromasaje {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/imgs/acquaedific-photos/Piscina_e_Hidromasaje_232635.webp');
}

.project-hero-alberca-residencial {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/imgs/acquaedific-photos/Piscina_Mosaico_Veneciano_Mezcla_Caribe_121702.webp');
}

.project-article-grid {
  grid-template-columns: 1fr;
  gap: 3rem;
}

.project-section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.project-description-box {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.project-description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.project-description-text:last-child,
.project-description-text-last {
  margin-bottom: 0;
}

.process-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}