/* ═══════════════════════════════════════════════════════════════════
   CAZORLA SIERRA VIVA — Design System (línea visual JPI)
   Tipografía única: Montserrat (300/400/500/600/700/800)
   Fallback histórico (no usado): DM Sans · Cormorant Garamond
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Tipografía JPI — todo Montserrat */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-serif:   'Montserrat', system-ui, -apple-system, sans-serif;
  /* Fallbacks históricos:
   * --font-sans-legacy:  'DM Sans', system-ui, -apple-system, sans-serif;
   * --font-serif-legacy: 'Cormorant Garamond', Georgia, serif;
   */
  --verde:       #a2a925;
  --verde-vivo:  #5c6012;
  --verde-luz:   #6e7418;
  --verde-oliva: #a2a925;
  --verde-ink:   #1c1f04;
  --amarillo:    #f5d402;
  --tierra:      #8a5e28;
  --ocre:        #6b5a1f;
  --piedra:      #6b5d4f;
  --oscuro:      #0e1410;
  --oscuro-2:    #141f17;
  --oscuro-3:    #1c2b20;
  --blanco:      #f8f5f0;
  --crema:       #ede8e0;
  --gris-medio:  #d8d4cc;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  /* Light theme */
  --bg:           #ffffff;
  --bg-alt:       #f7f6f1;
  --text:         #000000;
  --text-2:       rgba(0,0,0,0.65);
  --text-3:       rgba(0,0,0,0.62);
  --border:       rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);

  /* Typography (overridable from CMS) */
  --weight-headings: 700;
  --weight-body: 400;
  --weight-cards: 600;
  --size-body: 16px;
  --color-headings: #000000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.font-display { font-family: var(--font-display); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--verde-vivo); outline-offset: 3px; border-radius: 4px; }

/* ════════════════════════════════════════════════════════════════
   JPI HEADER (cabecera superior Jaén Paraíso Interior)
   Transparente encima del hero · sólida al hacer scroll
   ════════════════════════════════════════════════════════════════ */
.jpi-nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 110;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.jpi-nav.scrolled {
  /* De momento sin cabecera fija al hacer scroll: la barra se desplaza con
     la página (antes era position: fixed). */
  position: absolute; top: 0; left: 0; right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--gris-medio);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.jpi-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 1.5rem;
}
.jpi-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; color: #ffffff;
  flex-shrink: 0;
}
.jpi-logo svg { width: 36px; height: 36px; }
/* Logo oficial JPI: blanco sobre el hero, a color cuando la barra se vuelve sólida. */
.jpi-logo-img { height: 52px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter 0.3s; }
.jpi-nav.scrolled .jpi-logo-img { filter: none; }
.jpi-logo strong { font-size: 1.5rem; line-height: 1; font-weight: 700; }
.jpi-logo span {
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
  display: block; margin-top: 0.15rem; font-weight: 500;
}
.jpi-menu {
  display: none;
  gap: 2.25rem; list-style: none; padding: 0; margin: 0;
}
/* Temporalmente ocultos: solo se muestra el logo en la barra JPI.
   Se conserva el markup para poder reactivarlos en el futuro. */
.jpi-menu, .jpi-tools { display: none !important; }
.jpi-menu a {
  font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: #ffffff; font-weight: 500; padding: 0.5rem 0;
  display: flex; align-items: center; gap: 0.3rem;
  line-height: 1;
}
.jpi-menu a::after { content: '▾'; font-size: 0.7rem; opacity: .7; }
.jpi-tools { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.jpi-tools button {
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-family: inherit;
}
.jpi-tools svg { width: 20px; height: 20px; stroke: #ffffff; fill: none; stroke-width: 2; }
.jpi-lang { font-size: 0.85rem; font-weight: 600; }
.jpi-cta {
  background: var(--amarillo); color: #000000;
  padding: 0.65rem 1.4rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: none;
  text-decoration: none;
}
.jpi-cta:hover { background: #f5dd00; }
/* Estado scrolled: invertir colores a oscuro */
.jpi-nav.scrolled .jpi-logo,
.jpi-nav.scrolled .jpi-logo strong,
.jpi-nav.scrolled .jpi-menu a,
.jpi-nav.scrolled .jpi-tools button,
.jpi-nav.scrolled .jpi-lang { color: #000000; }
.jpi-nav.scrolled .jpi-logo span { color: #555; }
.jpi-nav.scrolled .jpi-tools svg { stroke: #000000; }

/* ════════════════════════════════════════════════════════════════
   CSV NAV — Barra SCSV verde oliva (debajo del hero, sticky)
   Conserva dropdowns, menú móvil y CTA originales.
   ════════════════════════════════════════════════════════════════ */
.csv-nav {
  /* De momento NO sticky: la barra de navegación se desplaza con la página
     y no se queda pegada arriba al hacer scroll (antes: position: sticky). */
  position: relative;
  top: 0; left: 0; right: 0;
  z-index: 95;
  background: var(--verde);
  color: #ffffff;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

/* En la barra oliva el estado "scrolled" sólo añade sombra (mismo color). */
.csv-nav.scrolled {
  background: var(--verde);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.csv-nav.scrolled .csv-nav-logo span { color: #ffffff !important; }
.csv-nav.scrolled .csv-nav-logo em { color: #ffffff !important; }
.csv-nav.scrolled .csv-nav-links a { color: rgba(255,255,255,0.85); }
.csv-nav.scrolled .csv-nav-links a:hover,
.csv-nav.scrolled .csv-nav-links a.active { color: #ffffff; }
.csv-nav.scrolled .csv-nav-dropdown-btn { color: rgba(255,255,255,0.85); }
.csv-nav.scrolled .csv-nav-dropdown-btn:hover { color: #ffffff; }
.csv-nav.scrolled .csv-nav-cta { border-color: rgba(255,255,255,0.4); color: #ffffff; }
.csv-nav.scrolled .csv-nav-cta:hover { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #ffffff; }
.csv-nav.scrolled .csv-hamburger span { background: #ffffff; }
.csv-nav.scrolled .csv-lang { color: rgba(255,255,255,0.7); }
.csv-nav.scrolled .csv-lang.active { color: var(--amarillo); }

.csv-nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-transform: uppercase;
}
.csv-nav-logo em { color: #ffffff; font-style: normal; font-weight: 700; }
.csv-nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: #ffffff; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.csv-nav-logo-text em { font-style: normal; font-weight: 700; color: #ffffff; }
.csv-nav-logo-img { max-height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }

.csv-logo-dot {
  width: 8px; height: 8px;
  background: var(--verde-luz);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.csv-nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  margin: 0; padding: 0;
}

@media (min-width: 1024px) { .csv-nav-links { display: flex; align-items: center; } }

.csv-nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  transition: color 0.2s;
}
.csv-nav-links a:hover,
.csv-nav-links a.active { color: #ffffff; }

/* Dropdown */
.csv-nav-dropdown { position: relative; display: flex; align-items: center; }
.csv-nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); transition: color 0.2s;
  display: flex; align-items: center; gap: 0.35rem;
  font-family: inherit;
}
.csv-nav-dropdown-btn:hover { color: #ffffff; }
.csv-nav-dropdown-btn svg { transition: transform 0.2s; }
.csv-nav-dropdown:hover .csv-nav-dropdown-btn svg { transform: rotate(180deg); }

.csv-nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  list-style: none; padding: 0.5rem 0; margin: 0.6rem 0 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 50;
}
.csv-nav-dropdown:hover .csv-nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.csv-nav-dropdown-menu li a {
  display: block; padding: 0.55rem 1.2rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: none;
  color: var(--text-2); transition: all 0.15s;
  white-space: nowrap;
}
.csv-nav-dropdown-menu li a:hover,
.csv-nav-dropdown-menu li a.active {
  color: var(--text); background: rgba(0,0,0,0.03);
}
/* Los enlaces del submenú están dentro de .csv-nav-links, por lo que en
   estado scrolled heredarían el color blanco de la barra (blanco sobre
   blanco = invisible). Forzamos texto oscuro legible en todos los estados. */
.csv-nav .csv-nav-dropdown-menu li a,
.csv-nav.scrolled .csv-nav-dropdown-menu li a { color: var(--text-2); }
.csv-nav .csv-nav-dropdown-menu li a:hover,
.csv-nav .csv-nav-dropdown-menu li a.active,
.csv-nav.scrolled .csv-nav-dropdown-menu li a:hover,
.csv-nav.scrolled .csv-nav-dropdown-menu li a.active { color: var(--text); background: rgba(0,0,0,0.03); }
/* Abrir el submenú también al togglearlo por click (clase .open vía JS). */
.csv-nav-dropdown.open .csv-nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* ── Mega-menú "Descubre el Parque" ─────────────────────────────
   Reutiliza el panel .csv-nav-dropdown-menu (apertura por hover/click)
   pero lo ensancha en columnas, una por pestaña temática. Anclado a la
   derecha porque es el último ítem de la barra (no se sale de pantalla). */
.csv-nav-dropdown--mega { position: relative; }
.csv-nav-mega {
  left: auto; right: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0.3rem 1.5rem;
  padding: 1.5rem 1.75rem;
  min-width: min(980px, 92vw);
  transform: translateY(8px);
}
.csv-nav-dropdown--mega:hover .csv-nav-mega,
.csv-nav-dropdown--mega.open .csv-nav-mega { transform: translateY(0); }
.csv-nav-mega-col { min-width: 0; }
.csv-nav-mega-head {
  display: block;
  padding: 0.35rem 0.4rem; margin-bottom: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.csv-nav-mega-col ul { list-style: none; margin: 0; padding: 0; }
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a {
  display: block; padding: 0.4rem 0.45rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  line-height: 1.3; white-space: normal;
  color: var(--text-2); border-radius: 6px; transition: all 0.15s;
}
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a:hover,
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a.active {
  color: var(--text); background: rgba(0,0,0,0.04);
}
.csv-nav .csv-nav-mega-head,
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a.is-catalogo { color: var(--verde-vivo); }
.csv-nav .csv-nav-mega-head:hover,
.csv-nav .csv-nav-mega-head.active,
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a.is-catalogo:hover { color: var(--verde-ink); }
.csv-nav .csv-nav-mega .csv-nav-mega-col ul li a.is-catalogo { font-weight: 600; }

/* Grupos del mega-menú en el menú móvil (cabecera de pestaña + sus enlaces). */
.csv-mobile-group-head {
  font-weight: 700 !important; text-transform: uppercase;
  font-size: 0.8rem !important; letter-spacing: 0.04em;
  color: var(--verde-luz) !important;
}
.csv-mobile-sub { padding-left: 1.1rem !important; opacity: 0.92; }

.csv-nav-right { display: flex; align-items: center; gap: 1rem; }

.csv-lang-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) { .csv-lang-bar { display: flex; } }

.csv-lang {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  cursor: pointer;
  padding: 0.25rem 0.3rem;
}
.csv-lang.active { color: var(--amarillo); }
.csv-lang:hover  { color: #ffffff; }

.csv-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.2s;
}
.csv-nav-cta:hover { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #ffffff; }

/* Hamburger */
.csv-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}
@media (min-width: 1024px) { .csv-hamburger { display: none; } }

.csv-hamburger span {
  display: block;
  height: 1px;
  background: var(--blanco);
  transition: all 0.3s;
}

/* Mobile menu */
.csv-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}
.csv-mobile-menu.open { transform: translateX(0); }

.csv-mobile-links { list-style: none; padding: 0; }
.csv-mobile-links li { border-bottom: 1px solid var(--border-light); }
.csv-mobile-links a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s, padding-left 0.2s;
}
.csv-mobile-links a:hover { color: var(--text); padding-left: 0.5rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--verde-vivo);
  color: var(--blanco);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 1px solid var(--verde-vivo);
}
.btn-primary:hover {
  background: var(--verde-vivo);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(31,92,50,0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
  background: rgba(0,0,0,0.02);
}
/* Hero (fondo oscuro): el botón secundario necesita texto y borde claros. */
.csv-hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
}
.csv-hero .btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255,255,255,0.12);
}

/* ── Section commons ─────────────────────────────────────────────── */
.csv-section { padding: clamp(4rem, 9vh, 8rem) clamp(1.5rem, 6vw, 7rem); }
.csv-bg-2 { background: var(--bg-alt); }
.csv-bg-3 { background: var(--bg-alt); }

.section-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--verde-vivo);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--verde-luz);
  flex-shrink: 0;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
}
.section-h2 em { font-style: normal; color: var(--verde-vivo); font-family: var(--font-display); font-weight: 700; }

/* ════════ Intro de marca del destino (home, antes de Imprescindibles) ════════
   Logo a color + leyenda editable desde el gestor (claves CMS intro.*).
   Réplica del bloque de marca de los microsites de Diputación. */
.csv-intro-brand {
  padding: clamp(3rem, 7vh, 6rem) clamp(1.5rem, 6vw, 7rem) 0;
}
.intro-brand-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.intro-brand-logo {
  flex: 0 0 auto;
  width: clamp(180px, 26vw, 280px);
  height: auto;
}
.intro-brand-fallback {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
}
.intro-brand-fallback em { font-style: normal; color: var(--verde-vivo); }
.intro-brand-texto {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 540px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
}
@media (max-width: 720px) {
  .intro-brand-inner { flex-direction: column; text-align: center; }
  .intro-brand-texto { min-width: 0; }
}

/* ════════════════════════════════════════════════════════════════
   HOME — contenido centrado (línea visual Jaén Paraíso Interior)
   Solo afecta a la home (body.is-home); el resto de páginas mantienen
   sus encabezados alineados a la izquierda.
   ════════════════════════════════════════════════════════════════ */
body.is-home .section-tag { justify-content: center; }
body.is-home .section-h2 { text-align: center; }
body.is-home .exp-header,
body.is-home .rutas-header {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
body.is-home .exp-intro { max-width: 60ch; margin-left: auto; margin-right: auto; }
body.is-home .rutas-home-links { justify-content: center; align-self: center; }

/* ── Hero ────────────────────────────────────────────────────────── */
.csv-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(31,92,50,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196,135,74,0.2) 0%, transparent 60%),
    linear-gradient(175deg, #0a1a0d 0%, #111c13 40%, #0e1410 100%);
}

/* Con imagen o vídeo de fondo */
.hero-has-media .hero-bg {
  background: none;
}

.hero-media-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-media-bg img,
.hero-media-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-media-bg video {
  pointer-events: none;
}

/* Degradado oscuro sobre la imagen/vídeo.
   La intensidad se controla con --hero-ov (clave CMS «hero.fondo_opacidad»):
   0 = imagen limpia · 1 = muy oscura. Por defecto 0.55. */
.hero-media-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,20,12,0.92) 0%, rgba(10,20,12,0.6) 45%, rgba(10,20,12,0.2) 100%),
    linear-gradient(to top, rgba(10,20,12,0.85) 0%, rgba(10,20,12,0) 55%);
  opacity: var(--hero-ov, 0.55);
  z-index: 1;
}

/* Tinte verde sobre la imagen (también escala con la opacidad gestionable) */
.hero-media-tint {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(15,50,20,0.5) 0%, transparent 70%);
  opacity: var(--hero-ov, 0.55);
  z-index: 1;
}

/* ── Landing «Próximamente» de la app (objetivo del QR) ── */
.app-landing {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 6vw, 4rem);
  background: linear-gradient(160deg, #14241a 0%, #0a1208 60%, #0a140c 100%);
  background-size: cover; background-position: center;
}
.app-landing-inner { max-width: 620px; }
.app-landing-logo {
  width: auto; height: clamp(120px, 22vh, 220px); max-width: 100%;
  margin: 0 auto 1.8rem; display: block;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.5));
}
.app-landing-badge {
  display: inline-block; margin-bottom: 1.2rem;
  padding: 0.35rem 1rem; border-radius: 100px;
  background: rgba(123,191,138,0.18); border: 1px solid var(--verde-luz, #7bbf8a);
  color: var(--verde-luz, #7bbf8a);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.app-landing-title {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; font-weight: 700;
  margin: 0 0 1rem;
}
.app-landing-text {
  color: rgba(248,245,240,0.8); font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7; max-width: 48ch; margin: 0 auto 2.2rem;
}
.app-landing-stores {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem;
}
.app-store-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 168px; padding: 0.7rem 1.2rem; border-radius: 12px;
  text-decoration: none; text-align: left;
  background: #fff; color: #14241a; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }
.app-store-btn.is-soon {
  background: transparent; color: rgba(248,245,240,0.75);
  border: 1px solid rgba(248,245,240,0.3); cursor: default;
}
.app-store-btn.is-soon:hover { transform: none; box-shadow: none; }
.app-store-sub { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.app-store-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.app-landing-link {
  display: inline-block; color: var(--verde-luz, #7bbf8a);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.app-landing-link:hover { border-color: var(--verde-luz, #7bbf8a); }

/* Logotipo oficial («la piña») sobre el lema del hero */
.hero-brand-logo {
  display: block;
  width: auto;
  height: clamp(96px, 16vh, 184px);
  max-width: 100%;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.35s forwards;
}

.hero-silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0,400 L0,280 C80,260 120,200 200,180 C280,160 320,220 400,200 C480,180 500,120 580,100 C660,80 680,140 760,130 C840,120 860,60 940,40 C1020,20 1040,80 1120,90 C1200,100 1240,60 1320,80 C1380,95 1420,140 1440,160 L1440,400 Z' fill='%230a1208' opacity='0.9'/%3E%3Cpath d='M0,400 L0,320 C60,300 100,260 180,250 C260,240 300,280 380,270 C460,260 490,220 570,210 C650,200 680,240 760,235 C840,230 870,190 950,185 C1030,180 1060,210 1140,220 C1220,230 1260,210 1340,220 L1440,230 L1440,400 Z' fill='%230c160e' opacity='0.95'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-lines { position: absolute; inset: 0; overflow: hidden; opacity: 0.07; }
.hero-line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--verde-luz) 40%, transparent 100%);
  animation: line-drift 10s ease-in-out infinite;
}
.hero-line:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 9s; }
.hero-line:nth-child(2) { left: 40%; animation-delay: -3s; animation-duration: 12s; }
.hero-line:nth-child(3) { left: 60%; animation-delay: -6s; animation-duration: 10s; }
.hero-line:nth-child(4) { left: 80%; animation-delay: -1s; animation-duration: 8s; }

@keyframes line-drift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 7rem) clamp(3rem, 8vh, 6rem);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero-content { grid-template-columns: 1fr auto; align-items: flex-end; }
}

