@font-face {
	font-family: "Zalando Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../../fonts/zalando-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Zalando Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../../fonts/zalando-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--huellas-orange: #ff6b00;
	--huellas-orange-dark: #ff6b00;

	--huellas-bg: #ffffff;
	--huellas-panel-bg: #f2f2f1;
	--huellas-control-bg: #e2e1e0;

	--huellas-text: #666666;
	--huellas-text-secondary: #666666;
	--huellas-text-light: #acacab;

	--huellas-border: #e2e1e0;

	--huellas-map-area: #e1f1ca;
	--huellas-map-selected-area: #f4e9d3;
	--huellas-map-base: #f3f2ee;

	--huellas-shadow-soft: 0 3px 10px rgba(0, 0, 0, 0.1);

	--huellas-radius-control: 2px;
	--huellas-radius-pill: 999px;
}

.huellas-shell {
	font-family: "Zalando Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	width: 100%;
	max-width: none;
	color: var(--huellas-text);
}

.huellas-header,
.huellas-nav,
.huellas-filters,
.huellas-main {
	box-sizing: border-box;
	width: 100%;
}

.huellas-header,
.huellas-nav,
.huellas-filters {
	background: transparent;
}

.huellas-main {
	background: var(--huellas-bg);
	padding-top: 20px;
	padding-bottom: 20px;
	min-height: 320px;
}

.huellas-nav {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 2px;
	margin: 0;
}

.huellas-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 0 120px;
	min-height: 52px;
	border: 0;
	background: transparent;
	color: var(--huellas-text-secondary);
	font-size: 13px;
	cursor: pointer;
	border-radius: var(--huellas-radius-control);
	padding: 6px 4px;
	transition: color 150ms ease, background-color 150ms ease;
}

.huellas-tab:hover {
	color: var(--huellas-text);
	background: var(--huellas-control-bg);
}

.huellas-tab:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -2px;
}

.huellas-tab[aria-current="page"] {
	color: var(--huellas-orange);
}

.huellas-tab span {
	color: var(--huellas-text);
	font-weight: 400;
}

.huellas-tab .huellas-tab-label--short {
	display: none;
}

.huellas-tab svg {
	width: 34px;
	height: 34px;
}

.huellas-tab svg,
.huellas-tab svg * {
	fill: currentColor;
}

.huellas-tab.has-no-icon::before {
	content: "";
	display: block;
	width: 34px;
	height: 34px;
}

.huellas-district-label {
	width: 140px;
	text-align: center;
	font-size: 11px;
	font-weight: 500;
	color: var(--huellas-text-secondary);
	opacity: 0.85;
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
}

.huellas-filters {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 10px;
	padding-top: 18px;
}

.huellas-filters .huellas-filter:first-child {
	grid-column: 1 / -1;
}

.huellas-filters .huellas-filter:last-child {
	grid-column: 1;
}

.huellas-filter {
	display: block;
	height: 100%;
	font-size: 13px;
	color: var(--huellas-text-secondary);
}

.huellas-select {
	position: relative;
	width: 100%;
	height: 100%;
}

.huellas-select-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 100%;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--huellas-border);
	border-radius: var(--huellas-radius-control);
	background: var(--huellas-bg);
	color: var(--huellas-text);
	font-family: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
}

.huellas-select-trigger svg {
	flex: 0 0 14px;
	width: 14px;
	height: 10px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 150ms ease;
}

.huellas-select-trigger[aria-expanded="true"] svg {
	transform: rotate( 180deg );
}

.huellas-select-trigger:hover {
	border-color: var(--huellas-text-light);
}

.huellas-select-trigger:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -1px;
}

.huellas-select-options {
	position: absolute;
	z-index: 50;
	top: calc( 100% + 4px );
	left: 0;
	right: 0;
	max-height: 260px;
	padding: 4px;
	overflow-y: auto;
	border: 1px solid var(--huellas-border);
	border-radius: var(--huellas-radius-control);
	background: var(--huellas-bg);
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.14 );
}

.huellas-select-options[hidden] {
	display: none;
}

