/*
Theme Name: Rutas y Viajes
Theme URI: https://queveren.org
Description: Guías de las 100 ciudades más visitadas del mundo: buscador, filtros, mapa interactivo y fichas de ciudad con itinerarios.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: rutas-y-viajes
License: GPLv2 or later
*/

/* ---------- Tokens ---------- */
:root {
	--tinta: #12263F;
	--oceano: #1D5FA6;
	--esmeralda: #0B7A64;
	--adobe: #B4502D;
	--papel: #F4F7F6;
	--superficie: #FFFFFF;
	--linea: #D8E1E0;
	--texto: #12263F;
	--suave: #4F6072;
	--acento: var(--esmeralda);
	--hero-bg: #12263F;
	--hero-tx: #F4F7F6;

	--f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-s: 6px;
	--r-m: 14px;
	--r-l: 28px;
	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--top-h: 68px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--papel: #0D1721;
		--superficie: #15222E;
		--linea: #263749;
		--texto: #E6EDF0;
		--suave: #9DB0BF;
		--oceano: #72A9E6;
		--esmeralda: #3FC7A6;
		--adobe: #E3906A;
		--hero-bg: #0A1520;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--papel: #0D1721;
	--superficie: #15222E;
	--linea: #263749;
	--texto: #E6EDF0;
	--suave: #9DB0BF;
	--oceano: #72A9E6;
	--esmeralda: #3FC7A6;
	--adobe: #E3906A;
	--hero-bg: #0A1520;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--papel);
	color: var(--texto);
	font: 400 1.0625rem/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oceano); text-underline-offset: .18em; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--esmeralda); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.rv-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--superficie); padding: 10px 14px; border-radius: var(--r-s); }
.rv-skip:focus { top: 12px; }
.rv-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.rv-h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Cabecera ---------- */
.rv-top {
	position: sticky; top: 0; z-index: 40;
	height: var(--top-h);
	background: color-mix(in srgb, var(--papel) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--linea);
}
.rv-top--over { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; }
.rv-top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rv-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 1.2rem/1 var(--f-display); letter-spacing: -.02em; }
.rv-nav { display: flex; align-items: center; gap: 8px; }
.rv-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rv-nav a { color: inherit; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--r-s); }
.rv-nav a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.rv-theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 50%; background: none; cursor: pointer; }
.rv-i-luna { display: none; }
:root[data-theme="dark"] .rv-i-sol { display: none; }
:root[data-theme="dark"] .rv-i-luna { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .rv-i-sol { display: none; }
	:root:not([data-theme="light"]) .rv-i-luna { display: block; }
}
@media (max-width: 560px) { .rv-nav ul { display: none; } }

/* ---------- Hero ---------- */
.rv-hero {
	position: relative;
	background:
		repeating-linear-gradient(0deg, transparent 0 63px, rgb(255 255 255 / .05) 63px 64px),
		radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--esmeralda) 45%, transparent), transparent 60%),
		radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--oceano) 40%, transparent), transparent 60%),
		var(--hero-bg);
	color: var(--hero-tx);
	padding: calc(var(--top-h) + clamp(48px, 10vw, 120px)) 0 clamp(56px, 9vw, 110px);
	overflow: visible;
}
.rv-hero__in { position: relative; }
.rv-hero__kicker { font-size: 1.05rem; margin: 0 0 1rem; opacity: .85; max-width: 40ch; }
.rv-hero__title { display: flex; flex-direction: column; gap: .15em; margin-bottom: clamp(28px, 4vw, 44px); }
.rv-hero__lead { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; opacity: .9; letter-spacing: 0; }

