@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}

*, img {
  -webkit-user-drag: none; /* Chrome, Safari, Opera */
  -moz-user-drag: none;    /* Firefox */
  -ms-user-drag: none;     /* IE/Edge */       /* estándar */
  user-select: none;       /* evitar selección de texto */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  box-shadow: 1.5px 1.5px 10px rgba(0, 48, 110, 0.3);
  margin: 0.5rem;
}

.product-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease;
  height: 100%;
}

.product-card img {
  width: 60%;
  height: auto;
  margin: 2rem auto;
}

.product-card .bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  background-image: url("/IPAGB/assets/images/button_back.png");
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.product-card .bottom span {
  color: white;
  font-weight: bold;
  font-size: 16px;
  flex: 1;
  text-align: center;
}

@media screen and (max-width: 1200px) {

  body{
    height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* Aquí forzamos 2 columnas */
  }
}

@media screen and (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* Sigue 2 columnas en pantallas muy pequeñas */
  }
}