.huellas-select-options [role="option"] {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 0;
	border-radius: var(--huellas-radius-control);
	background: transparent;
	color: var(--huellas-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.huellas-select-options [role="option"]:hover,
.huellas-select-options [role="option"]:focus-visible {
	outline: none;
	background: var(--huellas-control-bg);
}

.huellas-select-options [role="option"].is-selected {
	background: var(--huellas-map-selected-area);
	color: var(--huellas-orange-dark);
	font-weight: 600;
}

.huellas-main {
	display: block;
}

.huellas-viewpane[hidden] {
	display: none;
}

.huellas-card {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.huellas-huella-search {
	position: relative;
	height: auto;
	align-self: start;
	grid-column: 1;
}

.huellas-huella-search svg {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 19px;
	height: 19px;
	transform: translateY( -50% );
	fill: none;
	stroke: var(--huellas-text-secondary);
	stroke-width: 1.8;
	stroke-linecap: round;
	pointer-events: none;
}

.huellas-huella-search input {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 8px 14px 8px 44px;
	border: 1px solid var(--huellas-border);
	border-radius: var(--huellas-radius-control);
	background: var(--huellas-bg);
	color: var(--huellas-text);
	font: inherit;
	font-size: 15px;
}

.huellas-huella-search input:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -1px;
}

.huellas-review-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 32px 24px;
}

.huellas-select-options [role="option"][hidden] {
	display: none;
}

.huellas-card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.huellas-card-body {
	padding: 16px 18px;
}

.huellas-card-body h3 {
	margin: 0 0 8px;
	font-size: 20px;
	color: var(--huellas-orange);
}

.huellas-card-tags {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--huellas-text-secondary);
}

.huellas-topic-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	position: relative;
	top: -2px;
	width: 18px;
	height: 18px;
	margin-right: 4px;
	overflow: visible;
}

/* El icono (ya normalizado) llena el espacio de 18px, centrado. */
.huellas-topic-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Fuera del mapa el icono se pinta con el color de texto. */
.huellas-topic-icon svg,
.huellas-topic-icon svg * {
	fill: var(--huellas-text) !important;
}

.huellas-card-summary {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--huellas-text);
}

.huellas-card-link {
	position: relative;
	box-sizing: border-box;
	border: 1px solid var(--huellas-border);
	border-radius: var(--huellas-radius-control);
	background: var(--huellas-bg);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.huellas-detail {
	max-width: none;
	margin: 0 auto;
	position: relative;
	overflow: visible;
}

.huellas-detail .huellas-card-body {
	max-width: none;
	margin: 0 auto;
	padding: 0 0 20px;
}

.huellas-detail .huellas-gallery {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.huellas-card-link:hover,
.huellas-card-link:focus-visible {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	transform: translateY( -2px );
}

.huellas-card-link:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 2px;
}

.huellas-share-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 12px;
	margin-top: 16px;
	position: relative;
}

.huellas-share-feedback {
	position: absolute;
	right: 0;
	bottom: calc( 100% + 10px );
	z-index: 20;
	padding: 7px 12px;
	border: 1px solid var(--huellas-border);
	border-radius: 6px;
	background: var(--huellas-bg);
	color: var(--huellas-text-secondary);
	box-shadow: var(--huellas-shadow-soft);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY( 4px );
	transition: opacity 160ms ease, transform 160ms ease;
}

.huellas-share-feedback::after {
	content: '';
	position: absolute;
	right: 13px;
	top: 100%;
	border: 5px solid transparent;
	border-top-color: var(--huellas-bg);
}

.huellas-share-feedback::before {
	content: '';
	position: absolute;
	right: 12px;
	top: calc( 100% + 4px );
	border: 6px solid transparent;
	border-top-color: var(--huellas-border);
}

.huellas-share-feedback.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}

.huellas-share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--huellas-radius-pill);
	background: var(--huellas-orange);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.huellas-share svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.huellas-share:hover {
	transform: translateY( -2px );
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.huellas-share:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 2px;
}

.huellas-share.is-copied {
	background: var(--huellas-orange-dark);
}

.huellas-detail-tools .huellas-share-wrap {
	display: inline-flex;
	justify-content: flex-start;
	margin-top: 0;
}.huellas-detail-tools .huellas-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--huellas-radius-control);
	background: transparent;
	color: var(--huellas-text-secondary);
	box-shadow: none;
	font-size: 0;
	transition: background-color 150ms ease;
}.huellas-detail-tools .huellas-share .huellas-share-label {
	display: none;
}.huellas-detail-tools .huellas-share svg {
	width: 20px;
	height: 20px;
}.huellas-detail-tools .huellas-share:hover {
	transform: none;
	box-shadow: none;
	background: var(--huellas-control-bg);
}.huellas-detail-tools .huellas-share.is-copied {
	background: transparent;
	color: var(--huellas-orange-dark);
}

