/* Tipografía y base */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #fafafa;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 0.5em;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #222;
  color: #fff;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  text-decoration: none;
  color: #fff;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero-bg {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-actions .btn {
  margin: 0.5rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: #c0392b;
  color: #fff;
}

.btn-secondary {
  background: #555;
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-chip {
  background: #eee;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
}

.btn-icon {
  background: #eee;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.bg-soft {
  background: #f5f5f5;
}

/* Historia con gráficos */
.historia-graficos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.historia-graficos .grafico {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.historia-graficos img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Gastronomía */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

/* Rutas */
.rutas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.ruta {
  flex: 1 1 250px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Galería */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
}

.carousel .slide {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;
}

.carousel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-controls {
  text-align: center;
  margin-top: 1rem;
}

/* Eventos */
.event {
  margin-bottom: 2rem;
}

/* Documental */
.video-frame {
  margin: 1rem 0;
}

.chapters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Contacto */
.contact {
  text-align: center;
}

.contact .btn {
  margin: 0.5rem;
}

/* Footer */
.site-footer {
  background: #222;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-row .social a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
}
/* =========================
   Base, tipografía y layout
   ========================= */
:root {
  --bg: #fafafa;
  --text: #333333;
  --muted: #666666;
  --soft: #f5f5f5;
  --primary: #c0392b;
  --secondary: #555555;
  --accent: #25d366;
  --border: #e5e5e5;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  margin: 0 0 0.5em;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   Header y navegación
   ========================= */
.site-header {
  background: #222;
  color: #fff;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  background: rgba(255,255,255,0.12);
}

.lang .btn-lang {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
}

/* =========================
   Botones
   ========================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
  border: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #a93226; }

.btn-secondary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: #444; }

.btn-whatsapp { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1eb65a; }

.btn-chip {
  background: #eee;
  color: #222;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.btn-icon {
  background: #eee;
  border: 1px solid var(--border);
  color: #222;
  font-size: 1.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* =========================
   Secciones y fondos
   ========================= */
.section { padding: 3.5rem 0; }
.bg-soft { background: var(--soft); }

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

.hero-meta {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.hero-actions .btn { margin: 0.35rem; }

/* =========================
   Historia (gráficos + reseñas)
   ========================= */
.historia-graficos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.grafico {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex: 1 1 240px;
  max-width: 300px; /* imágenes más pequeñas y estéticas */
  display: flex;
  flex-direction: column;
}

.grafico img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.grafico figcaption {
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* =========================
   Gastronomía (cards)
   ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  margin: 0 0 0.35rem;
}

.card-body p {
  color: var(--muted);
  margin: 0;
}

/* =========================
   Rutas (grid)
   ========================= */
.rutas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.ruta {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.ruta h3 { margin-bottom: 0.5rem; }
.ruta ul { margin: 0; padding-left: 1rem; }

/* =========================
   Mapa turístico (Leaflet)
   ========================= */
.mapa { margin-top: 2rem; }
.mapa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

#map {
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* =========================
   Galería (filtros + carrusel)
   ========================= */
.filters {
  margin-bottom: 1rem;
  text-align: center;
}

.filter-select {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-track { background: #eee; border-radius: 999px; }
.carousel::-webkit-scrollbar-thumb { background: #bbb; border-radius: 999px; }

.slide {
  flex: 0 0 auto;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.slide figcaption {
  padding: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

.carousel-controls {
  text-align: center;
  margin-top: 0.8rem;
}

/* =========================
   Eventos (listado)
   ========================= */
.event {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

/* =========================
   Documental (video + capítulos)
   ========================= */
.video-frame {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #000;
}

.chapters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

/* =========================
   Contacto
   ========================= */
.contact { text-align: center; }
.contact .btn { margin: 0.3rem; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #222;
  color: #fff;
  padding: 1rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-row .social a {
  color: #fff;
  margin-left: 1rem;
}

/* =========================
   Utilidades y accesibilidad
   ========================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

figure { margin: 0; }

/* =========================
   Responsivo
   ========================= */
@media (max-width: 992px) {
  .hero-bg { height: 460px; }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 42px; right: 0;
    background: #222;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    width: 220px;
    flex-direction: column;
    gap: 0.2rem;
  }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); }

  .hero-bg { height: 400px; }
  .hero-title { font-size: 1.9rem; }
  .hero-meta { font-size: 0.9rem; }

  .mapa-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-bg { height: 340px; }
  .hero-title { font-size: 1.6rem; }
  .grafico img { height: 160px; }
}

/* =========================
   Script auxiliar (opcional):
   Para abrir/cerrar menú en móvil
   ========================= */
/* Si implementas el JS de apertura del menú:
   document.querySelector('.nav-toggle').addEventListener('click', () => {
     document.querySelector('.nav-list').style.display =
       document.querySelector('.nav-list').style.display === 'flex' ? 'none' : 'flex';
   });
*/