/* ============================================================
   Turismo Cáceres — PÁGINAS INTERIORES
   page-hero · page-intro · listado de recursos + filtros ·
   ficha de recurso · galería + lightbox · multimedia · relacionados
   ============================================================ */
/* =========================================================
   PÁGINA INTERIOR — Patrimonio Histórico y Artístico
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* padding-top alto: el contenido baja y no queda bajo la cabecera fija */
  padding: 140px 64px 60px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  /* La imagen la inyecta el elemento ALB como variable inline */
  background: var(--tc-hero-bg, none) center var(--tc-hero-focus, 35%) / cover no-repeat;
  background-color: #3a2e26;
  transform: scale(1.04);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(5,3,2,0.9) 0%, rgba(5,3,2,0.45) 40%, rgba(5,3,2,0.18) 62%, rgba(5,3,2,0.5) 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
/* Enfold separa un titular del párrafo anterior («p + h1 { margin-top: 1.5em }»,
   90 px con el titular a 60 px) y da márgenes a todo párrafo («p { margin: .85em
   0 }»). Aquí el párrafo es el antetítulo: el diseño deja entre él y el titular
   solo sus 22 px de margen inferior. Elemento a elemento, no con «> *», para
   no anular el margen del botón «Guardar en mi cuaderno», que va aquí dentro. */
.page-hero-content > .hero-eyebrow,
.page-hero-content > h1,
.page-hero-content > .page-hero-desc { margin-top: 0; }
.page-hero-content > .page-hero-desc { margin-bottom: 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.78); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb .current { color: var(--gold-lt); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  margin-bottom: 18px;
}
.page-hero-desc {
  font-size: 16px; font-weight: 400; line-height: 1.7;
  color: rgba(255,255,255,0.92); text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  max-width: 600px;
}

/* Cabecera sencilla: la de una página sin «Imagen destacada» (inc/cabeceras.php).
   El diseño no la tiene —todas sus páginas llevan foto—; es la franja oscura de
   la banda de introducción, con su silueta de arcos, y sin la altura que pide
   una fotografía. El relleno superior deja sitio a la cabecera fija del sitio. */
.page-hero.page-hero--plain {
  min-height: 0;
  padding: 150px 64px 64px;
  background: var(--dark);
}
.page-hero-motif {
  position: absolute;
  right: -60px;
  bottom: -46px;
  width: 560px;
  height: auto;
  color: #fff;
  opacity: 0.055;
  pointer-events: none;
}
.page-hero--plain h1,
.page-hero--plain .page-hero-desc { text-shadow: none; }
.page-hero--plain h1 { font-size: clamp(32px, 3.8vw, 50px); }

/* Intro editorial (para que no parezca un feed) — 2 columnas */
.page-intro {
  background: #fff;
  padding: 76px 64px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}
.page-intro .section-label { display: block; margin-bottom: 14px; }
.page-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--dark); line-height: 1.3; margin-bottom: 22px;
}
.page-intro-text p {
  font-size: 16px; color: #4a4441; line-height: 1.9; margin-bottom: 16px;
}
.page-intro-text p:last-child { margin-bottom: 0; }

/* Columna derecha de la intro: tarjeta útil + compartir */
.intro-side { display: flex; flex-direction: column; gap: 22px; }
.info-card { border: 1px solid var(--border); background: var(--cream); padding: 26px 28px 14px; }
.info-card h3 { font-family: var(--font-head); font-size: 24px; color: var(--dark); margin-bottom: 4px; }
.info-card .info-sub { font-size: 15px; color: var(--gray); margin-bottom: 16px; }
.info-list { display: flex; flex-direction: column; }
.info-list a {
  display: flex; align-items: center; gap: 13px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--dark);
  transition: gap 0.25s, color 0.25s;
}
.info-list a:last-child { border-bottom: none; }
.info-list a:hover { color: var(--gold); gap: 16px; }
.info-list .ic { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }
.info-list .arr { margin-left: auto; width: 14px; height: 14px; color: var(--gray); transition: color 0.25s; }
.info-list a:hover .arr { color: var(--gold); }