.huellas-state {
	padding: 40px 24px;
	text-align: center;
	color: var(--huellas-text-secondary);
	background: var(--huellas-bg);
	border-radius: var(--huellas-radius-control);
}

.huellas-state-sm {
	margin: 0;
	color: var(--huellas-text-secondary);
	font-size: 14px;
}


.huellas-tl-wrap {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 0;
}

.huellas-tl-scroll {
	width: 100%;
	max-height: calc( 100vh - 300px );
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.huellas-tl-arrow-row {
	position: relative;
	flex: 0 0 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	background: var(--huellas-bg);
	color: var(--huellas-text-secondary);
}

.huellas-tl-arrow-row--prev {
	margin-bottom: 6px;
}

.huellas-tl-arrow-row--next {
	margin-top: 6px;
}

.huellas-tl-scroll-inner {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 0 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Scrollbar oculta: mantiene el centro de la línea alineado con las flechas. */
	scrollbar-width: none;
}

.huellas-tl-scroll-inner::-webkit-scrollbar {
	display: none;
}

.huellas-tl-card-panel {
	flex: 0 0 auto;
}

#huellas-app button.huellas-tl-arrow {
	position: absolute;
	inset: 0;
	z-index: 1;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 36px;
	width: 36px;
	min-width: 36px;
	max-width: 36px;
	height: 36px;
	min-height: 36px;
	max-height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: transparent;
	box-shadow: none;
	font-size: 0;
	line-height: 1;
	opacity: 0;
	cursor: pointer;
}

#huellas-app button.huellas-tl-arrow::before,
#huellas-app button.huellas-tl-arrow::after {
	display: none;
	content: none;
}

#huellas-app .huellas-tl-arrow-icon {
	display: block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	transition: color 150ms ease;
}

#huellas-app .huellas-tl-arrow-row:hover {
	color: var(--huellas-orange);
}

#huellas-app .huellas-tl-arrow-row:has( .huellas-tl-arrow:focus-visible ) {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -2px;
}

.huellas-tl {
	position: relative;
	width: 100%;
	max-width: 560px;
	display: grid;
}

.huellas-tl::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	transform: translateX( -50% );
	background: var(--huellas-orange);
}

.huellas-tl-year {
	position: relative;
	z-index: 1;
	justify-self: center;
	margin: 8px 0;
	padding: 3px 10px;
	background: var(--huellas-orange);
	color: var(--huellas-bg);
	font-size: 16px;
	font-weight: 700;
	border-radius: var(--huellas-radius-control);
}

.huellas-tl-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 58px minmax( 0, 1fr );
	align-items: center;
	padding: 8px 10px;
	cursor: pointer;
	z-index: 1;
}

.huellas-tl-item::before {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 22px;
	height: 2px;
	background: var(--huellas-orange);
}

.huellas-tl-item.is-left::before {
	right: 50%;
}

.huellas-tl-item.is-right::before {
	left: 50%;
}

.huellas-tl-item::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translate( -50%, -50% );
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--huellas-orange);
}

.huellas-tl-item.is-left::after {
	left: calc( 50% - 22px );
}

.huellas-tl-item.is-right::after {
	left: calc( 50% + 22px );
}

.huellas-tl-item:focus {
	outline: none;
}

.huellas-tl-item .huellas-tl-side {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	min-width: 0;
	color: var(--huellas-text-secondary);
}

.huellas-tl-item.is-left .huellas-tl-side {
	grid-column: 1;
	text-align: right;
	align-items: flex-end;
	padding-right: 8px;
}

.huellas-tl-item.is-right .huellas-tl-side {
	grid-column: 3;
	text-align: left;
	align-items: flex-start;
	padding-left: 8px;
}

.huellas-tl-item h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 400;
	font-variation-settings: "wght" 400;
	color: var(--huellas-text-secondary);
}

.huellas-tl-item.is-left h3 {
	text-align: right;
}

.huellas-tl-loc {
	margin: 0;
	font-size: 13px;
	color: var(--huellas-text-secondary);
}

.huellas-tl-item:hover {
	background: transparent;
}

.huellas-tl-item:hover .huellas-tl-side {
	color: var(--huellas-text);
}

#huellas-app .huellas-tl-item.is-selected h3 {
	font-weight: 400;
	font-variation-settings: "wght" 400;
	color: #000000;
}

