/* -------------------- 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: #fffaf5;
}

.galeria-recetas h3 {
  text-align: center;
  font-size: 2rem;
  color: #7a3e00;
  margin-bottom: 1.5rem;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tarjeta {
  display: block;
  width: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
  background-color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.tarjeta img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.info {
  padding: 1rem;
  text-align: center;
}

.info h4 {
  margin: 0;
  color: #b44b00;
}

.info p {
  margin: 0.5rem 0 0;
  color: #555;
}

/* -------------------- 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: translateY(-5px);
  background-color: #fff8f2;
}

.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;
}
