/* ==========================================================================
   Cillaperlata Turismo
   Paleta: el Ebro (verde de río), el pinar de la Llana, la caliza del peñón
   y el ocre de la resina y los cortados.
   ========================================================================== */

@font-face {
	font-family: "Young Serif";
	src: url("../fonts/young-serif.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree.woff") format("woff");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-italic.woff") format("woff");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--ebro: #1E5A55;
	--ebro-deep: #15423E;
	--pinar: #1C2F27;
	--caliza: #EDEFE9;
	--caliza-2: #E2E6DD;
	--ocre: #B97A1F;
	--ocre-light: #E3AE55;
	--berry: #94354F;
	--ink: #17221E;
	--ink-2: #4B5853;
	--line: #CCD3C9;
	--white: #FFFFFF;

	--font-display: "Young Serif", Georgia, "Times New Roman", serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: 1.2rem;
	--step-2: 1.44rem;
	--step-3: clamp(1.6rem, 1.3rem + 1.2vw, 2.07rem);
	--step-4: clamp(2rem, 1.5rem + 2vw, 2.99rem);
	--step-5: clamp(2.4rem, 1.6rem + 3.4vw, 4.3rem);

	--gutter: clamp(16px, 4vw, 40px);
	--wrap: 1240px;
	--radius: 10px;
	--radius-l: 16px;
	--header-h: 64px;
	--bar-h: 0px;
	--focus: 0 0 0 3px var(--white), 0 0 0 6px var(--ocre);
}

@media (min-width: 1080px) {
	:root { --header-h: 76px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--caliza);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; }

a { color: var(--ebro); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ebro-deep); text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	background: var(--ink);
	color: var(--white);
	padding: 12px 16px;
	border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--wide { max-width: 1480px; }
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }

.site-main:focus { outline: none; }

.muted { color: var(--ink-2); }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 0.7rem 1.3rem;
	border: 1.5px solid var(--ebro);
	border-radius: 999px;
	background: var(--ebro);
	color: var(--white);
	font: 600 var(--step-0) / 1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ebro-deep); border-color: var(--ebro-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink-2); }