.huellas-tl-item.is-selected .huellas-tl-loc {
	font-weight: 400;
	font-variation-settings: "wght" 400;
	color: #000000;
}

.huellas-tl-card {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.huellas-tl-card-media {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1.95 / 1;
	overflow: hidden;
	background: var(--huellas-map-area);
	border-radius: 0;
}

.huellas-tl-card-media img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.huellas-tl-card-media img.is-current {
	display: block;
}

.huellas-tl-media-arrow {
	position: absolute;
	top: 50%;
	margin-top: -22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.65 );
}

.huellas-tl-media-arrow.is-prev {
	left: 2px;
}

.huellas-tl-media-arrow.is-next {
	right: 2px;
}

.huellas-tl-media-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.huellas-tl-card-content {
	min-width: 0;
}

.huellas-tl-card-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	min-height: 68px;
	padding: 12px 0;
	background: transparent;
}

.huellas-tl-card-header h3,
.huellas-tl-card-locality {
	margin: 0;
}

.huellas-tl-card-header h3 {
	font-size: 15px;
	font-weight: 400;
}

.huellas-tl-card-locality {
	font-size: 15px;
	font-weight: 700;
	color: var(--huellas-text);
}

.huellas-tl-card-toggle {
	position: relative;
	flex: 0 0 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--huellas-text-secondary);
	color: #ffffff;
	cursor: pointer;
}

.huellas-tl-card-toggle span {
	display: none;
}

.huellas-tl-card-toggle::before,
.huellas-tl-card-toggle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	border-radius: 1px;
	background: #ffffff;
	transform: translate( -50%, -50% );
}

.huellas-tl-card-toggle::after {
	transform: translate( -50%, -50% ) rotate( 90deg );
}

.huellas-tl-card-toggle[aria-expanded="true"]::after {
	display: none;
}

.huellas-tl-card-toggle:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 2px;
}

.huellas-tl-card-more {
	display: none;
	margin: 0;
	padding: 16px 0;
	background: var(--huellas-bg);
}

.huellas-tl-card.is-expanded .huellas-tl-card-more {
	display: block;
}

.huellas-tl-card-more > :first-child {
	margin-top: 0;
}

.huellas-tl-card .huellas-tl-card-more {
	font-size: 13px;
}

.huellas-tl-card .huellas-card-summary {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.huellas-tl-card-description,
.huellas-card-description {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	white-space: pre-line;
}

.huellas-tl-card .huellas-rel-list button {
	font-size: 14px;
	font-weight: 400;
}

.huellas-tl-card .huellas-tl-relations,
.huellas-tl-card .huellas-tl-sources,
.huellas-map-relations {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--huellas-border);
}

.huellas-tl-card .huellas-rel-list,
.huellas-tl-card .huellas-sources-list {
	list-style: none;
	padding-left: 0;
	margin: 2px 0 6px;
}

.huellas-tl-card .huellas-tl-relations p,
.huellas-map-relations p {
	margin: 6px 0 2px;
	font-size: 13px;
	color: var(--huellas-text-secondary);
}

.huellas-map-relations .huellas-rel-list {
	list-style: none;
	padding-left: 0;
	margin: 2px 0 10px;
}

@media ( min-width: 900px ) {
	.huellas-tl-wrap {
		display: grid;
		grid-template-columns: minmax( 0, 560px ) minmax( 0, 560px );
		align-items: start;
		justify-content: center;
		gap: 32px;
	}

	.huellas-tl-scroll {
		width: 100%;
	}

	.huellas-tl-card-panel {
		min-width: 0;
	}

	.huellas-tl-card-more {
		display: block;
	}

	.huellas-tl-card-toggle {
		display: none;
	}
}

.huellas-persons {
	display: grid;
	gap: 24px;
}

.huellas-person-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
	background: var(--huellas-bg);
}

.huellas-person-list button {
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	padding: 5px 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	color: var(--huellas-text-secondary);
	min-height: 32px;
	transition: background-color 150ms ease;
}

.huellas-person-list button:hover {
	background: var(--huellas-control-bg);
}

.huellas-person-list button.is-active {
	font-weight: 400;
	font-variation-settings: "wght" 400;
	color: #000000;
	background: transparent;
}

.huellas-person-list button:focus {
	outline: none;
	box-shadow: none;
}

.huellas-person-list button:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -2px;
}