.hero-label {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--verde-luz);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.3s forwards;
}
.hero-label::before { content:''; display:block; width:32px; height:1px; background:var(--verde-luz); }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.5s forwards;
}
.hero-h1 em { font-style: normal; color: var(--amarillo); font-family: var(--font-display); font-weight: 700; }
.hero-h1 .green { color: var(--amarillo); }

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(248,245,240,0.7);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.7s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.9s forwards;
}

.hero-stats {
  display: none;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1.1s forwards;
  text-align: right;
}
@media (min-width: 900px) { .hero-stats { display: block; } }

.hero-stat-item { margin-bottom: 2rem; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700;
  color: var(--blanco); line-height: 1;
  display: flex; align-items: baseline; justify-content: flex-end; gap: 0.2rem;
}
.hero-stat-num sup { font-size: 1rem; color: var(--verde-luz); }
.hero-stat-label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(248,245,240,0.6); margin-top: 0.2rem;
}

/* ── Sellos del territorio en el hero (sustituyen a las cifras de tamaño) ── */
.hero-seals {
  display: flex; flex-direction: column; gap: 1.1rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1.1s forwards;
}
@media (min-width: 900px) { .hero-seals { align-items: flex-end; text-align: right; } }
.hero-seal {
  display: flex; flex-direction: column;
  padding-left: 0.9rem;
  border-left: 2px solid var(--verde-luz, #7bbf8a);
  max-width: 22rem;
}
@media (min-width: 900px) {
  .hero-seal { padding-left: 0; padding-right: 0.9rem; border-left: 0; border-right: 2px solid var(--verde-luz, #7bbf8a); align-items: flex-end; }
}
.hero-seal-title {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; line-height: 1.15;
  color: var(--blanco, #fff);
}
.hero-seal-sub {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(248,245,240,0.65); margin-top: 0.25rem;
}

/* ── Bloque «Siete zonas» (estrategia del destino) ── */
.csv-zonas-home {
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.5rem, 6vw, 7rem);
  max-width: 1280px; margin: 0 auto;
}
.zonas-home-header { max-width: 60ch; margin: 0 auto 2.5rem; text-align: center; }
.zonas-home-intro {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--text-2); line-height: 1.7; margin-top: 1rem;
}
.zonas-home-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.zona-home-card { display: block; }
.zona-home-card-link {
  position: relative; display: block; height: 100%;
  padding: 1.2rem 1.2rem 1.3rem 1.5rem;
  background: var(--bg-alt, #f6f4ef); border: 1px solid var(--border, #e6e1d6);
  border-radius: 12px; text-decoration: none; overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.zona-home-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.10); }
/* Portada opcional (imagen de la zona desde el panel) */
.zona-home-card-cover {
  display: block;
  height: 130px;
  margin: -1.2rem -1.2rem 1rem -1.5rem;   /* sangra a los bordes de la tarjeta */
  background-size: cover; background-position: center;
}
.zona-home-card-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--zona-color, #3d9960);
}
.zona-home-card-num {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700; color: var(--text, #1a1a1a);
  letter-spacing: 0.08em;
}
.zona-home-card-nombre {
  display: block; font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700; color: var(--text, #1a1a1a);
  line-height: 1.2; margin: 0.2rem 0 0.5rem;
}
.zona-home-card-lema {
  display: block; font-size: 0.85rem; color: var(--text-2); line-height: 1.55;
}
.zonas-home-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-top: 2.5rem;
}

/* Intro de la sección de rutas (reencuadre «cientos de caminos») */
.rutas-home-intro {
  font-size: 0.95rem; color: var(--text-2); line-height: 1.7;
  max-width: 52ch; margin-top: 0.9rem;
}

.hero-video-toggle {
  position: absolute; bottom: 2.5rem; right: 2rem; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
  color: var(--blanco); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hero-video-toggle:hover { background: rgba(0,0,0,0.7); }
.hero-video-toggle:focus-visible { outline: 2px solid var(--verde-luz); outline-offset: 2px; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fade-up 0.8s var(--ease-out) 1.5s forwards;
}
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(248,245,240,0.55); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent); animation: scroll-drop 1.8s ease-in-out infinite; }

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Intro strip ─────────────────────────────────────────────────── */
.intro-strip {
  background: var(--bg-alt);
  padding: 2.5rem clamp(1.5rem, 6vw, 7rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border-top: 3px solid var(--verde-vivo);
  border-bottom: 1px solid var(--border-light);
}
.intro-strip-text {
  font-family: var(--font-display);
  font-size: 1.1rem; font-style: normal; font-weight: 500;
  color: var(--text);
}
.intro-strip-badges { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.strip-badge {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
}
.strip-badge::before { content: '●'; color: var(--verde-vivo); font-size: 0.5rem; }

/* ── Experiencias ────────────────────────────────────────────────── */
.exp-header {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: end; margin-bottom: 3.5rem;
}
@media (min-width: 768px) { .exp-header { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.exp-intro { font-size: 1rem; color: var(--text-2); line-height: 1.8; max-width: 40ch; }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 640px)  { .exp-grid { grid-template-columns: repeat(2,1fr); } }

.exp-card {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) {
  .exp-card { flex-direction: row; }
}
.exp-card:hover { border-color: rgba(31,92,50,0.2); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.exp-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}
@media (min-width: 640px) {
  .exp-card-img { width: 40%; min-width: 160px; height: auto; min-height: 180px; flex-shrink: 0; }
}
.exp-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.exp-card:hover .exp-card-img img { transform: scale(1.05); }

.exp-num {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.6rem; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.exp-num .exp-icon,
.exp-num svg {
  width: 1rem; height: 1rem;
  stroke: currentColor; stroke-width: 2;
  display: block;
}

.exp-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
  position: relative;
}
.exp-card-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: #000000; margin-bottom: 0.5rem; line-height: 1.2;
}
.exp-card-text {
  font-size: 0.88rem; color: var(--text-2);
  line-height: 1.6; flex: 1;
}
.exp-card-arrow {
  position: absolute; top: 1.4rem; right: 1.5rem;
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.75rem;
  transition: all 0.3s;
}
.exp-card-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem;
}
.exp-card-footer .exp-card-arrow {
  position: static; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.75rem; flex-shrink: 0;
  transition: all 0.3s;
}
.exp-card:hover .exp-card-footer .exp-card-arrow { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #fff; }
.exp-card-count { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; }
.exp-card:hover .exp-card-arrow { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #fff; transform: translate(2px,-2px); }

/* ── Cifras ──────────────────────────────────────────────────────── */
.cifras-wrap { padding: 0 clamp(1.5rem, 6vw, 7rem); }
.cifras-inner {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) { .cifras-inner { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.cifra-item { padding: 1rem 2rem; text-align: center; }
@media (min-width: 768px) {
  .cifra-item { border-right: 1px solid var(--border-light); }
  .cifra-item:first-child { padding-left: 0; }
  .cifra-item:last-child  { border-right: none; padding-right: 0; }
}

.cifra-num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.5vw, 3.8rem); font-weight: var(--weight-headings); color: var(--color-headings); line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.cifra-num span { color: var(--verde-luz); }
.cifra-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ── Mapa section ────────────────────────────────────────────────── */
.mapa-section {
  display: grid; grid-template-columns: 1fr;
  min-height: 560px;
}
@media (min-width: 900px) { .mapa-section { grid-template-columns: 1fr 1fr; min-height: 600px; } }

.mapa-content {
  background: var(--bg-alt);
  padding: clamp(3rem, 7vw, 7rem);
  display: flex; flex-direction: column; justify-content: center;
}
.mapa-content .section-h2 { margin-bottom: 1.5rem; }

.mapa-features { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-direction: column; gap: 1.2rem; }
.mapa-feature { display: flex; align-items: flex-start; gap: 1rem; font-size: 0.88rem; color: var(--text-2); }
.mapa-feature-icon { width: 36px; height: 36px; background: rgba(31,92,50,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; color: var(--verde-vivo); }
.mapa-feature strong { display: block; color: var(--text); font-size: 0.87rem; margin-bottom: 0.15rem; }

.mapa-preview {
  position: relative; background: var(--bg-alt);
  overflow: hidden; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.mapa-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.mapa-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(31,92,50,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(138,94,40,0.05) 0%, transparent 60%);
}

.mapa-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--verde-luz);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(61,153,96,0.2), 0 0 20px rgba(61,153,96,0.3);
  animation: map-ping 2.5s ease-in-out infinite;
}
@keyframes map-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.mapa-cta-float {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.mapa-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--verde-vivo);
  border: 1px solid var(--verde-vivo);
  border-radius: 100px;
  color: #fff;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s; white-space: nowrap;
}
.mapa-btn:hover { background: var(--verde-vivo); border-color: var(--verde-vivo); }

/* ── Mapa hero (home) ──────────────────────────────────────────── */
.mapa-hero-section {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 6rem);
  background: var(--bg-alt);
}
.mapa-hero-header { text-align: center; margin-bottom: 2rem; }
.mapa-hero-sub { font-size: 0.95rem; color: var(--text-2); max-width: 600px; margin: 1rem auto 0; }

/* Leyenda "Siete viajes, siete zonas" */
.zonas-legend {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.zonas-legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1.2rem;
  list-style: none; margin: 0; padding: 0;
}
.zonas-legend-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--text-2);
}
.zonas-legend-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 3px;
  flex: 0 0 14px; border: 1px solid var(--border);
}
.zonas-legend-name { line-height: 1.3; }
.csv-zona-tooltip {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 0.78rem !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
.csv-zona-tooltip::before { border-top-color: rgba(255,255,255,0.95) !important; }

.mapa-hero-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mapa-home-leaflet { width: 100%; height: 420px; background: var(--bg-alt); }
@media (min-width: 768px) { .mapa-home-leaflet { height: 520px; } }

.mapa-hero-overlay-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  flex-wrap: wrap;
}
.mapa-hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mapa-hero-stat { font-size: 0.8rem; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; }
.mapa-hero-stat strong { color: var(--verde-luz); font-size: 1rem; margin-right: 0.3rem; }

