    .galeria-item {
      position: relative;
      overflow: hidden;
      border-radius: 1rem;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
    .galeria-item img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .galeria-item:hover img {
      transform: scale(1.1);
    }
    .galeria-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.25rem;
      background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.4s ease;
    }
    .galeria-item:hover .galeria-overlay {
      opacity: 1;
      transform: translateY(0);
    }
    .modal-content {
      background: transparent;
      border: none;
    }
    .modal-body img {
      border-radius: 1rem;
    }

/* ANIMACIÓN MINIATURAS */

.row > .col {
  opacity: 0;
  animation: aparecerGaleria 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.row > .col:nth-child(1) { animation-delay: 0.2s; }
.row > .col:nth-child(2) { animation-delay: 0.45s; }
.row > .col:nth-child(3) { animation-delay: 0.7s; }
.row > .col:nth-child(4) { animation-delay: 0.95s; }
.row > .col:nth-child(5) { animation-delay: 1.2s; }
.row > .col:nth-child(6) { animation-delay: 1.45s; }

@keyframes aparecerGaleria {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Respeta a usuarios que prefieren menos animaciones */
@media (prefers-reduced-motion: reduce) {
  .row > .col {
    animation: none;
    opacity: 1;
  }
}


/*ANIMACION MODAL*/

#visorImg.animar {
  animation: zoomVisor 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes zoomVisor {
  from {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal.show #visorImg {
    animation: none;
  }
}