.huellas-person-detail .huellas-card-body > h3 {
	font-size: 18px;
}

.huellas-person-relations {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 14px;
	font-weight: 400;
}

.huellas-person-detail .huellas-info-section {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--huellas-border);
}

@media ( min-width: 900px ) {
	.huellas-persons {
		grid-template-columns: minmax( 240px, 300px ) minmax( 0, 1fr );
		grid-template-rows: auto;
		grid-template-areas:
			"list detail";
		align-items: start;
		justify-content: stretch;
		column-gap: 32px;
		row-gap: 8px;
	}

	.huellas-person-list {
		grid-area: list;
		max-height: 520px;
	}

	.huellas-person-detail {
		grid-area: detail;
		min-width: 0;
	}
}

.huellas-link-btn {
	display: inline-block;
	border: 0;
	background: transparent;
	color: var(--huellas-orange-dark);
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	margin-bottom: 10px;
}

.huellas-link-btn:hover {
	text-decoration: underline;
}

.huellas-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 10px;
}

.huellas-card-go {
	border: 0;
	background: transparent;
	color: var(--huellas-text-secondary);
	cursor: pointer;
	padding: 0;
	font-size: 13.5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--huellas-radius-control);
	transition: background-color 150ms ease;
}

.huellas-card-go svg {
	width: 20px;
	height: 20px;
	display: block;
}

.huellas-card-go svg,
.huellas-card-go svg * {
	fill: currentColor;
}

.huellas-card-go:hover {
	background: var(--huellas-control-bg);
}

.huellas-detail-go {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.huellas-detail-tools {
	position: absolute;
	top: 20px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.huellas-detail-tools .huellas-detail-go {
	margin: 0;
}

.huellas-detail .huellas-detail-tools {
	position: static;
	justify-content: flex-end;
	margin: 16px 0 0;
}

.huellas-detail .huellas-detail-tools .huellas-card-go,
.huellas-detail .huellas-detail-tools .huellas-share {
	gap: 6px;
	width: auto;
	padding: 0 8px;
}

.huellas-detail .huellas-detail-tools .huellas-card-go .huellas-card-go-label,
.huellas-detail .huellas-detail-tools .huellas-share .huellas-share-label {
	display: inline;
	font-size: 13px;
}

.huellas-detail .huellas-detail-tools .huellas-share {
	font-size: 13px;
}

.huellas-detail .huellas-detail-tools .huellas-card-go .huellas-card-go-label {
	white-space: nowrap;
}

.huellas-detail-links {
	margin-top: 16px;
}

.huellas-detail-links-group {
	margin: 10px 0;
	padding-top: 10px;
	border-top: 1px solid var(--huellas-border);
}

.huellas-detail-links-group p {
	margin: 6px 0 2px;
	font-size: 13px;
	color: var(--huellas-text-secondary);
}

.huellas-detail-links-group p strong {
	font-weight: 600;
}

.huellas-gallery {
	position: relative;
	margin: 12px 0;
}

.huellas-gallery-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--huellas-radius-control);
}

.huellas-gallery-viewport img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

.huellas-gallery-viewport img.is-tall {
	width: auto;
	height: 100%;
	object-fit: contain;
	margin: 0 auto;
}

.huellas-gallery-viewport img:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: -2px;
}

.huellas-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	border: 0;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 150ms ease;
}

.huellas-gallery-arrow:hover:not(:disabled) {
	background: var(--huellas-orange);
}

.huellas-gallery-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.huellas-gallery-arrow:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 2px;
}

.huellas-gallery-prev {
	left: 12px;
}

.huellas-gallery-next {
	right: 12px;
}

.huellas-gallery-count {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--huellas-text-secondary);
	text-align: center;
}

.huellas-gallery-viewer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	cursor: zoom-out;
}

.huellas-gallery-viewer img {
	max-width: 94vw;
	max-height: 88vh;
	object-fit: contain;
	background: var(--huellas-bg);
	border-radius: var(--huellas-radius-control);
}

.huellas-gallery-viewer-close {
	position: fixed;
	top: 16px;
	right: 16px;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 150ms ease;
}

.huellas-gallery-viewer-close:hover {
	background: var(--huellas-orange);
}