.btn--light { background: var(--caliza); color: var(--pinar); border-color: var(--caliza); }
.btn--light:hover { background: var(--white); color: var(--pinar); border-color: var(--white); }
.btn--outline-light { background: transparent; color: var(--caliza); border-color: rgba(237, 239, 233, 0.6); }
.btn--outline-light:hover { background: rgba(237, 239, 233, 0.12); color: var(--white); border-color: var(--caliza); }
.btn--small { min-height: 40px; padding: 0.5rem 1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--caliza);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.has-hero .site-header:not(.is-scrolled):not(.is-open) {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	border-color: transparent;
	color: var(--caliza);
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
	max-width: 1480px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 1.45rem;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.brand-name:hover { color: inherit; }
.brand-mark { width: 30px; height: 30px; color: var(--ocre); }

.tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tool {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.tool:hover { background: rgba(127, 140, 130, 0.15); color: inherit; }
.tool .icon { width: 22px; height: 22px; }
.fav-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--berry);
	color: var(--white);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.tool-menu-close { display: none; }
.is-open .tool-menu-open { display: none; }
.is-open .tool-menu-close { display: inline; }
@media (max-width: 420px) { .tool--hide-s { display: none; } }

/* Navegación móvil (panel) */
.nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 99;
	display: none;
	flex-direction: column;
	gap: 24px;
	overflow-y: auto;
	padding: 16px var(--gutter) 40px;
	background: var(--caliza);
	color: var(--ink);
}
.admin-bar .nav { top: calc(var(--header-h) + 46px); }
.is-open .nav { display: flex; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu > li { border-bottom: 1px solid var(--line); }
.menu a {
	display: block;
	padding: 14px 0;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
}
.menu .sub-menu { display: none; padding: 0 0 12px 12px; }
.menu .sub-menu a { padding: 10px 0; font-weight: 500; font-size: 1rem; color: var(--ink-2); }
.menu .is-expanded > .sub-menu { display: block; }
.menu-item-has-children { position: relative; }
.submenu-toggle {
	position: absolute;
	top: 4px;
	right: -8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .icon { transition: transform 0.2s; }
.is-expanded > .submenu-toggle .icon { transform: rotate(180deg); }
.menu .current-menu-item > a, .menu .current-menu-ancestor > a { color: var(--ebro); }

.nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.nav-sede { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.langs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.langs a {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 36px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	border: 1px solid transparent;
}
.langs a[aria-current] { border-color: currentColor; }

@media (min-width: 1080px) {
	.tool--menu { display: none; }
	.nav {
		position: static;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 20px;
		overflow: visible;
		padding: 0;
		background: transparent;
		color: inherit;
		margin-left: 28px;
		flex: 1;
	}
	.menu { display: flex; gap: 4px; }
	.menu > li { border: 0; position: relative; }
	.menu > li > a {
		padding: 10px 12px;
		font-size: 0.98rem;
		border-radius: 999px;
	}
	.menu > li > a:hover { background: rgba(127, 140, 130, 0.15); }
	.submenu-toggle { display: none; }
	.menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		display: block;
		min-width: 240px;
		padding: 8px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		box-shadow: 0 12px 30px rgba(23, 34, 30, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
	}
	.menu > li:hover > .sub-menu,
	.menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.menu .sub-menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 0.95rem; }
	.menu .sub-menu a:hover { background: var(--caliza); }
	.nav-extra { margin-left: auto; flex-wrap: nowrap; gap: 16px; }
	.nav-sede { font-size: 0.9rem; }
}

/* Buscador desplegable */
.search-panel {
	padding: 16px var(--gutter) 20px;
	background: var(--caliza);
	border-top: 1px solid var(--line);
	color: var(--ink);
}
.search-form { display: flex; gap: 8px; max-width: 720px; margin-inline: auto; }
.search-form input { flex: 1; }

/* ---------- Forms ---------- */

input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.6rem 0.85rem;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px; /* evita el zoom en iOS */
}
textarea { min-height: 140px; resize: vertical; }
select {
	appearance: none;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5853' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 18px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ebro); }

.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--step--1); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--step-0); }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ebro); }
.field--hp { position: absolute; left: -9999px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-legal { font-size: var(--step--1); color: var(--ink-2); max-width: 70ch; }

.notice {
	padding: 14px 16px;
	border-left: 4px solid var(--ink-2);
	border-radius: 6px;
	background: var(--white);
}
.notice--ok { border-color: var(--ebro); }
.notice--error { border-color: var(--berry); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 86vh;
	min-height: 86svh;
	padding: calc(var(--header-h) + 32px) 0 clamp(40px, 8vh, 88px);
	background: var(--pinar);
	color: var(--caliza);
	overflow: hidden;
	isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero--media .hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 33, 28, 0.55) 0%, rgba(20, 33, 28, 0.1) 35%, rgba(20, 33, 28, 0.78) 100%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--media .hero-art { z-index: 1; }
.hero--media .hero-contours { display: none; }
.hero-contours path { fill: none; stroke: rgba(237, 239, 233, 0.09); stroke-width: 1.5; }
.hero-river {
	fill: none;
	stroke: var(--ocre-light);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	opacity: 0.9;
}
.hero--media .hero-river { stroke-width: 5; opacity: 0.7; }
.hero-village { fill: var(--caliza); }
@media (prefers-reduced-motion: no-preference) {
	.hero-river { animation: river 2.8s cubic-bezier(0.6, 0, 0.3, 1) both 0.2s; }
	.hero-village { animation: fade 0.6s ease both 2.6s; }
}
@keyframes river { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-inner { position: relative; z-index: 2; }
.hero-title {
	margin: 0 0 0.12em;
	font-size: clamp(3.3rem, 14vw, 10.5rem);
	line-height: 0.88;
	letter-spacing: -0.035em;
	color: var(--caliza);
}
.hero-text {
	max-width: 36ch;
	margin-bottom: 1.6em;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	line-height: 1.5;
	color: rgba(237, 239, 233, 0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.weather {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 6px 14px 6px 10px;
	border: 1px solid rgba(237, 239, 233, 0.35);
	border-radius: 999px;
	font-size: var(--step--1);
	color: var(--caliza);
	backdrop-filter: blur(6px);
}
.weather strong { font-size: 1rem; }

/* Accesos rápidos */
.quick { background: var(--white); border-bottom: 1px solid var(--line); }
.quick-list {
	display: flex;
	gap: 4px;
	margin: 0 auto;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 10px;
}
.quick-list::-webkit-scrollbar { display: none; }
.quick-list li { flex: 1 0 auto; }
.quick-list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 88px;
	padding: 10px 12px;
	border-radius: var(--radius);
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}
.quick-list a:hover { background: var(--caliza); }
.quick-list .icon { width: 26px; height: 26px; color: var(--ebro); }
@media (min-width: 900px) {
	.quick-list { justify-content: space-between; }
	.quick-list a { flex-direction: row; justify-content: center; gap: 10px; font-size: var(--step-0); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--caliza-2); }
.section--map { padding-bottom: clamp(32px, 6vw, 72px); }
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: clamp(20px, 3vw, 36px);
}
.section-title { font-size: var(--step-4); margin: 0; }
.section-intro { margin: 0.4em 0 0; max-width: 58ch; color: var(--ink-2); font-size: var(--step-1); }

.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.empty {
	grid-column: 1 / -1;
	padding: 32px;
	border: 1.5px dashed var(--line);
	border-radius: var(--radius);
	color: var(--ink-2);
	text-align: center;
}
.empty--small { padding: 18px; text-align: left; }

/* ---------- Cards ---------- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.card:hover { border-color: color-mix(in srgb, var(--tone, var(--ebro)) 55%, var(--line)); }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card.is-highlight { outline: 3px solid var(--tone); outline-offset: -1px; }

.media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--caliza-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty {
	display: grid;
	place-items: center;
	color: var(--tone);
	background-color: color-mix(in srgb, var(--tone) 9%, var(--white));
	background-image: repeating-radial-gradient(circle at 78% 115%, transparent 0 17px, color-mix(in srgb, var(--tone) 16%, transparent) 17px 18px);
}
.media--empty .icon { width: 52px; height: 52px; stroke-width: 1.3; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-title { margin: 0; font-size: var(--step-1); line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.card-text { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; }

.typelabel {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ink-2);
}
.typelabel::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tone);
	flex: none;
}

.fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(23, 34, 30, 0.2);
}
.fav .icon { width: 21px; height: 21px; }
.fav:hover { color: var(--berry); }
.fav[aria-pressed="true"] { color: var(--berry); }
.fav[aria-pressed="true"] .icon path { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	.fav.is-popping .icon { animation: pop 0.35s ease; }
}
@keyframes pop { 50% { transform: scale(1.3); } }

.fav--full {
	position: static;
	width: auto;
	height: 40px;
	gap: 8px;
	padding: 0 16px 0 12px;
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--line);
	box-shadow: none;
	background: var(--white);
	font: 600 var(--step--1) var(--font-body);
}
.fav--full[aria-pressed="true"] { border-color: var(--berry); }

.card-locate {
	position: relative;
	z-index: 2;
	display: none;
	align-items: center;
	gap: 6px;
	margin: -6px 18px 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ebro);
	font: 600 var(--step--1) var(--font-body);
	cursor: pointer;
	align-self: flex-start;
}
.card-locate:hover { text-decoration: underline; }
.card-locate .icon { width: 16px; height: 16px; }

/* Rutas: datos */
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; }
.stats .stat { display: flex; align-items: center; gap: 6px; }
.stats dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stats dd { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.stats .icon { width: 17px; height: 17px; color: var(--ink-2); }

.wrap > .stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	margin-top: -36px;
	position: relative;
	z-index: 2;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	overflow: hidden;
	background: var(--line);
}
.wrap > .stats .stat {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 12px;
	padding: 18px 20px;
	background: var(--white);
}
.wrap > .stats .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--ebro); }
.wrap > .stats dt { position: static; width: auto; height: auto; clip: auto; font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }
.wrap > .stats dd { font: 400 var(--step-2) / 1.1 var(--font-display); }

