body {
  margin: 0;
  font-family: -apple-system, sans-serif;
  background: #fff;
}

.header {
  padding: 20px;
  text-align: center;
}

#buscador {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

nav, #categorias {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
}

button {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #eee;
  cursor: pointer;
}

button.active {
  background: #111;
  color: white;
}

main {
  padding: 20px;
}



.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  margin-bottom: 10px;
}

#cerrar {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.card a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #0071e3;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 15px;
  border-radius: 50px;
  text-decoration: none;
}

#modal-wsp {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

#modal-wsp:hover {
  transform: translateY(-2px) scale(1.03);
}


#buscador {
  border: 1px solid #ddd;
  outline: none;
  transition: 0.2s;
}

#buscador:focus {
  border-color: #0071e3;
}

.sugerencias {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.sugerencia-item {
  padding: 10px;
  cursor: pointer;
}

.sugerencia-item:hover {
  background: #f2f2f2;
}

.tabla-specs {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  text-align: left;
}

.tabla-specs td {
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.spec-key {
  color: #666;
}

.spec-val {
  font-weight: 500;
}