/* =========================
   RESET Y BASE
========================= */
*{ margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #2a1a1f;
  /* Fondo general terracota */
  background: url("https://perledecoton.com/cdn/shop/articles/couleur_terracotta_5470aff5-f23e-4899-8de7-0600567824b8.jpg?v=1758023179&width=1920");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
}

/* =========================
   CONTENEDOR PRINCIPAL
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================
   HEADER
========================= */
.header {
  text-align: center;
  padding: 40px 20px;
  border-radius: 24px;
  background: rgba(245, 236, 220, 0.95);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.tagline {
  margin-top: 10px;
  color: #5d4037;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
}

.badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  padding: 6px 15px;
  border-radius: 20px;
  background: rgba(46, 75, 47, 0.1);
  color: #2e4b2f;
  border: 1px solid rgba(46, 75, 47, 0.2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   SECCIONES GENERALES
========================= */
.section {
  margin: 30px 0;
  padding: 40px 30px;
  border-radius: 24px;
  background: rgba(245, 236, 220, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden; /* Para que la foto de fondo no se salga de las esquinas redondeadas */
}

.section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  color: #2a1a1f;
  margin-bottom: 15px;
  text-align: center;
}

.section p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================
   GRILLA DE PRODUCTOS
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.pad {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  margin-bottom: 10px;
  color: #1a0f13;
  text-align: left;
}

.card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

.meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: #2e4b2f;
  background: #f0f4f0;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.btn {
  text-decoration: none;
  background: #2e4b2f;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 40px;
  color: white;
  font-size: 14px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .section h2 {
    font-size: 30px;
  }
}