/* Fecha */
.datebadge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 60px;
	padding: 8px 10px 7px;
	border-radius: 10px;
	background: var(--ebro);
	color: var(--white);
	line-height: 1;
}
.datebadge-d { font: 400 1.75rem / 1 var(--font-display); }
.datebadge-m { margin-top: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }

/* Mosaico de imprescindibles */
.mosaic { display: grid; gap: 20px; }
@media (min-width: 720px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); }
	.mosaic .card--large { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
	.mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(0, auto); }
	.mosaic .card--large { grid-column: span 2; grid-row: span 2; }
}
.card--large { min-height: 420px; justify-content: flex-end; border: 0; }
.card--large .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--large .card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(18, 30, 25, 0.86) 100%);
}
.card--large .media--empty::after { background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--tone) 92%, black) 100%); }
.card--large .card-body { position: relative; padding: 28px; color: var(--caliza); flex: 0; }
.card--large .card-title { font-size: var(--step-3); }
.card--large .card-title a, .card--large .card-meta, .card--large .card-text, .card--large .typelabel { color: var(--caliza); }
.card--large .card-text { max-width: 52ch; font-size: 1rem; }
.card--large .card-locate { color: var(--caliza); }

/* Experiencias */
.themes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 22px;
	border-radius: var(--radius-l);
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}
.theme a:hover { border-color: var(--ebro); }
.theme a:hover .theme-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.theme-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 6px;
	border-radius: 50%;
	background: var(--pinar);
	color: var(--ocre-light);
}
.theme-icon .icon { width: 26px; height: 26px; }
.theme-name { font: 400 var(--step-2) / 1.15 var(--font-display); }
.theme-desc { color: var(--ink-2); font-size: 0.95rem; }
.theme-count { margin-top: auto; padding-top: 6px; font-size: var(--step--1); font-weight: 600; color: var(--ebro); }