.mapa-hero-features {
  list-style: none; padding: 0; margin: 2.5rem auto 0;
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  max-width: 1000px;
}
@media (min-width: 768px) { .mapa-hero-features { grid-template-columns: repeat(3, 1fr); } }

.mapa-hero-feat {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.mapa-hero-feat-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(31,92,50,0.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--verde-vivo);
}
.mapa-hero-feat strong { display: block; color: var(--text); font-size: 0.85rem; margin-bottom: 0.2rem; }
.mapa-hero-feat span { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }

/* ── Infografías movilidad ─────────────────────────────────────── */
.infografia-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .infografia-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .infografia-grid { grid-template-columns: repeat(3, 1fr); } }

.infografia-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 16px; padding: 2rem; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  box-shadow: var(--shadow-sm);
}
.infografia-card:hover { border-color: rgba(31,92,50,0.2); transform: translateY(-2px); }

.infografia-icon {
  width: 72px; height: 72px; margin: 0 auto 1.2rem;
  background: rgba(31,92,50,0.08); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--verde-vivo); font-size: 1.8rem;
}
.infografia-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.infografia-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--verde-vivo); font-weight: 700; line-height: 1; margin-bottom: 0.3rem; }
.infografia-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }

.infografia-flow {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 3rem;
}
@media (min-width: 768px) { .infografia-flow { flex-direction: row; } }

.infografia-step {
  flex: 1; position: relative; padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
}
.infografia-step:first-child { border-radius: 16px 16px 0 0; }
.infografia-step:last-child { border-radius: 0 0 16px 16px; }
@media (min-width: 768px) {
  .infografia-step:first-child { border-radius: 16px 0 0 16px; }
  .infografia-step:last-child { border-radius: 0 16px 16px 0; }
}

.infografia-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--verde-vivo); color: #fff;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem;
}
.infografia-step h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text); }
.infografia-step p { font-size: 0.82rem; color: var(--text-2); line-height: 1.4; }

/* ── Rutas list ──────────────────────────────────────────────────── */
.rutas-header {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .rutas-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.rutas-home-links { display: flex; gap: 0.5rem; flex-wrap: wrap; align-self: flex-start; }
.rutas-home-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-2); background: var(--bg-alt); border: 1px solid var(--border-light);
  transition: all 0.2s;
}
.rutas-home-link:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); background: rgba(31,92,50,0.04); }

.rutas-tabs {
  display: flex; gap: 0.3rem;
  background: var(--bg-alt);
  padding: 0.3rem; border-radius: 100px;
  align-self: flex-start;
}
.rutas-tab {
  padding: 0.45rem 1.1rem; border-radius: 100px; min-height: 44px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); cursor: pointer;
  transition: all 0.2s; border: none; background: none;
  display: inline-flex; align-items: center;
}
.rutas-tab.active { background: var(--verde-vivo); color: #fff; }

.rutas-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-light); }
.ruta-row {
  background: var(--bg);
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 1rem;
  transition: background 0.2s; cursor: pointer;
}
@media (min-width: 768px) {
  .ruta-row { grid-template-columns: 3fr 1fr 1fr 1fr auto; padding: 1.4rem 2rem; }
}
.ruta-row:hover { background: var(--bg-alt); }

.ruta-name-wrap { min-width: 0; }
.ruta-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.4rem;
}
.badge-muy_facil, .badge-facil { background: rgba(31,92,50,0.1); color: var(--verde-vivo); }
.badge-moderada { background: rgba(107,90,31,0.1); color: var(--ocre); }
.badge-dificil  { background: rgba(138,94,40,0.1);  color: var(--tierra); }
.badge-muy_dificil { background: rgba(220,50,50,0.1); color: #c43030; }

.ruta-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruta-meta { font-size: 0.78rem; color: var(--text-2); text-align: center; display: none; }
@media (min-width: 768px) { .ruta-meta { display: block; } }
.ruta-meta strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 0.1rem; }
.ruta-gpx {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); transition: all 0.2s;
}
.ruta-row:hover .ruta-gpx { border-color: var(--verde-luz); color: var(--verde-vivo); }

/* ── Quote ───────────────────────────────────────────────────────── */
.csv-quote {
  background: var(--bg-alt);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
  position: relative; overflow: hidden;
}
.csv-quote::before {
  content: '"'; position: absolute; top: -2rem; left: 4%;
  font-family: var(--font-display); font-size: clamp(12rem, 25vw, 28rem);
  color: rgba(31,92,50,0.04); line-height: 1; pointer-events: none; font-style: normal; font-weight: 700;
}
.quote-inner {
  max-width: 820px; margin: 0 auto; text-align: left; position: relative; z-index: 1;
  border-left: 4px solid var(--verde-vivo); padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.quote-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; font-style: normal; line-height: 1.4; color: var(--text); margin-bottom: 1.5rem; }
.quote-text em { color: var(--verde-vivo); font-style: normal; font-weight: 700; }
.quote-attr { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-2); }

/* ── Agenda month navigation ─────────────────────────────────────── */
.agenda-months {
  display: flex; gap: 0.25rem;
  padding: 1rem clamp(1.5rem, 6vw, 7rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.agenda-months::-webkit-scrollbar { display: none; }
.agenda-month-pill {
  flex-shrink: 0;
  padding: 0.45rem 1rem; min-height: 44px;
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.agenda-month-pill:hover { color: var(--text); background: rgba(0,0,0,0.03); }
.agenda-month-pill.active { background: var(--verde-vivo); color: #fff; }
.agenda-month-full { display: none; }
@media (min-width: 1024px) { .agenda-month-short { display: none; } .agenda-month-full { display: inline; } }

/* ── Eventos ─────────────────────────────────────────────────────── */
.eventos-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-light); margin-top: 3rem; }
@media (min-width: 640px)  { .eventos-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1200px) { .eventos-grid { grid-template-columns: repeat(4,1fr); } }

.evento-card {
  background: var(--bg); padding: 2rem 1.8rem;
  display: flex; gap: 1.5rem; cursor: pointer; transition: background 0.2s;
}
.evento-card:hover { background: var(--bg-alt); }
.evento-date { flex-shrink: 0; width: 52px; text-align: center; }
.evento-day { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.2rem; }
.evento-month { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verde-vivo); }
.evento-body { flex: 1; min-width: 0; }
.evento-tipo { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tierra); margin-bottom: 0.5rem; }
.evento-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--weight-cards); color: var(--color-headings); margin-bottom: 0.5rem; line-height: 1.2; }
.evento-lugar { font-size: 0.76rem; color: var(--text-2); }

/* Evento card v2 (with image) */
.evento-card-v2 {
  background: var(--bg); overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.evento-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }
.evento-card-v2-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); position: relative; }
.evento-card-v2-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.evento-card-v2:hover .evento-card-v2-img img { transform: scale(1.05); }
.evento-card-v2-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--oscuro-2), var(--oscuro-3));
}
.evento-card-v2-day { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--blanco); line-height: 1; }
.evento-card-v2-monthbig { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--verde-luz); }
.evento-card-v2-date-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 0.5rem 0.7rem;
  text-align: center; min-width: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.evento-card-v2-badge-day { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1; }
.evento-card-v2-badge-month { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde-vivo); }
.evento-card-v2-body { padding: 1.4rem 1.5rem; flex: 1; }

/* ── Blog ────────────────────────────────────────────────────────── */
.blog-home-layout { margin-top: 3rem; }
.blog-home-layout .blog-featured {
  border-radius: 16px; margin-bottom: 1.5rem;
}

.blog-featured {
  position: relative; overflow: hidden; min-height: 380px;
  cursor: pointer; background: var(--bg);
  display: flex; flex-direction: column;
}
@media (min-width: 900px) { .blog-featured { min-height: 440px; } }

.blog-featured-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease-out);
}
.blog-featured-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
}
.blog-featured:hover .blog-featured-bg { transform: scale(1.03); }

.blog-featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 2.5rem;
}
.blog-featured-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #a8e6a0; margin-bottom: 0.6rem; }
.blog-featured-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 0.6rem; }
.blog-featured-date { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

.blog-home-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border-light); border-radius: 16px; overflow: hidden;
}
@media (min-width: 640px) { .blog-home-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .blog-home-grid { grid-template-columns: 1fr 1fr 1fr; } }

.blog-item { background: var(--bg); padding: 1.6rem; cursor: pointer; transition: background 0.2s; }
.blog-item:hover { background: var(--bg-alt); }
.blog-item-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tierra); margin-bottom: 0.4rem; }
.blog-item-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: var(--weight-cards); color: var(--color-headings); line-height: 1.25; margin-bottom: 0.4rem; }
.blog-item-excerpt { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Imprescindibles ────────────────────────────────────────────── */
.impr-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 3rem;
}
@media (min-width: 640px)  { .impr-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .impr-grid { grid-template-columns: repeat(4,1fr); } }

.impr-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.impr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }

.impr-card-img {
  height: 180px; overflow: hidden; background: var(--bg-alt); position: relative;
}
.impr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.impr-card:hover .impr-card-img img { transform: scale(1.05); }
.impr-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; background: linear-gradient(135deg, var(--bg-alt), var(--bg));
}

