/* Capa "premium regional": se carga después de styles.css.
   Referencias de tono: corrientes.tur.ar (Rubik), parqueibera.gob.ar (portadas a pantalla completa,
   mucho aire, tarjetas de imagen). Paleta del folleto: verde bosque, crema y terracota. */
:root {
  --sr-forest: #1f4a37;
  --sr-forest-deep: #123024;
  --sr-cream: #f7f1e3;
  --sr-terra: #c3773c;
  --sr-ink: #1d2b24;
  --sr-radius: 22px;
  --sr-shadow: 0 18px 46px rgba(18, 48, 36, .14);
}

/* ── Tipografía ── */
body { font-family: Rubik, system-ui, sans-serif; font-weight: 400; letter-spacing: 0; }
h1, h2, h3, h4 { font-family: Rubik, system-ui, sans-serif; letter-spacing: -.01em; }
h1 { font-weight: 600; }
h2, h3 { font-weight: 500; }
.hero-eyebrow, .home-flyer-kicker, .tg-kicker { letter-spacing: .18em; font-weight: 500; }

/* ── Portada: hero a pantalla completa con la foto del puente ── */
.tourism-hero#hero-section {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-start; text-align: left;
  height: min(100svh, 900px); min-height: 620px; padding: 0 clamp(20px, 6vw, 96px) clamp(64px, 10vh, 120px);
  border-radius: 0; box-shadow: none; overflow: hidden; background: var(--sr-forest-deep);
}
.tourism-hero#hero-section::after {
  background: linear-gradient(180deg, rgba(10, 24, 18, .5) 0%, rgba(10, 24, 18, .05) 34%, rgba(10, 24, 18, .72) 100%);
}
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center 40%; animation: heroDrift 26s ease-out both; }
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-copy { position: relative; z-index: 3; max-width: 760px; color: #fff; }
.hero-eyebrow { margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.hero-copy h1 { margin: 0; color: #fff; font-size: clamp(3.6rem, 12vw, 8.5rem); line-height: .92; font-weight: 700; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.hero-tagline { margin: 18px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 300; font-style: italic; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 999px; color: #fff; font-size: .9rem; font-weight: 500; text-decoration: none; backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hero-btn:hover { background: #fff; color: var(--sr-forest); transform: translateY(-2px); }
.hero-btn-primary { background: var(--sr-terra); border-color: var(--sr-terra); }
.hero-btn-primary:hover { background: #fff; border-color: #fff; }
.hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }
@media (max-width: 767px) {
  .tourism-hero#hero-section { height: 92svh; min-height: 600px; padding-bottom: 204px; }
  .hero-actions { gap: 10px; }
  .hero-btn { padding: 0 20px; min-height: 46px; }
}

/* ── Cabeceras interiores (agenda, gastronomía): foto + velo editorial ── */
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 24, 18, .35) 0%, rgba(10, 24, 18, .1) 40%, rgba(10, 24, 18, .78) 100%); }
.internal-hero, .detail-hero { min-height: 340px; }
.internal-hero h1, .detail-hero h1 { font-weight: 600; letter-spacing: -.02em; text-shadow: 0 4px 28px rgba(0, 0, 0, .35); }

/* ── Portada: secciones con más aire y jerarquía ── */
#agenda h2, #deportes h2, #como-llegar h2 { font-weight: 500; letter-spacing: -.02em; }
.home-flyer { border-radius: 32px; box-shadow: var(--sr-shadow); background: var(--sr-cream); }
.home-flyer-heading h2 { font-weight: 600; text-transform: none; }
.home-flyer-visual img { border-radius: 0; }
.portal-shortcut { border-radius: var(--sr-radius); box-shadow: var(--sr-shadow); }
.portal-shortcut strong { font-weight: 500; letter-spacing: -.01em; }

#events-grid article { border-radius: var(--sr-radius); transition: transform .3s ease, box-shadow .3s ease; }
#events-grid article:hover { transform: translateY(-4px); }