/* Columna derecha con «Te recomendamos» (patrimonio-historico-artistico.html):
   el carrusel de experiencias de la portada con fichas apaisadas, para que el
   bloque quede a la altura del texto. Las columnas, centradas entre sí. */
.page-intro--destacados { grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; }
.destacados { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dest-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dest-marca { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dest-logo { height: 26px; width: auto; flex-shrink: 0; }
.dest-titulo { font-family: var(--font-head); font-size: 24px; font-weight: 400; color: var(--dark); line-height: 1.2; margin: 0; }
.destacados .exp-controls { align-self: auto; }
.destacados .exp-nav { width: 40px; height: 40px; }
.destacados .exp-nav svg { width: 16px; height: 16px; }
.destacados .exp-card { flex: 0 0 88%; aspect-ratio: 16 / 9; }
.destacados .exp-card-body { padding: 26px 26px; }
.destacados .exp-card-body h3 { font-size: 22px; margin-bottom: 8px; }
.destacados .exp-card-overlay {
  background: linear-gradient(to top, rgba(5,4,2,0.90) 0%, rgba(5,4,2,0.30) 58%, rgba(5,4,2,0) 84%);
}
/* La categoría siempre a la vista: .exp-card-body p le ganaba y la plegaba.
   Con la pastilla dorada de la portada, no en dorado sobre la foto como en el
   diseño: aquí el fondo dorado la habría hecho invisible. */
.destacados .exp-card-body .exp-card-tag {
  max-height: none; overflow: visible; opacity: 1;
  color: var(--dark); margin-bottom: 8px;
}
.destacados .exp-card:hover .exp-card-body p:not(.exp-card-tag) { max-height: 76px; }
.destacados .exp-arrow { top: 18px; right: 18px; width: 38px; height: 38px; }

.share-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-inline .share-label {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid);
}

/* Barra de compartir en redes */
.share-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 36px 64px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.share-bar .share-label {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid);
}
.share-links { display: flex; gap: 10px; }
.share-links a {
  width: 46px; height: 46px;
  border: 1px solid var(--border); background: #fff; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.share-links a:hover { background: var(--dark); border-color: var(--dark); color: #fff; transform: translateY(-2px); }
.share-links a svg { width: 18px; height: 18px; }

/* Sección de recursos */
.resources { padding: 64px 64px 100px; background: var(--cream); }

/* Barra de filtros (PTB Search) */
.filter-bar {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr auto;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  align-items: end;
}
.filter-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.filter-field label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
}
#top .filter-field select{
  font-family: var(--font-body); font-size: 14px; color: var(--dark);
  border: 1px solid var(--border); background: #fff; padding: 12px 14px; outline: none;
  border-radius: 0; width: 100%; cursor: pointer;
}
#top .filter-field select:focus{ border-color: var(--gold); }
.search-input-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: #fff; padding: 0 14px;
}
.search-input-row svg { width: 18px; height: 18px; color: var(--gray); flex-shrink: 0; }
#top .search-input-row input{
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font-family: var(--font-body); font-size: 14px; color: var(--dark); padding: 12px 0;
}
.filter-submit {
  align-self: end;
  background: var(--gold); color: var(--dark); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 26px; transition: background .3s; white-space: nowrap;
}
.filter-submit:hover { background: var(--gold-hi); }

/* Toolbar: chips + recuento/orden */
.resources-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 28px 0 34px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--mid); background: #fff; border: 1px solid var(--border); border-radius: 0;
  padding: 9px 16px; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.resources-meta { display: flex; align-items: center; gap: 22px; }
.results-count { font-size: 13px; color: var(--gray); }
.sort { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); display: flex; align-items: center; gap: 8px; }
#top .sort select{ border: none; background: none; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--dark); cursor: pointer; }

