/* Miniaturas */
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px;
}
.thumbs img.thumb,
.thumbs .ver-mas {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.thumbs img.thumb:hover,
.thumbs .ver-mas:hover {
  transform: scale(1.05);
}

/* Caja "ver más" */
.thumbs .ver-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}
.thumbs .ver-mas span {
  line-height: 1.2;
}

/* Lightbox general */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.hidden { display: none; }

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
}
.nav-btn:hover { background: rgba(255,255,255,0.5); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 600px) {
  .thumbs img.thumb,
  .thumbs .ver-mas {
    width: 45%;
    height: auto;
  }
  .nav-btn { width: 36px; height: 36px; font-size: 18px; }
  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
}
/* ===== LOADER ===== */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: #023e8a;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 1.1rem;
  gap: 1rem;
}

.spinner {
  border: 4px solid #e0e0e0;
  border-top: 4px solid #023e8a;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ocultar loader al cargar */
.hidden {
  display: none !important;
}