/* Estilos generales para el body */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor principal de las imágenes */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  max-width: 1200px;
}

/* Estilo para las tarjetas de los items */
.any {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.any:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Imagen de cada item */
img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
}

img:hover {
  opacity: 0.8;
}

/* Estilo para el contenedor de la selección final (packetaxo) */
#result {
  display: none;
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

#packetaxoImg {
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
}

#packetaxoImg:hover {
  transform: scale(1.05);
}

/* Estilo para el fondo del contenedor de selección (packetaxo) */
#result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  border-radius: 15px;
}
