/* Fuente general */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #000;
  overflow-x: hidden;
}

/* Encabezado principal centrado */
.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  color: #FFC107;
  padding: 15px 25px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  flex-direction: column;
}

.logo {
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Menú superior centrado */
.main-nav {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: #FFC107;
  font-weight: 500;
  transition: 0.3s;
}

.main-nav a:hover {
  color: #ffffff;
}

/* Botón menú lateral (hamburguesa) */
.menu-toggle {
  display: block;
  font-size: 1.8em;
  cursor: pointer;
  color: #FFC107;
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 1002;
}

/* Menú lateral */
.side-menu {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100%;
  background-color: #000;
  color: #FFC107;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
  transition: 0.3s;
  z-index: 1001;
  overflow-y: auto;
}

.side-menu.open {
  right: 0;
}

.side-menu a {
  color: #FFC107;
  text-decoration: none;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.side-menu a:hover {
  color: #fff;
}

.side-menu hr {
  border-color: rgba(255,255,255,0.1);
  margin: 10px 0;
}

.side-menu p {
  font-weight: bold;
  margin: 10px 0 5px;
}

/* Botón de cerrar */
.close-btn {
  align-self: flex-end;
  font-size: 1.5em;
  cursor: pointer;
  color: #FFC107;
}

/* Overlay oscuro */
.overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* Contenido principal */
.content {
  padding: 140px 25px 50px 25px;
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #000;
}

/* Rejilla de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
  background-color: #f2f2f2;
  width: 100%;
  height: 200px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.product-card h3 {
  color: #000;
  font-size: 1.1em;
  margin: 10px 0 5px;
}

.product-card p {
  color: #333;
  font-size: 0.9em;
  margin: 5px 0;
}

.product-card .price {
  color: #FFC107;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-card button {
  background-color: #FFC107;
  color: #000;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.product-card button:hover {
  background-color: #000;
  color: #FFC107;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.pagination a {
  color: #000;
  border: 1px solid #FFC107;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
}

.pagination a:hover {
  background-color: #FFC107;
  color: #000;
}

/* Formulario de contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

.contact-form button {
  background-color: #FFC107;
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #000;
  color: #FFC107;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Pie de página */
footer {
  text-align: center;
  background-color: #000;
  color: #FFC107;
  padding: 20px 10px;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .content {
    padding: 120px 15px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card .image-placeholder {
    height: 180px;
  }
}
