.catalogo {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sidebar {
  width: 310px;
  background: #839db5;
  color: #fff;
  padding: 20px;
}

.sidebar-title {
  font-size: 20px;
  margin-bottom: 5px;
}

.sidebar-subtitle {
  font-size: 13px;
  color: #e9ecef;
  margin-bottom: 20px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #546d95;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.paginacion {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
}

.paginacion button {
  padding: 8px 14px;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
}

.paginacion button.active {
  background: #839db5;
  color: #fff;
}

.paginacion button:hover {
  background: #b6c7d6;
}

.sidebar-list li:hover {
  background: #042858;
}

.btn-menu {
  display: none;
  background: #546d95;
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
}

.productos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-right: 5PX;
}

.producto-card {
  background: #fff;
  margin-top: 20px;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.controles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

.controles button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0;
}

.controles button:hover {
  background: #9190b2;
}

.carrusel img {
  width: 100%;
  display: none;
}

.carrusel img.activo {
  display: block;
}

.controles button {
  background: #cccccc;
  color: white;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.producto-img {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  overflow: hidden;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-whatsapp {
  display: block;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 14px;
  border: 2px solid #1ebe5d;
  background-color: transparent;
  color: #1ebe5d;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-whatsapp i {
  margin-right: 8px;
  font-size: 18px;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: white;
}

.producto-card h4 {
  color: #546d95;
}

.producto-card h5 {
  color: #a9abad;
  margin-bottom: 8px;
}

.producto-card p {
  font-size: 14px;
  color: #042858;
  text-align: center;
}

.catalogo-banner {
  width: 90%;
  max-width: 1200px;
  height: 200px;
  margin: 20px auto 30px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.catalogo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalogo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hidden {
  display: none;
}

@media (max-width: 992px) {
  .productos {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-menu {
    display: block;
  }

  .catalogo {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    width: 100%;
  }

  .sidebar.activo {
    display: block;
  }
}

@media (max-width: 600px) {
  .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .producto-img {
    height: 150px;
  }

  .producto-card {
    padding: 10px;
  }

  .btn-whatsapp {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 400px) {
  .productos {
    grid-template-columns: 1fr;
  }

  .producto-img {
    height: 140px;
  }
}