/* JCBike Relatos */
.jcbrl, .jcbrl-routecard {
  --r-ink: #16181b; --r-mut: #5d6067; --r-line: #e4e5df; --r-paper: #f6f5f0;
  --r-acc: #437a10; --r-acc2: #2f5a0b; --r-soft: #eef4e6; --r-warm: #fff6e8; --r-warm2: #b25b06;
  --jcbrl-route: #e4572e;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--r-ink);
}
.jcbrl *, .jcbrl *::before, .jcbrl *::after { box-sizing: border-box; }
.jcbrl a { text-decoration: none; }
.jcbrl img { max-width: 100%; height: auto; display: block; }

.jcbrl-kicker { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--r-acc) !important; }
.jcbrl-kicker a { color: inherit !important; }
.jcbrl-title { margin: 0 0 12px; font-size: clamp(1.75rem, 4vw, 2.85rem); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; color: var(--r-ink); text-transform: none; text-wrap: balance; }
.jcbrl-dek { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.5; color: var(--r-mut); max-width: 760px; }
.jcbrl-by { margin: 0; font-size: .86rem; font-weight: 600; color: var(--r-mut); display: flex; flex-wrap: wrap; gap: 6px; }
.jcbrl-preview { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--r-warm); color: var(--r-warm2); font-weight: 700; font-size: .9rem; }

/* Cabecera y foto principal */
.jcbrl-head { max-width: 900px; margin: 6px 0 18px; }
.jcbrl-hero { margin: 0 0 26px; }
.jcbrl-fig { margin: 0; }
.jcbrl-fig img { width: 100%; border-radius: 16px; background: var(--r-paper); object-fit: cover; }
.jcbrl-fig--hero img { aspect-ratio: 16 / 7.5; max-height: 540px; border-radius: 20px; }
.jcbrl-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 2px 0; font-size: .8rem; line-height: 1.4; color: var(--r-mut); }
.jcbrl-fig figcaption span { font-weight: 600; color: var(--r-ink); }
.jcbrl-credit { font-size: .74rem; color: var(--r-mut); }
.jcbrl-credit a { color: inherit !important; text-decoration: underline !important; }