.impr-card-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.impr-card-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #000000; margin-bottom: 0.5rem; line-height: 1.2; }
.impr-card-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.impr-card-link { font-size: 0.78rem; font-weight: 600; color: var(--verde-vivo); }
.impr-card:hover .impr-card-link { text-decoration: underline; }

/* ── Sostenibilidad banner ──────────────────────────────────────── */
.sost-banner {
  background: var(--bg-alt); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.sost-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) { .sost-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }

.sost-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-top: 1.2rem; max-width: 50ch; }

.sost-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.sost-stat { text-align: center; }
.sost-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--verde-vivo); line-height: 1; margin-bottom: 0.3rem; }
.sost-stat-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

.sost-visual { display: flex; align-items: center; justify-content: center; }
.sost-visual img { width: 100%; max-width: 400px; border-radius: 16px; }
.sost-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sost-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
  padding: 1.5rem; background: var(--bg); border: 1px solid var(--border-light); border-radius: 12px;
}
.sost-icon-item span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

/* ── Red de Nodos / Aparcamientos ──────────────────────────────── */
.nodos-header {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) { .nodos-header { grid-template-columns: 1fr 1fr; align-items: end; } }
.nodos-intro {
  font-size: 0.95rem; color: var(--text-2); line-height: 1.7; max-width: 50ch;
}

.nodos-summary {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  max-width: 1200px; margin: 2.5rem auto 0;
  background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 16px;
  padding: 2rem;
}
@media (min-width: 640px) { .nodos-summary { grid-template-columns: repeat(4, 1fr); } }
.nodos-summary-item { text-align: center; }
.nodos-summary-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--verde-vivo); line-height: 1; margin-bottom: 0.3rem;
}
.nodos-summary-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}

.nodos-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  max-width: 1200px; margin: 2.5rem auto 0;
}
@media (min-width: 640px) { .nodos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nodos-grid { grid-template-columns: repeat(3, 1fr); } }

.nodo-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 14px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nodo-card:hover {
  border-color: rgba(31,92,50,0.2); box-shadow: var(--shadow-md); transform: translateY(-2px);
}

.nodo-card-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.nodo-card-status {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 0.35rem; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.nodo-card-info { flex: 1; min-width: 0; }
.nodo-card-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: var(--weight-cards);
  color: var(--color-headings); line-height: 1.3; margin: 0;
}
.nodo-card-location {
  font-size: 0.75rem; color: var(--text-3); margin-top: 0.15rem; display: block;
}

.nodo-card-capacity { }
.nodo-capacity-bar {
  height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden;
}
.nodo-capacity-fill {
  height: 100%; border-radius: 3px; transition: width 0.6s var(--ease-out);
}
.nodo-capacity-text {
  display: flex; justify-content: space-between; margin-top: 0.4rem;
  font-size: 0.72rem;
}
.nodo-capacity-free { font-weight: 600; color: var(--verde-vivo); }
.nodo-capacity-total { color: var(--text-3); }

.nodo-card-services {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.nodo-service {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 8px;
  color: var(--verde-vivo); transition: background 0.2s;
}
.nodo-card:hover .nodo-service { background: rgba(31,92,50,0.06); }

.nodo-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem; border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
}
.nodo-horario { color: var(--text-3); }
.nodo-estado-badge { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.65rem; }

/* ── Folletos / Recursos ────────────────────────────────────────── */
.recursos-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 3rem;
}
@media (min-width: 640px)  { .recursos-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .recursos-grid { grid-template-columns: repeat(4,1fr); } }

.recurso-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 2rem 1.5rem; display: flex; flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.recurso-card:hover { border-color: rgba(31,92,50,0.2); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.recurso-icon { color: var(--verde-vivo); margin-bottom: 1.2rem; }
.recurso-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--weight-cards); color: var(--color-headings); margin-bottom: 0.5rem; }
.recurso-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; flex: 1; margin-bottom: 1.2rem; }
.recurso-cta { font-size: 0.78rem; font-weight: 600; color: var(--verde-vivo); }
.recurso-card:hover .recurso-cta { text-decoration: underline; }

/* ── Redes sociales ─────────────────────────────────────────────── */
.social-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
  border-bottom: 1px solid var(--border-light);
}
.social-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) { .social-inner { grid-template-columns: 1fr 1fr; align-items: center; } }

.social-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-top: 1rem; max-width: 45ch; }

.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem 2rem; background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--verde-vivo);
}
.social-card:hover { border-color: rgba(31,92,50,0.2); box-shadow: var(--shadow-sm); }
.social-card-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--weight-cards); color: var(--color-headings); }
.social-card-handle { font-size: 0.78rem; color: var(--text-2); margin-top: 0.15rem; }

/* ── Newsletter ──────────────────────────────────────────────────── */
.csv-newsletter { background: var(--bg-alt); padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 7rem); }
.newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter-inner .section-tag { justify-content: center; }
.newsletter-inner .section-h2 { font-size: clamp(1.8rem, 3.5vw, 3.5rem); margin-bottom: 1rem; }
.newsletter-sub { font-size: 0.95rem; color: var(--text-2); margin-bottom: 2.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 0.85rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text); font-family: var(--font-sans); font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--text-3); }
.newsletter-input:focus { border-color: var(--verde-vivo); }
.newsletter-submit {
  padding: 0.85rem 1.5rem; background: var(--verde-vivo);
  border: none; border-radius: 100px; color: #fff;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.newsletter-submit:hover { background: var(--verde-vivo); }
.newsletter-langs { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.lang-dot { width: 5px; height: 5px; background: var(--verde-luz); border-radius: 50%; }
.newsletter-langs span { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ── Footer ──────────────────────────────────────────────────────── */
.csv-footer {
  background: var(--bg-alt);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 7rem);
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; } }

.footer-logo { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.1; }
.footer-logo em { font-style: normal; color: var(--verde-vivo); font-weight: 700; }
.footer-logo span { font-size: inherit; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.1; }
.footer-logo span em { font-style: normal; color: var(--verde-vivo); font-weight: 700; }
.footer-dot { width: 8px; height: 8px; background: var(--verde-luz); border-radius: 50%; }
.footer-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; max-width: 32ch; margin-bottom: 1.5rem; font-weight: 400; }
.footer-prtr { font-size: 0.75rem; color: var(--text-2); line-height: 1.6; border-left: 2px solid var(--border); padding-left: 0.8rem; font-style: normal; }
.footer-col h2 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde-vivo); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li a { font-size: 0.82rem; color: var(--text-2); transition: color 0.2s; }
.footer-col li a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border-light);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.footer-copy { font-size: 0.72rem; color: var(--text-3); }
.footer-social { display: flex; gap: 0.8rem; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-2); transition: all 0.2s;
}
.social-link:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); background: rgba(31,92,50,0.05); }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Leaflet overrides ───────────────────────────────────────────── */
.leaflet-container { z-index: 1; font-family: var(--font-sans); }
.leaflet-popup-content-wrapper { background: var(--bg); color: var(--text); border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.12); border: 1px solid var(--border); }
.leaflet-popup-content { margin: 12px 16px; font-family: var(--font-sans); font-size: 13px; }
.leaflet-popup-tip { background: var(--bg); }

/* ── Prose override ──────────────────────────────────────────────── */
.prose { color: var(--text-2); }
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); color: var(--text); }
.prose a { color: var(--verde-vivo); }

/* ── Utilities ───────────────────────────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Page header (inner pages) ───────────────────────────────────── */
.page-hero {
  padding: 9rem clamp(1.5rem, 6vw, 7rem) 4rem;
  background: var(--oscuro-2);
  position: relative;
  overflow: hidden;
}
.page-hero.has-bg { min-height: 420px; display: flex; align-items: flex-end; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, #0e1410 0%, rgba(14,20,16,0.65) 50%, rgba(14,20,16,0.3) 100%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(31,92,50,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero.has-bg::before { display: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.6);
  margin-bottom: 1.5rem;
}
.page-breadcrumb a { color: rgba(248,245,240,0.6); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--verde-luz); }
.page-breadcrumb span { color: rgba(248,245,240,0.55); }
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.005em; color: #ffffff;
  text-transform: uppercase;
}
.page-h1 em { font-style: normal; color: var(--amarillo); font-weight: 700; }
.page-sub { font-size: 1rem; color: rgba(248,245,240,0.7); max-width: 50ch; margin-top: 1.2rem; line-height: 1.7; }

/* ── Filter bar ──────────────────────────────────────────────────── */
.filter-bar {
  padding: 1.5rem clamp(1.5rem, 6vw, 7rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.filter-input, .filter-select {
  padding: 0.55rem 1rem; min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text); font-family: var(--font-sans); font-size: 0.82rem;
  outline: none; transition: border-color 0.2s;
}
.filter-input::placeholder { color: var(--text-3); }
.filter-input:focus, .filter-select:focus { border-color: var(--verde-vivo); }
.filter-select option { background: var(--bg); color: var(--text); }
.filter-btn {
  padding: 0.55rem 1.2rem; min-height: 44px;
  background: var(--verde-vivo); border: none; border-radius: 100px;
  color: #fff; font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.filter-btn:hover { background: var(--verde-vivo); }
.filter-clear {
  padding: 0.55rem 1rem; min-height: 44px;
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-2); font-family: var(--font-sans);
  font-size: 0.78rem; background: none; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.filter-clear:hover { border-color: rgba(0,0,0,0.2); color: var(--text); }
.filter-count {
  font-size: 0.72rem; color: var(--text-3);
  margin-left: auto;
}

/* ── Cards grid ──────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.poi-card {
  background: var(--bg);
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.poi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }
.poi-card-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-alt); position: relative;
}
.poi-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.poi-card:hover .poi-card-img img { transform: scale(1.05); }
.poi-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-alt), var(--bg)); }
.poi-card-badges {
  position: absolute; top: 0.75rem; right: 0.75rem;
  display: flex; gap: 0.3rem;
}
.poi-badge {
  padding: 0.2rem 0.5rem; border-radius: 4px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.poi-badge-ar  { background: rgba(124,58,237,0.85); color: #e9d5ff; }
.poi-badge-360 { background: rgba(37,99,235,0.85);  color: #bfdbfe; }
.poi-badge-pmr { background: rgba(3,105,161,0.85);  color: #bae6fd; }
.poi-card-body { padding: 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.poi-card-cat { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.poi-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: var(--weight-cards); color: var(--color-headings); line-height: 1.25; margin-bottom: 0.3rem; }
.poi-card-desc { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; margin: 0 0 0.6rem; flex: 1; }
.poi-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.poi-card-mun { font-size: 0.72rem; color: var(--text-3); }
.poi-card-rating { display: flex; align-items: center; gap: 0.1rem; font-size: 0.7rem; }
.poi-card-rating-num { font-size: 0.68rem; color: var(--text-2); margin-left: 0.25rem; font-weight: 600; }
.poi-star { color: var(--border); }
.poi-star--filled { color: #d4a017; }

/* POI featured card */
.poi-featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
@media(min-width:768px) { .poi-featured { grid-template-columns: 1.3fr 1fr; } }
.poi-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.poi-featured-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
@media(min-width:768px) { .poi-featured-img { aspect-ratio: auto; min-height: 320px; } }
.poi-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.poi-featured:hover .poi-featured-img img { transform: scale(1.05); }
.poi-featured-body {
  padding: clamp(1.5rem,3vw,2.5rem); display: flex; flex-direction: column; justify-content: center;
}
.poi-featured-title {
  font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 700; color: var(--color-headings); line-height: 1.2; margin-bottom: 0.6rem;
}
.poi-featured-excerpt {
  font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin: 0 0 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.poi-featured-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--text-3); margin-bottom: 1rem; }
.poi-featured-cta { font-size: 0.82rem; font-weight: 600; color: var(--verde-vivo); }
.poi-featured:hover .poi-featured-cta { text-decoration: underline; }

/* Category chips bar */
.cat-chips-bar {
  display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center;
  padding: 1rem clamp(1.5rem,6vw,7rem); background: var(--bg);
  border-bottom: 1px solid var(--border-light); overflow-x: auto;
}
.cat-chip {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  background: var(--bg-alt); border: 1px solid var(--border-light);
  font-size: 0.72rem; font-weight: 600; color: var(--text-2);
  white-space: nowrap; transition: all 0.2s; text-decoration: none;
}
.cat-chip:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.cat-chip--active { background: var(--verde-vivo); color: #fff; border-color: var(--verde-vivo); }
.cat-chip--active:hover { background: var(--verde-vivo); color: #fff; }
.cat-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-chip--active .cat-chip-dot { background: rgba(255,255,255,0.5) !important; }
@media(min-width:768px) { .filter-select--mobile { display: none; } }

/* Filter map link */
.filter-map-link {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; color: var(--verde-vivo);
  white-space: nowrap; text-decoration: none;
}
.filter-map-link:hover { text-decoration: underline; }

/* Pagination */
.pois-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; margin-top: 3rem; flex-wrap: wrap;
}
.pag-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 0.7rem;
  border: 1px solid var(--border-light); border-radius: 8px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-2);
  background: var(--bg); text-decoration: none; transition: all 0.2s;
}
.pag-btn:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.pag-btn--active { background: var(--verde-vivo); color: #fff; border-color: var(--verde-vivo); }
.pag-ellipsis { color: var(--text-3); font-size: 0.82rem; padding: 0 0.3rem; }

/* ── Ruta card ───────────────────────────────────────────────────── */
.ruta-card {
  background: var(--bg); overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.ruta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }
.ruta-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-alt); }
.ruta-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.ruta-card:hover .ruta-card-img img { transform: scale(1.05); }
.ruta-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-alt), var(--bg)); }
.ruta-card-dif { position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 4px; }
.ruta-card-body { padding: 1.4rem 1.5rem; }
.ruta-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: var(--weight-cards); color: var(--color-headings); margin-bottom: 0.8rem; line-height: 1.2; }
.ruta-card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--text-2); flex-wrap: wrap; }
.ruta-gpx-badge { padding: 0.15rem 0.45rem; border: 1px solid rgba(31,92,50,0.2); border-radius: 4px; color: var(--verde-vivo); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; }
.ruta-card-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.6rem; }
.ruta-closed-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  background: rgba(196,48,48,0.12); color: #c43030;
}

