/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ebdece;
  color: #111;
  line-height: 1.4;
}

/* ===== Header ===== */
.site-header {
  background: #000;
  padding: 1rem 0;
  text-align: center;
}
.logo {
  width: 120px;
  height: auto;
}
/* NAV */
.nav-bar {
  background: #f0f0f0;
  text-align: center;
  padding: 0.5rem 0;
}
.nav-bar a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0.5rem;
}
.nav-bar span {
  color: #000;
  margin: 0 0.5rem;
}
.nav-bar a:hover {
  color: #ff6600;
}

/* ===== Título ===== */
.page-title {
  text-align: center;
  margin: 2rem 0 0.5rem;
  font-size: 2rem;
  color: #222;
}
.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== Grid de productos ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Imagen 1:1 */
.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

/* Texto de descripción */
.product-description {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.8rem;
  min-height: 40px;
}

/* Botón de compra */
.order-btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.order-btn:hover {
  background: #333;
}

/* CTA */
.cta {
  background: #111;
  color: #fff;
  padding: 2rem 1rem;
}
.cta h2 {
  color: #fff;
}
.cta p {
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #ff6f00;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #e65c00;
}



/* Footer */
.footer {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: #ccc;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}


/* Fondo oscuro */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* Imagen centrada */
.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Botón de cerrar (X) */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.close:hover {
  color: #ccc;
}
