body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
  animation: fadeInBody 1s ease-in;
  scroll-behavior: smooth;
}
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Anton', sans-serif;
  background: linear-gradient(60deg, rgb(238, 234, 11), rgba(7, 68, 235, 1), rgba(255, 0, 0, 1));
  padding: 1.5rem;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
}

/* Barra de navegação */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f0f0f00;
  padding: 1rem 2rem;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00;
}

section {
  padding: 1rem;
  scroll-margin-top: 150px;
}

.whatsapp-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    padding: 8px; /* Botón compacto */
    border-radius: 50%; /* Ícono redondo */
    text-decoration: none;
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.whatsapp-mini img {
    width: 24px;
    height: 24px;
}
.whatsapp-mini:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  gap: 15px;
}

.product:nth-child(1) {
  animation-delay: 0.1s;
}

.product:nth-child(2) {
  animation-delay: 0.2s;
}

.product:nth-child(3) {
  animation-delay: 0.3s;
}

.product:nth-child(4) {
  animation-delay: 0.4s;
}

.product:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product h3 {
  margin: 0 0 0.5rem 0;
}

.product p {
  margin: 0.3rem 0;
}


.product-img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.05);
}

.product button {
  background-color: #e41d1d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s;
}

.product button:hover {
  transform: scale(1.05);
  background-color: #ff3333;
}

.cart-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 1.5rem;
  padding: 1rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.cart-float:hover {
  transform: scale(1.1);
}

.cart-panel {
  position: fixed;
  top: 150px;
 
  right: -100%;
  width: 300px;
  height: calc(100% - 150px);

  background-color: #1f1f1f;
  padding: 1rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease, opacity 0.3s ease;
  z-index: 999;
  opacity: 0;
  overflow-y: auto;
}

.cart-panel.open {
  right: 0;
  opacity: 1;
}

.cart-panel h2 {
  margin-top: 0;
}

.cart-panel ul {
  list-style: none;
  padding-left: 0;
}

.cart-panel ul li {
  margin: 0.5rem 0;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-btn {
  display: block;
  margin-top: 1rem;
  background-color: #25D366;
  color: #fff;
  padding: 0.8rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: scale(1.03);
}


.remove-btn {
  background: none;
  border: none;
  color: #ff5555;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #ff0000;
}


.cart-panel button {
  background-color: #e41d1d;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  margin-top: 1rem;
  margin-right: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(228, 29, 29, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cart-panel button:hover {
  background-color: #ff4c4c;
  box-shadow: 0 6px 10px rgba(255, 76, 76, 0.7);
  transform: translateY(-2px);
}

.cart-panel button:active {
  transform: translateY(0);
  box-shadow: 0 3px 5px rgba(255, 76, 76, 0.5);
}

.menu-toggle {
  display: none;

}


@media (max-width: 600px) {
  section {
    padding: 0.5rem;
  }

  .product {
    padding: 0.8rem;
  }

  .product-img {
    max-height: 130px;
  }

  .product h3 {
    font-size: 1.1rem;
  }

  .product p {
    font-size: 0.9rem;
  }

  .product button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .cart-panel {
    width: 80vw;
    padding: 1rem 0.8rem;
  }

  .cart-float {
    bottom: 15px;
    right: 15px;
    padding: 0.8rem;
    font-size: 1.3rem;
  }

  .cart-panel ul li {
    font-size: 0.9rem;
  }

  .remove-btn {
    font-size: 1rem;
  }
}

/* Responsive para tablets */
@media (min-width: 601px) and (max-width: 900px) {
  section {
    padding: 1rem 2rem;
  }

  .product-img {
    max-height: 150px;
  }

  .product h3 {
    font-size: 1.3rem;
  }

  .product p {
    font-size: 1rem;
  }

  .product button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .cart-panel {
    width: 350px;
  }

  .cart-float {
    padding: 1rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #0f0f0f85;
    width: 200px;
    display: none;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) {
  .product {
    flex-direction: row-reverse; /* Imagen a la derecha */
    justify-content: space-between;
    align-items: center;
  }

  .product-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .product-info {
    flex: 1;
    padding-right: 20px;
    text-align: left;
  }
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-info .price {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-info p {
  margin-bottom: 10px;
  color: #ccc;
}

.product-info button {
  padding: 10px 20px;
  background-color: #e63946;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-info button:hover {
  background-color: #c92a38;
}
/* Evitar scroll horizontal no deseado */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Asegurarse que los contenedores no superen el ancho */
section, .product, .navbar, .nav-links {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Para imágenes y elementos que puedan sobresalir */
img, .product-img {
  max-width: 100%;
  height: auto;
  display: block;
}
