.products-section{
  max-width: 1200px;
  margin: auto;
  padding: 150px 20px;
}

/* BUSCADOR */
.product-search{
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 25px;
  font-size: 16px;
}

/* FILTROS */

.filter-buttons{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.filter-btn{
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid #010149;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active{
  background: #010149;
  color: white;
}

/* GRID */

.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 25px;
}

/* TARJETA */

.product-card{
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  cursor: pointer;
  transition: .25s;
}

.product-card:hover{
  transform: translateY(-6px);
}

.product-card img{
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f3f3f3;
  padding: 15px;
}

.product-card .brand{
  font-size: 13px;
  color: #777;
  margin: 10px 15px 0;
}

.product-card h3{
  margin: 5px 15px 18px;
  font-size: 16px;
}

/* ================= MODAL ================= */

.product-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content{
  background: white;
  width: 1200px;         /* MÁS ANCHO */
  max-width: 96%;
  padding: 35px;
  border-radius: 22px;
  position: relative;
  height: 600px;
}

/* Cerrar */

.modal-close{
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}

/* CONTENIDO MODAL */

.modal-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* GALERIA */

.image-viewer{
  text-align: center;
}

#modalImg{
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #f3f3f3;
  padding: 15px;
  border-radius: 12px;
}

/* MINIATURAS */

.thumb-container{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.thumb-container img{
  width: 65px;
  height: 60px;
  object-fit: contain;
  background: #f3f3f3;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}

.thumb-container img:hover{
  transform: scale(1.05);
}

.thumb-container img.active{
  border-color: #010149;
}

/* INFO DERECHA */

.modal-info{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#modalTitle{
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

#modalBrand{
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

#modalDesc{
  font-size: 15px;
  color: #555;
  line-height: 1.4;
}

/* BOTONES */

.btn-pdf{
  background: #010149;
  color: white;
  padding: 14px;
  border-radius: 25px;
  text-align: center;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: none;
}

.btn-whatsapp{
  background: #25D366;
  color: white;
  padding: 14px;
  border-radius: 25px;
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn-whatsapp:hover{
  background: #1ebe5d;
}

/* ================= TABLET ================= */

@media(max-width: 992px){

  .modal-content{
    width: 90%;
  }

  .modal-body{
    grid-template-columns: 1fr;
  }

  #modalImg{
    height: 260px;
  }

}

/* ================= MÓVIL ================= */

@media(max-width: 600px){

  .products-grid{
    grid-template-columns: 1fr;
  }

  .modal-content{
    padding: 22px;
  }

  #modalImg{
    height: 220px;
  }

  #modalTitle{
    font-size: 20px;
  }

  .btn-pdf,
  .btn-whatsapp{
    width: 100%;
  }

}

/* TITULOS CATEGORIA */

.category-title{
  margin-top: 20px;
}