.huellas-gallery-viewer-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media ( max-width: 640px ) {
	.huellas-detail .huellas-detail-tools .huellas-card-go,
	.huellas-detail .huellas-detail-tools .huellas-share {
		gap: 0;
		width: 36px;
		padding: 0;
	}

	.huellas-detail .huellas-detail-tools .huellas-card-go .huellas-card-go-label,
	.huellas-detail .huellas-detail-tools .huellas-share .huellas-share-label {
		display: none;
	}

	.huellas-map-actions .huellas-link-btn,
	.huellas-tl-actions .huellas-link-btn {
		gap: 0;
		width: 36px;
		margin-left: 0;
		padding: 0;
	}

	.huellas-map-actions .huellas-link-btn .huellas-link-btn-label,
	.huellas-tl-actions .huellas-link-btn .huellas-link-btn-label {
		display: none;
	}
}

.huellas-sources-list,
.huellas-rel-list {
	margin: 4px 0 12px;
	padding-left: 20px;
	text-align: left;
}

.huellas-detail .huellas-rel-list {
	list-style: none;
	padding-left: 0;
	margin: 2px 0 6px;
}

.huellas-detail .huellas-sources-list {
	list-style: none;
	padding-left: 0;
	margin: 2px 0 6px;
	font-size: 15px;
}

.huellas-detail .huellas-sources-list a {
	color: var(--huellas-orange-dark);
	text-decoration: none;
}

.huellas-detail .huellas-sources-list a:hover {
	text-decoration: underline;
}

.huellas-detail .huellas-sources-list li + li {
	margin-top: 2px;
}

.huellas-detail .huellas-detail-link-group {
	margin: 16px 0;
}

.huellas-detail .huellas-detail-link-group .huellas-detail-link-line {
	margin: 0;
}

.huellas-detail .huellas-detail-link-group .huellas-detail-link-line + .huellas-detail-link-line {
	margin-top: 4px;
}

.huellas-detail .huellas-detail-link-line a {
	font-size: 15px;
}

.huellas-detail h4 {
	margin-bottom: 4px;
}

.huellas-detail .huellas-rel-list li + li {
	margin-top: 2px;
}

.huellas-rel-list button,
.huellas-rel-list a {
	border: 0;
	background: transparent;
	color: var(--huellas-orange-dark);
	cursor: pointer;
	padding: 0;
	font-size: 15px;
	text-align: left;
}

.huellas-rel-list button:hover,
.huellas-rel-list a:hover {
	text-decoration: underline;
}

/* Lenguaje visual compartido para fichas, timeline y mapa. */
.huellas-card-body h3,
.huellas-tl-card-header h3 {
	margin: 0 0 2px;
	color: var(--huellas-orange);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.huellas-detail .huellas-card-body > h3 {
	font-size: 24px;
	font-weight: 700;
}

.huellas-tl-card-header {
	align-items: center;
}

.huellas-tl-card-header h3 {
	margin-bottom: 2px;
}

.huellas-tl-card-header .huellas-card-tags {
	margin-bottom: 0;
}

.huellas-detail-links,
.huellas-tl-card .huellas-tl-relations,
.huellas-map-relations {
	margin: 0;
	padding: 0;
	border: 0;
}

.huellas-detail-links {
	margin-top: 18px;
}.huellas-detail-links-group.huellas-info-section,
.huellas-tl-card .huellas-info-section,
.huellas-map-card .huellas-info-section {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--huellas-border);
}.huellas-info-title,
.huellas-tl-card .huellas-info-title,
.huellas-map-card .huellas-info-title {
	margin: 0 0 6px;
	color: var(--huellas-text-secondary);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.huellas-info-list,
.huellas-detail .huellas-info-list,
.huellas-tl-card .huellas-info-list,
.huellas-map-card .huellas-info-list {
	display: grid;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.huellas-info-list li,
.huellas-info-list button,
.huellas-info-list a {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

.huellas-rel-list button,
.huellas-rel-list a,
.huellas-sources-list {
	font-size: 14px;
	font-weight: 400;
}

.huellas-info-list a,
.huellas-map-sources a,
.huellas-tl-sources a {
	color: var(--huellas-orange-dark);
	text-decoration: none;
}

.huellas-info-list a:hover,
.huellas-map-sources a:hover,
.huellas-tl-sources a:hover {
	text-decoration: underline;
}

.huellas-video-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.huellas-video-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--huellas-orange);
	color: #ffffff;
	font-size: 9px;
}

.huellas-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.huellas-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--huellas-text-secondary);
	text-decoration: none;
	transition: color 150ms ease, transform 150ms ease;
}

