/* Contenedor de tarjetas */
.container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap; 
}

/* Tarjeta */
.card {
  position: relative;
  width: 280px; /* Ajustado para mejor adaptación */
  height: 280px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* Efecto al pasar el mouse */
.card:hover {
  transform: scale(1.05);
}

/* Imagen dentro de la tarjeta */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

/* Oscurecer imagen al pasar el mouse */
.card:hover img {
  filter: brightness(50%);
}

/* Descripción oculta hasta hacer hover */
.description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card:hover .description {
  opacity: 1;
}

h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: black;
}

.cafeteria p {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 20px;
  text-align: justify;
}

.contenedor-boton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 30px 0;
}

.btn-domicilio {
  display: inline-block;
  padding: 14px 25px;
  background-color: #FF5722;
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-domicilio:hover {
  background-color: #ff3c00;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .contenido_imagenes img {
    width: 250px;
    height: 250px;
  }
  
  .cafeteria h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .cafeteria {
    padding: 30px 15px;
  }
  
  .contenido_imagenes {
    gap: 20px;
  }
  
  .contenido_imagenes img {
    width: 200px;
    height: 200px;
  }
  
  .cafeteria h2 {
    font-size: 2rem;
  }
  
  .cafeteria p {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .contenido_imagenes {
    flex-direction: column;
    align-items: center;
  }
  
  .contenido_imagenes img {
    width: 90%;
    height: auto;
    max-width: 300px;
  }
  
  .cafeteria h2 {
    font-size: 1.8rem;
  }
  
  .btn-domicilio {
    padding: 12px 20px;
    font-size: 1.1em;
  }
}