/* Planificador en portada */
.planner-teaser { display: grid; gap: 28px; align-items: center; }
.planner-teaser-text p { color: var(--ink-2); font-size: var(--step-1); max-width: 40ch; margin-top: 0.5em; }
@media (min-width: 960px) { .planner-teaser { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.seasons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.season {
	--s: var(--ebro);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	aspect-ratio: 1 / 1.05;
	padding: 16px;
	border-radius: var(--radius-l);
	background: color-mix(in srgb, var(--s) 12%, var(--white));
	color: var(--ink);
	font: 400 var(--step-1) / 1.1 var(--font-display);
	text-decoration: none;
	border: 1.5px solid transparent;
}
.season .icon { width: 34px; height: 34px; color: var(--s); }
.season:hover { border-color: var(--s); color: var(--ink); }
.season--primavera { --s: #4F7A2C; }
.season--verano { --s: #A8701A; }
.season--otono { --s: #8E4A28; }
.season--invierno { --s: #4E6C7C; }
.season--free { --s: var(--ebro); background: var(--pinar); color: var(--caliza); }
.season--free .icon { color: var(--ocre-light); }
.season--free:hover { color: var(--white); }

/* Carril horizontal (agenda) */
.rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(82%, 300px);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }

/* Banda "Cómo llegar" */
.section--band { background: var(--ebro); color: var(--caliza); }
.section--band .section-title { color: var(--caliza); }
.band { display: grid; gap: 32px; align-items: center; }
.band p { max-width: 52ch; color: rgba(237, 239, 233, 0.88); font-size: var(--step-1); margin-top: 0.5em; }
.distances { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.distances div { padding: 16px 0; border-top: 1px solid rgba(237, 239, 233, 0.3); }
.distances dt { font-size: var(--step--1); font-weight: 600; color: rgba(237, 239, 233, 0.8); }
.distances dd { margin: 4px 0 0; font: 400 var(--step-3) / 1.1 var(--font-display); }
@media (min-width: 960px) { .band { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* ---------- Page head ---------- */

.page-head {
	position: relative;
	padding: clamp(28px, 5vw, 56px) 0 clamp(44px, 6vw, 72px);
	background: var(--pinar);
	color: var(--caliza);
	overflow: hidden;
	isolation: isolate;
}
.page-head-contours {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 70%;
	z-index: -1;
}
.page-head-contours path { fill: none; stroke: rgba(227, 174, 85, 0.22); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.page-head--image { display: flex; align-items: flex-end; min-height: min(56vh, 520px); }
.page-head-bg { position: absolute; inset: 0; z-index: -1; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 33, 28, 0.35), rgba(20, 33, 28, 0.85));
}
.page-head-inner { position: relative; }
.page-title { margin: 0; font-size: var(--step-5); color: var(--caliza); max-width: 22ch; }
.page-intro { max-width: 62ch; margin-top: 14px; font-size: var(--step-1); color: rgba(237, 239, 233, 0.88); }
.page-intro p:last-child { margin: 0; }
.page-head .typelabel { color: var(--caliza); margin-top: 16px; }
.page-head .chips { margin-top: 14px; }
.page-head .chip { border-color: rgba(237, 239, 233, 0.4); color: var(--caliza); }
.page-head .chip:hover { background: rgba(237, 239, 233, 0.12); }
.page-head .search-form { margin: 24px 0 0; }
.event-when, .post-date { margin: 14px 0 0; font-size: var(--step-1); color: var(--ocre-light); }
.route-code {
	display: inline-block;
	margin-top: 16px;
	padding: 4px 12px;
	border: 1.5px solid var(--ocre-light);
	border-radius: 6px;
	color: var(--ocre-light);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.route-code + .chips { display: inline-flex; margin-left: 10px; vertical-align: top; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; font-size: var(--step--1); }
.crumbs li { color: rgba(237, 239, 233, 0.7); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: rgba(237, 239, 233, 0.9); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: rgba(237, 239, 233, 0.7); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
	color: var(--ink);
}

.segmented {
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--caliza-2);
}
.segmented button, .segmented a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 600 var(--step--1) var(--font-body);
	text-decoration: none;
	cursor: pointer;
}
.segmented .icon { width: 18px; height: 18px; }
.segmented [aria-pressed="true"], .segmented [aria-current] { background: var(--white); box-shadow: 0 1px 3px rgba(23, 34, 30, 0.18); }
.segmented--light { margin-top: 24px; background: rgba(237, 239, 233, 0.12); }
.segmented--light a { color: var(--caliza); }
.segmented--light [aria-current] { background: var(--caliza); color: var(--pinar); }

/* ---------- Explorer ---------- */

.explorer-bar {
	position: sticky;
	top: var(--header-h);
	z-index: 20;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.admin-bar .explorer-bar { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .explorer-bar { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .explorer-bar { top: var(--header-h); } }
.explorer-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 12px;
	padding-block: 12px;
	max-width: var(--wrap);
}
.explorer-bar .field { margin: 0; }
.field--search { position: relative; flex: 1 1 200px; }
.field--search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-2); }
.field--search input { padding-left: 40px; }
.explorer-filters-toggle { min-height: 46px; }
.badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--ebro);
	color: var(--white);
	font-size: 0.75rem;
}
.explorer-filters {
	display: none;
	flex-basis: 100%;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 6px 0 4px;
}
.explorer-filters.is-open { display: grid; }
.explorer-actions { display: flex; gap: 8px; margin: 4px 0 0; }
@media (min-width: 560px) {
	.explorer-filters { grid-template-columns: repeat(2, 1fr); }
	.explorer-actions { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.explorer-filters-toggle { display: none; }
	.explorer-filters, .explorer-filters.is-open {
		display: flex;
		flex: 3 1 auto;
		flex-basis: auto;
		align-items: flex-end;
		padding: 0;
	}
	.explorer-filters .field { flex: 1 1 150px; }
	.explorer-actions { margin: 0; }
	.js .explorer-actions [data-nojs-submit] { display: none; }
}
.explorer-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 16px;
	max-width: var(--wrap);
}
.explorer-count { margin: 0; font-weight: 600; color: var(--ink-2); }

.explorer-body { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) 64px; }
.explorer-body[data-view-current="list"] .explorer-map { display: none; }
.explorer-body[data-view-current="map"] .explorer-list { display: none; }
.explorer-map .map { height: calc(100svh - var(--header-h) - 190px); min-height: 420px; }
.explorer.is-loading .explorer-list { opacity: 0.5; transition: opacity 0.2s; }

@media (min-width: 1100px) {
	.explorer-switch .segmented { display: none; }
	.explorer-body,
	.explorer-body[data-view-current] {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
	.explorer-body .explorer-list, .explorer-body .explorer-map { display: block !important; }
	.explorer-map { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 16px); }
	.explorer-map .map { height: calc(100vh - var(--header-h) - var(--bar-h) - 40px); }
	.explorer-list .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.explorer--mapfirst .explorer-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); }
	.explorer--mapfirst .explorer-list .grid--cards { grid-template-columns: 1fr; }
	.explorer .card-locate:not([hidden]) { display: inline-flex; }
}