/* Rutas tabs bar */
.rutas-tabs-bar {
  display: flex; gap: 0.3rem; align-items: center;
  padding: 0.6rem clamp(1.5rem,6vw,7rem);
  background: var(--bg); border-bottom: 1px solid var(--border-light);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.rutas-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: all 0.2s;
}
.rutas-tab svg { flex-shrink: 0; opacity: 0.6; }
.rutas-tab:hover { background: var(--bg-alt); color: var(--verde-vivo); border-color: var(--border-light); }
.rutas-tab:hover svg { opacity: 1; }
.rutas-tab--active { background: var(--verde-vivo); color: #fff; border-color: var(--verde-vivo); }
.rutas-tab--active svg { opacity: 1; stroke: #fff; }
.rutas-tab--active:hover { background: var(--verde-vivo); color: #fff; border-color: var(--verde-vivo); }
.rutas-tab--mapa {
  margin-left: auto; color: var(--verde-vivo); border: 1px solid rgba(31,92,50,0.2);
}
.rutas-tab--mapa svg { opacity: 1; }
.rutas-tab--mapa:hover { background: rgba(31,92,50,0.06); border-color: var(--verde-vivo); }

/* Ruta featured card */
.ruta-featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
@media(min-width:768px) { .ruta-featured { grid-template-columns: 1.3fr 1fr; } }
.ruta-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ruta-featured-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
@media(min-width:768px) { .ruta-featured-img { aspect-ratio: auto; min-height: 320px; } }
.ruta-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ruta-featured:hover .ruta-featured-img img { transform: scale(1.05); }
.ruta-featured-body {
  padding: clamp(1.5rem,3vw,2.5rem); display: flex; flex-direction: column; justify-content: center;
}
.ruta-featured-meta-top {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 0.6rem;
}
.ruta-meta-item {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; color: var(--text-2);
}
.ruta-meta-item svg { flex-shrink: 0; opacity: 0.5; }
.ruta-featured-title {
  font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 700; color: var(--color-headings); line-height: 1.2; margin-bottom: 0.6rem;
}
.ruta-featured-excerpt {
  font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin: 0 0 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ruta-featured-bottom {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}
.ruta-featured:hover .poi-featured-cta { text-decoration: underline; }

/* ── Empty state ─────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 6rem 2rem; }
.empty-state p { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-3); margin-bottom: 1.5rem; }

/* ── Pagination ──────────────────────────────────────────────────── */
.csv-pagination {
  padding: 3rem clamp(1.5rem, 6vw, 7rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bg);
}
.pagination-info { font-size: 0.78rem; color: var(--text-3); }
.pagination-links { display: flex; gap: 0.3rem; }
.pagination-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.82rem; color: var(--text-2);
  transition: all 0.2s;
}
.pagination-link:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.pagination-link.active { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #fff; }
.pagination-link.disabled { opacity: 0.2; pointer-events: none; }

/* ── Single article ──────────────────────────────────────────────── */
.article-layout { padding: clamp(2rem,4vw,5rem) clamp(1.5rem, 6vw, 7rem); }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width:1024px) { .article-grid { grid-template-columns: 1fr 340px; } }
.article-main { min-width: 0; }
.article-sidebar { }
.article-cover { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 2.5rem; background: var(--bg-alt); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.article-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.7rem; border: 1px solid var(--border); border-radius: 100px; color: var(--text-2); }
.article-tag.green { border-color: rgba(31,92,50,0.2); color: var(--verde-vivo); }
.article-h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.5rem); font-weight: var(--weight-headings); line-height: 1.1; color: var(--color-headings); margin-bottom: 1.2rem; }
.article-meta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); display: flex; gap: 1.5rem; flex-wrap: wrap; }
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text-2); }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--weight-headings); color: var(--color-headings); margin: 2.5rem 0 1rem; }
.article-body a { color: var(--verde-vivo); }
.article-body strong { color: var(--text); font-weight: 600; }

/* ── Sidebar card ────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--bg); border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-head { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border-light); }
.sidebar-card-head h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }
.sidebar-card-body { padding: 1.5rem; }
.sidebar-dl { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.sidebar-row dt { color: var(--text-2); }
.sidebar-row dd { color: var(--text); font-weight: 500; text-align: right; }
.sidebar-map { height: 200px; border-radius: 12px; overflow: hidden; }

/* ── Mapa page ───────────────────────────────────────────────────── */
/* ── Página /mapa: cabecera sólida de dos barras (no tiene hero) ──────
   Sin un hero detrás, la barra JPI (normalmente transparente y absoluta)
   se solapaba con la barra verde SCSV. En esta página la mostramos sólida
   y en flujo, apilada sobre la verde. El mapa ocupa el viewport restante
   (~153px = JPI ≈93 + SCSV 60) y el footer queda debajo. */
body.is-mapa .jpi-nav,
body.no-hero .jpi-nav {
  position: static;
  background: #ffffff;
  border-bottom: 1px solid var(--gris-medio);
}
body.is-mapa .jpi-logo-img,
body.no-hero .jpi-logo-img { filter: none; }   /* logo a color sobre fondo blanco */
body.is-mapa .mapa-page-layout { margin-top: 0; height: calc(100svh - 153px); }

.mapa-page-layout { display: flex; height: calc(100svh - 68px); overflow: hidden; margin-top: 68px; }
.mapa-sidebar { width: 360px; min-width: 300px; flex-shrink: 0; overflow: hidden; display: none; border-right: 1px solid var(--border-light); flex-direction: column; }
@media(min-width:768px) { .mapa-sidebar { display: flex; } }
.mapa-sidebar-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.mapa-area { flex: 1; position: relative; }
.mapa-full { width: 100%; height: 100%; }
.mapa-mobile-btn {
  position: absolute; top: 1rem; left: 1rem; z-index: 20;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer;
}
@media(min-width:768px) { .mapa-mobile-btn { display: none; } }
.mapa-sidebar--open {
  display: flex !important; position: absolute; top: 0; left: 0; bottom: 0;
  width: 100%; z-index: 30; background: var(--bg);
}
@media(min-width:768px) { .mapa-sidebar--open { position: static; width: 360px; } }
.mapa-sidebar-close {
  display: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); border: none; font-size: 1rem; color: var(--text-2);
  cursor: pointer; flex-shrink: 0; align-items: center; justify-content: center;
}
.mapa-sidebar--open .mapa-sidebar-close { display: flex; }
@media(min-width:768px) { .mapa-sidebar-close { display: none !important; } }
.mapa-legend {
  position: absolute; bottom: 1.5rem; right: 1rem; z-index: 20;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.2rem; font-size: 0.72rem; display: none;
}
@media(min-width:640px) { .mapa-legend { display: block; } }
.mapa-legend-title { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.8rem; }
.legend-item { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); margin-bottom: 0.4rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-line { width: 20px; height: 2px; border-radius: 1px; flex-shrink: 0; }

/* ── Planificador de rutas ──────────────────────────────────────── */
#modo-explorar { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
#modo-planificar { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