.huellas-social-link svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.huellas-social-link .huellas-social-cutout {
	fill: #ffffff;
	stroke: #ffffff;
	stroke-width: 1.5;
}

.huellas-social-link:hover {
	color: var(--huellas-orange);
	transform: translateY( -1px );
}

.huellas-social-link:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 3px;
}

.huellas-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.huellas-clear {
	margin-top: 12px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--huellas-border);
	border-radius: var(--huellas-radius-control);
	background: var(--huellas-bg);
	color: var(--huellas-text);
	cursor: pointer;
	font-size: 15px;
	transition: border-color 150ms ease, color 150ms ease;
}

.huellas-clear:hover {
	border-color: var(--huellas-orange);
	color: var(--huellas-orange-dark);
}

.huellas-map-wrap {
	display: grid;
	gap: 24px;
}

.huellas-map-stage {
	position: relative;
}

.huellas-map-loading {
	position: absolute;
	inset: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	text-align: center;
	color: var(--huellas-text-secondary);
	background: rgba( 255, 255, 255, 0.82 );
}

.huellas-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.huellas-loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid var(--huellas-border);
	border-top-color: var(--huellas-orange);
	border-radius: 50%;
	animation: huellas-map-loading-spin 750ms linear infinite;
}

@keyframes huellas-map-loading-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.huellas-loading-spinner {
		animation: none;
	}
}

#huellas-app .huellas-map {
	height: 480px;
	width: 100%;
	background: var(--huellas-map-base);
	z-index: 1;
}

.huellas-select-value {
	min-width: 0;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#huellas-app .huellas-map .leaflet-tile-pane {
	filter: grayscale( 100% ) contrast( 0.82 ) brightness( 1.12 );
	opacity: 0.72;
}

#huellas-app .leaflet-control-attribution {
	font-size: 10px;
	opacity: 1;
	background: rgba( 255, 255, 255, 0.9 );
	padding: 1px 6px;
}

#huellas-app .leaflet-control-attribution a {
	color: #3f3f3f;
}

.huellas-marker {
	cursor: pointer;
}

.huellas-pill-icon {
	background: transparent;
	border: none;
}

.huellas-pin-icon {
	background: transparent;
	border: none;
}

/* Marcador: un único SVG con el puntero blanco y el icono de la temática coloreado. */
.huellas-pin {
	display: block;
	filter: drop-shadow( 0 2px 4px rgba( 0, 0, 0, 0.35 ) );
	cursor: pointer;
}

/* El puntero siempre blanco, aunque el SVG traiga fill propio. */
.huellas-pin-pointer {
	fill: #ffffff;
}

/* El icono (grupo trasladado a la cabeza del puntero) se pinta con el color de la temática. */
.huellas-pin-glyph * {
	fill: inherit;
}

.huellas-pin.is-selected {
	filter: drop-shadow( 0 0 0 3px rgba( 255, 107, 0, 0.45 ) ) drop-shadow( 0 2px 4px rgba( 0, 0, 0, 0.35 ) );
}

.huellas-pill-icon-svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

/* El icono (ya normalizado) llena el contenedor del pill, centrado. */
.huellas-pill-icon-svg svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* El icono siempre pintado con el color de la Temática. */
.huellas-pill-icon-svg svg,
.huellas-pill-icon-svg svg * {
	fill: var(--huellas-topic-color, var(--huellas-text)) !important;
}

.huellas-pill.is-selected .huellas-pill-icon-svg svg,
.huellas-pill.is-selected .huellas-pill-icon-svg svg * {
	fill: #ffffff !important;
}

.huellas-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid var(--huellas-text-light);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.huellas-pill:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.huellas-pill.is-selected {
	background: var(--huellas-orange);
	border-color: var(--huellas-orange);
}

.huellas-pill-text {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--huellas-text);
	max-width: 150px;
	min-width: 0;
	overflow: visible;
	overflow-wrap: anywhere;
	white-space: normal;
}

.huellas-pill.is-selected .huellas-pill-text {
	color: #ffffff;
	font-weight: 600;
}

.huellas-map-actions,
.huellas-tl-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 16px;
	margin: 12px 0 14px;
}

.huellas-map-actions .huellas-link-btn,
.huellas-tl-actions .huellas-link-btn {
	margin-bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	height: 36px;
	margin-left: -8px;
	padding: 0 8px;
	border-radius: var(--huellas-radius-control);
	color: var(--huellas-text-secondary);
	transition: background-color 150ms ease;
}