/* ---------- Map ---------- */

.map {
	position: relative;
	height: 420px;
	border-radius: var(--radius-l);
	overflow: hidden;
	background: var(--caliza-2);
	border: 1px solid var(--line);
}
.map--home { height: clamp(380px, 62vh, 640px); }
.map--small { height: 280px; }
.map--proposal { height: 380px; margin-bottom: 32px; }
@media (min-width: 900px) { .map { height: 520px; } .map--small { height: 300px; } }
.map-msg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	color: var(--ink-2);
	text-align: center;
	font-size: var(--step--1);
}
.map-legend {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	max-width: calc(100% - 20px);
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 0.8rem;
	font-weight: 600;
	list-style: none;
	margin: 0;
}
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.map-legend span { width: 10px; height: 10px; border-radius: 50%; }

.maplibregl-popup-content {
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(23, 34, 30, 0.25);
	font-family: var(--font-body);
	min-width: 220px;
	max-width: 260px;
}
.maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 22px; color: var(--ink); background: rgba(255, 255, 255, 0.9); border-radius: 0 12px 0 10px; }
.pop-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.pop-body { padding: 12px 14px 14px; }
.pop-title { margin: 4px 0 2px; font: 400 1.1rem/1.25 var(--font-display); color: var(--ink); }
.pop-meta { margin: 0 0 10px; font-size: 0.85rem; color: var(--ink-2); }
.pop-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pop-links a { font-weight: 600; font-size: 0.9rem; }
.pop-fav {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink-2);
	font: 600 0.9rem var(--font-body);
	cursor: pointer;
}
.pop-fav .icon { width: 18px; height: 18px; }
.pop-fav[aria-pressed="true"] { color: var(--berry); }
.pop-fav[aria-pressed="true"] .icon path { fill: currentColor; }

/* ---------- Detail ---------- */

.detail { display: grid; gap: 40px; padding-block: 40px 72px; }
@media (min-width: 960px) {
	.detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
	.detail-side { position: sticky; top: calc(var(--header-h) + 24px); }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.lead { font-size: var(--step-2); line-height: 1.45; font-family: var(--font-display); color: var(--ink); max-width: 40ch; }

.prose { max-width: 68ch; font-size: 1.075rem; line-height: 1.75; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin: 1.6em 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--ocre);
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.4;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }
.prose .wp-block-table { overflow-x: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 8px; }
.prose a { font-weight: 600; }

.infobox {
	padding: 22px;
	margin-bottom: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	background: var(--white);
}
.infobox-title { font-size: var(--step-2); margin-bottom: 14px; }
.infolist { margin: 0; display: grid; gap: 14px; }
.infolist dt { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.infolist dt .icon { width: 17px; height: 17px; color: var(--ebro); }
.infolist dd { margin: 2px 0 0 25px; overflow-wrap: anywhere; }
.side-map .btn { margin-top: 12px; }

.callout {
	margin-top: 40px;
	padding: 22px 24px;
	border-radius: var(--radius-l);
	background: var(--caliza-2);
	max-width: 68ch;
}
.callout h2 { font-size: var(--step-2); }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: 0.4em; }