/* Panel de destinos tipo salidas de aeropuerto: el elemento memorable de la página. */
.rv-flap {
	display: flex; flex-wrap: wrap; gap: .06em;
	font-size: clamp(2.6rem, 9.5vw, 7.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	min-height: 1.25em;
	perspective: 600px;
}
.rv-flap__c {
	display: inline-grid; place-items: center;
	min-width: .62em; padding: .06em .04em .1em;
	background: linear-gradient(180deg, rgb(255 255 255 / .10) 0 50%, rgb(255 255 255 / .06) 50% 100%);
	border-radius: .08em;
	box-shadow: inset 0 -1px 0 rgb(0 0 0 / .25), inset 0 1px 0 rgb(255 255 255 / .08);
	position: relative;
	transform-origin: 50% 50%;
}
.rv-flap__c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: color-mix(in srgb, var(--hero-bg) 80%, transparent); }
.rv-flap__c.is-space { background: none; box-shadow: none; min-width: .3em; }
.rv-flap__c.is-space::after { display: none; }
.rv-flap__c.is-flip { animation: rv-flip .42s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes rv-flip {
	0% { transform: rotateX(0); }
	45% { transform: rotateX(-90deg); }
	55% { transform: rotateX(90deg); }
	100% { transform: rotateX(0); }
}

/* Buscador */
.rv-search { position: relative; max-width: 680px; }
.rv-search__icon { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--suave); pointer-events: none; }
.rv-search input {
	width: 100%; height: 64px; padding: 0 22px 0 56px;
	border: 0; border-radius: var(--r-l);
	background: var(--superficie); color: var(--texto);
	font-size: 1.125rem;
	box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55);
}
.rv-search input::placeholder { color: var(--suave); }
.rv-search input:focus-visible { outline: 3px solid var(--esmeralda); outline-offset: 3px; }
.rv-sugg {
	position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
	list-style: none; margin: 0; padding: 6px;
	background: var(--superficie); color: var(--texto);
	border: 1px solid var(--linea); border-radius: var(--r-m);
	box-shadow: 0 24px 50px -20px rgb(0 0 0 / .45);
}
.rv-sugg a { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.rv-sugg a:hover, .rv-sugg a[aria-selected="true"] { background: color-mix(in srgb, var(--esmeralda) 14%, transparent); }
.rv-sugg b { font-family: var(--f-display); font-size: 1.05rem; }
.rv-sugg span { color: var(--suave); font-size: .92rem; }
.rv-sugg em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; color: var(--suave); font-size: .88rem; }
.rv-sugg__all { border-top: 1px solid var(--linea); margin-top: 4px; }

/* ---------- Barra de filtros ---------- */
.rv-list { padding-bottom: clamp(48px, 7vw, 88px); }
.rv-toolbar {
	position: sticky; top: 0; z-index: 20;
	background: color-mix(in srgb, var(--papel) 94%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--linea);
	margin-bottom: clamp(24px, 3vw, 36px);
}
.rv-toolbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; }
.rv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gap) * -1); padding-inline: var(--gap); }
.rv-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .rv-chips { margin: 0; padding: 0; flex-wrap: wrap; } }
.rv-chip {
	--c: var(--tinta);
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	height: 38px; padding: 0 14px;
	border: 1px solid var(--linea); border-radius: 999px;
	background: var(--superficie); cursor: pointer; font-weight: 600; font-size: .95rem;
}
.rv-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.rv-chip[data-cont="todos"]::before { display: none; }
.rv-chip[aria-pressed="true"] { background: var(--texto); color: var(--papel); border-color: var(--texto); }
.rv-chip[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--papel); }
.rv-toolbar__end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.rv-count { color: var(--suave); font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--suave); white-space: nowrap; }
@media (max-width: 560px) { .rv-toolbar__end { margin-left: 0; width: 100%; justify-content: space-between; } .rv-card__media { aspect-ratio: 16 / 10; } }
.rv-sort select { height: 38px; padding: 0 10px; border: 1px solid var(--linea); border-radius: var(--r-s); background: var(--superficie); color: var(--texto); font-weight: 600; }

/* ---------- Tarjetas ---------- */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.rv-card { --c: var(--oceano); display: flex; flex-direction: column; background: var(--superficie); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--linea); }
.rv-card[hidden] { display: none; }
.rv-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c); }
.rv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s ease; }
.rv-card:hover .rv-card__media img { scale: 1.04; }
.rv-card__rank {
	position: absolute; left: 14px; bottom: 10px;
	display: flex; align-items: baseline; gap: 3px;
	color: #fff; font: 800 clamp(2.4rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.03em;
	text-shadow: 0 2px 18px rgb(0 0 0 / .45);
	font-variant-numeric: tabular-nums;
}
.rv-card__rank span { font-size: .34em; font-weight: 600; letter-spacing: 0; opacity: .9; }
.rv-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.rv-card__title { font-size: 1.45rem; font-weight: 800; }
.rv-card__meta { margin: 0; color: var(--suave); }
.rv-card__stat { margin: 2px 0 0; font-size: .92rem; color: var(--c); font-weight: 600; filter: saturate(1.1); }
:root[data-theme="dark"] .rv-card__stat { color: color-mix(in srgb, var(--c) 55%, white); }
.rv-card .rv-btn { margin-top: auto; align-self: flex-start; }
.rv-card__body > .rv-btn { margin-top: 14px; }