.huellas-map-actions .huellas-link-btn .huellas-link-btn-label,
.huellas-tl-actions .huellas-link-btn .huellas-link-btn-label {
	font-size: 13px;
	white-space: nowrap;
}

.huellas-map-actions .huellas-link-btn svg,
.huellas-tl-actions .huellas-link-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}

.huellas-map-actions .huellas-link-btn svg,
.huellas-map-actions .huellas-link-btn svg *,
.huellas-tl-actions .huellas-link-btn svg,
.huellas-tl-actions .huellas-link-btn svg * {
	fill: currentColor;
}

.huellas-map-actions .huellas-link-btn:hover,
.huellas-tl-actions .huellas-link-btn:hover {
	background: var(--huellas-control-bg);
}

.huellas-map-actions .huellas-link-btn:hover {
	background: transparent;
}

.huellas-map-directions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--huellas-orange);
	border-radius: var(--huellas-radius-pill);
	background: transparent;
	color: var(--huellas-orange-dark);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.huellas-map-directions:hover {
	background: var(--huellas-orange);
	color: #ffffff;
	text-decoration: none;
}

.huellas-map-directions:focus-visible {
	outline: 2px solid var(--huellas-orange);
	outline-offset: 2px;
}

.huellas-map-directions svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.huellas-map-card {
	min-height: 40px;
	background: transparent;
	scroll-margin-top: 16px;
}

.huellas-review-grid .huellas-card-body {
	padding-right: 18px;
	padding-left: 18px;
}

.huellas-map-card .huellas-card-body,
.huellas-person-detail .huellas-card-body {
	padding-right: 0;
	padding-left: 0;
}

.huellas-video-play {
	width: 18px;
	height: 18px;
	border-radius: 0;
	background: transparent;
	color: var(--huellas-orange);
	font-size: 14px;
}

.huellas-social-link {
	color: var(--huellas-orange);
}

@media ( max-width: 640px ) {
	.huellas-header,
	.huellas-nav,
	.huellas-filters {
		padding-left: 0;
		padding-right: 0;
	}

	.huellas-tl-wrap {
		height: auto;
		gap: 24px;
	}

	.huellas-tl-scroll {
		flex: 0 1 auto;
		width: 100%;
		max-height: 380px;
	}

	.huellas-tl-item {
		grid-template-columns: minmax( 0, 1fr ) 58px minmax( 0, 1fr );
		padding-right: 0;
		padding-left: 0;
	}

	.huellas-tl-item.is-left .huellas-tl-side {
		padding-right: 8px;
	}

	.huellas-tl-item.is-right .huellas-tl-side {
		padding-left: 8px;
	}

	.huellas-tl-item h3,
	.huellas-tl-loc {
		max-width: 100%;
		overflow-wrap: anywhere;
		hyphens: none;
	}

	.huellas-tl-card-panel {
		width: 100%;
	}

	.huellas-tl-card {
		box-shadow: none;
	}

	.huellas-main {
		padding: 14px 0;
	}

	.huellas-nav {
		gap: 4px;
	}

	.huellas-tab {
		height: auto;
		min-height: 68px;
		flex: 1 1 auto;
		max-width: none;
		padding: 6px 1px;
		font-size: 11px;
		line-height: 1.15;
	}

	.huellas-tab svg {
		width: 34px;
		height: 34px;
	}

	.huellas-tab.has-short-label .huellas-tab-label--long {
		display: none;
	}

	.huellas-tab.has-short-label .huellas-tab-label--short {
		display: inline;
	}

	.huellas-tab[aria-current="page"]:hover {
		background: transparent;
	}

	.huellas-filters {
		gap: 8px;
		grid-template-columns: 1fr;
	}

	.huellas-select-trigger {
		min-height: 44px;
	}

	.huellas-map {
		height: 360px;
	}

	.huellas-card-img {
		height: 180px;
	}

}

@media ( min-width: 1024px ) {
	.huellas-filters {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}

	.huellas-filters .huellas-filter:first-child {
		grid-column: auto;
	}

	.huellas-filters .huellas-filter:last-child:not(.huellas-huella-search) {
		grid-column: auto;
	}

	.huellas-filters .huellas-huella-search {
		grid-column: 1;
	}

	.huellas-map-wrap {
		grid-template-columns: 1fr;
	}
}
