body {
  font-family: 'Georgia', serif;
  background-color: #fef9f4;
  color: #333;
  margin: 0;
  padding: 0;
}

main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* Introducción */
.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h1 {
  font-family: 'Marcellus SC', serif;
  font-size: 2.5rem;
  color: #7a4e1d;
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 1.2rem;
  color: #5c4a3a;
}

/* Tarjetas */
.seccion-temas {
  margin-bottom: 3rem;
}

.seccion-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.tarjeta-tema {
  background: #fff5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-tema:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tarjeta-tema img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tarjeta-tema .info {
  padding: 1rem;
}

.tarjeta-tema .info h3 {
  margin: 0 0 0.5rem;
  color: #9b6126;
  font-family: 'Marcellus SC', serif;
  font-size: 1.3rem;
}

.tarjeta-tema .info p {
  font-size: 1rem;
  color: #4b3c2d;
}

/* Línea del tiempo */
.linea-tiempo {
  background-color: #fef1e6;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.linea-tiempo h2 {
  text-align: center;
  color: #6e421c;
  font-family: 'Marcellus SC', serif;
  margin-bottom: 1.5rem;
}

.eventos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.eventos li {
  margin-bottom: 1rem;
  border-left: 4px solid #9b6126;
  padding-left: 1rem;
  position: relative;
}

.eventos li::before {
  content: "⏳";
  position: absolute;
  left: -1.3rem;
  top: 0.1rem;
  font-size: 1.2rem;
}

.eventos .fecha {
  font-weight: bold;
  color: #9b6126;
}

.descarga-timeline {
  text-align: center;
  margin-top: 2rem;
}

.descarga-timeline a {
  background-color: #9b6126;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.descarga-timeline a:hover {
  background-color: #7a4e1d;
}
/* === HEADER GENERAL === */
header {
  background: linear-gradient(to right, #8b4513, #cd853f);
  color: #fffef8;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 4px solid #5c2e0d;
}

header h1 {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  margin: 0;
  color: #fff9ec;
  letter-spacing: 1px;
}

header .slogan {
  font-size: 1.1rem;
  color: #f0e0ca;
  margin: 0.3rem 0 1rem;
}

/* === MENÚ DE NAVEGACIÓN === */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav li {
  display: inline;
}

nav a {
  text-decoration: none;
  color: #fffef9;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-family: 'Georgia', serif;
  background-color: rgba(255, 255, 255, 0.1);
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.investigacion-historica {
  background: linear-gradient(to bottom right, #fff9f3, #ffe9d4);
  border-left: 6px solid #b44b00;
  padding: 2em;
  margin: 3em auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 900px;
  transition: all 0.3s ease-in-out;
}

.investigacion-historica h2 {
  font-size: 1.8em;
  color: #7b2e00;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.bloque-historia {
  background: #fff;
  padding: 1em;
  border: 1px solid #dcbfaa;
  margin: 1em 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bloque-historia:hover {
  background-color: #fdf2e3;
}

.bloque-historia h3 {
  margin: 0;
  font-size: 1.2em;
  color: #a0522d;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.texto-oculto {
  display: none;
  margin-top: 0.8em;
  color: #444;
  line-height: 1.5;
}

.bloque-historia.activo .texto-oculto {
  display: block;
}
