
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* Efecto hover: solo zoom suave */
.image:hover img {
  transform: scale(1.05);
}


.gallery {
  display: flex;                         /* Organiza las imágenes en fila */
  flex-wrap: wrap;                       /* Permite que pasen a la siguiente línea */
  justify-content: center;               /* Centra las imágenes horizontalmente */
  gap: 14px;                             /* Espacio entre imágenes */
  padding: 10px;                         /* Margen interno general */
}



.gallery .image {
  width: calc(33.333% - 14px);           /* 3 columnas con espacio entre ellas */
  aspect-ratio: 4 / 3;                   /* Mantiene proporción uniforme */
  overflow: hidden;                      /* Oculta partes que sobresalgan */
  border-radius: 8px;                    /* Bordes redondeados */
  cursor: pointer;                       /* Indica que es clickeable */
  transition: transform 0.3s ease;       /* Suaviza cualquier transformación */
}


.gallery .image span {
  display: flex;                         /* Flex para centrar contenido si se necesita */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;                     /* Recorta sin deformar */
  display: block;
  transition: transform 0.3s ease;       /* Suaviza el efecto hover */
}


  .gallery .image:hover img{
  transform: scale(1.1);                 /* Zoom suave al pasar el mouse */  
}


  .preview-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95); /* Centrado con leve zoom inicial */
  background: #fff;
  max-width: 700px;
  width: 90%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  /*border-radius: 6px;*/
  padding: 10px;
  /*box-shadow: 0 0 25px rgba(0,0,0,0.3);*/
  transition: all 0.3s ease;
  background-color: #0B0F2A;
  border: 1px solid #ffffff1a; /* blanco suave */
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}


  .preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1); /* Zoom in al mostrar */
}



  .preview-box .details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #fff;
  border-bottom: 1px solid #eee;
}


  .preview-box .details .title {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  gap: 5px;
}


  .details .title p{
    margin: 0 5px;
  }
  .details .title p.current-img{
    font-weight: 700;
  }

  
  .details .icon {
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.details .icon:hover {
  color: #39FF14;
}


.preview-box .image-box {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.image-box .slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  /*background: #39FF14;*/
  background: #252850;;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slide:hover {
  background: #252850;
}
.slide.prev {
  left: 10px;
}
.slide.next {
  right: 10px;
}

  .slide.prev{
    left: 0px;
  }
  .slide.next{
    right: 0px;
  }
  .image-box img{
    width: 100%;
    border-radius: 0 0 6px 6px;
  }

 
  
  .shadow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 50;
  display: none;
}
.shadow.show {
  display: block;
}