/* Relleno cuando no hay foto: el nombre de la ciudad como textura tipográfica. */
.rv-fallback {
	position: absolute; inset: 0; display: flex; align-items: flex-start; overflow: hidden;
	background:
		repeating-linear-gradient(0deg, transparent 0 23px, rgb(255 255 255 / .08) 23px 24px),
		linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, white), var(--c) 55%, color-mix(in srgb, var(--c) 70%, black));
}
.rv-fallback span {
	font: 800 clamp(3.6rem, 9vw, 5.5rem)/.86 var(--f-display);
	letter-spacing: -.04em; color: rgb(255 255 255 / .2);
	padding: 12px 10px 0; overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.rv-fallback--cover span { font-size: clamp(6rem, 22vw, 18rem); padding: 5vw; }
.rv-fallback--sm span { font-size: 2.4rem; }

/* Botón */
.rv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px;
	border-radius: var(--r-s);
	background: var(--esmeralda); color: #fff;
	font-weight: 700; text-decoration: none; font-size: .98rem;
}
:root[data-theme="dark"] .rv-btn { color: #07231c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-btn { color: #07231c; } }
.rv-btn:hover { filter: brightness(1.08); }

.rv-empty { padding: 32px; text-align: center; color: var(--suave); border: 1px dashed var(--linea); border-radius: var(--r-m); }

/* ---------- Mapa ---------- */
.rv-mapsec { padding-bottom: clamp(56px, 8vw, 100px); }
.rv-mapsec__head { display: flex; align-items: end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.rv-mapsec__head .rv-h2 { margin: 0; }
.rv-mapsec__head p { margin: 0; color: var(--suave); max-width: 46ch; }
.rv-map { height: clamp(380px, 62vh, 640px); background: var(--superficie); border-block: 1px solid var(--linea); z-index: 1; }
.rv-map--route { height: 100%; min-height: 420px; border: 1px solid var(--linea); border-radius: var(--r-m); overflow: hidden; }
.leaflet-container { font-family: var(--f-body); background: var(--superficie); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--superficie); color: var(--texto); }
.leaflet-popup-content-wrapper { border-radius: var(--r-m); }
.leaflet-container a.leaflet-popup-close-button { color: var(--suave); }
.rv-pin { background: none; border: 0; }
.rv-pin span {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--c); color: #fff; font: 700 11px/1 var(--f-body);
	border: 2px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .35);
	font-variant-numeric: tabular-nums;
}
.rv-pin--step span { width: 32px; height: 32px; font-size: 14px; background: var(--adobe); }
.rv-pop { display: grid; gap: 2px; color: var(--texto) !important; text-decoration: none; min-width: 160px; }
.rv-pop strong { font: 800 1.15rem/1.1 var(--f-display); }
.rv-pop span { color: var(--suave); }
.rv-pop em { font-style: normal; color: var(--esmeralda); font-weight: 700; margin-top: 6px; }

/* ---------- Ficha de ciudad ---------- */
.rv-cover { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--c); overflow: hidden; }
.rv-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 20 32 / .45) 0%, transparent 30%, transparent 45%, rgb(10 20 32 / .82) 100%); }
.rv-cover__in { position: relative; z-index: 1; padding-bottom: clamp(32px, 6vw, 72px); }
.rv-cover__rank { display: flex; align-items: baseline; gap: 6px; margin: 0 0 .4rem; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.rv-cover__rank span { font-size: .4em; font-weight: 600; }
.rv-cover__rank small { font: 500 1rem/1 var(--f-body); opacity: .9; margin-left: 6px; }
.rv-cover__title { font-size: clamp(3.4rem, 11vw, 9rem); font-weight: 800; letter-spacing: -.035em; line-height: .92; text-wrap: balance; }
.rv-cover__meta { margin: .8rem 0 0; font-size: 1.2rem; opacity: .92; }

.rv-subnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--papel) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.rv-subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.rv-subnav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--texto); text-decoration: none; font-weight: 600; white-space: nowrap; }
.rv-subnav a:hover, .rv-subnav a.is-current { background: color-mix(in srgb, var(--c) 16%, transparent); }

.rv-city__body { padding-block: clamp(36px, 6vw, 72px); }
.rv-sec { padding-block: clamp(28px, 4.5vw, 56px); border-top: 1px solid var(--linea); }
.rv-sec:first-child { border-top: 0; padding-top: 0; }

.rv-intro { display: grid; gap: 32px; }
@media (min-width: 900px) { .rv-intro { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } }
.rv-prose { max-width: 66ch; }
.rv-prose p { margin: 0 0 1.1em; }
.rv-intro__text p:first-child { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; }
.rv-facts { margin: 0; display: grid; gap: 0; border-left: 3px solid var(--c); padding-left: 20px; }
.rv-facts div { padding: 10px 0; border-bottom: 1px solid var(--linea); }
.rv-facts div:last-child { border-bottom: 0; }
.rv-facts dt { font-size: .88rem; color: var(--suave); }
.rv-facts dd { margin: 2px 0 0; font-weight: 600; }

.rv-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.rv-facts-list li { position: relative; padding: 18px 20px 20px 20px; background: var(--superficie); border-radius: var(--r-m); border: 1px solid var(--linea); }
.rv-facts-list li::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--adobe); margin-bottom: 12px; }