/* Estado sin eventos próximos: aviso claro arriba de los últimos eventos */
.home-events-notice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 22px 26px; border-radius: var(--sr-radius); background: var(--sr-cream); border: 1px solid rgba(195, 119, 60, .35); }
.home-events-notice strong { flex: 1 1 100%; color: var(--sr-forest); font-weight: 500; font-size: 1.1rem; }
.home-events-notice p { flex: 1 1 320px; margin: 0; color: #56665a; }
.home-events-notice a { color: var(--sr-forest); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Agenda anual: línea de tiempo con acento terracota */
.home-year h3, .home-year h2 { font-weight: 500; font-size: 1.4rem; }
.home-year-list li { transition: transform .25s ease; }
.home-year-list li:hover { transform: translateY(-3px); }
.home-year-list strong { font-weight: 500; }

/* ── Galería editorial (fichas de gastronomía y eventos): mosaico ── */
.editorial-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.editorial-gallery > :first-child { grid-column: span 2; grid-row: span 2; }
.editorial-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; transition: transform .5s ease; }
.editorial-gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #e9ebe7; cursor: zoom-in; }
.editorial-gallery button:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .editorial-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* Tarjeta de la Monjita: a la derecha en escritorio para no pisar el título. */
@media (min-width: 641px) {
  #hero-section .monjita-hero-card { left: auto; right: clamp(20px, 5vw, 80px); bottom: clamp(64px, 10vh, 120px); }
}
@media (max-width: 640px) { #hero-section .monjita-hero-card { bottom: 92px; } }

/* ── Marca: logotipo propio (palabra + puente + monjita) ── */
.brand-logo {
  display: block; width: clamp(150px, 17vw, 230px); aspect-ratio: 1322 / 372; background: currentColor;
  -webkit-mask: url("../img/brand/logo-san-roque.svg") center / contain no-repeat;
  mask: url("../img/brand/logo-san-roque.svg") center / contain no-repeat;
  transition: opacity .3s ease, transform .3s ease;
}
a:hover > .brand-logo { transform: scale(1.03); }
/* En la portada el logo grande vive en el hero: la barra lo muestra recién al bajar. */
body:has(.hero-logo) #main-nav:not(.bg-primary\/95) .brand-logo { opacity: 0; pointer-events: none; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { display: block; width: min(600px, 88vw); height: auto; filter: drop-shadow(0 8px 34px rgba(0, 0, 0, .35)); }
.hero-copy h1.hero-logo { font-size: 0; }
.footer-wordmark-wrap { text-align: center; }
.footer-logo { display: inline-block; width: min(760px, 88vw); height: auto; }

/* ── Splash con el logo ── */
.splash-wordmark { display: block; width: min(320px, 76vw); height: auto; margin-top: 18px; }

/* ── Circuitos: tarjetas de imagen grandes, estilo portal regional ── */
.circuits-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.circuits-kicker { color: var(--sr-terra); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.circuits-head h2 { margin: 0; max-width: 620px; color: var(--sr-forest); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; font-weight: 600; }
.circuits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.circuit-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--sr-radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--sr-shadow); }
.circuit-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.circuit-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 24, 18, .25) 0%, rgba(10, 24, 18, 0) 35%, rgba(10, 24, 18, .85) 100%); }
.circuit-card:hover img { transform: scale(1.07); }
.circuit-num { position: absolute; top: 16px; left: 18px; font-size: .8rem; font-weight: 500; letter-spacing: .14em; opacity: .9; }
.circuit-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.circuit-body strong { font-size: 1.35rem; line-height: 1.15; font-weight: 500; }
.circuit-body > span:not(.circuit-more) { font-size: .88rem; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.circuit-more { margin-top: 6px; font-size: .82rem; font-weight: 500; letter-spacing: .04em; }
.circuit-card:focus-visible { outline: 3px solid var(--sr-terra); outline-offset: 4px; }
@media (max-width: 1000px) { .circuits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .circuits-grid { gap: 12px; } .circuit-card { aspect-ratio: 4 / 5; } .circuit-body { padding: 14px; } .circuit-body strong { font-size: 1.1rem; } .circuit-body > span:not(.circuit-more) { display: none; } }

/* Pie: el logo va en el flujo (antes flotaba y tapaba tagline y botones) y sin rótulo repetido. */
.footer-cream-crown { height: 0 !important; }
.footer-wordmark-wrap { position: static !important; inset: auto !important; padding: 40px 20px 10px !important; pointer-events: auto; }
.footer-wordmark-wrap::before, .footer-wordmark-wrap::after { content: none !important; display: none !important; }
.footer-logo { width: min(520px, 84vw); }
.footer-social-band { padding-top: 14px !important; }
@media (max-width: 640px) { .footer-wordmark-wrap { padding: 28px 16px 6px !important; } }

/* ── Rotor de fotos en cabeceras ── */
.hero-rotor { overflow: hidden; }
.hero-rotor:not(.absolute) { position: relative; }
.hero-rotor > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-rotor > img.is-active { opacity: 1; }
.hero-rotor-comidas { background: #2a1a10; }
.hero-rotor-comidas > img { image-rendering: auto; }

/* ── Huellas de San Roque (video + texto) ── */
.huellas { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 34px); border-radius: 32px; background: var(--sr-forest); color: #fff; box-shadow: var(--sr-shadow); }
.huellas-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; object-fit: cover; }
.huellas-copy .circuits-kicker { color: #f5d98a; }
.huellas-copy h2 { margin: 8px 0 14px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 600; }
.huellas-copy p { margin: 0 0 12px; color: rgba(255, 255, 255, .86); line-height: 1.65; font-size: .95rem; }
.huellas-copy em { color: #fff; }
.huellas-lema { padding-left: 14px; border-left: 3px solid var(--sr-terra); color: #fff !important; font-weight: 500; }
@media (max-width: 860px) { .huellas { grid-template-columns: 1fr; border-radius: 24px; } }

/* Enlace "saber más" de la Monjita Dominica (Museo Escolar José Béchara) */
.monjita-more { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 10px 18px; border-radius: 999px; background: #274F10; color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.monjita-more:hover { background: #336A15; transform: translateY(-2px); }
.monjita-more:focus-visible { outline: 3px solid #dc8a2e; outline-offset: 3px; }
.monjita-more-end { margin-top: 18px; }
.monjita-article .monjita-more { margin-bottom: 18px; }
.monjita-more-gallery { margin: 16px 0 0; }
/* Enlace directo bajo la tarjeta de la Monjita en la portada */
#hero-section .monjita-hero-link { position: absolute; z-index: 26; right: clamp(20px, 5vw, 80px); bottom: clamp(30px, 6vh, 76px); color: #fff; font-size: .82rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
#hero-section .monjita-hero-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) { #hero-section .monjita-hero-link { left: 16px; right: auto; bottom: 60px; } }

/* "Mi visita" respeta el atributo hidden (antes se veía vacío con 0 elementos). */
.visita-fab[hidden] { display: none; }
/* Cómo llegar dentro del bloque del folleto */
.home-flyer-how { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(31, 74, 55, .18); max-width: 470px; }
.home-flyer-how h3 { margin: 0 0 6px; color: var(--sr-forest); font-size: 1.05rem; font-weight: 500; }
.home-flyer-how p { margin: 0 0 12px; font-size: .9rem; }
.home-flyer-how .how-to-list { gap: 8px; font-size: .9rem; }

/* ── Pie de página ecoturístico: pastizal, juncos y luz de atardecer ── */
.site-footer {
  overflow: visible !important; margin-top: 120px !important; color: #e4efe2;
  background:
    radial-gradient(ellipse 70% 38% at 50% 100%, rgba(233, 172, 85, .26), transparent 70%),
    linear-gradient(180deg, #0f2a1f 0%, #133826 45%, #1a4630 100%) !important;
}
.site-footer::before {
  content: ""; display: block !important; position: absolute; left: 0; right: 0; top: -129px; height: 130px; z-index: 0; pointer-events: none;
  background: url("../img/brand/juncos.svg") repeat-x center bottom / 1200px 130px;
}
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 0; pointer-events: none; opacity: .95;
  background: url("../img/brand/pastizal.svg") repeat-x center bottom / 1200px 170px;
  -webkit-mask: none; mask: none; transform: none; width: auto; aspect-ratio: auto;
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer .footer-cream-crown { background: transparent !important; }
.footer-wordmark-wrap { padding-top: 34px !important; }
.footer-social-band, .site-footer .footer-social-band { background: transparent !important; border: 0 !important; }
.footer-social-band .footer-tagline, .site-footer .footer-tagline { color: #d7e8d3 !important; font-size: 1rem; font-weight: 400; letter-spacing: .01em; }
.footer-social-pill { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-color: rgba(255, 255, 255, .35) !important; box-shadow: none !important; backdrop-filter: blur(4px); }
.footer-social-pill:hover { background: #f5d98a !important; color: #123024 !important; border-color: #f5d98a !important; }
.footer-social-pill svg, .footer-social-pill .brand-icon { fill: currentColor; }
.site-footer .footer-bottombar { background: rgba(4, 16, 11, .55) !important; backdrop-filter: blur(3px); padding-top: 22px; padding-bottom: 96px; }
.site-footer .footer-bottombar, .site-footer .footer-bottombar *, .site-footer .compact-footer-legal, .site-footer .footer-photo-credit { color: #cfe0cc; }
.site-footer .footer-bottombar strong, .site-footer .academic-label { color: #f5d98a; }
.site-footer .footer-bottombar a, .site-footer .footer-photo-credit a { color: #f5d98a; text-decoration: underline; text-underline-offset: 3px; }
/* Luciérnagas: puntos de luz muy suaves (se quietan con movimiento reducido) */
.site-footer .footer-wordmark-wrap::after {
  content: "" !important; display: block !important; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 2px at 12% 60%, rgba(245, 217, 138, .9), transparent 70%),
    radial-gradient(circle 2px at 27% 30%, rgba(245, 217, 138, .8), transparent 70%),
    radial-gradient(circle 2px at 78% 45%, rgba(245, 217, 138, .9), transparent 70%),
    radial-gradient(circle 2px at 90% 75%, rgba(245, 217, 138, .7), transparent 70%),
    radial-gradient(circle 1.6px at 64% 20%, rgba(245, 217, 138, .8), transparent 70%);
  animation: fireflies 6s ease-in-out infinite alternate;
}
@keyframes fireflies { from { opacity: .25; transform: translateY(0); } to { opacity: 1; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .site-footer .footer-wordmark-wrap::after { animation: none; opacity: .7; } }
@media (max-width: 640px) { .site-footer { margin-top: 90px !important; } .site-footer::before { top: -89px; height: 90px; background-size: 800px 90px; } .site-footer::after { height: 110px; background-size: 800px 110px; } }

/* Agenda anual primero, luego los eventos */
.home-year-first { margin: 0 0 44px; padding: 0 0 32px; border-top: 0; border-bottom: 1px solid rgba(53, 94, 74, .18); }

/* Página Ecoturismo y ciencia */
.eco-huellas { padding: 0; border: 0; }
.monjita-more-alt { background: transparent; color: var(--sr-forest); border: 1.5px solid var(--sr-forest); margin-left: 8px; }
.monjita-more-alt:hover { background: var(--sr-forest); color: #fff; }

/* Créditos del pie: tarjeta legible con chips */
.site-footer .credits-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 880px; margin: 0 auto 22px;
  padding: 26px clamp(18px, 4vw, 40px); border: 1px solid rgba(245, 217, 138, .28); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); text-align: center;
}
.site-footer .credits-card .academic-label { color: #f5d98a; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.site-footer .credits-card strong { color: #fff; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; line-height: 1.4; }
.site-footer .credits-card .academic-institute { color: #cfe0cc; font-size: .9rem; }
.credits-people { display: grid; justify-items: center; gap: 8px; margin-top: 8px; width: 100%; }
.site-footer .credits-role { color: #f5d98a; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.credits-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.credits-chips li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .85rem; }
.credits-chips-staff li { border-color: rgba(245, 217, 138, .5); }
.credits-chips li small { margin-right: 6px; color: #f5d98a; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Clima: paleta serena (verde agua del río) en lugar del marrón rojizo ── */
:root, html, body {
  --weather-900: #0f3d45;
  --weather-800: #15545c;
  --weather-650: #1d6f76;
  --weather-500: #2b8a8a;
  --weather-sun: #f4e7b8;
}
.weather-sky { box-shadow: 0 18px 44px -18px rgba(10, 45, 52, .6); }
.weather-pill { border-color: rgba(244, 231, 184, .4) !important; }
.weather-pill span { text-shadow: 0 1px 3px rgba(6, 30, 36, .5); }

/* Página Recorrido histórico */
.recorrido-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: 10px; }
.recorrido-mapa { margin: 0; padding: 12px; border-radius: 26px; background: #ebe4d0; box-shadow: var(--sr-shadow); }
.recorrido-mapa img { display: block; width: 100%; height: auto; border-radius: 16px; }
.recorrido-mapa figcaption { margin: 10px 4px 2px; color: #6b786f; font-size: .78rem; }
.recorrido-paradas h2 { margin: 0 0 14px; }
.recorrido-paradas ol { counter-reset: parada; margin: 0 0 18px; padding: 0; list-style: none; }
.recorrido-paradas li { counter-increment: parada; }
.recorrido-paradas li a { position: relative; display: flex; flex-direction: column; min-height: 48px; padding: 11px 0 11px 46px; border-bottom: 1px solid #e2e7d9; color: var(--sr-ink); text-decoration: none; }
.recorrido-paradas li a::before { content: counter(parada); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sr-forest); color: #fff; font-size: .8rem; font-weight: 500; }
.recorrido-paradas li a:hover strong { text-decoration: underline; }
.recorrido-paradas li strong { font-weight: 500; }
.recorrido-paradas li span { color: #6b786f; font-size: .82rem; }
.recorrido-nota { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--sr-terra); background: #faf3e6; color: #5c6c60; font-size: .85rem; }
.recorrido-nota .material-symbols-outlined { font-size: 18px; }
@media (max-width: 860px) { .recorrido-layout { grid-template-columns: 1fr; } }
/* Acceso al recorrido desde Qué hacer */
.route-teaser { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 16px 20px; border-radius: 20px; background: #f9eed8; color: var(--sr-forest); text-decoration: none; }
.route-teaser > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.route-teaser small { color: #6b786f; }
.route-teaser:hover { box-shadow: var(--sr-shadow); }

/* Ecoturismo: guía de aviturismo en tarjetas */
#eco-guia { padding-top: 8px; }
#eco-guia h2 { margin: 6px 0 12px; }
.eco-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.eco-card { padding: 24px; border: 1px solid #e2e8db; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(18, 48, 36, .06); overflow: hidden; }
.eco-card.has-img { padding: 0; }
.eco-card.has-img > *:not(img) { margin-left: 24px; margin-right: 24px; }
.eco-card.has-img h3 { margin-top: 18px; }
.eco-card.has-img > p:last-child { margin-bottom: 24px; }
.eco-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.eco-card h3 { margin: 0 0 8px; color: var(--sr-forest); font-size: 1.15rem; font-weight: 500; }
.eco-card p { margin: 0 0 10px; color: #4d5f55; line-height: 1.65; font-size: .95rem; }
.eco-card:nth-child(3) { border-color: rgba(195, 119, 60, .45); background: #fff9ef; }
@media (max-width: 760px) { .eco-cards { grid-template-columns: 1fr; } }

/* Servicios en la portada (mismas categorías que la Guía práctica) */
.services-lead { margin: 4px 0 0; color: #56665a; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1px solid rgba(53, 94, 74, .14); border-radius: 20px; background: #fff; color: var(--sr-ink); text-align: center; text-decoration: none; box-shadow: 0 8px 24px rgba(18, 48, 36, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-3px); border-color: var(--sr-terra); box-shadow: var(--sr-shadow); }
.service-card:focus-visible { outline: 3px solid var(--sr-terra); outline-offset: 3px; }
.service-card .material-symbols-outlined { font-size: 34px; color: var(--sr-forest); }
.service-card img { width: 38px; height: 38px; object-fit: contain; }
.service-card strong { font-weight: 500; font-size: 1.05rem; color: var(--sr-forest); }
.service-card span:not(.material-symbols-outlined) { color: #66756b; font-size: .82rem; line-height: 1.45; }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .services-grid { gap: 10px; } .service-card { padding: 16px 10px; } .service-card span:not(.material-symbols-outlined) { display: none; } }

/* La cabecera con fotos superpuestas (rotor) no tiene ancho propio: ocupa todo el contenedor. */
.section-hero-wrap { width: 100%; box-sizing: border-box; }
.section-hero, .section-hero-media { width: 100%; }

/* ── Mapa de la ciudad (Guía práctica) ── */
.city-map { margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(53, 94, 74, .16); }
.city-map-stage { position: relative; container-type: inline-size; border-radius: 26px; background: #ebe5d8; box-shadow: var(--sr-shadow); overflow: hidden; }
.city-map-stage > img { display: block; width: 100%; height: auto; }
.city-pin { position: absolute; width: 8%; max-width: 34px; min-width: 22px; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.city-pin:hover, .city-pin:focus-visible, .city-pin.is-hot { background: rgba(195, 119, 60, .22); box-shadow: 0 0 0 3px #c3773c, 0 0 0 9px rgba(195, 119, 60, .25); }
.city-pin:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.city-info { position: absolute; width: 4%; min-width: 16px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.city-map-legend { position: absolute; left: 66.5%; top: 47%; width: 32%; color: #16402c; }
.city-map-legend h3 { margin: 0 0 1.4cqw; font-size: 2.1cqw; font-weight: 600; color: #0f3d22; }
.city-map-legend ol { counter-reset: ref; margin: 0; padding: 0; list-style: none; }
.city-map-legend li { counter-increment: ref; position: relative; display: block; padding: .4cqw 0 .4cqw 3.6cqw; font-size: 1.5cqw; line-height: 1.25; border-radius: .8cqw; transition: background .2s ease; }
.city-map-legend li a { display: block; min-height: 0; color: inherit; text-decoration: none; }
.city-map-legend li strong { font-weight: 500; display: block; }
.city-map-legend li span { display: block; font-size: 1.25cqw; color: #4d6a58; }
.city-map-legend li::before { content: counter(ref); position: absolute; left: 0; top: .35cqw; display: grid; place-items: center; width: 2.5cqw; height: 2.5cqw; border-radius: 50%; background: #05512b; color: #fff; font-size: 1.3cqw; font-weight: 500; }
.city-map-legend li.is-hot { background: rgba(195, 119, 60, .2); }
.city-map-legend li.is-hot::before { background: #c3773c; }
.city-map-info { display: flex; align-items: center; gap: 1cqw; margin: 1.2cqw 0 0; font-size: 1.4cqw; font-weight: 500; }
.city-map-info span { display: inline-block; width: 2.3cqw; height: 2.3cqw; border: .2cqw solid #05512b; border-radius: 50%; }
.city-map-foot { margin-top: 18px; text-align: center; font-size: .9rem; color: #56665a; }
.city-map-foot a { color: var(--sr-forest); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@container (max-width: 760px) {
  .city-map-legend { position: static; width: auto; padding: 8px 18px 22px; background: #ebe5d8; }
  .city-map-legend h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .city-map-legend li { font-size: .95rem; padding: 8px 0 8px 40px; border-bottom: 1px solid rgba(5, 81, 43, .12); }
  .city-map-legend li span { font-size: .8rem; }
  .city-map-legend li::before { width: 28px; height: 28px; font-size: .8rem; top: 8px; }
  .city-map-info { font-size: .9rem; gap: 8px; margin-top: 12px; }
  .city-map-info span { width: 22px; height: 22px; border-width: 2px; }
}

/* En la página de Recorrido el mapa es la pieza principal */
.city-map-head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.city-map-head h2 { margin: 0 0 8px; }
.city-map-head p { margin: 0; color: #56665a; }
#mapa-ciudad.city-map { margin-top: 10px; padding-top: 0; border-top: 0; }

/* El mapa sale de la columna de lectura para verse grande */
#mapa-ciudad.city-map { width: min(1100px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }

/* ── Guía práctica: cabecera de acceso rápido (sin foto) ── */
.guide-hero { position: relative; margin-left: clamp(0px, 3vw, 40px); margin-right: clamp(0px, 3vw, 40px); border-radius: 0 0 36px 36px; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 60% 90% at 90% 0%, rgba(233, 172, 85, .22), transparent 60%), linear-gradient(160deg, #0f2a1f 0%, #15402e 55%, #1f5a40 100%); }
.guide-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px); }
.guide-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 40px) clamp(36px, 5vw, 60px); }
.guide-kicker { display: inline-flex; align-items: center; gap: 8px; color: #f5d98a; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.guide-kicker .material-symbols-outlined { font-size: 18px; }
.guide-hero h1 { margin: 12px 0 14px; color: #fff; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.guide-hero p { max-width: 620px; margin: 0 0 30px; color: rgba(255, 255, 255, .86); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; }
.guide-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-quick a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.guide-quick a:hover { background: rgba(255, 255, 255, .18); border-color: #f5d98a; transform: translateY(-2px); }
.guide-quick a:focus-visible { outline: 3px solid #f5d98a; outline-offset: 3px; }
.guide-quick .material-symbols-outlined { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(245, 217, 138, .18); color: #f5d98a; font-size: 24px; }
.guide-quick strong { font-weight: 500; font-size: 1rem; }
.guide-quick small { color: rgba(255, 255, 255, .72); font-size: .8rem; }
@media (max-width: 860px) { .guide-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guide-hero { border-radius: 0 0 26px 26px; margin-left: 0; margin-right: 0; } .guide-quick { grid-template-columns: 1fr; } .guide-quick small { display: none; } }

/* Rotor de fotos en cabeceras "tourism-hero": styles.css fuerza position:relative a sus hijos; el rotor debe cubrir toda la cabecera. */
.tourism-hero > .hero-rotor { position: absolute; inset: 0; z-index: 0; }

/* Gastronomía: cierre útil en lugar del banner con escritura animada */
.gastro-closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; margin: 56px auto 0; max-width: 1100px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: #f9eed8; border: 1px solid rgba(195, 119, 60, .3); }
.gastro-closing-copy { flex: 1 1 380px; }
.gastro-closing h2 { margin: 6px 0 8px; color: var(--sr-forest); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 600; }
.gastro-closing p { margin: 0; max-width: 560px; color: #56665a; line-height: 1.6; }
.gastro-closing-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.guide-hero .guide-quick:has(> a:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Créditos del pie compactos (≈ un tercio del alto anterior) */
.site-footer .credits-card { gap: 3px; max-width: 760px; margin-bottom: 12px; padding: 12px 18px; border-radius: 14px; }
.site-footer .credits-card .academic-label { font-size: .6rem; letter-spacing: .16em; }
.site-footer .credits-card strong { font-size: .8rem; line-height: 1.3; }
.site-footer .credits-card .academic-institute { font-size: .7rem; }
.credits-people { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-top: 4px; }
.site-footer .credits-role { font-size: .58rem; letter-spacing: .14em; }
.credits-chips { gap: 4px; margin: 0; }
.credits-chips li { padding: 2px 9px; font-size: .68rem; line-height: 1.5; }
.credits-chips li small { margin-right: 4px; font-size: .56rem; }
@media (max-width: 520px) { .site-footer .credits-card { padding: 10px 12px; } }
