/* Estilos compartidos por todas las páginas de producto.
   Al estar en un archivo aparte, el navegador lo descarga una sola vez
   y lo reutiliza en todos los productos. */
:root {
  --bg-gradient: linear-gradient(180deg, #fdeee6 0%, #f6c7aa 100%);
  --primary: #c27b5a;
  --secondary: #e6a989;
  --text: #6b3f2a;
  --card-bg: rgba(255, 255, 255, 0.75);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

/* Barra superior: volver al inicio */
.volver {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 17px;
}
.volver a {
  color: #b14c1c;
  text-decoration: none;
}
.volver a:hover { text-decoration: underline; }
.volver img { width: 46px; height: 46px; }

h1 {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: #b14c1c;
  margin-bottom: 40px;
  font-family: 'Racing Sans One', sans-serif;
  font-size: 5vw;
}
h1::before,
h1::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #b14c1c;
}
h1::before { top: 0; }
h1::after { bottom: 0; }

h2 {
  font-weight: 800;
  color: #905bf3;
  margin-bottom: 40px;
  font-family: 'Romanesco', cursive;
  font-size: 4vw;
}

/* INGREDIENTES */
.ingredients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}
.ingredient { padding: 10px 20px; }
.ingredient-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--secondary);
}
.ingredient h3 {
  margin: 10px 0;
  font-size: 24px;
  color: var(--primary);
}
.ingredient p {
  font-size: 20px;
  line-height: 1.5;
}

/* PRODUCTO */
.product { margin: 60px 0 80px; }
.product img {
  max-width: 550px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.25));
}

/* BENEFICIOS */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.benefit {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
}
.benefit-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--secondary);
}
.benefit h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary);
}
.benefit p {
  font-size: 20px;
  line-height: 1.4;
}

/* Bloques destacados (usados en algunos productos especiales) */
.ingredients .destacado {
  grid-column: span 3;
  justify-self: center;
  max-width: 500px;
  font-weight: bold;
}
.benefits .destacado {
  grid-column: span 4;
  justify-self: center;
  max-width: 500px;
  font-weight: bold;
}

/* Botón de consulta */
.consulta {
  display: inline-block;
  margin: 10px 0 50px;
  padding: 14px 28px;
  border-radius: 30px;
  background: #25d366;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.consulta:hover { background: #1ebe5a; }

@media (max-width: 768px) {
  .ingredients .destacado,
  .benefits .destacado {
    grid-column: span 1;
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 11vw; }
  h2 { font-size: 11vw; }
}
