.gallery-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px 0;
}

/* Limita el viewport a 3 imágenes */
.thumbs-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 960px; /* 3 x 300px aprox */
  margin: 0 auto;
}

/* Track horizontal */
.thumbs-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Tamaño fijo para 3 por fila */
.gallery-thumbs img {
  width: 299px;
  height: auto;
  margin: 0 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.carousel-btn {
  background-color: #E52822;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  width: 30px;
    height: 30px;
  border-radius: 50px;
}

.carousel-btn.hidden {
  display: none;
}

.carousel-dots {
  text-align: center;
  margin-top: 15px;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background-color: #E52822;
}

/* Lightbox (igual que tenías) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.lightbox-arrow {
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.lightbox-arrow.prev {
  left: 20px;
}

.lightbox-arrow.next {
  right: 20px;
}


.lightbox-content img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.close, .prev, .next {
 
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
}

.prev-car, .next-car{
color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;

}

.close {
  position: absolute; /* <-- esto es clave */
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  z-index: 2; /* por si se superpone */
}


.prev {
  left: 30px;
  top: 50%;