.rv-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rv-place { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; padding: 12px; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-m); }
.rv-place__media { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--c); }
.rv-place__media img { width: 100%; height: 100%; object-fit: cover; }
.rv-place h3 { font-size: 1.15rem; font-weight: 800; }
.rv-place__zone { margin: 2px 0 6px; font-size: .88rem; color: var(--suave); }
.rv-place p { margin: 0; font-size: .97rem; }
.rv-place__body > p:last-child { margin-top: 4px; }

.rv-transport__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .rv-transport__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.rv-modes { margin: 0; }
.rv-mode { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 640px) { .rv-mode { grid-template-columns: 220px 1fr; } }
.rv-mode dt { font: 800 1.1rem/1.2 var(--f-display); }
.rv-mode dd { margin: 0; }
.rv-mode__price { display: block; margin-top: 4px; font-size: .9rem; color: var(--esmeralda); font-weight: 600; }
.rv-tips { padding: 22px 24px; border-radius: var(--r-m); background: color-mix(in srgb, var(--esmeralda) 12%, var(--superficie)); }
.rv-tips h3 { font-size: 1.2rem; margin-bottom: 10px; }
.rv-tips ul { margin: 0; padding-left: 1.1em; }
.rv-tips li { margin-bottom: .6em; }

.rv-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--superficie); border: 1px solid var(--linea); border-radius: 999px; }
.rv-tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.rv-tabs button[aria-selected="true"] { background: var(--texto); color: var(--papel); }
.rv-routes__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .rv-routes__grid { grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; } }
.rv-it { display: grid; gap: 12px; align-content: start; }
.rv-day { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-m); overflow: hidden; }
.rv-day.is-active { border-color: var(--adobe); box-shadow: 0 0 0 1px var(--adobe); }
.rv-day__head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.rv-day__head span { font: 800 1.1rem/1.2 var(--f-display); }
.rv-day__head small { color: var(--suave); font-size: .85rem; white-space: nowrap; }
.rv-day.is-active .rv-day__head small { color: var(--adobe); }
.rv-stops { list-style: none; counter-reset: paso; margin: 0; padding: 0 16px 14px; }
.rv-stops li { counter-increment: paso; position: relative; padding: 8px 0 8px 40px; }
.rv-stops li::before {
	content: counter(paso); position: absolute; left: 0; top: 7px;
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: color-mix(in srgb, var(--adobe) 16%, transparent); color: var(--adobe); font-weight: 700; font-size: .85rem;
}
.rv-day.is-active .rv-stops li::before { background: var(--adobe); color: #fff; }
.rv-stops li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 35px; bottom: -7px; width: 2px; background: var(--linea); }
.rv-stops strong { display: block; }
.rv-stops span { display: block; font-size: .92rem; color: var(--suave); }

.rv-gallery { columns: 3 260px; column-gap: 12px; }
.rv-gallery__item { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--linea); }
.rv-gallery__item img { width: 100%; }
.rv-lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-m); background: #000; overflow: visible; }
.rv-lightbox::backdrop { background: rgb(5 12 20 / .88); }
.rv-lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: var(--r-m); }
.rv-lightbox__btn, .rv-lightbox__close { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: #12263F; font-size: 28px; line-height: 1; cursor: pointer; }
.rv-lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.rv-lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.rv-lightbox__close { right: 12px; top: 12px; }

.rv-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 40px; border-top: 1px solid var(--linea); }
.rv-pager__link { display: grid; color: var(--texto); text-decoration: none; font: 800 1.35rem/1.15 var(--f-display); }
.rv-pager__link small { font: 500 .9rem/1.4 var(--f-body); color: var(--suave); }
.rv-pager__link--next { text-align: right; }
.rv-pager__all { font-weight: 700; }
@media (max-width: 560px) { .rv-pager { grid-template-columns: 1fr 1fr; } .rv-pager__all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

.rv-pending { text-align: left; }

/* ---------- Páginas genéricas y pie ---------- */
.rv-page { padding-block: clamp(40px, 6vw, 80px); }
.rv-entry { margin-bottom: 48px; }
.rv-entry__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.rv-entry__title a { color: inherit; text-decoration: none; }

.rv-foot { background: var(--hero-bg); color: var(--hero-tx); padding-block: 40px; }
.rv-foot__in { display: grid; gap: 6px; }
@media (min-width: 800px) { .rv-foot__in { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 32px; } }
.rv-foot p { margin: 0; }
.rv-foot__name { font: 800 1.2rem/1 var(--f-display); }
.rv-foot__note, .rv-foot__copy { opacity: .75; font-size: .92rem; }
