/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== CATEGORÍAS ==== */
.categorias {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 5vw;
  background-color: #1a1a1d;
  flex-wrap: wrap;
}

.categoria {
  background-color: #2b2b30;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 150px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.categoria p {
  font-weight: 600;
  color: #f4f4f4;
}

.categoria:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.6);
}

.categoria:hover img {
  transform: scale(1.15);
}

/* ==== MÁS VENDIDOS ==== */
.mas-vendidos {
  padding: 40px 5vw;
  background-color: #1f1f23;
  text-align: center;
}

.mas-vendidos h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #9a8cff;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.producto {
  background-color: #2b2b30;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.6);
}

.producto img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.precio {
  color: #6c63ff;
  font-size: 20px;
  padding: 10px;
  font-weight: bold;
}

.despro {
  color: #d1d1d1;
  transition: color 0.3s ease;
}

.producto:hover .despro {
  color: #9a8cff;
}

/* ==== BANNER 2 ==== */
.ban2 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  background: linear-gradient(90deg, #1a1a1d, #2b2b30);
}

.ban2 img {
  width: 80%;
}

/* ==== OFERTAS ==== */
.ofertas-box {
  border: 2px solid #6c63ff;
  padding: 20px;
  background-color: #1f1f23;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 95%;
  text-align: center;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

.ofertas-box h2 {
  margin-bottom: 20px;
  color: #9a8cff;
  font-size: 1.5rem;
}

.ofertasdiv {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  gap: 0;
}

.ofertasdiv:hover {
  transform: translateY(-5px);
}

.productoof {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  background-color: #2b2b30;
  padding: 10px 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.productoof:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.productoof img {
  width: 100%;
  height: auto;
  display: block;
}

.despro {
  font-size: 0.85rem;
  color: #ccc;
  margin: 10px 5px 5px;
}

.preciodes {
  text-decoration: line-through;
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

.precio {
  color: #9a8cff;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 0 10px;
}

/* ==== FOOTER ==== */
footer {
  background-color: #1a1a1d;
  padding: 40px 20px;
  color: #f4f4f4;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  background-color: #2b2b30;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 20px;
}

.footer-section {
  width: 30%;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-section h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #9a8cff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  text-decoration: none;
  color: #f4f4f4;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #6c63ff;
  text-decoration: underline;
}

/* ==== CARRUSEL ==== */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  overflow: hidden;
  text-align: center;
  border-radius: 10px;
  background-color: #2b2b30;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.carrusel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.carrusel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(108, 99, 255, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 1;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.carrusel button:hover {
  background-color: rgba(108, 99, 255, 0.9);
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}
