/* Sección Instalaciones */
.instalaciones-section {
    padding: 80px 20px;
    background: #ececec;
    text-align: center;
    
}

.instalaciones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.instalaciones-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0a0a0a;
}

.instalaciones-subtext {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #444;
    line-height: 1.7;
}

.instalaciones-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.instalaciones-galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card1 {
  width: 100%;
  height: 100%;
  padding: 2px;
  color: rgb(255, 255, 255);
  text-align: center;
}

.card1 p {
  font-size: 14px;
  color: rgb(255, 255, 255);
}

.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 18s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (18s / var(--quantity)) * (var(--position) - 1) - 10s
  ) !important;
  margin-right: 20px; /* separa imágenes */
}

  /* Cambiar Tamaño imagenes del slider */
.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* o contain según prefieras */
}



@keyframes autoRun {
  from {
    left: 100%;
  }

  to {
    left: calc(var(--width) * -1);
  }

}

.slider[reverse="true"] .item {
  animation: reversePlay 20s linear infinite;
}

@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }
  to {
    left: 100%;
  }
}
/* Lightbox (imagen en grande) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain !important;
    animation: lightboxZoom 0.35s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
/* Animación al abrir (zoom suave) */
@keyframes lightboxZoom {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación al cerrar (zoom out suave) */
@keyframes lightboxZoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.3);
        opacity: 0;
    }
}