/* ====== ESTILOS GENERALES ====== */

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background: #f4f4f4;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.2em;
  margin-bottom: 5px;
}

h2 {
  font-size: 1.2em;
  font-weight: normal;
  color: #666;
}

/* ====== LISTADO DE PRODUCTOS ====== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  border-radius: 6px;
}

.product-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1em;
}

.price {
  font-size: 1.3em;
  font-weight: bold;
  margin: 10px 0;
  color: #222;
}

.product-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.product-card a:hover {
  background: #005fa3;
}

/* ====== FICHA DE PRODUCTO ====== */

.product-detail {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-detail img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
}

.product-detail h2 {
  margin-bottom: 10px;
}
.btn-carrito {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
}