.plan-sidebar-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 1.2rem 1rem; border-bottom: 1px solid var(--border-light);
}
.plan-toggle-btn {
  display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0;
  padding: 0.5rem 1rem; border-radius: 100px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  transition: all 0.2s;
}
.plan-toggle-btn:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.plan-toggle-btn.active {
  background: var(--verde-vivo); color: #fff; border-color: var(--verde-vivo);
}
.plan-hint {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--verde-vivo); margin: 0;
  background: rgba(31,92,50,0.06); padding: 0.6rem 0.8rem; border-radius: 8px;
}
.plan-footer {
  border-top: 1px solid var(--border-light); padding: 1rem 1.2rem;
  background: var(--bg-alt);
}
.plan-stats {
  display: flex; gap: 1.5rem; margin-bottom: 1rem;
}
.plan-stat { text-align: center; flex: 1; }
.plan-stat-num {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--verde-vivo); line-height: 1;
}
.plan-stat-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3); margin-top: 0.2rem;
}
.plan-actions { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.plan-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.plan-btn-primary { background: var(--verde-vivo); color: #fff; }
.plan-btn-primary:hover { background: var(--verde-vivo); }
.plan-btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.plan-btn-secondary:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.plan-btn-clear {
  display: block; width: 100%; padding: 0.5rem; border: none; background: none;
  color: var(--text-3); font-size: 0.72rem; cursor: pointer; text-align: center;
}
.plan-btn-clear:hover { color: #c0392b; }
.plan-email-form {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
}
.plan-email-input {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.82rem; font-family: inherit;
  background: var(--bg); color: var(--text);
}

/* Waypoint items */
.plan-wp-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border-light);
}
.plan-wp-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--verde-vivo); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-wp-info { flex: 1; min-width: 0; }
.plan-wp-name { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-wp-type { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-wp-btns { display: flex; gap: 0.2rem; flex-shrink: 0; }
.plan-wp-btn {
  width: 22px; height: 22px; border: 1px solid var(--border-light);
  border-radius: 4px; background: var(--bg); color: var(--text-3);
  font-size: 0.6rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.plan-wp-btn:hover { border-color: var(--verde-vivo); color: var(--verde-vivo); }
.plan-wp-btn-del:hover { border-color: #c0392b; color: #c0392b; }

/* Plan marker on map */
.plan-marker { background: none !important; border: none !important; }
.plan-marker-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--verde-vivo); color: #fff; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Galería ─────────────────────────────────────────────────────── */
.galeria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
@media(min-width:640px) { .galeria-grid { grid-template-columns: repeat(3, 1fr); } }
.galeria-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; position: relative; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.galeria-item:hover img { transform: scale(1.08); }
.galeria-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background 0.3s;
  pointer-events: none;
}
.galeria-item:hover::after { background: rgba(0,0,0,0.12); }

/* ── Lightbox ───────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-img-wrap {
  position: relative; max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: opacity 0.25s;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-close {
  position: fixed; top: 1.2rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none;
  color: #fff; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 500;
  z-index: 10001;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}

/* ── Empresa card ────────────────────────────────────────────────── */
.empresa-card {
  background: var(--bg); overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.empresa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }
.empresa-card-img { height: 160px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.empresa-card-img img.logo { max-height: 80px; max-width: 70%; object-fit: contain; padding: 1.5rem; }
.empresa-card-img img.foto { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.empresa-card:hover .empresa-card-img img.foto { transform: scale(1.05); }
.empresa-card-img-placeholder { opacity: 0.15; font-size: 3rem; }
.empresa-card-body { padding: 1.4rem; flex: 1; }
.empresa-card-tipo { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tierra); margin-bottom: 0.4rem; }
.empresa-card-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: var(--weight-cards); color: var(--color-headings); margin-bottom: 0.4rem; }
.empresa-card-mun { font-size: 0.75rem; color: var(--text-2); margin-bottom: 0.8rem; }
.empresa-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.empresa-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; }
.badge-bike { background: rgba(37,99,235,0.1); color: #2563eb; }
.badge-pet  { background: rgba(180,120,10,0.1); color: #92630a; }
.badge-pmr  { background: rgba(3,105,161,0.1);  color: #0369a1; }

/* ── Info sections ───────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media(min-width:640px) { .info-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .info-grid { grid-template-columns: repeat(3,1fr); } }
.info-card { background: var(--bg); border-radius: 16px; padding: 2rem; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.info-card-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.info-card-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.info-card-text { font-size: 0.85rem; color: var(--text-2); line-height: 1.7; }

/* ── Digital content badge ───────────────────────────────────────── */
.digital-banner {
  background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px; padding: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.digital-banner-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 0.3rem; }
.digital-banner-text { font-size: 0.82rem; color: var(--text-2); }
.digital-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.3rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s; flex-shrink: 0;
}
.digital-btn-ar  { background: rgba(124,58,237,0.8); color: #fff; }
.digital-btn-360 { background: rgba(37,99,235,0.8);  color: #fff; }
.digital-btn-aud { background: rgba(31,92,50,0.8);   color: #fff; }
.digital-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Ruta metrics strip ──────────────────────────────────────────── */
.ruta-metrics {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: var(--border-light); margin-bottom: 2.5rem;
}
@media(min-width:640px) { .ruta-metrics { grid-template-columns: repeat(4,1fr); } }
.ruta-metric { background: var(--bg); padding: 1.5rem; text-align: center; }
.ruta-metric-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.3rem; }
.ruta-metric-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ── Waypoints ───────────────────────────────────────────────────── */
.waypoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.wp-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.wp-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.wp-card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.wp-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.wp-card-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.wp-card-img .wp-card-num {
  position: absolute; top: 10px; left: 10px;
}
.wp-card-num--inline { margin-right: 0.8rem; }
.wp-card-body {
  padding: 1rem 1.2rem 1.2rem;
}
.wp-card-body--no-img {
  display: flex;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
}
.wp-card-content { flex: 1; min-width: 0; }
.wp-card-cat {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.wp-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: block;
}
a.wp-card-name:hover { color: var(--verde-vivo); }
.wp-card-desc {
  font-size: 0.85rem; color: var(--text-2);
  line-height: 1.5; margin: 0.4rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.wp-card-meta {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 0.6rem; flex-wrap: wrap;
}
.wp-card-km {
  font-size: 0.72rem; color: var(--text-3);
  font-weight: 600;
}
.wp-card-audio {
  font-size: 0.72rem; color: var(--verde-vivo);
  font-weight: 600; text-decoration: none;
}
.wp-card-audio:hover { text-decoration: underline; }
.wp-card-link {
  font-size: 0.72rem; color: var(--verde-vivo);
  font-weight: 600; text-decoration: none;
  margin-left: auto;
}
.wp-card-link:hover { text-decoration: underline; }

/* Chip compacto (waypoints sin datos enriquecidos) */
.wp-chip {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.wp-chip:hover {
  border-color: var(--verde-luz);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.wp-chip-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #fff;
}
.wp-chip-name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wp-chip-km {
  font-size: 0.7rem; color: var(--text-3); font-weight: 500; flex-shrink: 0;
}

/* Highlight activo */
.wp-card--active, .wp-chip--active {
  border-color: var(--verde-vivo) !important;
  box-shadow: 0 0 0 2px var(--verde-luz), 0 4px 16px rgba(0,0,0,0.1) !important;
}

@media (max-width: 640px) {
  .waypoints-grid { grid-template-columns: 1fr; }
}

/* ── Ruta detail — closed banner ────────────────────────────────── */
.ruta-closed-banner {
  background: #fef3cd; border-bottom: 2px solid #f0c040;
  padding: 1rem 0; font-size: 0.88rem; color: #664d03;
  position: relative; z-index: 1;
}

/* ── Ruta detail — rating in hero ───────────────────────────────── */
.ruta-rating-hero {
  font-size: 0.78rem; color: #fbbf24;
  display: flex; align-items: center; gap: 0.3rem;
  margin-left: 0.5rem;
}

/* ── Ruta detail — difficulty dot in sidebar ────────────────────── */
.ruta-dif-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 0.4rem; vertical-align: middle;
}

/* ── Ruta detail — aptitudes grid ───────────────────────────────── */
.ruta-aptitud-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.ruta-aptitud-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: var(--text);
}
.ruta-aptitud-icon { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }

/* ── Ruta detail — meses recomendados ───────────────────────────── */
.ruta-meses-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.ruta-mes {
  text-align: center; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.4rem 0; border-radius: 6px;
  background: var(--bg-alt); color: var(--text-3);
  transition: all 0.2s;
}
.ruta-mes--activo {
  background: rgba(31,92,50,0.12); color: var(--verde-vivo); font-weight: 700;
}

/* ── Ruta detail — advice cards ─────────────────────────────────── */
.ruta-advice-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:640px) { .ruta-advice-grid { grid-template-columns: repeat(2, 1fr); } }
.ruta-advice-card {
  background: var(--bg-alt); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--border-light);
}
.ruta-advice-card h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--text); margin-bottom: 0.8rem;
}
.ruta-advice-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

/* ── Ruta detail — nature cards ─────────────────────────────────── */
.ruta-nature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width:640px) { .ruta-nature-grid { grid-template-columns: repeat(2, 1fr); } }
.ruta-nature-card {
  background: rgba(31,92,50,0.04); border-radius: 16px; padding: 2rem;
  border: 1px solid rgba(31,92,50,0.1);
}
.ruta-nature-card h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--verde-vivo); margin-bottom: 0.8rem;
}
.ruta-nature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.ruta-nature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ruta-nature-list li {
  font-size: 0.82rem; color: var(--text-2);
  padding: 0.3rem 0.8rem; border-radius: 100px;
  background: rgba(31,92,50,0.08);
}

/* ── Map markers (shared) ────────────────────────────────────────── */
.ruta-map-marker { background: transparent !important; border: none !important; }

/* ── POI detail — category badge in hero ─────────────────────────── */
.poi-cat-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 100px; border: 1px solid;
  background: rgba(255,255,255,0.1); color: rgba(248,245,240,0.8);
}

/* ── POI detail — lead paragraph ─────────────────────────────────── */
.poi-lead {
  font-family: var(--font-display); font-size: 1.25rem;
  line-height: 1.5; color: var(--text);
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  font-style: normal; font-weight: 700;
}

/* ── POI detail — horarios ───────────────────────────────────────── */
.poi-horarios {
  font-size: 0.85rem; color: var(--text-2); line-height: 1.7;
}
.poi-horarios p { margin-bottom: 0.3rem; }

/* ── Evento detail — type badge ─────────────────────────────────── */
.evento-tipo-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 100px; border: 1px solid;
}

/* ── Evento detail — date strip ─────────────────────────────────── */
.evento-date-strip {
  background: var(--bg-alt); border-bottom: 1px solid var(--border-light);
}
.evento-date-strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.2rem clamp(1.5rem, 6vw, 7rem);
  display: flex; align-items: center; gap: 1rem;
}
.evento-date-icon { font-size: 1.6rem; flex-shrink: 0; }
.evento-date-text { display: flex; flex-direction: column; gap: 0.15rem; }
.evento-date-main {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--text);
}
.evento-date-time {
  font-size: 0.85rem; color: var(--text-2);
}

/* ── Evento detail — precio box ─────────────────────────────────── */
.evento-precio-box {
  margin-top: 1.2rem; padding: 0.8rem 1rem;
  border-radius: 10px; font-size: 0.88rem; font-weight: 500;
  background: var(--bg-alt); color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.evento-precio-gratis {
  background: rgba(34,197,94,0.08); color: #16a34a; font-weight: 600;
}

/* ── Evento detail — POI link ───────────────────────────────────── */
.evento-poi-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem; border-radius: 10px;
  transition: background 0.2s;
}
.evento-poi-link:hover { background: var(--bg-alt); }

/* ── Empresa detail — logo box ──────────────────────────────────── */
.empresa-logo-box {
  background: var(--bg-alt); border-radius: 16px;
  padding: 1.5rem; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.5rem;
  min-height: 100px; border: 1px solid var(--border-light);
}

/* ── Empresa detail — WhatsApp CTA ──────────────────────────────── */
.empresa-wa-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; width: 100%; padding: 0.85rem 1.2rem;
  background: #25d366; color: #fff; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.2s; margin-bottom: 1.5rem;
}
.empresa-wa-btn:hover { background: #1fb855; transform: translateY(-1px); color: #fff; }

/* ── Empresa detail — social links ──────────────────────────────── */
.empresa-social-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.empresa-social-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem; border-radius: 10px;
  font-size: 0.85rem; color: var(--text);
  transition: background 0.2s;
}
.empresa-social-link:hover { background: var(--bg-alt); }
.empresa-social-link svg { color: var(--social-color, var(--text-3)); flex-shrink: 0; }

/* ── Blog listing — featured post ───────────────────────────────── */
.blog-featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--oscuro); color: var(--blanco);
  transition: transform 0.3s, box-shadow 0.3s;
}
@media(min-width:768px) { .blog-featured { grid-template-columns: 1.2fr 1fr; } }
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.blog-featured-img { aspect-ratio: 16/9; overflow: hidden; }
@media(min-width:768px) { .blog-featured-img { aspect-ratio: auto; min-height: 360px; } }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.blog-featured:hover .blog-featured-img img { transform: scale(1.05); }
.blog-featured-body {
  padding: clamp(1.5rem,3vw,2.5rem); display: flex;
  flex-direction: column; justify-content: center;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.blog-featured-title {
  font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2.2rem);
  font-weight: 700; line-height: 1.2; color: var(--blanco); margin-bottom: 1rem;
}
.blog-featured-excerpt {
  font-size: 0.9rem; color: rgba(248,245,240,0.6);
  line-height: 1.7; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-featured-cta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #cdd87a;
}

/* ── Blog listing — tag ─────────────────────────────────────────── */
.blog-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.25rem 0.7rem;
  border-radius: 100px; background: rgba(255,255,255,0.92);
  color: var(--verde-vivo);
}

/* ── Blog listing — card grid ───────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,92,50,0.2); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #0f2415, #1c3020); }
.blog-card-body { padding: 1.4rem 1.5rem; flex: 1; }
.blog-card-date {
  font-size: 0.7rem; font-weight: 500; color: var(--text-3);
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: var(--weight-cards); color: var(--color-headings);
  line-height: 1.25; margin-bottom: 0.5rem;
}
.blog-card-excerpt {
  font-size: 0.82rem; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Blog post detail — hero ────────────────────────────────────── */
.blog-post-hero {
  position: relative; min-height: 420px;
  background-size: cover; background-position: center;
  background-color: var(--oscuro);
  display: flex; align-items: flex-end;
}
.blog-post-hero-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(14,20,16,0.95) 0%, rgba(14,20,16,0.7) 50%, rgba(14,20,16,0.3) 100%);
  padding-top: 120px;
}
.blog-post-hero-inner {
  max-width: 800px; margin: 0 auto;
  padding: 2rem clamp(1.5rem,6vw,3rem) clamp(2rem,4vw,3rem);
}

/* ── Blog post detail — layout ──────────────────────────────────── */
.blog-post-layout {
  max-width: 800px; margin: 0 auto;
  padding: clamp(2rem,4vw,3rem) clamp(1.5rem,6vw,3rem) clamp(3rem,6vh,5rem);
}

/* ── Blog post detail — related links ───────────────────────────── */
.blog-related-links { display: flex; flex-direction: column; gap: 0.5rem; }
.blog-related-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1rem; border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: background 0.2s, border-color 0.2s;
}
.blog-related-item:hover { background: var(--bg-alt); border-color: rgba(31,92,50,0.2); }

/* ── Blog post detail — share buttons ───────────────────────────── */
.blog-share-grid { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.blog-share-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-2);
  transition: all 0.2s;
}
.blog-share-btn:hover {
  color: var(--share-color, var(--verde)); border-color: var(--share-color, var(--verde));
  background: color-mix(in srgb, var(--share-color, var(--verde)) 8%, transparent);
}
.blog-share-btn svg { flex-shrink: 0; }
.empresa-social-link svg { color: var(--social-color, var(--text-3)); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────
   Ficha de ruta — rediseño estilo Jaén Paraíso Interior (.rj-*)
   ───────────────────────────────────────────────────────────────── */
.rj-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 4rem); }
.rj-page { padding-bottom: 5rem; }
.rj-block { margin-top: 3rem; }
.rj-block-title {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 1.2rem;
  padding-left: 2.2rem;
  position: relative;
}
.rj-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1.6rem; height: 1px; background: var(--text); transform: translateY(-50%);
}
.rj-block-title--sub { font-size: 0.82rem; }

