/*
 * Contact map block — Leaflet + CARTO Positron (fix-mapa-contacto-20260804).
 * Loaded only on /contacto/ (see dwvisual_child_contact_map_assets).
 */

.contact-map__stage {
	position: relative;
	min-height: 380px;
	overflow: hidden;
	border-radius: 2px;
	border: 1px solid rgba(61, 65, 102, 0.14);
	background: linear-gradient(150deg, #eef0f5 0%, #e4e7ef 100%);
	box-shadow: 0 18px 40px rgba(61, 65, 102, 0.08);
}

.contact-map__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: transparent;
}

.contact-map__canvas.leaflet-container {
	font-family: "Montserrat", Arial, sans-serif;
}

.contact-map__canvas .leaflet-tile-pane {
	filter: saturate(0.82) contrast(0.97);
}

/* Legally required OSM/CARTO credit, as discreet as allowed. */
.contact-map__canvas .leaflet-control-attribution {
	padding: 1px 6px;
	font-size: 10px;
	line-height: 1.4;
	background: rgba(251, 251, 250, 0.6);
	color: rgba(85, 85, 85, 0.75);
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.contact-map__canvas .leaflet-control-attribution:hover,
.contact-map__canvas .leaflet-control-attribution:focus-within {
	opacity: 1;
	background: rgba(251, 251, 250, 0.92);
}

.contact-map__canvas .leaflet-control-attribution a {
	color: inherit;
	text-decoration: none;
}

.contact-map__canvas .leaflet-control-attribution a:hover,
.contact-map__canvas .leaflet-control-attribution a:focus-visible {
	text-decoration: underline;
}

.contact-map__canvas .leaflet-control-zoom a {
	color: #3d4166;
}

/* Server-rendered fallback: visible without JS / if Leaflet fails; hidden once live. */
.contact-map__fallback {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	gap: 6px;
	padding: 24px;
	text-align: center;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-map__fallback .eyebrow {
	margin: 0;
}

.contact-map__fallback-city {
	margin: 0;
	color: #3d4166;
	font-size: 19px;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.contact-map__stage.is-live .contact-map__fallback {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Floating coverage card */
.contact-map__card {
	position: absolute;
	left: 18px;
	bottom: 18px;
	z-index: 1100;
	max-width: min(330px, calc(100% - 36px));
	padding: 15px 18px 16px;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(61, 65, 102, 0.16);
	border-left: 3px solid #f28c28;
	border-radius: 2px;
	box-shadow: 0 12px 36px rgba(61, 65, 102, 0.22);
}

.contact-map__card-title {
	margin: 0 0 4px;
	color: #3d4166;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.contact-map__card-note {
	margin: 0 0 12px;
	color: #555;
	font-size: 12.5px;
	font-weight: 300;
	line-height: 1.55;
}

.contact-map__card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.contact-map__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 14px;
	border-radius: 2px;
	background: #3d4166;
	color: #fff !important;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background 0.2s ease;
}

.contact-map__chip:hover,
.contact-map__chip:focus-visible {
	background: #292d49;
}

.contact-map__chip--ghost {
	background: transparent;
	border: 1px solid rgba(61, 65, 102, 0.35);
	color: #3d4166 !important;
}

.contact-map__chip--ghost:hover,
.contact-map__chip--ghost:focus-visible {
	background: #fff;
	border-color: #3d4166;
}

/* Brand pin with subtle drop-in + soft pulse ring */
.dw-map-pin {
	background: none;
	border: 0;
}

.dw-map-pin__wrap {
	position: relative;
	display: block;
	width: 36px;
	height: 46px;
}

.dw-map-pin__wrap svg {
	position: relative;
	z-index: 2;
	display: block;
	filter: drop-shadow(0 6px 10px rgba(41, 45, 73, 0.35));
}

.dw-map-pin--drop .dw-map-pin__wrap svg {
	animation: dw-pin-drop 0.65s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.dw-map-pin__pulse {
	position: absolute;
	left: 50%;
	bottom: -3px;
	z-index: 1;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: rgba(242, 140, 40, 0.45);
	transform: scale(0.6);
}

.dw-map-pin--drop .dw-map-pin__pulse {
	animation: dw-pin-pulse 2.8s ease-out 0.7s infinite;
}

@keyframes dw-pin-drop {
	0% {
		opacity: 0;
		transform: translateY(-18px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dw-pin-pulse {
	0% {
		opacity: 0.8;
		transform: scale(0.5);
	}

	70% {
		opacity: 0;
		transform: scale(2.6);
	}

	100% {
		opacity: 0;
		transform: scale(2.6);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dw-map-pin--drop .dw-map-pin__wrap svg,
	.dw-map-pin--drop .dw-map-pin__pulse {
		animation: none;
	}

	.contact-map__fallback {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.contact-map__stage {
		min-height: 320px;
	}

	.contact-map__card {
		left: 12px;
		bottom: 12px;
		max-width: calc(100% - 24px);
		padding: 13px 15px 14px;
	}
}
