/* Contenedor general */
.carrusel-nosotros-container {
  background-color: #f8f9fa;
  overflow: hidden;
  padding: 20px 0;
}

/* Pista del carrusel */
.carrusel-nosotros-track {
  display: flex;
  width: max-content;
  animation: scrollCarrusel 40s linear infinite;
  animation-play-state: running;
}

/* Imágenes */
.carrusel-nosotros-track img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.carrusel-nosotros-track img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  opacity: 1;
}

/* Animación carrusel */
@keyframes scrollCarrusel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

#lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}


.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 15px;
  font-size: 1.2em;
}

/* Botón cerrar */
.lightbox-close {
  position: fixed;
  top: 6%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 9999;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Navegación */
.lightbox-nav {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 20px;
  transform: translateY(-50%);
  transition: 0.3s;
  user-select: none;
  z-index: 9999;
}

.lightbox-nav:hover {
  color: #ccc;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .carrusel-nosotros-track img {
    width: 200px;
    height: 200px;
  }

  #lightbox-image {
    max-width: 95%;
    max-height: 70%;
  }

  .lightbox-nav {
    font-size: 30px;
    padding: 0 10px;
  }

  .lightbox-close {
    font-size: 30px;
    top: 30px;
  }
}
