/* Estilos de la sección de productos de la portada y de las páginas de tartas.
   Archivo aparte para no tocar styles.css (compilado desde sass/). */

/* Portada: familias de producto */
#nuestras-tartas {
  color: black;
  background-color: #F5EFF8;
}
#nuestras-tartas > p,
.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.familias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 25px 0;
}
.familia {
  background-color: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(187, 143, 206, 0.25);
}
.familia h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.familia p {
  line-height: 1.6;
  margin-bottom: 8px;
}
.familia a,
.enlaces-tartas a,
.pagina a {
  color: #8e5aa6;
  text-decoration: underline;
}
.enlaces-tartas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 20px auto;
  max-width: 900px;
}
.enlaces-tartas a {
  background-color: white;
  border: 1px solid #e8dff0;
  border-radius: 20px;
  padding: 8px 14px;
  text-decoration: none;
}
.enlaces-tartas a:hover {
  background-color: #bb8fce;
  color: white;
}
.nota-nombre {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Páginas de tartas */
article.redes .address {
  margin: 20px 0 0;
}
/* Cabecera igual que la portada (foto, menú, botón y ola), algo más baja */
#top.top-pagina {
  height: auto;
  min-height: 62vh;
  padding-bottom: calc(10.5vw + 50px);
}
.pagina-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  background-color: #F5EFF8;
  padding: 14px 16px 0;
  font-size: 0.95rem;
}
.pagina-nav a {
  color: #8e5aa6;
  text-decoration: none;
}
.pagina-nav a:hover,
.pagina-nav a[aria-current] {
  text-decoration: underline;
  font-weight: 600;
}
article.pagina {
  color: black;
  background-color: transparent;
  max-width: 900px;
  padding: 25px 16px 40px;
}
article.pagina h1 {
  font-size: 2.1rem;
  line-height: 1.2;
}
article.pagina h2 {
  font-size: 1.5rem;
  margin-top: 32px;
}
article.pagina h3 {
  font-size: 1.15rem;
  margin: 18px 0 6px;
}
article.pagina p,
article.pagina li {
  line-height: 1.75;
  margin-bottom: 10px;
}
article.pagina ul {
  list-style: disc;
  margin-left: 22px;
}
.foto-pagina {
  margin: 20px auto;
  max-width: 640px;
}
.foto-pagina img {
  border-radius: 10px;
}
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.galeria img {
  border-radius: 8px;
}
.cta {
  text-align: center;
  margin: 30px 0;
}
.cta a.boton {
  display: inline-block;
  background-color: #bb8fce;
  color: #fff8dc;
  border-radius: 15px;
  padding: 0.9em 2em;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  margin: 6px;
}
.cta a.boton:hover {
  background-color: #8e5aa6;
}
.faq details {
  border: 1px solid #e8dff0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background-color: white;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #8e5aa6;
}
.faq details p {
  margin: 10px 0 0;
}
.nap {
  background-color: white;
  border-radius: 10px;
  padding: 16px;
  margin-top: 30px;
  text-align: center;
  line-height: 1.7;
}

/* Fondo de la cabecera (2026-11-20): tarta de limón con arándanos.
   Una imagen vertical para móvil y tablet y otra horizontal para ordenador.
   Sustituye a background-image.webp de styles.css sin tocar el SASS. */
#top::before {
  background-image: url("../assets/img/fondo-portada-tarta-limon-arandanos-movil.webp");
  background-position: center bottom;
}
@media (min-width: 992px) {
  #top::before {
    background-image: url("../assets/img/fondo-portada-tarta-limon-arandanos-escritorio.webp");
    background-position: center center;
  }
}