.related .section-title { font-size: var(--step-3); }

/* ---------- Agenda ---------- */

.agenda-month {
	font-size: var(--step-3);
	padding-bottom: 10px;
	margin: 40px 0 16px;
	border-bottom: 1px solid var(--line);
}
.agenda-month:first-child { margin-top: 0; }
.agenda-list { display: grid; gap: 12px; }
.agenda-item {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: start;
	padding: 18px 64px 18px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.agenda-item .datebadge { position: static; }
.agenda-title { margin: 0 0 4px; font-size: var(--step-2); }
.agenda-title a { color: var(--ink); text-decoration: none; }
.agenda-title a::after { content: ""; position: absolute; inset: 0; }
.agenda-title a:hover { text-decoration: underline; }
.agenda-meta { margin: 0 0 6px; font-weight: 600; color: var(--ebro); font-size: var(--step--1); }
.agenda-text { margin: 0; color: var(--ink-2); max-width: 70ch; }
.agenda-item .fav { top: 16px; right: 16px; box-shadow: none; border: 1px solid var(--line); }

/* ---------- Folletos ---------- */

.downloads { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.download {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 18px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.download-media { aspect-ratio: 3 / 4; border-radius: 6px; }
.download-title { font-size: var(--step-1); margin-bottom: 6px; }
.download-body p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 10px; }
.download-meta { font-size: var(--step--1); font-weight: 600; }
.pdf-view { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); margin: 24px 0; }

/* ---------- Planificador ---------- */

.planner {
	padding: clamp(20px, 4vw, 36px);
	border-radius: var(--radius-l);
	background: var(--white);
	border: 1px solid var(--line);
}
.planner-step { border: 0; padding: 0; margin: 0 0 28px; }
.planner-step legend { margin-bottom: 14px; font: 400 var(--step-3) / 1.2 var(--font-display); padding: 0; }
.planner-step legend .muted { font: 400 var(--step-0) var(--font-body); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick-option { position: relative; }
.pick-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-option span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px 0 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	background: var(--white);
}
.pick-option .icon { width: 20px; height: 20px; color: var(--ebro); }
.pick-option input:checked + span { background: var(--ebro); border-color: var(--ebro); color: var(--white); }
.pick-option input:checked + span .icon { color: var(--ocre-light); }
.pick-option input:focus-visible + span { box-shadow: var(--focus); }
.pick-option:hover span { border-color: var(--ink-2); }

.proposal { margin-top: 48px; }
.proposal:focus { outline: none; }
.proposal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.proposal-group { margin-bottom: 40px; }
.proposal-title { font-size: var(--step-2); margin-bottom: 14px; }

/* ---------- Favoritos ---------- */

.favs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.favs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.favs-layout { display: grid; gap: 28px; }
@media (min-width: 1100px) {
	.favs-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
	.favs-layout .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.favs-map { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Pagination & misc ---------- */

.pagination { margin-top: 36px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}
.pagination .current { background: var(--ebro); color: var(--white); border-color: var(--ebro); }

.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; } }
.post-navigation a { text-decoration: none; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.nav-label { display: block; font: 600 var(--step--1) var(--font-body); color: var(--ink-2); }

.toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 200;
	transform: translateX(-50%);
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--pinar);
	color: var(--caliza);
	font-weight: 600;
	font-size: var(--step--1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	max-width: calc(100% - 32px);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--pinar); color: rgba(237, 239, 233, 0.86); padding-top: clamp(48px, 7vw, 80px); }
