/* JCBike Rutas — estilos front (usa las variables del tema JCBike si existen) */
.jcbr {
  --r-paper: var(--jc-paper, #f6f3ee);
  --r-accent: var(--jc-accent, #b8864b);
  --r-accent-dark: var(--jc-accent-dark, #96693a);
  --r-ink: var(--jc-ink, #2a2c31);
  --r-line: var(--jc-line, #e4ded4);
  --r-muted: var(--jc-muted, #74767c);
  --r-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --r-sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c-mtb: #b8864b; --c-carretera: #2a2c31; --c-gravel: #7a8b52; --c-ebike: #3d7ea6; --c-paseo: #c0573f; --c-urbana: #6b5b95;
  font-family: var(--r-sans);
  color: var(--r-ink);
}
.jcbr *, .jcbr *::before, .jcbr *::after { box-sizing: border-box; }
.jcbr a { text-decoration: none; }
.jcbr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jcbr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.jcbr-page #wrapper { background: var(--jc-paper, #f6f3ee); }
.jcbr-center { text-align: center; }
.jcbr-muted { color: var(--r-muted); }
.jcbr-small { font-size: .82rem; color: var(--r-muted); margin: .4rem 0 0; }
.jcbr-small a { color: var(--r-accent-dark); }
.jcbr-link { color: var(--r-accent-dark); font-weight: 700; }

.jcbr-eyebrow { margin: 0 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--r-accent-dark); }
.jcbr-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; border: 0; background: var(--r-ink); color: #fff !important; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; font-family: inherit; }
.jcbr-btn:hover { background: var(--r-accent-dark); transform: translateY(-1px); }
.jcbr-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-btn--accent { background: var(--r-accent); }
.jcbr-btn--accent:hover { background: var(--r-ink); }
.jcbr-btn--ghost { background: #fff; color: var(--r-ink) !important; border: 1px solid var(--r-line); }
.jcbr-btn--ghost:hover { background: var(--r-ink); color: #fff !important; border-color: var(--r-ink); }
.jcbr-btn--sm { padding: .55rem 1rem; font-size: .82rem; }

/* chips y distintivos */
.jcbr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.jcbr-chips--small .jcbr-chip { padding: .38rem .8rem; font-size: .78rem; }
.jcbr-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--r-line); border-radius: 999px; background: #fff; color: var(--r-ink); font-size: .85rem; font-weight: 600; transition: border-color .2s, background .2s; }
.jcbr-chip span { font-size: .72rem; color: var(--r-muted); }
.jcbr-chip:hover { border-color: var(--r-accent); }
.jcbr-chip.is-active { background: var(--r-ink); border-color: var(--r-ink); color: #fff; }
.jcbr-chip.is-active span { color: rgba(255,255,255,.7); }
.jcbr-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--r-accent); }
.jcbr-dot--mtb, .jcbr-badge--mtb { --c: var(--c-mtb); }
.jcbr-dot--carretera, .jcbr-badge--carretera { --c: var(--c-carretera); }
.jcbr-dot--gravel, .jcbr-badge--gravel { --c: var(--c-gravel); }
.jcbr-dot--ebike, .jcbr-badge--ebike { --c: var(--c-ebike); }
.jcbr-dot--paseo, .jcbr-badge--paseo { --c: var(--c-paseo); }
.jcbr-dot--urbana, .jcbr-badge--urbana { --c: var(--c-urbana); }
.jcbr-dot { background: var(--c); }
.jcbr-badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--c, var(--r-accent)); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jcbr-diff { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.jcbr-diff::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5a9a5e; }
.jcbr-diff--2::before { background: #d9a336; }
.jcbr-diff--3::before { background: #d26a3b; }
.jcbr-diff--4::before { background: #a8312b; }

/* cabecera listado */
.jcbr-hero { text-align: center; max-width: 820px; margin: 1rem auto 1.6rem; }
.jcbr-hero__title { font-family: var(--r-serif); font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; font-weight: 600; margin: 0 0 1rem; text-transform: none; color: var(--r-ink); }
.jcbr-hero__intro { font-size: 1.05rem; line-height: 1.6; color: var(--r-muted); margin: 0 auto 1.4rem; max-width: 660px; }
.jcbr-search { position: relative; max-width: 520px; margin: 0 auto; }
.jcbr-search input { width: 100%; height: 52px; padding: 0 3.4rem 0 1.3rem; border: 1px solid var(--r-line); border-radius: 999px; background: #fff; font-size: .95rem; outline: none; }
.jcbr-search input:focus { border-color: var(--r-accent); box-shadow: 0 0 0 4px rgba(184,134,75,.15); }
.jcbr-search button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--r-ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.jcbr-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.jcbr-filters { display: grid; gap: .7rem; margin: 0 auto 1.6rem; }
.jcbr-results { text-align: center; color: var(--r-muted); margin: 1rem 0; }
.jcbr-results a { color: var(--r-accent-dark); font-weight: 700; }

/* mapas */
.jcbr-mapwrap { position: relative; margin: 0 auto 2rem; max-width: 1280px; border-radius: 22px; overflow: hidden; border: 1px solid var(--r-line); background: #e9e4da; box-shadow: 0 20px 40px -30px rgba(42,44,49,.5); }
.jcbr-map { width: 100%; height: 460px; background: #e9e4da; z-index: 1; }
.jcbr-map--route { height: 520px; }
.jcbr-mapwrap.is-full { position: fixed; inset: 0; z-index: 2000; margin: 0; max-width: none; border-radius: 0; }
.jcbr-mapwrap.is-full .jcbr-map { height: 100vh; }
html.jcbr-noscroll, html.jcbr-noscroll body { overflow: hidden; }
.jcbr-fs { position: absolute; z-index: 500; left: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center; }
.jcbr-fs svg { width: 20px; height: 20px; fill: none; stroke: var(--r-ink); stroke-width: 2; stroke-linecap: round; }
.jcbr .leaflet-container { font-family: var(--r-sans); }
.jcbr .leaflet-control-layers { border-radius: 12px; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.jcbr .leaflet-bar { border: 0; box-shadow: 0 4px 14px rgba(0,0,0,.18); border-radius: 12px; overflow: hidden; }
.jcbr-pin span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.jcbr-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(42,44,49,.88); color: #fff; font-weight: 800; font-size: .85rem; border: 3px solid var(--r-accent); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.jcbr-se span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.jcbr-se .is-start { background: #3f8a4a; }
.jcbr-se .is-end { background: #a8312b; }
.jcbr-poi span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--r-ink); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.jcbr-poi svg, .jcbr-poi-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--r-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-poi .jcbr-poi--peligro { border-color: #a8312b; }
.jcbr-poi .jcbr-poi--fuente { border-color: #3d7ea6; }
.jcbr-pop { display: grid; gap: .2rem; min-width: 170px; font-family: var(--r-sans); }
.jcbr-pop__type { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-accent-dark); }
.jcbr-pop b { font-size: .95rem; line-height: 1.25; color: var(--r-ink); }
.jcbr-pop span { color: var(--r-muted); font-size: .8rem; }
.jcbr-pop a { color: var(--r-accent-dark) !important; font-weight: 800; margin-top: .3rem; }

/* tarjetas */
.jcbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; max-width: 1280px; margin: 0 auto; }
.jcbr-card { background: #fff; border: 1px solid var(--r-line); border-radius: 18px; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.jcbr-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(42,44,49,.45); }
.jcbr-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.jcbr-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--r-paper); }
.jcbr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.jcbr-card:hover .jcbr-card__media img { transform: scale(1.05); }
.jcbr-card__media.is-trace { background: radial-gradient(circle at 30% 20%, #fff 0, transparent 55%), linear-gradient(135deg, #f6f3ee, #ece4d7); }
.jcbr-card__media.is-trace::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(42,44,49,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(42,44,49,.05) 1px, transparent 1px); background-size: 28px 28px; }
.jcbr-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.jcbr-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-trace__bg { stroke: rgba(42,44,49,.85); stroke-width: 7; }
.jcbr-trace__fg { stroke: var(--r-accent); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 0; }
.jcbr-card:hover .jcbr-trace__fg { animation: jcbr-draw 1.6s ease-in-out; }
@keyframes jcbr-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.jcbr-card__media .jcbr-badge { position: absolute; left: .85rem; top: .85rem; }
.jcbr-card__rating { position: absolute; right: .85rem; top: .85rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--r-ink); font-size: .75rem; font-weight: 800; }
.jcbr-card__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.jcbr-card__place { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--r-accent-dark); }
.jcbr-card__title { font-family: var(--r-serif); font-size: 1.4rem; line-height: 1.15; font-weight: 600; color: var(--r-ink); }
.jcbr-card__stats { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--r-line); font-size: .8rem; color: var(--r-muted); }
.jcbr-card__stats b { color: var(--r-ink); }
.jcbr-empty { text-align: center; padding: 2.5rem 1rem; color: var(--r-muted); }
.jcbr-pages { display: flex; justify-content: center; gap: .4rem; margin: 2.2rem 0 1rem; }
.jcbr-pages a, .jcbr-pages span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--r-line); background: #fff; color: var(--r-ink); font-weight: 700; }
.jcbr-pages span { background: var(--r-ink); color: #fff; }

/* bloques */
.jcbr-block { max-width: 1280px; margin: 3.5rem auto 0; }
.jcbr-block__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.2rem; }
.jcbr-block__title { font-family: var(--r-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin: 0 0 1.4rem; text-transform: none; color: var(--r-ink); }
.jcbr-block__head .jcbr-block__title { margin: 0; }
.jcbr-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.jcbr-zone { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--r-line); color: var(--r-ink); font-weight: 700; transition: border-color .2s, transform .2s; }
.jcbr-zone:hover { border-color: var(--r-accent); transform: translateY(-2px); }
.jcbr-zone b { font-size: .75rem; color: var(--r-accent-dark); white-space: nowrap; }
.jcbr-zone.is-empty { opacity: .6; }
.jcbr-zone.is-empty b { color: var(--r-muted); font-weight: 600; }
.jcbr-outings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.jcbr-outing { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid var(--r-line); color: var(--r-ink); transition: border-color .2s; }
.jcbr-outing:hover { border-color: var(--r-accent); }
.jcbr-outing__date { flex: 0 0 62px; height: 66px; border-radius: 14px; background: var(--r-ink); color: #fff; display: grid; place-items: center; align-content: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.jcbr-outing__date b { font-family: var(--r-serif); font-size: 1.9rem; line-height: 1; letter-spacing: 0; }
.jcbr-outing__body { display: grid; gap: .15rem; flex: 1; }
.jcbr-outing__title { font-weight: 800; }
.jcbr-outing__meta { font-size: .8rem; color: var(--r-muted); }
.jcbr-outing i { font-style: normal; color: var(--r-accent-dark); }
.jcbr-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1280px; margin: 3.5rem auto 1rem; padding: 1.8rem 2rem; border-radius: 22px; background: var(--r-ink); color: #fff; }
.jcbr-cta__title { font-family: var(--r-serif); font-size: 1.75rem; line-height: 1.15; margin: 0 0 .35rem; color: #fff; font-weight: 600; }
.jcbr-cta__text { margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; max-width: 620px; }
.jcbr-cta .jcbr-btn--accent:hover { background: #fff; color: var(--r-ink) !important; }

/* ficha de ruta */
.jcbr-preview { max-width: 1280px; margin: 0 auto 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fdf3e7; border: 1px solid #e8c48f; font-weight: 700; color: #7a5420; }
.jcbr-rhead { max-width: 900px; margin: 1rem auto 1.5rem; text-align: center; }
.jcbr-rhead__tags { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .85rem; font-weight: 700; margin: 0; }
.jcbr-rhead__tags a { color: var(--r-accent-dark); }
.jcbr-rhead__title { font-family: var(--r-serif); font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; font-weight: 600; margin: .9rem 0; text-transform: none; color: var(--r-ink); }
.jcbr-rhead__lead { font-size: 1.1rem; line-height: 1.6; color: var(--r-muted); margin: 0 auto .9rem; max-width: 700px; }
.jcbr-rhead__meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .86rem; color: var(--r-muted); margin: 0; }
.jcbr-rhead__meta a { color: var(--r-ink); font-weight: 700; }
.jcbr-stars { --r: 0; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, var(--r-accent) calc(var(--r) / 5 * 100%), #d9d2c5 calc(var(--r) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.jcbr-stars::before { content: "★★★★★"; }
.jcbr-stars--sm { font-size: .85rem; }
.jcbr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; max-width: 1080px; margin: 0 auto 1.4rem; background: var(--r-line); border: 1px solid var(--r-line); border-radius: 18px; overflow: hidden; }
.jcbr-stats > div { background: #fff; padding: .95rem 1rem; text-align: center; }
.jcbr-stats dt { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--r-muted); margin-bottom: .25rem; }
.jcbr-stats dd { margin: 0; font-family: var(--r-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--r-ink); }
.jcbr-stats dd small { font-family: var(--r-sans); font-size: .8rem; color: var(--r-muted); font-weight: 600; }
.jcbr-stats .jcbr-diff { font-family: var(--r-sans); font-size: .95rem; }
.jcbr-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: 0 auto 1.8rem; }
.jcbr-profile { position: relative; max-width: 1280px; margin: -1rem auto 2.4rem; padding: 1rem 1rem .4rem; background: #fff; border: 1px solid var(--r-line); border-radius: 18px; }
.jcbr-profile svg { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: pan-y; }
.jcbr-profile .g { stroke: var(--r-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.jcbr-profile .ly, .jcbr-profile .lx { font-size: 11px; fill: var(--r-muted); font-family: var(--r-sans); }
.jcbr-profile .ly { text-anchor: end; dominant-baseline: middle; }
.jcbr-profile .lx { text-anchor: middle; }
.jcbr-profile .cur { stroke: var(--r-ink); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.jcbr-profile .dot { stroke: #fff; stroke-width: 2; }
.jcbr-profile__info { position: absolute; right: 1rem; top: .6rem; padding: .3rem .7rem; border-radius: 999px; background: var(--r-ink); color: #fff; font-size: .78rem; font-weight: 700; }

.jcbr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; max-width: 1280px; margin: 0 auto; align-items: start; }
.jcbr-section { margin-bottom: 2.4rem; }
.jcbr-h2 { font-family: var(--r-serif); font-size: 1.9rem; font-weight: 600; margin: 0 0 1rem; text-transform: none; color: var(--r-ink); }
.jcbr-h3 { font-family: var(--r-sans); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--r-accent-dark); margin: 0 0 .9rem; }
.jcbr-rte { font-size: 1.02rem; line-height: 1.75; color: #3a3c42; }
.jcbr-rte p { margin: 0 0 1rem; }
.jcbr-rte h2, .jcbr-rte h3 { font-family: var(--r-serif); color: var(--r-ink); text-transform: none; }
.jcbr-rte ul { padding-left: 1.2rem; }
.jcbr-rte a { color: var(--r-accent-dark); text-decoration: underline; }
.jcbr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: -1rem 0 2.4rem; }
.jcbr-facts > div { padding: .9rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--r-line); }
.jcbr-facts dt { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--r-accent-dark); }
.jcbr-facts dd { margin: .2rem 0 0; font-weight: 600; }
.jcbr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.jcbr-gallery__item { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--r-paper); }
.jcbr-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jcbr-gallery__item:hover img { transform: scale(1.06); }
.jcbr-pois { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.jcbr-pois button { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--r-line); background: #fff; text-align: left; cursor: pointer; font-family: inherit; color: var(--r-ink); transition: border-color .2s; }
.jcbr-pois button:hover { border-color: var(--r-accent); }
.jcbr-pois span { display: grid; }
.jcbr-pois small { color: var(--r-muted); }
.jcbr-poi-ico { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--r-paper); display: grid; place-items: center; }
.jcbr-poi-ico::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--r-accent); }
.jcbr-poi-ico--peligro::before { background: #a8312b; }
.jcbr-poi-ico--fuente::before { background: #3d7ea6; }
.jcbr-poi-ico--bar::before { background: #c0573f; }
.jcbr-poi-ico--mirador::before { background: #7a8b52; }
.jcbr-reviews { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .8rem; }
.jcbr-reviews li { padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--r-line); }
.jcbr-reviews p { margin: .4rem 0; line-height: 1.6; }
.jcbr-reviews small { color: var(--r-muted); font-weight: 600; }

/* formularios */
.jcbr-form { display: grid; gap: .9rem; }
.jcbr-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--r-ink); }
.jcbr-form input[type=text], .jcbr-form input[type=email], .jcbr-form input[type=tel], .jcbr-form input[type=file], .jcbr-form select, .jcbr-form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--r-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 500; color: var(--r-ink); }
.jcbr-form input:focus, .jcbr-form select:focus, .jcbr-form textarea:focus { outline: none; border-color: var(--r-accent); box-shadow: 0 0 0 3px rgba(184,134,75,.15); }
.jcbr-form small { font-weight: 500; color: var(--r-muted); }
.jcbr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.jcbr-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .55rem !important; font-weight: 500 !important; line-height: 1.45; }
.jcbr-check input { margin-top: .2rem; }
.jcbr-check a { color: var(--r-accent-dark); text-decoration: underline; }
.jcbr-rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.jcbr-rate legend { width: 100%; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.jcbr-rate input { position: absolute; opacity: 0; }
.jcbr-rate label { font-size: 2rem; line-height: 1; color: #d9d2c5; cursor: pointer; transition: color .15s, transform .15s; }
.jcbr-rate label:hover, .jcbr-rate label:hover ~ label, .jcbr-rate input:checked ~ label { color: var(--r-accent); }
.jcbr-rate input:focus-visible + label { outline: 2px solid var(--r-accent); border-radius: 4px; }
.jcbr-review-form { padding: 1.2rem; border-radius: 16px; background: #fff; border: 1px solid var(--r-line); }

/* barra lateral */
.jcbr-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.jcbr-card-box { padding: 1.3rem; border-radius: 18px; background: #fff; border: 1px solid var(--r-line); }
.jcbr-weather__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.jcbr-wday { display: grid; justify-items: center; gap: .25rem; padding: .5rem .2rem; border-radius: 12px; background: var(--r-paper); font-size: .72rem; color: var(--r-muted); text-align: center; }
.jcbr-wday__d { font-weight: 800; color: var(--r-ink); text-transform: uppercase; letter-spacing: .08em; }
.jcbr-wday svg { width: 28px; height: 28px; fill: none; stroke: var(--r-accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-wday__t b { color: var(--r-ink); font-size: .85rem; }
.jcbr-side-outing { padding: .9rem 0; border-top: 1px solid var(--r-line); font-size: .88rem; }
.jcbr-side-outing:first-of-type { border-top: 0; padding-top: 0; }
.jcbr-side-outing p { margin: 0 0 .3rem; }
.jcbr-side-outing__date b { font-size: .95rem; }
.jcbr-signup { margin-top: .6rem; }
.jcbr-signup summary { list-style: none; display: inline-flex; }
.jcbr-signup summary::-webkit-details-marker { display: none; }
.jcbr-signup[open] summary { display: none; }
.jcbr-signup .jcbr-form { margin-top: .4rem; }
.jcbr-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.jcbr-tips a { display: flex; justify-content: space-between; gap: .6rem; padding: .65rem .8rem; border-radius: 12px; background: var(--r-paper); color: var(--r-ink); font-weight: 700; font-size: .88rem; line-height: 1.3; }
.jcbr-tips a:hover { color: var(--r-accent-dark); }
.jcbr-tips i { font-style: normal; color: var(--r-accent-dark); }

.jcbr-reco__grid { display: flex; flex-wrap: wrap; }
.jcbr-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(20,21,24,.92); display: grid; place-items: center; padding: 2rem; }
.jcbr-lightbox[hidden] { display: none; }
.jcbr-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.jcbr-lightbox button { position: absolute; right: 1rem; top: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

.jcbr-submit .jcbr-card-box { max-width: 760px; margin: 0 auto; }
.jcbr-thanks { text-align: center; }

@media (max-width: 991px) {
  .jcbr-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .jcbr-side { position: static; }
  .jcbr-map { height: 380px; }
  .jcbr-map--route { height: 420px; }
}
@media (max-width: 640px) {
  .jcbr-mapwrap { border-radius: 16px; margin-left: -6px; margin-right: -6px; }
  .jcbr-map { height: 340px; }
  .jcbr-map--route { height: 360px; }
  .jcbr-stats { grid-template-columns: repeat(2, 1fr); }
  .jcbr-stats dd { font-size: 1.45rem; }
  .jcbr-actions .jcbr-btn { flex: 1 1 100%; }
  .jcbr-cta { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .jcbr-cta .jcbr-btn { width: 100%; }
  .jcbr-form__row { grid-template-columns: 1fr; }
  .jcbr-weather__days { gap: .2rem; }
  .jcbr-wday { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jcbr *, .jcbr *::before { animation: none !important; transition: none !important; }
}

/* ---------- 1.1: portada con foto, datos del recorrido, créditos y tiempo por día ---------- */
.jcbr-rhead.has-cover { position: relative; max-width: 1280px; padding: clamp(3rem, 8vw, 6.5rem) 1.5rem 2.4rem; border-radius: 26px; overflow: hidden; color: #fff; background: #222 var(--cover) center / cover no-repeat; isolation: isolate; }
.jcbr-rhead.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,21,24,.25) 0%, rgba(20,21,24,.55) 55%, rgba(20,21,24,.85) 100%); }
.jcbr-rhead.has-cover .jcbr-rhead__title, .jcbr-rhead.has-cover .jcbr-rhead__lead, .jcbr-rhead.has-cover .jcbr-rhead__meta, .jcbr-rhead.has-cover .jcbr-rhead__meta a, .jcbr-rhead.has-cover .jcbr-rhead__tags a { color: #fff; }
.jcbr-rhead.has-cover .jcbr-rhead__lead { color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.jcbr-rhead.has-cover .jcbr-rhead__title { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.jcbr-rhead__credit { position: absolute; right: 1rem; bottom: .7rem; margin: 0; font-size: .68rem; color: rgba(255,255,255,.7); }
.jcbr-rhead__credit a { color: inherit !important; }
.jcbr-xfacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; max-width: 1080px; margin: -.4rem auto 1.4rem; font-size: .88rem; }
.jcbr-xfacts > div { display: grid; gap: .15rem; text-align: center; }
.jcbr-xfacts__label { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r-muted); }
.jcbr-xfacts b { font-size: 1rem; color: var(--r-ink); }
.jcbr-xfacts a { color: var(--r-accent-dark); font-weight: 700; }
.jcbr-xfacts__surface { min-width: 240px; }
.jcbr-bar { display: block; height: 10px; border-radius: 999px; background: #c9a66b; overflow: hidden; }
.jcbr-bar i { display: block; height: 100%; background: var(--r-ink); }
.jcbr-xfacts__legend { font-size: .74rem; color: var(--r-muted); }
.jcbr-xfacts__legend b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 .3rem 0 .5rem; vertical-align: middle; }
.jcbr-xfacts__legend .is-paved { background: var(--r-ink); }
.jcbr-xfacts__legend .is-loose { background: #c9a66b; }
.jcbr-gallery__fig { margin: 0; }
.jcbr-gallery__fig figcaption { margin-top: .3rem; font-size: .66rem; line-height: 1.3; color: var(--r-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jcbr-gallery__fig figcaption a { color: inherit; }
.jcbr-lightbox p { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .85rem; padding: 0 1rem; }
.jcbr-rte .jcbr-src, .jcbr-src { font-size: .78rem; color: var(--r-muted); border-top: 1px solid var(--r-line); padding-top: .8rem; margin-top: 1.6rem; }
.jcbr-rte h2 { font-size: 1.5rem; margin: 1.8rem 0 .6rem; }
.jcbr-rte small { color: var(--r-muted); }
.jcbr-weather__pick { display: grid; gap: .35rem; font-size: .8rem; font-weight: 700; margin-bottom: .8rem; }
.jcbr-weather__pick input { padding: .55rem .7rem; border: 1px solid var(--r-line); border-radius: 10px; font: inherit; background: #fff; }
.jcbr-wd { display: flex; align-items: center; gap: .8rem; }
.jcbr-wd > svg { width: 52px; height: 52px; flex: 0 0 52px; fill: none; stroke: var(--r-accent-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-wd p { margin: 0; }
.jcbr-wd__date { font-size: .78rem; color: var(--r-muted); }
.jcbr-wd__date::first-letter { text-transform: uppercase; }
.jcbr-wd__sum { font-size: 1.05rem; }
.jcbr-wd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .8rem 0; }
.jcbr-wd__grid > div { padding: .45rem .6rem; border-radius: 10px; background: var(--r-paper); }
.jcbr-wd__grid dt { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--r-muted); }
.jcbr-wd__grid dd { margin: 0; font-weight: 700; font-size: .85rem; }
.jcbr-hours { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: .6rem; }
.jcbr-hour { flex: 0 0 auto; display: grid; justify-items: center; gap: .1rem; min-width: 44px; padding: .35rem .2rem; border-radius: 10px; border: 1px solid var(--r-line); font-size: .78rem; }
.jcbr-hour small { font-size: .62rem; color: var(--r-muted); }
.jcbr-hour svg { width: 20px; height: 20px; fill: none; stroke: var(--r-accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jcbr-wd__tips { margin: 0 0 .9rem; padding-left: 1.1rem; font-size: .82rem; color: var(--r-ink); }
.jcbr-weather__days { grid-template-columns: repeat(7, 1fr); }
.jcbr-wday { border: 1px solid transparent; cursor: pointer; font: inherit; }
.jcbr-wday.is-active { border-color: var(--r-accent); background: #fff; }
.jcbr-poi .jcbr-poi--tunel, .jcbr-poi .jcbr-poi--puente { border-color: #6b5b95; }
.jcbr-poi .jcbr-poi--cima { border-color: #3f8a4a; }
.jcbr-poi .jcbr-poi--patrimonio, .jcbr-poi .jcbr-poi--estacion { border-color: var(--r-accent); }
.jcbr-poi-ico--tunel::before, .jcbr-poi-ico--puente::before { background: #6b5b95; }
.jcbr-poi-ico--cima::before { background: #3f8a4a; }
.jcbr-poi-ico--patrimonio::before, .jcbr-poi-ico--estacion::before { background: var(--r-accent); }
.jcbr-poi-ico--localidad::before { background: var(--r-ink); }
@media (max-width: 640px) {
  .jcbr-rhead.has-cover { border-radius: 18px; margin-left: -6px; margin-right: -6px; padding: 3rem 1rem 2.4rem; }
  .jcbr-weather__days { grid-template-columns: repeat(4, 1fr); }
}