/* Rejilla: texto + ficha */
.jcbrl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.jcbrl-body { grid-column: 1; grid-row: 1; max-width: 720px; min-width: 0; }
.jcbrl-facts { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }
.jcbrl-facts__in { border: 1px solid var(--r-line); border-radius: 18px; background: #fff; padding: 18px; }
.jcbrl-facts__best { display: flex; flex-direction: column; gap: 3px; margin: -6px -6px 14px; padding: 14px; border-radius: 14px; background: var(--r-warm); color: var(--r-warm2); }
.jcbrl-facts__best span { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.jcbrl-facts__best b { font-size: 1.12rem; line-height: 1.25; color: #3d2402; }
.jcbrl-facts__best b::first-letter { text-transform: uppercase; }
.jcbrl-facts__best small { font-size: .82rem; line-height: 1.45; color: #6b4a1d; }
.jcbrl-facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.jcbrl-facts dl > div { min-width: 0; }
.jcbrl-facts dl > div.is-wide, .jcbrl-facts dl > div:nth-child(n+3) { grid-column: 1 / -1; }
.jcbrl-facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--r-mut); margin: 0 0 2px; }
.jcbrl-facts dd { margin: 0; font-size: .92rem; line-height: 1.45; font-weight: 600; color: var(--r-ink); }
.jcbrl-facts dl > div:nth-child(-n+2) dd { font-size: 1.35rem; font-weight: 800; }
.jcbrl-facts__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.jcbrl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--r-acc); color: #fff !important; font-weight: 800; font-size: .92rem; border: 2px solid var(--r-acc); transition: background .2s, color .2s; }
.jcbrl-btn:hover { background: var(--r-acc2); border-color: var(--r-acc2); }
.jcbrl-btn--ghost { background: #fff; color: var(--r-acc) !important; }
.jcbrl-btn--ghost:hover { background: var(--r-soft); color: var(--r-acc2) !important; }

/* Texto del relato */
.jcbrl-body > p, .jcbrl-body .jcbrl-lead { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.78; color: #24272b; margin: 0 0 1.15em; text-wrap: pretty; }
.jcbrl-body .jcbrl-lead { font-size: 1.26rem; line-height: 1.7; color: var(--r-ink); }
.jcbrl-body .jcbrl-lead::first-letter { float: left; font-size: 3.6em; line-height: .86; padding: .06em .1em 0 0; font-weight: 700; color: var(--r-acc); }
.jcbrl-body h2 { margin: 1.7em 0 .6em; font-size: 1.45rem; line-height: 1.2; font-weight: 800; color: var(--r-ink); text-transform: none; letter-spacing: -.005em; }
.jcbrl-body strong { color: var(--r-ink); }
.jcbrl-body .jcbrl-fig { margin: 1.6em 0; }
.jcbrl-body .jcbrl-fig img { aspect-ratio: 3 / 2; }

.jcbrl-best { display: flex; gap: 14px; margin: 2em 0; padding: 20px 22px; border-radius: 18px; background: var(--r-warm); border-left: 5px solid #f0a23a; }
.jcbrl-best__ico { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--r-warm2); }
.jcbrl-best p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; line-height: 1.65; color: #3d2a12; }
.jcbrl-best strong { display: block; margin-bottom: 4px; font-family: Manrope, system-ui, sans-serif; font-size: 1.04rem; color: #3d2402; }

/* La ruta */
.jcbrl-route { margin: 2.2em 0 0; padding-top: 6px; }
.jcbrl-map { position: relative; border-radius: 18px; overflow: hidden; background: #eef1ea; border: 1px solid var(--r-line); aspect-ratio: 16 / 10; }
.jcbrl-map .jcbrl-sketch { width: 100%; height: 100%; display: block; }
.jcbrl-map.is-live .jcbrl-sketch { display: none; }
.jcbrl-map__live { position: absolute; inset: 0; }
.jcbrl-sketch__t { font: 700 13px Manrope, system-ui, sans-serif; fill: #1d2024; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.jcbrl-profile-wrap { margin: 12px 0 0; padding: 10px 8px 2px; border: 1px solid var(--r-line); border-radius: 16px; background: #fff; overflow: hidden; }
.jcbrl-profile { width: 100%; height: auto; display: block; }
.jcbrl-profile__grid { stroke: #e7e8e3; stroke-width: 1; }
.jcbrl-profile__ax { font: 600 11px Manrope, system-ui, sans-serif; fill: #81848a; }
.jcbrl-profile__lead { stroke: #b9bcb4; stroke-width: 1; }
.jcbrl-profile__t { font: 700 11px Manrope, system-ui, sans-serif; fill: #24272b; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.jcbrl-route__txt { margin: 14px 0 10px; font-size: .96rem; line-height: 1.6; color: var(--r-mut); }
.jcbrl-route__txt a { color: var(--r-acc) !important; font-weight: 700; }
.jcbrl-route__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.jcbrl-pin { display: block; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #222; }
.jcbrl-pin--a { background: #1f9d55; } .jcbrl-pin--b { background: #c0392b; }
.jcbrl-tip { font: 700 12px Manrope, system-ui, sans-serif !important; }

/* Galería y fuentes */
.jcbrl-gallery, .jcbrl-sources { margin: 2.4em 0 0; }
.jcbrl-gallery h2, .jcbrl-sources h2, .jcbrl-route h2 { margin-top: 0; }
.jcbrl-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jcbrl-gallery__grid .jcbrl-fig { margin: 0; }
.jcbrl-sources { padding: 20px 22px; border-radius: 18px; background: var(--r-paper); }
.jcbrl-sources > p { margin: 0 0 10px; font-size: .9rem; line-height: 1.55; color: var(--r-mut); }
.jcbrl-sources ol { margin: 0 0 10px; padding-left: 1.2em; }
.jcbrl-sources li { margin: 0 0 7px; font-size: .92rem; line-height: 1.45; }
.jcbrl-sources li a { color: var(--r-ink) !important; font-weight: 700; text-decoration: underline !important; text-decoration-color: #c8ccc2 !important; text-underline-offset: 3px; }
.jcbrl-sources li span { display: block; font-size: .78rem; color: var(--r-mut); }
.jcbrl-sources__photos { margin: 0 !important; font-size: .8rem !important; }

.jcbrl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.4em 0 1em; }
.jcbrl-nav__a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--r-line); border-radius: 14px; color: var(--r-ink) !important; font-weight: 700; line-height: 1.35; font-size: .95rem; }
.jcbrl-nav__a small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--r-acc); }
.jcbrl-nav__a.is-next { text-align: right; grid-column: 2; }
.jcbrl-nav__a:hover { border-color: var(--r-acc); }
.jcbrl-nav__all { grid-column: 1 / -1; justify-self: center; font-weight: 800; color: var(--r-acc) !important; padding: 8px; }

/* Listado */
.jcbrl-list__head { max-width: 820px; margin: 6px 0 22px; }
.jcbrl-h2 { margin: 6px 0 14px; font-size: 1.35rem; font-weight: 800; color: var(--r-ink); text-transform: none; letter-spacing: 0; }
.jcbrl-lead-card__link { display: block; color: #fff !important; }
.jcbrl-lead-card__route { position: absolute; z-index: 2; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--r-acc2) !important; font-weight: 800; font-size: .85rem; }
.jcbrl-lead-card__route:hover { background: #fff; }
.jcbrl-lead-card { position: relative; display: block; border-radius: 22px; overflow: hidden; background: #2a2f26; color: #fff !important; margin: 0 0 22px; min-height: 380px; }
.jcbrl-lead-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.jcbrl-lead-card:hover img { transform: scale(1.03); }
.jcbrl-lead-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%); }
.jcbrl-lead-card__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; min-height: 380px; padding: clamp(18px, 4vw, 36px); max-width: 860px; }
.jcbrl-pill { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--r-acc2); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jcbrl-lead-card__t { font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.12; font-weight: 800; text-wrap: balance; }
.jcbrl-lead-card__d { font-family: Georgia, serif; font-size: 1.04rem; line-height: 1.5; opacity: .92; }
.jcbrl-lead-card__cta { align-self: flex-start; margin-top: 6px; padding: 10px 20px; border-radius: 999px; background: var(--r-acc); color: #fff; font-weight: 800; font-size: .95rem; }
.jcbrl-lead-card__link:hover .jcbrl-lead-card__cta { background: var(--r-acc2); }
.jcbrl-lead-card__m { font-size: .86rem; font-weight: 700; opacity: .9; }
.jcbrl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 26px; }
.jcbrl-card__main { display: flex; flex-direction: column; flex: 1; color: var(--r-ink) !important; }
.jcbrl-card__route { display: block; padding: 10px 16px; border-top: 1px solid var(--r-line); font-size: .84rem; font-weight: 700; color: var(--r-acc) !important; }
.jcbrl-card__route span { color: var(--r-mut); font-weight: 600; }
.jcbrl-card__route:hover { background: var(--r-soft); }
.jcbrl-card { display: flex; flex-direction: column; border: 1px solid var(--r-line); border-radius: 18px; overflow: hidden; background: #fff; color: var(--r-ink) !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.jcbrl-card:hover { transform: translateY(-2px); border-color: var(--r-acc); box-shadow: 0 14px 28px -20px rgba(20, 40, 10, .5); }
.jcbrl-card__img { display: block; aspect-ratio: 3 / 2; background: var(--r-paper); }
.jcbrl-card__img img { width: 100%; height: 100%; object-fit: cover; }
.jcbrl-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.jcbrl-card__r { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--r-acc); }
.jcbrl-card__t { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.jcbrl-card__m { font-size: .84rem; color: var(--r-mut); }
.jcbrl-next { opacity: .85; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 2px dashed #d5d8cf; border-radius: 18px; margin: 0 0 30px; }
.jcbrl-next__k { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-warm2); }
.jcbrl-next__t { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.jcbrl-next__r { font-size: .86rem; color: var(--r-mut); }
.jcbrl-empty { padding: 30px; text-align: center; color: var(--r-mut); }

/* Mapa de todos los relatos */
.jcbrl-allmap { margin: 0 0 34px; }
.jcbrl-allmap__txt { margin: -4px 0 12px; color: var(--r-mut); font-size: .95rem; }
.jcbrl-allmap__txt a { color: var(--r-acc) !important; font-weight: 700; }
.jcbrl-map--all { aspect-ratio: 16 / 8; }
.jcbrl-map__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--r-mut); font-weight: 700; font-size: .9rem; }
.jcbrl-map.is-live .jcbrl-map__wait { display: none; }

/* Tarjeta en la ficha de la ruta */
.jcbrl-routecard { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 16px 18px; border-radius: 18px; background: var(--r-warm); color: #3d2402 !important; text-decoration: none !important; border: 1px solid #f3dcb6; transition: transform .2s, box-shadow .2s; }
.jcbrl-routecard:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(120, 60, 0, .55); }
.jcbrl-routecard__ico { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--r-warm2); }
.jcbrl-routecard__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.jcbrl-routecard__txt small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-warm2); }
.jcbrl-routecard__txt b { font-size: 1rem; line-height: 1.3; }
.jcbrl-routecard__txt span { font-size: .84rem; color: #6b4a1d; }
.jcbrl-routecard__go { font-size: 1.4rem; font-weight: 800; color: var(--r-warm2); }

@media (max-width: 991px) {
  .jcbrl-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .jcbrl-facts { grid-column: 1; grid-row: 1; position: static; }
  .jcbrl-body { grid-row: 2; max-width: none; }
}
@media (max-width: 575px) {
  .jcbrl-fig--hero img { aspect-ratio: 4 / 3; border-radius: 14px; }
  .jcbrl-hero { margin: 0 -4px 20px; }
  .jcbrl-body > p { font-size: 1.07rem; line-height: 1.72; }
  .jcbrl-body .jcbrl-lead { font-size: 1.15rem; }
  .jcbrl-best { flex-direction: column; gap: 10px; padding: 16px; }
  .jcbrl-map { aspect-ratio: 4 / 3.4; }
  .jcbrl-profile-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .jcbrl-profile { min-width: 640px; }
  .jcbrl-gallery__grid { grid-template-columns: minmax(0, 1fr); }
  .jcbrl-nav { grid-template-columns: minmax(0, 1fr); }
  .jcbrl-nav__a.is-next { grid-column: 1; text-align: left; }
  .jcbrl-lead-card, .jcbrl-lead-card__txt { min-height: 440px; }
  .jcbrl-lead-card__txt { padding-bottom: 64px; }
  .jcbrl-lead-card__route { left: 18px; right: auto; }
  .jcbrl-map--all { aspect-ratio: 1 / 1; }
  .jcbrl-facts dl > div:nth-child(-n+2) dd { font-size: 1.2rem; }
}
