/**
 * [B] Mapa Mociones de Cuidados — estilos públicos.
 *
 * Los colores se definen en Ajustes y llegan como variables CSS.
 *
 * @package B_Mapa_Cuidadoras
 */

.bdw-mc {
	--bdw-mc-text: #1f1f24;
	--bdw-mc-muted: #5b5b66;
	--bdw-mc-border: #d9d9e0;
	--bdw-mc-surface: #ffffff;
	--bdw-mc-soft: #f6f5f9;
	--bdw-mc-radius: 12px;
	--bdw-mc-navy: #14213d;
	--bdw-mc-focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--bdw-mc-accent, #6a1b9a);

	position: relative;
	color: var(--bdw-mc-text);
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 2rem;
}

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

.bdw-mc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bdw-mc__title {
	margin: 0 0 1rem;
}

/* Protección frente a estilos genéricos del tema (button, ul, li) ------- */

.bdw-mc button {
	min-width: 0;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
	font-family: inherit;
}

.bdw-mc ul,
.bdw-mc li {
	margin: 0;
	padding: 0;
}

.bdw-mc li::before {
	content: none;
}

/* Contador ---------------------------------------------------------- */

.bdw-mc-counter {
	margin: 0 0 1.25rem;
}

.bdw-mc-counter__main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.bdw-mc-counter__num {
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bdw-mc-accent, #6a1b9a);
	font-variant-numeric: tabular-nums;
}

.bdw-mc-counter__sub {
	margin: 0.25rem 0 0;
	color: var(--bdw-mc-muted);
}

/* Buscador ---------------------------------------------------------- */

.bdw-mc-search {
	margin: 0 0 1.25rem;
	max-width: 640px;
}

.bdw-mc-search__label {
	display: block;
	margin: 0 0 0.4rem;
	font-weight: 700;
}

.bdw-mc-search__hint {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	color: var(--bdw-mc-muted);
}

.bdw-mc-combo {
	position: relative;
}

.bdw-mc-combo__icon {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	transform: translateY(-50%);
	color: var(--bdw-mc-muted);
	pointer-events: none;
}

