/* -------------------- Estilos Generales -------------------- */
body {
  font-family: 'Georgia', serif;
  background-color: #fffaf3;
  color: #3b2e2a;
  margin: 0;
  padding: 0;
}

header {
  background-color: #964B00;
  color: #fff;
  padding: 1em;
  text-align: center;
}

.slogan {
  font-style: italic;
  color: #f2e4c2;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

nav a {
  text-decoration: none;
  color: #ffe5b4;
  font-weight: bold;
}

nav a:hover {
  color: #fff;
  text-decoration: underline;
}

main {
  padding: 2em;
}

/* -------------------- Sección Destacados -------------------- */
.destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  padding: 2rem 0;
}

.destacados a {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.destacados a:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.destacados article {
  background: #c5b8b8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.destacados article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #c06014;
}

.destacados article h3 {
  margin: 1rem 0 0.5rem;
  color: #a0522d;
  font-size: 1.3rem;
  text-align: center;
}

.destacados article p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #444;
  text-align: center;
}

/* -------------------- Tarjetas Historia -------------------- */
.tarjeta-historia {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.tarjeta-historia:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* -------------------- Galería de Recetas -------------------- */
.galeria-recetas {
  padding: 2rem;
  background-color: #fffaf3; /* armonizado con fondo general */
  border-top: 4px double #c06014;
  border-bottom: 4px double #c06014;
}

.galeria-recetas h3 {
  text-align: center;
  font-size: 2rem;
  color: #964B00;
  margin-bottom: 2rem;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}


.tarjeta {
  display: flex;
  flex-direction: column;
  width: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff8f0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e7d8c2;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tarjeta img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #c06014;
}

.info {
  padding: 1rem;
  text-align: center;
}

.info h4 {
  margin: 0.2rem 0;
  color: #a0522d;
  font-size: 1.2rem;
  font-weight: bold;
}

.info p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #6b4e3d;
}


/* -------------------- Sección Temas -------------------- */
.seccion-temas {
  padding: 2rem;
  text-align: center;
}

.seccion-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.tarjeta-tema {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.tarjeta-tema:hover {
  transform: scale(1.03);
}

.tarjeta-tema img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tarjeta-tema .info {
  padding: 1rem;
}

.tarjeta-tema .info h3 {
  margin: 0 0 0.5rem;
  color: #c06014;
  font-size: 1.2rem;
}

.tarjeta-tema .info p {
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------- Titulares -------------------- */
.titulo-historia {
  font-size: 2.3rem;
  text-align: center;
  color: #5a3e1b;
  margin-bottom: 0.5em;
}

.subtitulo {
  text-align: center;
  color: #7a5a3c;
  font-style: italic;
  margin-bottom: 2em;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Multimedia -------------------- */
.video-historia video,
.audio-relatos audio {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* -------------------- Botón de descarga -------------------- */
.boton-descarga {
  display: inline-block;
  background-color: #964B00;
  color: white;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-descarga:hover {
  background-color: #7a3c00;
}

/* -------------------- Footer -------------------- */
footer {
  background-color: #3b2e2a;
  color: white;
  text-align: center;
  padding: 1em;
}

/* -------------------- Galería de Ingredientes Autóctonos -------------------- */
.galeria-ingredientes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ingrediente {
  background-color: #fff8f0;
  border: 1px solid #e0d4c1;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ingrediente:hover {
  transform: scale(1.03);
}

.ingrediente img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.ingrediente h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.2rem;
  color: #b44b00;
}

.ingrediente p {
  font-size: 0.85rem;
  color: #555;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1200px) {
  .galeria-ingredientes {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .galeria-ingredientes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tarjeta {
    width: 90%;
  }
}