/* Hero — el padding-top deja espacio para la nav fija (68px) */
.rj-hero { background: var(--bg-alt, #f7f6f1); padding: 6rem 0 1.8rem; border-bottom: 1px solid var(--border-light); }
.rj-breadcrumb { font-size: 0.72rem; color: var(--text-2); margin-bottom: 0.7rem; }
.rj-breadcrumb a { color: var(--text-2); text-decoration: underline; }
.rj-breadcrumb a:hover { color: var(--verde-vivo); }
.rj-breadcrumb span { margin: 0 0.4rem; opacity: 0.55; }
.rj-h1 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
.rj-h1-rule { display: block; width: 56px; height: 4px; background: var(--verde-vivo); margin-top: 0.7rem; border-radius: 2px; }

/* Top: galería + tarjeta */
.rj-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.rj-stage { display: flex; flex-direction: column; gap: 0.6rem; }
.rj-stage-main { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #eee; }
.rj-stage-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rj-stage-next {
  position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.rj-stage-next:hover { background: rgba(0,0,0,0.75); }
.rj-stage-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.rj-thumb {
  border: 0; padding: 0; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: #eee; opacity: 0.6; transition: opacity 0.2s, transform 0.2s;
}
.rj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rj-thumb.is-active, .rj-thumb:hover { opacity: 1; transform: scale(1.02); }

/* Tarjeta destacada con esquinas amarillas */
.rj-card-feat {
  position: relative; background: var(--bg, #fff); padding: 1.4rem 1.2rem; border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.rj-card-corners { position: absolute; inset: 0; pointer-events: none; }
.rj-card-corners .c { position: absolute; width: 22px; height: 22px; border: 3px solid var(--verde-vivo); }
.rj-card-corners .c-tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.rj-card-corners .c-tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; }
.rj-card-corners .c-bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; }
.rj-card-corners .c-br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.rj-card-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rj-chip {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.rj-chip--dif { color: var(--text); }
.rj-chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.rj-card-row {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--border-light);
  font-size: 0.85rem; color: var(--text); text-decoration: none;
}
/* Permite que el contenido (emails/URLs largos) se ajuste y parta en vez de
   desbordar la tarjeta de contacto. */
.rj-card-row > * { min-width: 0; }
.rj-card-row strong { font-weight: 600; }
.rj-card-link:hover .rj-card-sub { color: var(--verde-vivo); }
.rj-card-icon { font-size: 1.05rem; line-height: 1.2; }
.rj-card-sub { font-size: 0.72rem; color: var(--text-2); }
.rj-card-cta { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.rj-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.rj-btn--primary { background: #4a4a4a; color: #fff; border: 0; }
.rj-btn--primary:hover { background: var(--verde-vivo); }
.rj-btn--ghost { background: #eaeaea; color: var(--text); border: 0; }
.rj-btn--ghost:hover { background: #ddd; }

/* Descripción + leer más */
.rj-prose { font-family: var(--font-body, 'DM Sans', sans-serif); line-height: 1.7; color: var(--text); font-size: 0.95rem; }
.rj-prose p { margin: 0 0 0.9rem; }
.rj-collapsible { max-height: 6.8em; overflow: hidden; position: relative; transition: max-height 0.3s ease; }
.rj-collapsible.is-open { max-height: none; }
.rj-collapsible:not(.is-open)::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5em;
  background: linear-gradient(to bottom, transparent, var(--bg, #fff));
}
.rj-leer-mas {
  background: none; border: 0; color: var(--text); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em; cursor: pointer; padding: 0.5rem 0; margin-top: 0.5rem; text-transform: uppercase;
}
.rj-leer-mas:hover { color: var(--verde-vivo); }

/* Iconos planos Lucide */
.rj-icon { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.5; color: var(--text); }
.rj-icon-sm { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.5; color: var(--text-2); vertical-align: -3px; margin-right: 0.25rem; }

/* Tabla de datos en grid — fondo blanco con borders grises (estilo Jaén) */
.rj-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: transparent; border: 1px solid #d8d8d8; }
.rj-data-cell { background: #fff; padding: 1.1rem 1.3rem; min-height: 96px; border-right: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8; }
.rj-data-cell:nth-child(3n) { border-right: 0; }
.rj-data-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem; }
.rj-data-head .rj-icon { width: 20px; height: 20px; stroke-width: 1.5; }
.rj-data-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); margin: 0;
}
.rj-data-value { font-size: 0.9rem; font-weight: 400; color: var(--text-2); margin: 0; line-height: 1.45; }
.rj-data-value--sm { font-size: 0.82rem; line-height: 1.5; }
.rj-data-value strong { font-weight: 600; color: var(--text); }
.rj-data-sub { font-size: 0.78rem; color: var(--text-2); margin: 0.3rem 0 0; }
.rj-data-sub-list { font-size: 0.82rem; color: var(--text-2); margin: 0.4rem 0 0; padding: 0; list-style: none; line-height: 1.7; }
.rj-data-sub-list li { padding-left: 0; }
.rj-desnivel-line { display: flex; gap: 1.5rem; margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-2); }
.rj-desnivel-line span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ruta-dif-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 0.35rem; }

/* MIDE — fondo blanco, números enormes y delgados */
.rj-mide-wrap { border: 1px solid #d8d8d8; background: #fff; }
.rj-mide-header { padding: 1rem 1.3rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); border-bottom: 1px solid #d8d8d8; }
.rj-mide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.rj-mide-cell { background: #fff; padding: 1.6rem 1.3rem 1.4rem; text-align: left; border-right: 1px solid #d8d8d8; }
.rj-mide-cell:last-child { border-right: 0; }
.rj-mide-val { font-family: var(--font-display, 'Montserrat'); font-size: 3.4rem; font-weight: 300; color: var(--text); margin: 0 0 0.4rem; line-height: 1; }
.rj-mide-head { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.25rem; }
.rj-mide-head .rj-icon { width: 18px; height: 18px; }
.rj-mide-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); margin: 0; }
.rj-mide-desc { font-size: 0.78rem; color: var(--text-2); margin: 0; line-height: 1.4; }

/* 3 columnas (accesibilidad / época / señalización) — fondo blanco */
.rj-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #d8d8d8; }
.rj-3col-cell { background: #fff; padding: 1.1rem 1.3rem; border-right: 1px solid #d8d8d8; }
.rj-3col-cell:last-child { border-right: 0; }
.rj-acc-list { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--text-2); }
.rj-acc-list li { padding: 0.2rem 0; display: flex; align-items: center; gap: 0.4rem; }
.rj-acc-list li .rj-icon-sm { margin-right: 0; }

/* Perfil de alturas */
.rj-perfil { width: 100%; height: 160px; background: var(--bg-alt, #f7f6f1); border-radius: 4px; padding: 0.5rem; }
.rj-perfil svg { width: 100%; height: 100%; display: block; }

/* Rutómetro */
.rj-rutometro { display: grid; grid-template-columns: 90px 1fr; gap: 0; border: 1px solid var(--border-light); }
.rj-rutometro-list { list-style: none; margin: 0; padding: 0; background: var(--bg-alt, #f7f6f1); display: flex; flex-direction: column; }
.rj-rutometro-tab {
  background: none; border: 0; padding: 0.7rem 0.9rem; text-align: left; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2); border-left: 3px solid transparent;
  transition: background 0.15s;
}
.rj-rutometro-tab:hover { background: rgba(0,0,0,0.04); }
.rj-rutometro-tab.is-active { background: var(--bg, #fff); color: var(--verde-vivo); border-left-color: var(--verde-vivo); }
.rj-rutometro-panels { padding: 1.2rem 1.4rem; background: var(--bg, #fff); }
.rj-rutometro-panel { display: none; }
.rj-rutometro-panel.is-active { display: block; }
.rj-rutometro-titulo { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text); }

/* Términos municipales */
.rj-municipios { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }
.rj-mun-card { display: block; background: var(--bg, #fff); border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.2s, box-shadow 0.2s; }
.rj-mun-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.08)); }
.rj-mun-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.rj-mun-body { padding: 0.8rem; }
.rj-mun-body strong { display: block; font-size: 0.95rem; }
.rj-mun-body span { font-size: 0.72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* Vídeo */
.rj-video { aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; max-width: 900px; margin: 0 auto; }
.rj-video iframe { width: 100%; height: 100%; border: 0; }

/* Compartir */
.rj-share-tag { text-align: center; font-weight: 700; color: var(--verde-vivo); margin: 0 0 0.8rem; letter-spacing: 0.05em; }
.rj-share { display: flex; gap: 0.6rem; justify-content: center; }
.rj-share a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--verde-vivo); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: transform 0.15s;
}
.rj-share a:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 900px) {
  .rj-top { grid-template-columns: 1fr; }
  .rj-data-grid, .rj-mide-grid, .rj-3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rj-data-grid, .rj-mide-grid, .rj-3col { grid-template-columns: 1fr; }
  .rj-rutometro { grid-template-columns: 70px 1fr; }
  .rj-stage-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Ficha de Evento (rj-) ─────────────────────────────────────── */
/* El cartel del evento no se recorta: aspect-ratio libre, fondo claro */
.rj-stage-main--poster { aspect-ratio: auto; background: var(--bg-alt, #f7f6f1); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rj-stage-main--poster img { width: auto; max-width: 100%; max-height: 560px; height: auto; object-fit: contain; }

/* Texto-link dentro de la card (CÓMO LLEGAR) */
.rj-card-link-text { display: inline-block; margin-top: 0.3rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--verde-vivo); text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.rj-card-link-text:hover { text-decoration: underline; }

/* Redes en la card */
.rj-card-socials { display: flex; gap: 0.4rem; margin-top: 0.2rem; padding-top: 0.55rem; border-top: 1px solid var(--border-light); }
.rj-card-social {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background 0.15s, color 0.15s;
}
.rj-card-social:hover { background: var(--verde-vivo); color: #fff; }

/* Botones CTA del card (compartir + reservar) */
.rj-btn--ghost { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }

/* Programación */
.rj-program { display: flex; flex-direction: column; gap: 0.5rem; }
.rj-program-item { padding: 0.7rem 0; border-bottom: 1px solid var(--border-light); }
.rj-program-item:last-child { border-bottom: 0; }
.rj-program-fecha { font-weight: 700; color: var(--text); margin: 0; font-size: 0.9rem; }
.rj-program-desc { color: var(--text-2); margin: 0.25rem 0 0; font-size: 0.88rem; line-height: 1.5; }

/* ─── Ficha de Municipio (rj-mun-*) ────────────────────────────── */
.rj-mun-banner {
  position: relative; width: 100%; height: clamp(280px, 36vw, 460px);
  overflow: hidden; background: #222; margin-bottom: 0;
}
/* Solo el municipio (con pie de foto) necesita hueco bajo el banner. */
.rj-mun-banner:has(.rj-mun-banner-caption) { margin-bottom: 2rem; }
.rj-mun-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rj-mun-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 80%);
}
.rj-mun-banner-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem clamp(1rem, 4vw, 4rem);
  z-index: 2;
}
.rj-mun-banner-title h1 {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700;
  letter-spacing: 0.04em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.rj-mun-banner-tag {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--text);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem; border-radius: 4px;
}
.rj-mun-banner-caption {
  position: absolute; left: 0; right: 0; bottom: -1.6rem;
  font-size: 0.78rem; color: var(--text-2); text-align: left;
  padding: 0.4rem clamp(1rem, 4vw, 4rem); margin: 0;
}
.rj-breadcrumb--inline { padding-top: 2rem; margin-bottom: 0.8rem; }

/* Card destacada extras (oficina de turismo + sellos) */
.rj-card-section { padding: 0.55rem 0; border-top: 1px solid var(--border-light); }
.rj-card-section:first-child { border-top: 0; padding-top: 0; }
.rj-card-section-title { font-size: 0.78rem; font-weight: 700; color: var(--text); display: block; }
.rj-card-sellos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem;
}
.rj-card-sello {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; background: var(--bg-alt); border-radius: 6px; padding: 0.4rem;
  font-size: 0.6rem; text-align: center; color: var(--text-2);
  transition: transform 0.15s;
}
.rj-card-sello:hover { transform: scale(1.05); }
.rj-card-sello img { width: 100%; height: 100%; object-fit: contain; }

/* Más información (tabs verticales) */
.rj-info-mun { display: grid; grid-template-columns: 200px 1fr; gap: 0; border: 1px solid var(--border-light); }
.rj-info-tabs { list-style: none; padding: 0; margin: 0; background: var(--bg-alt); display: flex; flex-direction: column; }
.rj-info-tab {
  background: none; border: 0; padding: 0.85rem 1rem; text-align: left; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2); border-left: 3px solid transparent;
  transition: background 0.15s;
}
.rj-info-tab:hover { background: rgba(0,0,0,0.04); }
.rj-info-tab.is-active { background: var(--bg); color: var(--verde-vivo); border-left-color: var(--verde-vivo); }
.rj-info-panels { padding: 1.4rem 1.6rem; background: #fff; }
.rj-info-panel { display: none; }
.rj-info-panel.is-active { display: block; }
.rj-info-panel-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.8rem; color: var(--text); }

/* Vídeos múltiples */
.rj-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.rj-video-item { background: #000; border-radius: 4px; overflow: hidden; }
.rj-video-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.rj-video-caption { font-size: 0.78rem; color: var(--text-2); padding: 0.4rem 0.6rem; margin: 0; background: var(--bg-alt); }

/* Estadísticas "En este municipio" */
.rj-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; }
.rj-stat-cell { background: #fff; padding: 1.4rem 1.1rem; text-align: center; }
.rj-stat-val { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--verde-vivo); margin: 0; line-height: 1; }
.rj-stat-label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--text-2); margin: 0.5rem 0 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* Agenda en ficha de municipio */
.rj-agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.rj-agenda-card { display: block; background: #fff; border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s; }
.rj-agenda-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.08)); }
.rj-agenda-img { position: relative; aspect-ratio: 4/3; background: #ddd; }
.rj-agenda-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rj-agenda-date { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--verde-vivo); color: #fff; padding: 0.4rem 0.7rem; border-radius: 4px; text-align: center; min-width: 50px; }
.rj-agenda-date strong { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.rj-agenda-date span { display: block; font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; }
.rj-agenda-body { padding: 0.8rem 1rem; }
.rj-agenda-name { font-weight: 600; font-size: 0.92rem; margin: 0; line-height: 1.4; }
.rj-agenda-sub { font-size: 0.72rem; color: var(--text-2); margin: 0.3rem 0 0; text-transform: uppercase; letter-spacing: 0.05em; }

/* Responsive */
@media (max-width: 720px) {
  .rj-info-mun { grid-template-columns: 1fr; }
  .rj-card-sellos { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Ficha de POI (rj-poi-*) ──────────────────────────────────── */
.rj-poi-banner { height: clamp(320px, 42vw, 540px); }
.rj-poi-banner .rj-mun-banner-title { padding-bottom: 2.4rem; }
.rj-poi-frase {
  color: rgba(255,255,255,0.95); font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  margin: 0.5rem 0 0; font-style: normal; font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Audioguía del recurso (en la tarjeta destacada) */
.rj-card-audio { padding-top: 0.7rem; border-top: 1px solid var(--border-light); }
.rj-card-audio-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text); margin: 0 0 0.4rem; }
.rj-card-audio audio { width: 100%; height: 32px; }

/* Contenido inmersivo (sección oscura) */
.rj-inmersivo {
  background: #1a1f1c; color: #fff; padding: 3rem 0; margin: 3rem 0 0;
  border-radius: 0;
}
.rj-inmersivo-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.rj-inmersivo-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.18em; margin: 0; color: #fff; }
.rj-inmersivo-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rj-inmersivo-chip {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.4rem 0.85rem;
  border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.rj-inmersivo-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }
.rj-inmersivo-chip.is-active { background: var(--verde-luz); border-color: var(--verde-luz); color: #fff; }
.rj-inmersivo-frame { aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; max-width: 1100px; margin: 0 auto; }
.rj-inmersivo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.rj-inmersivo-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.rj-inmersivo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.7rem 1.4rem; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none;
  transition: background 0.15s;
}
.rj-inmersivo-btn:hover { background: var(--verde-luz); border-color: var(--verde-luz); }

/* Te recomendamos (tabs por familia de categoría) */
.rj-tr-tabs { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.rj-tr-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bg-alt); border: 1px solid var(--border-light); color: var(--text-2);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rj-tr-tab:hover { background: #eee; color: var(--text); }
.rj-tr-tab.is-active { background: var(--verde-vivo); border-color: var(--verde-vivo); color: #fff; }
.rj-tr-panel { display: none; }
.rj-tr-panel.is-active { display: block; }

/* ─── Ficha de Empresa: bloque SERVICIOS ──────────────────────── */
.rj-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 6px;
  overflow: hidden;
}
.rj-servicio-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  background: #fff; font-size: 0.9rem; color: var(--text);
}
.rj-servicio-item .rj-icon { color: var(--verde-vivo); }
.rj-servicio-item:nth-child(3n) { border-right: 0; }
@media (max-width: 720px) {
  .rj-servicio-item:nth-child(n) { border-right: 0; }
  .rj-servicio-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
}

/* ─── Home: Buscador "Tu aventura comienza aquí" ──────────────── */
.rj-home-search { background: var(--bg-alt, #f7f6f1); padding: 2.4rem clamp(1rem, 4vw, 4rem); border-bottom: 1px solid var(--border-light); }
.rj-home-search-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.rj-home-search-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.9rem; color: var(--text); }
.rj-home-search-form { display: flex; gap: 0.5rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.4rem 0.35rem 1.2rem; box-shadow: var(--shadow-sm); }
.rj-home-search-input { flex: 1; border: 0; outline: 0; background: none; font-size: 0.95rem; color: var(--text); padding: 0.6rem 0; }
.rj-home-search-input::placeholder { color: var(--text-3); }
.rj-home-search-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--verde-vivo); color: #fff; border: 0; border-radius: 999px; padding: 0.65rem 1.4rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.15s; }
.rj-home-search-btn:hover { background: var(--verde-vivo); }

/* ─── Home: Banner "Reserva tu experiencia" ──────────────────── */
.rj-home-cta-banner { position: relative; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem); background-color: #1f1f1f; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.rj-home-cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,20,16,0.7) 0%, rgba(14,20,16,0.4) 60%, rgba(14,20,16,0.7) 100%); }
.rj-home-cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.rj-home-cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.rj-home-cta-text { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 0.9rem 0 1.7rem; }
.rj-home-cta-btn { display: inline-block; background: var(--verde-luz); color: #fff; border: 0; padding: 0.95rem 2.6rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: background 0.15s, transform 0.15s; }
.rj-home-cta-btn:hover { background: var(--verde-vivo); transform: translateY(-1px); }

/* ─── Home: "Planifica tu visita" — buscador 3 selectores ─────── */
.rj-plan-section { background: var(--bg); padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 4rem); }
.rj-plan-inner { max-width: 1100px; margin: 0 auto; }
.rj-plan-sub { text-align: center; color: var(--text-2); margin: 0.6rem 0 1.8rem; font-size: 0.95rem; }
.rj-plan-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.6rem; max-width: 900px; margin: 0 auto; }
.rj-plan-select { padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 0.92rem; color: var(--text); cursor: pointer; }
.rj-plan-select:focus { outline: 2px solid var(--verde-vivo); outline-offset: 1px; border-color: var(--verde-vivo); }
.rj-plan-btn { background: var(--verde-vivo); color: #fff; border: 0; padding: 0 2rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.rj-plan-btn:hover { background: var(--verde-vivo); }
@media (max-width: 720px) { .rj-plan-form { grid-template-columns: 1fr; } .rj-plan-btn { padding: 0.95rem 2rem; } }

/* ─── Home: "Forma inmersiva" — banner oscuro con chips ────────── */
.rj-home-inmersivo { position: relative; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 4rem); background-color: #1a1f1c; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.rj-home-inmersivo-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,16,0.6) 0%, rgba(14,20,16,0.85) 100%); }
.rj-home-inmersivo-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; text-align: center; }
.rj-home-inmersivo-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; color: #fff; }
.rj-home-inmersivo-text { font-size: 0.95rem; color: rgba(255,255,255,0.78); margin: 0.7rem auto 2rem; max-width: 640px; }
.rj-home-inmersivo-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.rj-home-inmersivo-chip { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 1.4rem 1rem; color: #fff; text-decoration: none; transition: background 0.15s, transform 0.15s, border-color 0.15s; }
.rj-home-inmersivo-chip:hover { background: var(--verde-luz); border-color: var(--verde-luz); transform: translateY(-2px); }
.rj-home-inmersivo-chip .rj-icon { width: 28px; height: 28px; color: var(--verde-luz); margin-bottom: 0.4rem; }
.rj-home-inmersivo-chip:hover .rj-icon { color: #fff; }
.rj-home-inmersivo-chip strong { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.rj-home-inmersivo-chip span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.rj-home-inmersivo-chip:hover span { color: rgba(255,255,255,0.9); }

/* ─── Branding: logo en header y footer ───────────────────────── */
.csv-nav-logo-img { height: 44px; width: auto; max-width: 220px; display: block; transition: filter 0.2s; }
/* Header transparente al inicio: si el logo es claro, queda como está; si es oscuro
   y necesita verse sobre fondo oscuro, se podría invertir aquí. Por defecto no toca. */
.csv-footer-logo-img { height: 80px; width: auto; max-width: 260px; display: block; }

/* Franja de logos en una sola línea: cinta obligatoria PRTR (Financiación UE /
   NextGenerationEU · Gobierno de España · PRTR) junto a Junta de Andalucía y
   Diputación de Jaén. Recuadro blanco para garantizar legibilidad. */
.footer-prtr-logos {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-prtr-logos img.footer-prtr-cinta { height: 46px; width: auto; max-width: 100%; }
.footer-prtr-logos img.footer-prtr-extra { height: 52px; width: auto; }
@media (max-width: 720px) {
  .footer-prtr-logos img.footer-prtr-cinta { height: auto; width: 100%; max-width: 420px; }
}
@media (max-width: 720px) {
  .csv-nav-logo-img { height: 36px; max-width: 160px; }
  .csv-footer-logo-img { height: 64px; max-width: 200px; }
}

/* ════════════════════════════════════════════════════════════════
   ACCESIBILIDAD (WCAG 2.1 AA) — verde oliva de marca #a2a925
   El menú usa el olivo del logo (#a2a925) como fondo, con texto
   oscuro (--verde-ink) para garantizar contraste ≥ 7:1.
   Botones y enlaces usan el olivo oscuro accesible (--verde-vivo).
   ════════════════════════════════════════════════════════════════ */
.csv-nav,
.csv-nav .csv-nav-logo, .csv-nav .csv-nav-logo span, .csv-nav .csv-nav-logo em,
.csv-nav .csv-nav-links a, .csv-nav .csv-nav-dropdown-btn, .csv-nav .csv-nav-cta,
.csv-nav.scrolled, .csv-nav.scrolled .csv-nav-logo span, .csv-nav.scrolled .csv-nav-logo em,
.csv-nav.scrolled .csv-nav-links a, .csv-nav.scrolled .csv-nav-dropdown-btn,
.csv-nav.scrolled .csv-nav-cta { color: var(--verde-ink) !important; }
.csv-nav .csv-nav-links a:hover, .csv-nav .csv-nav-links a.active,
.csv-nav.scrolled .csv-nav-links a:hover, .csv-nav.scrolled .csv-nav-links a.active { color: #000 !important; }
.csv-nav .csv-nav-cta { border-color: rgba(28,31,4,0.45) !important; }
.csv-nav .csv-nav-cta:hover { color: #ffffff !important; }
.csv-nav .csv-hamburger span, .csv-nav.scrolled .csv-hamburger span { background: var(--verde-ink) !important; }
.csv-nav .csv-lang { color: rgba(28,31,4,0.72) !important; }
.csv-nav .csv-lang.active { color: #3a2c00 !important; }

/* ── Responsive: evitar desbordamiento horizontal en móvil ───────── */
#footer-newsletter-form { width: 100%; max-width: 100%; }
#footer-newsletter-form input[type="email"] { min-width: 0 !important; flex: 1 1 150px; }
#footer-newsletter-form button { flex: 0 0 auto; }
.mapa-home-leaflet, .leaflet-container { max-width: 100%; }
@media (max-width: 560px) {
  .footer-newsletter { padding: 1.5rem 1.2rem !important; }
}
.newsletter-form { max-width: 100%; flex-wrap: wrap; }
.newsletter-form .newsletter-input { min-width: 0; }

/* ── Leyenda del mapa (dinámica: POIs por categoría, rutas por dificultad) ── */
.mapa-legend { max-height: 48vh; overflow-y: auto; }
.mapa-legend-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0.7rem 0 0.35rem; }
#legend-pois .mapa-legend-sub { margin-top: 0.2rem; }
.legend-zonas-note { margin-top: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--border-light); }