.bdw-mc .bdw-mc-combo input.bdw-mc-combo__input {
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	min-height: 52px;
	padding: 0.75rem 3rem 0.75rem 2.75rem;
	border: 2px solid var(--bdw-mc-border);
	border-radius: var(--bdw-mc-radius);
	background: var(--bdw-mc-surface);
	color: var(--bdw-mc-text);
	font-size: 1.05rem;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.bdw-mc .bdw-mc-combo input.bdw-mc-combo__input:hover {
	border-color: #a9a9b6;
}

.bdw-mc .bdw-mc-combo input.bdw-mc-combo__input:focus {
	outline: none;
	border-color: var(--bdw-mc-accent, #6a1b9a);
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc .bdw-mc-combo input.bdw-mc-combo__input:disabled {
	background: var(--bdw-mc-soft);
	cursor: progress;
}

.bdw-mc .bdw-mc-combo__clear {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bdw-mc-muted);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.bdw-mc .bdw-mc-combo__clear:hover {
	background: var(--bdw-mc-soft);
	color: var(--bdw-mc-text);
}

.bdw-mc .bdw-mc-combo__clear:focus-visible {
	outline: none;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc .bdw-mc-combo__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 320px;
	margin: 0;
	padding: 0.35rem;
	overflow-y: auto;
	list-style: none;
	background: var(--bdw-mc-surface);
	border: 1px solid var(--bdw-mc-border);
	border-radius: var(--bdw-mc-radius);
	box-shadow: 0 12px 32px rgba(20, 20, 40, 0.16);
}

.bdw-mc-combo__list[hidden] {
	display: none;
}

.bdw-mc .bdw-mc-combo__option,
.bdw-mc .bdw-mc-combo__empty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
}

.bdw-mc-combo__option {
	cursor: pointer;
}

.bdw-mc-combo__option:hover,
.bdw-mc-combo__option.is-active {
	background: var(--bdw-mc-soft);
	outline: 2px solid var(--bdw-mc-accent, #6a1b9a);
	outline-offset: -2px;
}

.bdw-mc-combo__empty {
	color: var(--bdw-mc-muted);
}

.bdw-mc-combo__name {
	font-weight: 600;
}

.bdw-mc-combo__prov {
	color: var(--bdw-mc-muted);
	font-size: 0.9rem;
}

.bdw-mc-dot {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--bdw-mc-no-motion, #6b6b6b);
}

.bdw-mc-dot--aprobada {
	background: var(--bdw-mc-approved, #2e7d32);
}

.bdw-mc-dot--en_tramite {
	background: var(--bdw-mc-in-progress, #9a5b00);
}

/* Tarjeta de resultado ------------------------------------------------ */

.bdw-mc-result {
	display: flex;
	gap: 1rem;
	margin: 1rem 0 0;
	padding: 1rem 1.25rem;
	background: var(--bdw-mc-surface);
	border: 1px solid var(--bdw-mc-border);
	border-left: 6px solid var(--bdw-mc-status, #455a64);
	border-radius: var(--bdw-mc-radius);
	box-shadow: 0 4px 16px rgba(20, 20, 40, 0.06);
}

.bdw-mc-result[hidden] {
	display: none;
}

.bdw-mc-result:focus {
	outline: none;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc-result--aprobada {
	--bdw-mc-status: var(--bdw-mc-approved, #2e7d32);
}

.bdw-mc-result--en_tramite {
	--bdw-mc-status: var(--bdw-mc-in-progress, #9a5b00);
}

.bdw-mc-result--sin_mocion {
	--bdw-mc-status: var(--bdw-mc-no-motion, #6b6b6b);
}

.bdw-mc-result__icon {
	flex: 0 0 auto;
	padding-top: 0.15rem;
}

.bdw-mc-result__body {
	min-width: 0;
}

.bdw-mc-result__body > p {
	margin: 0.5rem 0 0;
}

.bdw-mc-result .bdw-mc-result__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.bdw-mc-result__title span {
	font-weight: 400;
	color: var(--bdw-mc-muted);
	font-size: 1rem;
}

.bdw-mc-detail__msg {
	font-weight: 600;
}

.bdw-mc-detail__notes {
	color: var(--bdw-mc-muted);
}

.bdw-mc-detail__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

/* Distintivos --------------------------------------------------------- */

.bdw-mc-badge {
	display: inline-block;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: #455a64;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.6;
}

.bdw-mc-badge--aprobada {
	background: var(--bdw-mc-approved, #2e7d32);
}

.bdw-mc-badge--en_tramite {
	background: var(--bdw-mc-in-progress, #9a5b00);
}

.bdw-mc-badge--sin_mocion {
	background: var(--bdw-mc-no-motion, #6b6b6b);
}

/* Enlaces y botones ---------------------------------------------------- */

.bdw-mc .bdw-mc-link {
	color: var(--bdw-mc-accent, #6a1b9a);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bdw-mc .bdw-mc-link:focus-visible {
	outline: none;
	border-radius: 3px;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc .bdw-mc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	border: 2px solid var(--bdw-mc-accent, #6a1b9a);
	border-radius: 999px;
	background: var(--bdw-mc-accent, #6a1b9a);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.bdw-mc .bdw-mc-btn:hover {
	filter: brightness(1.1);
}

.bdw-mc .bdw-mc-btn:focus-visible {
	outline: none;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc .bdw-mc-btn--ghost {
	background: transparent;
	color: var(--bdw-mc-accent, #6a1b9a);
}

/* Leyenda -------------------------------------------------------------- */

.bdw-mc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.bdw-mc .bdw-mc-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.4rem 0.9rem 0.4rem 0.6rem;
	border: 2px solid var(--bdw-mc-border);
	border-radius: 999px;
	background: var(--bdw-mc-surface);
	color: var(--bdw-mc-text);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.bdw-mc .bdw-mc-legend__item:hover {
	border-color: #a9a9b6;
}

.bdw-mc .bdw-mc-legend__item:focus-visible {
	outline: none;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc .bdw-mc-legend__item[aria-pressed="false"] {
	background: var(--bdw-mc-soft);
	color: var(--bdw-mc-muted);
	border-style: dashed;
}

.bdw-mc .bdw-mc-legend__item[aria-pressed="false"] .bdw-mc-legend__swatch {
	opacity: 0.45;
	filter: grayscale(1);
}

.bdw-mc .bdw-mc-legend__item[aria-pressed="false"] .bdw-mc-legend__label {
	text-decoration: line-through;
}

.bdw-mc-legend__swatch {
	display: inline-flex;
	line-height: 0;
}

.bdw-mc-legend__count {
	min-width: 1.75rem;
	padding: 0.05rem 0.45rem;
	border-radius: 999px;
	background: var(--bdw-mc-soft);
	color: var(--bdw-mc-muted);
	font-size: 0.8rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Mapa ----------------------------------------------------------------- */

.bdw-mc-map-wrap {
	position: relative;
	/* Las capas de Leaflet (z-index hasta 1000) quedan dentro: no tapan menús fijos del tema. */
	isolation: isolate;
	z-index: 0;
	width: 100%;
	min-height: 250px;
	overflow: hidden;
	border: 1px solid var(--bdw-mc-border);
	border-radius: var(--bdw-mc-radius);
	background: #e9eef2;
}

.bdw-mc-map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.bdw-mc-map-status {
	position: absolute;
	z-index: 1000;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 0.6rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 16px rgba(20, 20, 40, 0.12);
	font-weight: 600;
}

.bdw-mc-map-status[hidden] {
	display: none;
}

.bdw-mc-map-status.is-error {
	color: #b00020;
}

.bdw-mc-consent {
	position: absolute;
	z-index: 1001;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
	background: var(--bdw-mc-soft);
	text-align: center;
}

.bdw-mc-consent p {
	max-width: 32rem;
	margin: 0;
}

.bdw-mc-noscript {
	padding: 1rem;
	background: var(--bdw-mc-soft);
	border-radius: var(--bdw-mc-radius);
}

/* Aviso táctil (móvil) */

.bdw-mc .bdw-mc-touch-hint {
	position: absolute;
	z-index: 800;
	left: 50%;
	bottom: 2.25rem;
	transform: translateX(-50%);
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background: rgba(31, 31, 36, 0.85);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}

/* Pines y grupos ------------------------------------------------------- */

.bdw-mc .bdw-mc-pin {
	background: transparent;
	border: 0;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.bdw-mc .bdw-mc-pin svg {
	display: block;
}

.bdw-mc .leaflet-marker-icon:focus-visible {
	outline: 3px solid var(--bdw-mc-accent, #6a1b9a);
	outline-offset: 2px;
	border-radius: 6px;
}

.bdw-mc .bdw-mc-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bdw-mc-accent, #6a1b9a);
	border: 3px solid #ffffff;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-weight: 800;
	font-size: 0.9rem;
}

.bdw-mc .bdw-mc-cluster--l {
	font-size: 1rem;
}

/* Control Península / Canarias */

.bdw-mc .bdw-mc-jump {
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.bdw-mc .bdw-mc-jump__btn {
	display: block;
	min-height: 32px;
	padding: 0.3rem 0.65rem;
	border: 0;
	border-bottom: 1px solid #cccccc;
	background: #ffffff;
	color: #1f1f24;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.bdw-mc .bdw-mc-jump__btn:last-child {
	border-bottom: 0;
}

.bdw-mc .bdw-mc-jump__btn:hover {
	background: #f4f4f4;
}

.bdw-mc .bdw-mc-jump__btn:focus-visible {
	outline: 3px solid var(--bdw-mc-accent, #6a1b9a);
	outline-offset: -3px;
}

/* Popups --------------------------------------------------------------- */

.bdw-mc .leaflet-popup-content-wrapper {
	border-radius: var(--bdw-mc-radius);
}

.bdw-mc .leaflet-popup-content {
	margin: 0.9rem 1.1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.bdw-mc-popup p {
	margin: 0.4rem 0 0;
}

.bdw-mc .bdw-mc-popup .bdw-mc-popup__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.bdw-mc .bdw-mc-popup .bdw-mc-popup__prov {
	margin: 0 0 0.4rem;
	color: var(--bdw-mc-muted);
}

.bdw-mc .leaflet-container a.leaflet-popup-close-button {
	width: 32px;
	height: 32px;
	font-size: 22px;
	line-height: 30px;
}

.bdw-mc .leaflet-container a.leaflet-popup-close-button:focus-visible,
.bdw-mc .leaflet-bar a:focus-visible {
	outline: 3px solid var(--bdw-mc-accent, #6a1b9a);
	outline-offset: -3px;
}

/* Responsive ----------------------------------------------------------- */

/* Botones sólido / contorno (portada y fichas) ------------------------- */

.bdw-mc .bdw-mc-btn {
	gap: 0.5rem;
	text-decoration: none;
}

.bdw-mc .bdw-mc-btn--solid {
	border-radius: 8px;
}

.bdw-mc .bdw-mc-btn--outline {
	border-radius: 8px;
	background: #ffffff;
	color: var(--bdw-mc-accent, #c2410c);
}

.bdw-mc .bdw-mc-btn--outline:hover {
	background: #fff7f2;
	filter: none;
}

/* Contador completo: barra de progreso ---------------------------------- */

.bdw-mc-counter__missing {
	margin: 0.35rem 0 0.5rem;
	color: var(--bdw-mc-muted);
	font-weight: 600;
}

.bdw-mc-progress {
	display: flex;
	height: 12px;
	max-width: 520px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--bdw-mc-rest, #d9d9de);
}

.bdw-mc-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	transition: width 0.6s ease;
}

.bdw-mc-progress__bar--approved {
	background: var(--bdw-mc-approved, #c05600);
}

.bdw-mc-progress__bar--progress {
	background: var(--bdw-mc-in-progress, #1e3a8a);
}

/* Leyenda del mapa de áreas ---------------------------------------------- */

.bdw-mc .bdw-mc-legend__item--static {
	cursor: default;
	border-style: solid;
}

.bdw-mc .bdw-mc-area-tip {
	padding: 0.2rem 0.5rem;
	font-weight: 600;
}

/* Modo compacto y pantalla completa --------------------------------------- */

.bdw-mc-fs-bar[hidden],
.bdw-mc-fs-open-row[hidden] {
	display: none;
}

.bdw-mc-fs-open-row {
	margin: 0.75rem 0 0;
	text-align: right;
}

.bdw-mc.bdw-mc--compact:not(.is-fullscreen) .bdw-mc-search,
.bdw-mc.bdw-mc--compact:not(.is-fullscreen) .bdw-mc-legend {
	display: none;
}

.bdw-mc.is-fullscreen .bdw-mc-fs-open-row {
	display: none;
}

html.bdw-mc-noscroll,
html.bdw-mc-noscroll body {
	overflow: hidden !important;
}

.bdw-mc.is-fullscreen {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 1rem;
	overflow: auto;
	background: #ffffff;
}

.bdw-mc.is-fullscreen .bdw-mc-fs-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.bdw-mc .bdw-mc-fs-bar__title {
	margin: 0;
	color: var(--bdw-mc-navy);
	font-size: 1.2rem;
	font-weight: 800;
}

.bdw-mc.is-fullscreen .bdw-mc-search,
.bdw-mc.is-fullscreen .bdw-mc-legend {
	margin: 0;
}

.bdw-mc.is-fullscreen .bdw-mc-search__hint {
	display: none;
}

.bdw-mc.is-fullscreen .bdw-mc-map-wrap {
	flex: 1 1 auto;
	height: auto !important;
	max-height: none;
	min-height: 320px;
}

@media (min-width: 900px) {
	.bdw-mc.is-fullscreen {
		display: grid;
		grid-template-columns: minmax(280px, 380px) 1fr;
		grid-template-rows: auto auto 1fr;
		padding: 1.25rem 1.5rem;
	}

	.bdw-mc.is-fullscreen .bdw-mc-fs-bar {
		grid-column: 1 / -1;
	}

	.bdw-mc.is-fullscreen .bdw-mc-search {
		grid-column: 1;
		grid-row: 2 / span 2;
	}

	.bdw-mc.is-fullscreen .bdw-mc-legend {
		grid-column: 2;
		grid-row: 2;
	}

	.bdw-mc.is-fullscreen .bdw-mc-map-wrap {
		grid-column: 2;
		grid-row: 3;
	}
}

/* Portada ----------------------------------------------------------------- */

.bdw-mc-home {
	--bdw-mc-home-bg: #f4f6fa;
	/* El diseño se adapta al ancho real del contenedor (columna del tema, Elementor…), no al de la pantalla. */
	container-type: inline-size;
	container-name: bdwmchome;
	color: var(--bdw-mc-navy);
}

.bdw-mc-home h2,
.bdw-mc-home h3,
.bdw-mc-home .bdw-mc-btn {
	font-family: inherit;
}

.bdw-mc-home .bdw-mc-btn {
	white-space: nowrap;
}

.bdw-mc-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	margin: 0 0 1.5rem;
	border-radius: var(--bdw-mc-radius);
	background: #fbf9f6;
}



.bdw-mc-hero__content {
	position: relative;
	z-index: 1;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.bdw-mc .bdw-mc-hero__title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.8rem, 4.2cqi, 2.75rem);
	font-weight: 900;
	text-wrap: balance;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.bdw-mc-hero__title-1 {
	display: block;
	color: var(--bdw-mc-accent, #c2410c);
}

.bdw-mc-hero__title-2 {
	display: block;
	color: var(--bdw-mc-navy);
}

.bdw-mc .bdw-mc-hero__subtitle {
	margin: 0 0 0.9rem;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 800;
}

.bdw-mc .bdw-mc-hero__text {
	max-width: 36rem;
	margin: 0 0 1.4rem;
	color: #334155;
	font-size: 1.02rem;
}

.bdw-mc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.bdw-mc-hero__media {
	position: relative;
	min-height: 260px;
}

.bdw-mc-hero__media::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0 auto 0 0;
	width: 30%;
	background: linear-gradient(90deg, #fbf9f6 0%, rgba(251, 249, 246, 0) 100%);
	pointer-events: none;
}

.bdw-mc .bdw-mc-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.bdw-mc-home__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	padding: clamp(1rem, 3vw, 1.75rem);
	border-radius: var(--bdw-mc-radius);
	background: var(--bdw-mc-home-bg);
}

.bdw-mc .bdw-mc-home__heading {
	margin: 0 0 1.25rem;
	color: var(--bdw-mc-navy);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.25;
}

.bdw-mc .bdw-mc-stats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdw-mc .bdw-mc-stat {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid #e2e6ee;
}

.bdw-mc .bdw-mc-stat:last-child {
	border-bottom: 0;
}

.bdw-mc .bdw-mc-stat--link a {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.9rem;
	color: inherit;
	text-decoration: none;
	border-radius: 8px;
}

.bdw-mc .bdw-mc-stat--link a:focus-visible {
	outline: none;
	box-shadow: var(--bdw-mc-focus);
}

.bdw-mc-stat__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fde8dc;
	color: var(--bdw-mc-accent, #c2410c);
}

.bdw-mc-stat__icon--muted {
	background: #e3e8f1;
	color: var(--bdw-mc-navy);
}

.bdw-mc-stat__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bdw-mc-stat__text strong {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.bdw-mc-stat__text span {
	color: #475569;
	font-size: 0.92rem;
}

.bdw-mc-arrow {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--bdw-mc-accent, #c2410c);
	color: #ffffff;
}

.bdw-mc-home__map {
	min-width: 0;
}

.bdw-mc-home__map .bdw-mc {
	margin: 0;
}

/* Últimas mociones --------------------------------------------------------- */

.bdw-mc .bdw-mc-latest__title,
.bdw-mc-latest-wrap .bdw-mc-latest__title {
	margin: 0 0 1rem;
	color: var(--bdw-mc-navy, #14213d);
	font-size: 1.15rem;
	font-weight: 800;
}

.bdw-mc-latest {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdw-mc-latest .bdw-mc-latest__item {
	margin: 0;
	padding: 0;
}

.bdw-mc-latest__item::before {
	content: none;
}

.bdw-mc-latest__link {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.55rem 0.7rem 0.55rem 0.55rem;
	border: 1px solid #e2e6ee;
	border-radius: 10px;
	background: #ffffff;
	color: var(--bdw-mc-navy, #14213d);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bdw-mc-latest__link:hover {
	border-color: var(--bdw-mc-accent, #c2410c);
	box-shadow: 0 4px 14px rgba(20, 33, 61, 0.08);
}

.bdw-mc-latest__link:focus-visible {
	outline: 3px solid var(--bdw-mc-accent, #c2410c);
	outline-offset: 2px;
}

.bdw-mc-latest .bdw-mc-latest__img {
	flex: 0 0 auto;
	width: 64px;
	height: 52px;
	max-width: none;
	border-radius: 6px;
	object-fit: cover;
}

.bdw-mc-latest__img--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e3e8f1;
	color: #64748b;
}

.bdw-mc-latest__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.bdw-mc-latest__name {
	font-weight: 800;
	font-size: 0.95rem;
}

.bdw-mc-latest__prov,
.bdw-mc-latest__date {
	color: #475569;
	font-size: 0.85rem;
}

.bdw-mc-latest__link .bdw-mc-arrow {
	width: 30px;
	height: 30px;
}

.bdw-mc-latest__empty {
	color: #475569;
}

/* Ficha (vista individual) ---------------------------------------------- */

.bdw-mc.bdw-mc-ficha {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid #e2e6ee;
	border-left: 6px solid var(--bdw-mc-approved, #c05600);
	border-radius: var(--bdw-mc-radius);
	background: #ffffff;
}

.bdw-mc .bdw-mc-ficha__title {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
}

.bdw-mc .bdw-mc-ficha__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 1rem 0;
}

.bdw-mc .bdw-mc-ficha__list dt {
	margin: 0;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 600;
}

.bdw-mc .bdw-mc-ficha__list dd {
	margin: 0.15rem 0 0;
	font-weight: 700;
}

.bdw-mc-ficha__wide {
	grid-column: 1 / -1;
}

.bdw-mc-ficha__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

/* Una columna por defecto; se amplía según el ancho disponible. */
.bdw-mc-hero__media {
	order: -1;
	min-height: 200px;
}

.bdw-mc-hero__media::before {
	inset: auto 0 0 0;
	width: auto;
	height: 40%;
	background: linear-gradient(0deg, #fbf9f6 0%, rgba(251, 249, 246, 0) 100%);
}

@container bdwmchome (min-width: 760px) {
	.bdw-mc-hero.has-media {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.bdw-mc-hero__media {
		order: 0;
		min-height: 300px;
	}

	.bdw-mc-hero__media::before {
		inset: 0 auto 0 0;
		width: 30%;
		height: auto;
		background: linear-gradient(90deg, #fbf9f6 0%, rgba(251, 249, 246, 0) 100%);
	}

	.bdw-mc-home__body {
		grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	}

	.bdw-mc-home__latest {
		grid-column: 1 / -1;
	}

	.bdw-mc-home__latest .bdw-mc-latest {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

@container bdwmchome (min-width: 1080px) {
	.bdw-mc-home__body {
		grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(250px, 310px);
	}

	.bdw-mc-home__latest {
		grid-column: auto;
	}

	.bdw-mc-home__latest .bdw-mc-latest {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.bdw-mc-map-wrap {
		max-height: 75vh;
	}

	.bdw-mc-result {
		flex-direction: column;
		gap: 0.5rem;
	}

	.bdw-mc .bdw-mc-legend__item {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bdw-mc *,
	.bdw-mc .leaflet-zoom-anim .leaflet-zoom-animated {
		transition: none !important;
		animation: none !important;
	}
}
