/* ============================================================
   "Ubicaciones GEA" widget (gea_locations) — design-mockup
   .contact__branches: glass branch cards in a full-bleed, edge-faded
   carousel + Leaflet map. Base track/nav styles come from 10-slider.css.
   ============================================================ */

/* Full-bleed block: the track must reach both viewport edges. */
.elementor-widget-gea_locations,
.elementor-widget-gea_locations > .elementor-widget-container {
	width: 100%;
}

.gea-elementor-landing-template .contact__branches {
	position: relative;
	z-index: 2;
	color: #fff;
	scroll-margin-top: 84px;
}

/* Label + arrows, capped like the rest of the content */
.gea-elementor-landing-template .contact__branches-head,
.gea-elementor-landing-template .contact__branches-map {
	width: min(var(--container, 1240px), 100% - 48px);
	margin-inline: auto;
}

.gea-elementor-landing-template .contact__branches-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.gea-elementor-landing-template .contact__branches-head .label {
	margin: 0;
}

.gea-elementor-landing-template .contact__branches-head .slider__nav {
	margin-top: 0;
}

/* Arrows on a dark background */
.gea-elementor-landing-template .slider__nav--light .circle-btn {
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}

.gea-elementor-landing-template .slider__nav--light .circle-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Faded ends. slider.js writes --sl / --sr (px scrolled / left to scroll):
   the left fade appears once you start moving and the right one retires at
   the end, so no card is ever cut off at rest. */
.gea-elementor-landing-template .slider--fade {
	--fade: clamp(48px, 9vw, 150px);
	--fade-l: min(var(--fade), calc(var(--sl, 0) * 1px));
	--fade-r: min(var(--fade), calc(var(--sr, 9999) * 1px));
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}

.gea-elementor-landing-template .branches {
	list-style: none;
	gap: 12px;
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.gea-elementor-landing-template .branch {
	flex: 0 0 clamp(260px, 23vw, 320px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 20px 22px 22px;
	border-radius: 18px;
	background: rgba(10, 16, 24, 0.5);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
}

/* Logo sizes restated here: inside the widget, Elementor's
   `.elementor img { height:auto; max-width:100% }` outranks style.css's
   plain `.brand-logo` rule and the logos render at their natural size. */
.gea-elementor-landing-template .branch .brand-logo,
.gea-elementor-landing-template .map-popup__logo .brand-logo {
	display: block;
	align-self: flex-start;
	width: auto;
	height: 34px;
	max-width: 170px;
	object-fit: contain;
	object-position: left center;
}

.gea-elementor-landing-template .branch .brand-logo--stacked {
	height: 46px;
}

.gea-elementor-landing-template .branch .brand-logo {
	margin-bottom: 8px;
	user-select: none;
}

.gea-elementor-landing-template .branch h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: -0.01em;
	color: #fff;
}

.gea-elementor-landing-template .branch address {
	margin: 0;
	font-style: normal;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.74);
}

.gea-elementor-landing-template .branch__mail {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	overflow-wrap: anywhere;
	text-decoration: none;
}

.gea-elementor-landing-template .branch__mail:hover {
	color: var(--cyan);
}

/* Full numbers with area code, one per line, in two columns */
.gea-elementor-landing-template .branch__phones {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 2px 16px;
	margin: auto 0 0;
	padding-top: 6px;
	font-size: 14px;
	line-height: 1.6;
}

.gea-elementor-landing-template .branch__phones a {
	color: #fff;
	white-space: nowrap;
	text-decoration: none;
}

.gea-elementor-landing-template .branch__phones a:hover {
	color: var(--cyan);
}

/* Map — same radius and rhythm as the cards */
.gea-elementor-landing-template .locations-map {
	height: clamp(360px, 52vh, 560px);
	margin-top: 16px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--mist-warm);
	font-family: inherit;
}

.gea-elementor-landing-template .locations-map .leaflet-control-attribution {
	font-size: 10.5px;
}

.gea-elementor-landing-template .map-pin {
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid #fff;
	box-shadow: 0 0 0 6px rgba(10, 107, 240, 0.22);
}

.gea-elementor-landing-template .locations-map .leaflet-popup-content-wrapper {
	border-radius: 14px;
}

.gea-elementor-landing-template .locations-map .leaflet-popup-content {
	margin: 14px 16px;
	font: inherit;
}

.gea-elementor-landing-template .map-popup {
	display: grid;
	gap: 4px;
	color: var(--ink);
}

.gea-elementor-landing-template .map-popup__logo {
	margin-bottom: 8px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--ink);
}

.gea-elementor-landing-template .map-popup__logo .brand-logo {
	height: 30px;
}

.gea-elementor-landing-template .map-popup__logo .brand-logo.brand-logo--stacked {
	height: 40px;
}

.gea-elementor-landing-template .map-popup strong {
	font-size: 15px;
	font-weight: 600;
}

.gea-elementor-landing-template .map-popup__city {
	font-size: 12.5px;
	color: var(--slate);
}

.gea-elementor-landing-template .map-popup address {
	margin: 6px 0 0;
	font-style: normal;
	font-size: 13px;
	line-height: 1.45;
	color: var(--slate);
}

.gea-elementor-landing-template .map-popup p {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--slate);
}

.gea-elementor-landing-template .map-popup p {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 0 14px;
}

.gea-elementor-landing-template .map-popup a {
	color: var(--accent);
	white-space: nowrap;
}

.gea-elementor-landing-template .map-popup .branch__mail {
	margin-top: 4px;
	font-size: 13px;
	color: var(--accent);
	white-space: normal;
}

@media (max-width: 640px) {
	.gea-elementor-landing-template .branch {
		flex-basis: min(80vw, 320px);
	}
}

/* ============================================================
   Large screens (≥1800 px: QHD, 4K, ultra-wide) — design-mockup's
   "PANTALLAS GRANDES" layer. Below 1800 px nothing changes. Elementor
   content uses its own Widescreen breakpoint (Kit, 1800 px).
   ============================================================ */
@media (min-width: 1800px) {
	.gea-elementor-landing-template .branch {
		flex-basis: 380px;
		padding: 24px 26px 26px;
	}

	.gea-elementor-landing-template .branch h3 {
		font-size: 23px;
	}

	.gea-elementor-landing-template .branch address {
		font-size: 15px;
	}

	.gea-elementor-landing-template .branch__mail,
	.gea-elementor-landing-template .branch__phones {
		font-size: 15.5px;
	}

	.gea-elementor-landing-template .locations-map {
		height: clamp(560px, 50vh, 720px);
	}
}