/* Grid de recursos */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(46,11,12,0.12); border-color: transparent; }
.rc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.rc-img { width: 100%; height: 100%; object-fit: cover; background-color: #5a4e42; transition: transform .7s ease; }
.resource-card:nth-child(3n+2) .rc-img { background-color: #4a3f35; }
.resource-card:nth-child(3n) .rc-img { background-color: #3d4840; }
.resource-card:hover .rc-img { transform: scale(1.06); }
.rc-cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(46,11,12,0.82); color: #fff; padding: 6px 12px;
}
.rc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rc-title { font-family: var(--font-head); font-size: 21px; color: var(--dark); line-height: 1.2; margin-bottom: 10px; }
.rc-meta { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--gray); line-height: 1.45; margin-bottom: 18px; }
.rc-meta svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.rc-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dk); transition: gap .3s, color .3s;
}
.resource-card:hover .rc-link { gap: 13px; color: var(--gold); }
.rc-link svg { width: 14px; height: 14px; }

/* Paginación
   Con #top delante: Enfold usa la misma clase para la paginación del blog y
   declara «#top .pagination a» con 35 × 35 px, float, bordes redondos y
   sombra. Sin el prefijo ganaba él, y «← Anterior» y «Siguiente →» no cabían
   en 35 px y se partían en dos líneas dentro de un círculo. */
#top .pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-top: 56px; padding: 0; overflow: visible; line-height: normal; clear: none;
}
#top .pagination a {
  float: none; width: auto; min-width: 44px; height: 44px; padding: 0 14px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; white-space: nowrap; text-align: center;
  border-radius: 0; box-shadow: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--mid);
  border: 1px solid var(--border); background: #fff; transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
#top .pagination a:hover { border-color: var(--gold); color: var(--gold); }
#top .pagination a.is-active { background: var(--gold); border-color: var(--gold); color: var(--dark); }
#top .pagination .page-prev, #top .pagination .page-next { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 18px; }
#top .pagination [aria-disabled="true"] { opacity: .4; pointer-events: none; }
#top .pagination .dots { float: none; width: auto; color: var(--gray); padding: 0 6px; font-size: 13px; line-height: 1; }

/* =========================================================
   FICHA DE RECURSO (detalle)
   ========================================================= */
.detail { background: #fff; padding: 64px 64px 90px; }
.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }
.detail-main { min-width: 0; }

/* Galería — 3 destacadas (1 grande + 2 apiladas) */
.gallery-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 16/9;
}
.gallery-featured img { width: 100%; height: 100%; object-fit: cover; background: #5a4e42; cursor: pointer; transition: opacity .25s; }
.gallery-featured img:hover { opacity: .9; }
.gallery-featured img:first-child { grid-row: 1 / 3; }

/* Galería completa */
.gallery-all-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 34px 0 14px;
}
.gallery-all-head .section-label { margin: 0; }
.gallery-all-head .count { font-size: 13px; color: var(--gray); }
.gallery-all { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-all img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #5a4e42; cursor: pointer;
  transition: opacity .25s, transform .35s;
}
.gallery-all img:hover { opacity: .9; transform: scale(1.02); }

/* Muchas fotos: las primeras y el enlace a la galería (tc-detail.php) */
#top .gallery-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 22px;
  border: 1px solid var(--border); color: var(--dark); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
