/* Variables */
:root {
  --primary: #ddd;
  --dark: #333;
  --light: #fff;
  --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
}

/* Estilos */
.btn {
  background: #00f0ff;
  color: var(--dark);
  padding: 0.6rem 1.3rem;
  text-decoration: none;
  border: 0;
  font-size: 0.8rem;
  margin-bottom: unset;
}

.availability {
  color: #00a54c;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.6rem;
  height: 2rem;
  margin-bottom: 0.5rem;
}

.precio {
  color: #38383d;
  margin-bottom: 0.2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
}

.name {
  color: var(--dark);
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 5rem;
  
}

.name p{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
  font-size: 0.8rem;
  margin-bottom: unset;
}

img {
  max-width: 100%;
}

.wrapper {
  display: grid;
  grid-gap: 1rem;
  background: #fbfbfb;
  padding: 0rem 1rem 1rem 1rem;
  margin: 0rem 0rem 2rem 0rem;
}

.grid-title {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.grid-title p {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--dark);
}

.boxes {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.box {
  background: var(--light);
  text-align: center;
  padding: 0.5rem;
  min-width: 140px;
}

.box:hover {
  box-shadow: var(--shadow);
}

.box-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

  /* Media queries pequeñas */
  @media screen and (max-width: 463px) {
    
    .boxes {
        grid-template-columns: 1fr;
    }

    .box {
        width: 90%;
      }
  }
  
  /* Media queries medianas */
  @media screen and (min-width: 464px) and (max-width: 576px) {
    
    .boxes {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Media queries grandes */
  @media screen and (min-width: 577px) and (max-width: 991px) {
    
    .boxes {
      grid-template-columns: repeat(3, 1fr);
    }
  }
    
  /* Media queries más grandes */
  @media screen and (min-width: 992px) {
    
    .boxes {
      grid-template-columns: repeat(4, 1fr);
    }
  }