

.tienda h2 {
  text-align: center; /* centra el texto */
  margin-bottom: 30px; /* opcional: espacio debajo del título */
  font-size: 2rem;     /* opcional: tamaño más grande */
  font-weight: bold;
  color: #333;         /* color del texto */
}

.galeria-tienda {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 imágenes por fila */
  gap: 25px;           /* más espacio entre imágenes */
  padding: 30px;       /* más espacio interno */
  margin: 0 auto;
  max-width: 1400px;   /* aumenta el ancho máximo de la galería */
}

.item-tienda img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}




.item-tienda {
  position: relative;
  text-align: center;
}

/* Efecto hover: zoom */
.item-tienda:hover img {
  transform: scale(1.05);
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(100%);
  pointer-events: none;
}

.item-tienda:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Botón debajo de la imagen */
.btn-visitanos {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #c62828;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-visitanos:hover {
  background-color: #8e0000;
}

/* Responsive: 2 por fila en tablet, 1 por fila en móvil */
@media screen and (max-width: 900px) {
  .galeria-tienda {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .galeria-tienda {
    grid-template-columns: 1fr;
  }
}


/*--------modal-------------------*/


/* Modal background */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

/* Imagen dentro del modal */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

/* Texto de descripción */
#caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}

/* Responsive */
@media screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
