body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
}
section {
  scroll-margin-top: 15px;
}
.gallery-products {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.gallery-products .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.product {
  display: flex;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  color: #1a1a1a;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 13.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  position: relative;
  background: rgb(246, 246, 246);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
}
.product-details {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  background: #fff;
}
.product h3 {
  font-size: clamp(0.9rem, 2.3vw, 1rem);
  font-weight: 500;
}

.product-info p {
  font-size: 13px;
}
.descuento {
  background: #d32f2f;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  position: absolute;
  top: 10px;
  left: 8px;
}
.cta-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: orange;
  border-radius: 30px;
  color: #fff;
  padding: 6px 0;
  gap: 0.3rem;
}
.cta-btn:hover {
  background: #e99700;
}
.precio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 550;
  font-size: 1.1rem;
}
.precio span:nth-child(2) {
  color: #e53935; /*#888 gris*/
  font-size: 13px;
  text-decoration: line-through;
  padding-top: 1px;
}

@media (max-width: 1024px) {
  .contact-info {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-links li a {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .product-image {
    height: 12.5rem;
  }
  .header-bottom {
    padding: 5px 0;
    background: orange;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
  }
  .social-media {
    background: none;
    padding: 6px 0;
  }
  footer .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-details {
    gap: 0.6rem;
    padding: 6px 10px;
  }
  .precio {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  footer .container {
    grid-template-columns: 1fr;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 1.8rem;
  padding: 15px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #20b358;
}

/* --------Móvil menu bars----- */
.menu-bars,
.close-menu {
  display: none;
}

/*Al final*/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5; /* Debe estar debajo del nav (que tiene z-index: 10) */
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-in-out;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
footer {
  margin-top: 4rem;
}