#top .gallery-more:hover { background: var(--cream); border-color: var(--gold); color: var(--dark); }
.gallery-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Página de galería de una ficha, en masonry (galeria-ficha.php) */
.gallery-page { display: block; padding: 48px clamp(16px, 2.5vw, 48px) 88px; }
.gallery-page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.gallery-page-head .count { font-size: 13px; color: var(--gray); }
#top .gallery-page-back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--dark); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
#top .gallery-page-back:hover { color: var(--gold); }
.masonry-gallery { column-count: 5; column-gap: 10px; }
.masonry-item { break-inside: avoid; margin: 0 0 10px; }
.masonry-item img {
  display: block; width: 100%; height: auto; background: #5a4e42; cursor: zoom-in;
  transition: opacity .25s;
}
.masonry-item img:hover { opacity: .9; }
@media (min-width: 1800px) { .masonry-gallery { column-count: 6; } }
@media (max-width: 1280px) { .masonry-gallery { column-count: 4; } }
@media (max-width: 1024px) { .masonry-gallery { column-count: 3; } }
@media (max-width: 767px) {
  .gallery-page { padding: 32px 16px 64px; }
  .masonry-gallery { column-count: 2; column-gap: 8px; }
  .masonry-item { margin-bottom: 8px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(20, 10, 8, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 60px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lb-btn {
  position: absolute; background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff;
  width: 52px; height: 52px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.lb-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 28px; right: 32px; }
.lb-prev { left: 32px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 32px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--font-body); font-size: 13px; letter-spacing: 0.1em; }

/* Multimedia en pestañas */
.detail-media { margin-top: 44px; }
.detail-media .section-label { display: block; margin-bottom: 12px; }
/* Como «Descripción» y «Multimedia»: sin la raya de los antetítulos de la portada */
.gallery-all-head .section-label { display: block; margin: 0; }
.detail-media h2 { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); color: var(--dark); line-height: 1.3; margin-bottom: 22px; }
.tabs-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
  padding: 14px 22px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 9px; transition: color .25s, border-color .25s;
}
.tab-btn svg { width: 17px; height: 17px; }
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--dark); border-bottom-color: var(--gold); }
.tab-panel { display: none; padding-top: 28px; }
.tab-panel.active { display: block; }
.tab-panel video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; }
.tab-panel audio { width: 100%; }
.tab-audio-note, .tab-video-note { margin-top: 14px; font-size: 14px; color: #4a4441; line-height: 1.7; }
/* Varios vídeos o audios en la misma pestaña («Más vídeos», «Más audios») */
.tab-panel video ~ video, .tab-panel audio ~ audio { margin-top: 30px; }

/* Vídeos: botones y reproductor emergente (tc-detail.php, tc_video_modal(), js/tc-theme.js) */
.video-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.video-list li:only-child { grid-column: 1 / -1; }
#top .video-item {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--border); background: #fff; color: var(--dark); text-decoration: none;
  transition: background .25s, border-color .25s;
}
#top .video-item:hover { background: var(--cream); border-color: var(--gold); }
.video-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.video-item-ic {
  flex-shrink: 0; width: 40px; height: 40px; padding: 13px 12px 13px 14px; border-radius: 50%;
  background: var(--dark); color: #fff; transition: background .25s;
}
.video-item:hover .video-item-ic { background: var(--gold); }
.video-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.video-item-kicker { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.video-item-title { font-size: 15px; line-height: 1.35; }
@media (max-width: 767px) {
  .video-list { grid-template-columns: 1fr; }
}

.video-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 64px 4vw 40px;
  background: rgba(20, 10, 8, 0.94);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
/* Visible al instante al abrir (el fundido es la opacidad): si no, el botón de cerrar aún no se puede enfocar */
.video-modal.open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.video-modal-box { position: relative; width: min(1200px, 100%); }
.video-modal video {
  display: block; width: 100%; max-height: calc(100vh - 170px); aspect-ratio: 16/9;
  background: #000; object-fit: contain;
}
.video-modal-title { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; color: #fff; font-size: 16px; }
.video-modal-title .video-item-kicker:empty { display: none; }
#top .video-modal-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
#top .video-modal-close:hover { background: var(--gold); }
.video-modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Descargas (folletos PDF) */
.downloads { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.downloads a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--border); color: var(--dark);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; transition: background .25s, padding-left .25s;
}
.downloads a:last-child { border-bottom: none; }
.downloads a:hover { background: var(--cream); padding-left: 24px; }
.downloads .dl-ic { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.downloads .dl-meta { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }

/* Texto */
.detail-body { margin-top: 40px; }
.detail-body .section-label { display: block; margin-bottom: 12px; }
.detail-body h2 { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); color: var(--dark); line-height: 1.3; margin-bottom: 18px; }
.detail-body p { font-size: 16px; color: #4a4441; line-height: 1.95; margin-bottom: 18px; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-quote {
  margin: 30px 0; padding: 22px 28px; border-left: 3px solid var(--gold); background: var(--cream);
  font-family: var(--font-head); font-size: 19px; font-style: italic; color: var(--dark); line-height: 1.5;
}

/* Sidebar */
.detail-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.fact-card { border: 1px solid var(--border); background: var(--cream); padding: 26px 28px; }
.fact-card h3 { font-family: var(--font-head); font-size: 20px; color: var(--dark); margin-bottom: 14px; }
.fact-list { display: flex; flex-direction: column; }
.fact { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.fact:last-child { border-bottom: none; }
.fact .fact-ic { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.fact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-text .k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.fact-text .v { font-size: 14px; color: var(--dark); font-weight: 600; line-height: 1.45; }
.fact-text .v a { color: var(--gold-dk); word-break: break-word; }
.fact-text .v a:hover { color: var(--gold); }
.detail-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--dark);
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px; transition: background .3s;
}
.detail-cta:hover { background: var(--gold-hi); }
.detail-cta svg { width: 15px; height: 15px; }

/* Mapa */
.detail-map { border: 1px solid var(--border); line-height: 0; }
.detail-map iframe { display: block; width: 100%; height: 230px; border: 0; }

/* Compartir en sidebar */
.detail-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-share .share-label { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }

/* Relacionados */
.related { background: var(--cream); padding: 80px 64px; border-top: 1px solid var(--border); }
.related .section-header { margin-bottom: 36px; }
.related h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--dark); line-height: 1.2; }