.site-footer a { color: var(--caliza); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; } }
.brand-name--footer { color: var(--caliza); font-size: 1.7rem; margin-bottom: 16px; }
.footer-about p { max-width: 44ch; }
.footer-title { font-size: var(--step-1); color: var(--caliza); margin-bottom: 16px; }
.contact-list, .footer-menu, .legal-menu, .social { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 12px; }
.contact-list .icon { width: 19px; height: 19px; color: var(--ocre-light); margin-top: 3px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(237, 239, 233, 0.3); }
.social a:hover { background: rgba(237, 239, 233, 0.12); }
.footer-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 36px;
	padding-block: 28px;
	border-top: 1px solid rgba(237, 239, 233, 0.15);
}
.footer-logos img { max-height: 54px; width: auto; filter: grayscale(1) brightness(1.8); opacity: 0.9; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
	padding-block: 22px 32px;
	border-top: 1px solid rgba(237, 239, 233, 0.15);
	font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-menu a { text-decoration: none; }
.legal-menu a:hover { text-decoration: underline; }
.map-credit { opacity: 0.7; margin-left: auto !important; }

/* ---------- WordPress ---------- */

.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text { font-size: var(--step--1); color: var(--ink-2); }
.widget { margin-bottom: 32px; }
.comments { margin-top: 48px; }

/* ---------- Motion & print ---------- */

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

@media print {
	.site-header, .site-footer, .quick, .explorer-bar, .explorer-switch, .favs-actions, .fav, .card-locate, .map, .actions, .skip-link, .toast, .favs-map { display: none !important; }
	body { background: #fff; }
	.page-head { background: none; color: #000; padding: 0 0 16px; }
	.page-title, .page-intro, .crumbs { color: #000 !important; }
	.page-head-contours, .crumbs { display: none; }
	.grid--cards, .favs-layout .grid--cards { grid-template-columns: 1fr 1fr !important; }
	.card { break-inside: avoid; }
	.card .media { aspect-ratio: 16 / 7; }
}

/* ---------- Ajustes tras revisión ---------- */

/* Tarjeta grande sin foto: fondo oscuro del color del tipo, icono arriba. */
.card--large .media--empty {
	place-items: start;
	padding: 28px;
	background-color: color-mix(in srgb, var(--tone) 62%, var(--pinar));
	background-image: repeating-radial-gradient(circle at 85% 0%, transparent 0 22px, rgba(237, 239, 233, 0.09) 22px 23px);
	color: var(--ocre-light);
}
.card--large .media--empty::after { display: none; }
.card--large .media--empty .icon { width: 44px; height: 44px; }
.card--large .typelabel::before { box-shadow: 0 0 0 2px rgba(237, 239, 233, 0.6); }

/* En el móvil el meandro va por encima del título. */
@media (max-width: 700px) {
	.hero-art { height: 58%; }
	.hero { min-height: 82svh; }
}

/* Experiencias compactas en el móvil. */
@media (max-width: 639px) {
	.theme a {
		display: grid;
		grid-template-columns: 48px 1fr;
		gap: 2px 14px;
		padding: 16px;
	}
	.theme-icon { grid-row: span 3; width: 48px; height: 48px; margin: 0; }
	.theme-name { font-size: var(--step-1); }
	.theme-desc { font-size: 0.9rem; }
	.theme-count { padding-top: 2px; }
}

/* Barra de filtros: en el móvil no es fija (al abrir los filtros taparía la lista). */
.field--search { flex: 1 1 0; min-width: 0; }
@media (max-width: 959px) {
	.explorer-bar { position: static; }
}

/* ==========================================================================
   Controles del mapa (buscador, interruptores, filtros y mapas base)
   ========================================================================== */

.cmap-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; font-family: var(--font-body); }
.cmap-ui > * { pointer-events: auto; }
.cmap-ui svg { width: 18px; height: 18px; display: block; }

/* Buscador */
.cmap-search { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; max-width: calc(100% - 90px); }
.cmap-search-toggle,
.cmap-search-form button {
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer;
	box-shadow: 0 1px 4px rgba(23, 34, 30, 0.3);
}
.cmap-search-form { display: none; align-items: center; gap: 0; width: min(340px, 100%); border-radius: 10px; background: var(--white); box-shadow: 0 2px 10px rgba(23, 34, 30, 0.25); overflow: hidden; }
.cmap-search[data-open="true"] .cmap-search-toggle { display: none; }
.cmap-search[data-open="true"] .cmap-search-form { display: flex; }
.cmap-search-form input { border: 0; min-height: 42px; border-radius: 0; flex: 1; min-width: 0; }
.cmap-search-form input:focus-visible { box-shadow: inset 0 0 0 2px var(--ebro); }
.cmap-search-form button { box-shadow: none; border-radius: 0; height: 42px; width: 44px; color: var(--ebro); }
.cmap-results {
	width: min(340px, 100%); max-height: 260px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
	background: var(--white); border-radius: 10px; box-shadow: 0 6px 20px rgba(23, 34, 30, 0.25);
}
.cmap-results button {
	display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
	background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
}
.cmap-results button:hover, .cmap-results button:focus-visible { background: var(--caliza); }
.cmap-results svg { color: var(--ebro); margin-top: 2px; flex: none; }
.cmap-results strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.cmap-results small { display: block; font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; }
.cmap-noresults { padding: 10px; font-size: 0.9rem; color: var(--ink-2); }

/* Interruptores ON / OFF */
.cmap-switches {
	position: absolute; right: 10px; top: 160px;
	display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.explorer .cmap-switches { top: 200px; }
.cmap-ui.is-compact .cmap-switches { top: 120px; }
.cmap-switch {
	position: relative; display: inline-flex; align-items: center;
	width: 66px; height: 32px; padding: 0; border: 1px solid rgba(23, 34, 30, 0.12); border-radius: 999px;
	background: rgba(255, 255, 255, 0.94); color: var(--ink-2); cursor: pointer;
	box-shadow: 0 1px 4px rgba(23, 34, 30, 0.25);
	font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.04em;
	transition: background-color 0.2s, color 0.2s;
}
.cmap-switch-on, .cmap-switch-off { position: absolute; top: 50%; transform: translateY(-50%); }
.cmap-switch-on { left: 10px; opacity: 0; }
.cmap-switch-off { right: 9px; }
.cmap-switch-knob {
	position: absolute; top: 3px; left: 3px; display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%; background: var(--caliza-2); color: var(--ink-2);
	transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.cmap-switch-knob svg { width: 15px; height: 15px; }
.cmap-switch[aria-pressed="true"] { background: var(--ebro); border-color: var(--ebro); color: var(--white); }
.cmap-switch[aria-pressed="true"] .cmap-switch-on { opacity: 1; }
.cmap-switch[aria-pressed="true"] .cmap-switch-off { opacity: 0; }
.cmap-switch[aria-pressed="true"] .cmap-switch-knob { transform: translateX(34px); background: var(--white); color: var(--ebro); }
.cmap-switch:focus-visible { box-shadow: var(--focus); }

/* Atmósfera: tres niveles */
.cmap-switch--multi { width: auto; min-width: 66px; padding: 0 12px 0 34px; }
.cmap-switch--multi .cmap-switch-state { font-size: 0.7rem; letter-spacing: 0; text-transform: none; }
.cmap-switch--multi[data-level="1"] { background: #9bb8d6; border-color: #9bb8d6; color: var(--pinar); }
.cmap-switch--multi[data-level="2"] { background: #4f6da9; border-color: #4f6da9; color: var(--white); }
.cmap-switch--multi[data-level="1"] .cmap-switch-knob,
.cmap-switch--multi[data-level="2"] .cmap-switch-knob { background: var(--white); color: #4f6da9; }

/* Panel de filtros */
.cmap-panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(290px, 82%);
	display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.97);
	box-shadow: 4px 0 20px rgba(23, 34, 30, 0.2); z-index: 4; overflow-y: auto;
}
.cmap-panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.cmap-panel header strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.cmap-panel-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; color: var(--ink); }
.cmap-panel-sub { margin: 14px 18px 6px; font-weight: 700; font-size: 0.85rem; color: var(--ink-2); }
.cmap-filters { list-style: none; margin: 0; padding: 0 10px 16px; }
.cmap-filters label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.cmap-filters label:hover { background: var(--caliza); }
.cmap-filters input { width: 18px; height: 18px; accent-color: var(--ebro); margin: 0; }
.cmap-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px rgba(23, 34, 30, 0.2); flex: none; }
.cmap-dot--all { background: conic-gradient(#A86E14 0 25%, #55508F 0 45%, #94354F 0 65%, #2C7148 0 85%, #1E5A55 0); }

/* Mapas base */
.cmap-bases { position: absolute; z-index: 5; left: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 6px; max-width: calc(100% - 90px); }
.cmap-bases-toggle, .cmap-bases-list button {
	position: relative; display: block; width: 64px; height: 64px; padding: 0; border: 2px solid var(--white);
	border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--caliza-2);
	box-shadow: 0 2px 8px rgba(23, 34, 30, 0.35);
}
.cmap-bases-toggle img, .cmap-bases-list img { width: 100%; height: 100%; object-fit: cover; }
.cmap-bases-toggle span, .cmap-bases-list span {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff;
	font-size: 0.62rem; font-weight: 700; line-height: 1.15; text-align: center;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmap-bases-list { display: none; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.cmap-bases[data-open="true"] .cmap-bases-list { display: flex; }
.cmap-bases-list button { width: 58px; height: 58px; }
.cmap-bases-list button[aria-pressed="true"] { border-color: var(--ocre-light); box-shadow: 0 0 0 2px var(--ocre-light), 0 2px 8px rgba(23, 34, 30, 0.35); }

/* Ajustes de los controles nativos y la pantalla completa */
.map .maplibregl-ctrl-group { border-radius: 8px; }
.map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.map:fullscreen { border-radius: 0; border: 0; height: 100% !important; }
.map.is-pseudo-fullscreen { position: fixed !important; inset: 0; z-index: 1000; height: 100% !important; border-radius: 0; }
.map-legend { display: none; }

@media (max-width: 599px) {
	.cmap-switches { top: 130px; gap: 6px; }
	.explorer .cmap-switches { top: 170px; }
	.cmap-switch { width: 58px; height: 30px; }
	.cmap-switch-knob { width: 22px; height: 22px; }
	.cmap-switch[aria-pressed="true"] .cmap-switch-knob { transform: translateX(28px); }
	.cmap-bases-toggle { width: 54px; height: 54px; }
	.cmap-bases-list button { width: 50px; height: 50px; }
}
@media (min-width: 960px) { .field--search { flex: 1 1 200px; min-width: 200px; } }