/* Responsive — interior */
@media (max-width: 1024px) {
  .detail { padding: 56px 32px 72px; }
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-aside { position: static; }
  .gallery-all { grid-template-columns: repeat(3, 1fr); }
  .related { padding: 64px 32px; }
  .page-hero { padding: 120px 32px 52px; min-height: 480px; }
  .page-hero.page-hero--plain { padding: 130px 32px 52px; min-height: 0; }
  .page-intro { padding: 56px 32px; grid-template-columns: 1fr; gap: 40px; }
  /* A todo el ancho: tres fichas a la vista, en 3:2 para que quepa el texto */
  .destacados .exp-card { flex: 0 0 calc((100% - 28px) / 3); aspect-ratio: 3 / 2; }
  .resources { padding: 56px 32px 80px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-field.filter-search, .filter-submit { grid-column: 1 / -1; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 96px 24px 44px; min-height: 420px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .page-hero.page-hero--plain { padding: 112px 24px 40px; min-height: 0; }
  .page-hero-motif { width: 340px; right: -70px; bottom: -30px; }
  .detail { padding: 48px 24px 56px; }
  .gallery-featured { aspect-ratio: 4/3; }
  .gallery-all { grid-template-columns: repeat(3, 1fr); }
  .media-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 16px; }
  .lb-close { top: 14px; right: 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .related { padding: 56px 24px; }
  .page-intro { padding: 48px 24px; }
  .destacados .exp-card { flex: 0 0 82%; aspect-ratio: 16 / 9; }
  .resources { padding: 48px 24px 64px; }
  .filter-bar { grid-template-columns: 1fr; }
  .resources-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .resource-grid { grid-template-columns: 1fr; }
}
/* En táctil el párrafo de la ficha se ve siempre: en 16:9 no cabe */
@media (max-width: 520px) {
  .destacados .exp-card { aspect-ratio: 4 / 5; }
}


/* =========================================================
   COMPLEMENTOS DEL TEMA HIJO
   ========================================================= */

/* Los filtros rápidos son enlaces (cada combinación tiene su
   propia dirección y se puede compartir), no botones. */
a.chip { display: inline-block; text-decoration: none; }

/* Recuento de artículos del feed del blog. */
.tc-blog-count { margin-bottom: 24px; }

/* Aviso de listado vacío. */
.tc-empty {
  color: var(--gray);
  font-size: 15px;
  text-align: center;
  padding: 48px 0;
}

/* Bloque de paradas de una ruta, cuando lleva su propio
   encabezado de sección. */
.route-stops-block { margin-bottom: 8px; }
.route-stops-block h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--dark);
  line-height: 1.25;
  margin: 6px 0 22px;
}
