/* ==========================================================================
   BeatLatin — Footer estilo Apple Music
   Patrón: copyright + ul flex-wrap con separadores ::after en cada li.
   body ya tiene padding-left = sidebar footprint → el texto NO usa margin negativo.
   Solo el fondo (::before en .bl-footer) pasa bajo el sidebar.
   ========================================================================== */

.elementor-location-footer {
	margin-top: auto;
	padding-top: 0;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
}

/* Cadena Elementor = ancho completo */
.elementor-location-footer .elementor,
.elementor-location-footer .e-con,
.elementor-location-footer .e-con-inner,
.elementor-location-footer .elementor-section,
.elementor-location-footer .elementor-container,
.elementor-location-footer .elementor-column,
.elementor-location-footer .elementor-widget-wrap,
.elementor-location-footer .elementor-widget-shortcode,
.elementor-location-footer .elementor-widget-shortcode .elementor-widget-container {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

/* Contenedor exterior Elementor (.bl-footer) */
.bl-footer,
.bl-footer.e-con {
	--bl-footer-pad-y: 18px;
	--bl-footer-pad-bottom: 24px;
	--bl-footer-player-clearance: 96px;
	--bl-footer-pad-x: calc(
		var(--bl-content-gutter, 12px) + var(--bl-content-inner-inset, 13px)
	);

	position: relative;
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	overflow: visible !important;
	box-sizing: border-box !important;
	flex-shrink: 0;
}

/* Banda de color full-bleed (solo fondo, izquierda bajo sidebar) */
.bl-footer::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(-1 * var(--bl-sidebar-footprint, 244px));
	width: calc(100% + var(--bl-sidebar-footprint, 244px));
	z-index: 0;
	background: var(--bl-footer-bg, #292929);
	border-top: 1px solid var(--bl-border, rgba(255, 255, 255, 0.09));
	pointer-events: none;
}

@media (max-width: 1024px) {
	.bl-footer::before {
		left: 0;
		width: 100%;
	}

	.bl-footer {
		--bl-footer-pad-x: calc(
			var(--bl-content-gutter-md, 28px) + var(--bl-content-inner-inset, 13px)
		);
	}
}

@media (max-width: 767px) {
	.bl-footer {
		--bl-footer-pad-x: calc(
			var(--bl-content-gutter-sm, 18px) + var(--bl-content-inner-inset, 6px)
		);
		--bl-footer-pad-y: 12px;
	}
}

/* Wrappers legacy Elementor — sin padding extra */
.bl-footer-inner,
.bl-footer-inner.e-con,
.bl-footer-inner > .e-con-inner,
.bl-footer-stack {
	position: relative;
	z-index: 1;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* ---------- Contenido (patrón Apple footer-contents) ---------- */

.bl-footer-contents {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding:
		var(--bl-footer-pad-y)
		var(--bl-footer-pad-x)
		calc(var(--bl-footer-pad-bottom) + env(safe-area-inset-bottom, 0px));
	font-family: var(--bl-font) !important;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2727272727;
	letter-spacing: 0;
}

.bl-footer-copy {
	margin: 0 0 15px;
	padding: 0;
	color: var(--bl-muted, rgba(245, 245, 247, 0.58)) !important;
}

.bl-footer-copy a {
	color: var(--bl-text, #f5f5f7) !important;
	text-decoration: none;
}

.bl-footer-copy a:hover {
	text-decoration: underline;
}

/* Lista de enlaces — flex wrap + separador vertical (Apple) */
.bl-footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0px 0px 2px 0px;
	width: 100%;
	max-width: none;
}

.bl-footer-links__item {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	margin-top: 6px;
	vertical-align: middle;
}

.bl-footer-links__item a,
.bl-footer-links__item .bl-legal-trigger {
	display: inline-flex;
	align-items: center;
	height: 100%;
	padding-right: 10px;
	color: var(--bl-text, #f5f5f7) !important;
	text-decoration: none;
	font: inherit;
}

.bl-footer-links__item a:hover,
.bl-footer-links__item .bl-legal-container:hover .bl-legal-trigger,
.bl-footer-links__item .bl-legal-trigger:focus-visible {
	text-decoration: underline;
}

/* Separador | entre items */
.bl-footer-links__item::after {
	content: "";
	display: inline-block;
	align-self: stretch;
	width: 0;
	border-left: 1px solid var(--bl-footer-rule, rgba(255, 255, 255, 0.18));
	margin-right: 10px;
	min-height: 1em;
}

.bl-footer-links__item:last-child::after {
	content: none;
	border: 0;
	margin: 0;
	padding: 0;
}

/* Visitas */
.bl-footer-visits {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-right: 10px;
	color: var(--bl-muted, rgba(245, 245, 247, 0.58)) !important;
	white-space: nowrap;
}

.bl-footer-visits strong {
	font-weight: 600;
	color: var(--bl-text, #f5f5f7) !important;
}

/* Declaración legal */
.bl-legal-container {
	position: relative;
	display: inline-block;
}

.bl-legal-trigger {
	margin: 0;
	padding: 0 10px 0 0;
	border: 0;
	background: none !important;
	background-color: transparent !important;
	cursor: pointer;
	color: var(--bl-text, #f5f5f7) !important;
	transition: color 0.2s ease;
}

.bl-legal-trigger:hover,
.bl-legal-trigger:focus,
.bl-legal-trigger:focus-visible,
.bl-legal-trigger:active {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
}

.bl-legal-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	width: min(340px, calc(100vw - 48px));
	padding: 14px 16px;
	box-sizing: border-box;
	white-space: normal;
	line-height: 1.55;
	text-align: left;
	font-size: 11px;
	color: var(--bl-muted, rgba(245, 245, 247, 0.72)) !important;
	background: var(--bl-tooltip-bg, rgba(30, 30, 28, 0.98)) !important;
	backdrop-filter: blur(12px) saturate(120%);
	-webkit-backdrop-filter: blur(12px) saturate(120%);
	border: 1px solid var(--bl-border, rgba(255, 255, 255, 0.12));
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: var(--z-tooltip, 120);
}

.bl-legal-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--bl-border, rgba(255, 255, 255, 0.12));
}

.bl-legal-container:hover .bl-legal-tooltip,
.bl-legal-container:focus-within .bl-legal-tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 1023px) {
	.bl-legal-tooltip {
		display: none !important;
	}
}

/* Segunda fila: redes + visitas */
.bl-footer-links--social {
	margin-top: 2px;
}

.bl-footer-links--social .bl-footer-links__item:first-child {
	margin-top: 6px;
}

/* Player sticky: 56px alto + 22px bottom + aire */
body:has(.sticky-audio-player.active) .bl-footer-contents,
body:has(.sticky-audio-player:not(.is-hidden)) .bl-footer-contents {
	padding-bottom: calc(
		var(--bl-footer-player-clearance) + env(safe-area-inset-bottom, 0px)
	) !important;
}

@media (max-width: 1024px) {
	body:has(.sticky-audio-player.active) .bl-footer-contents,
	body:has(.sticky-audio-player:not(.is-hidden)) .bl-footer-contents {
	--bl-footer-player-clearance: 104px;
}

@media (max-width: 768px) {
	body:has(.sticky-audio-player.active) .bl-footer-contents,
	body:has(.sticky-audio-player:not(.is-hidden)) .bl-footer-contents {
		--bl-footer-player-clearance: 112px;
	}
}
}

/* Modo claro */
[data-theme="light"] .bl-footer::before {
	background: var(--bl-footer-bg, #ececee);
	border-top-color: var(--bl-border, rgba(0, 0, 0, 0.08));
}

[data-theme="light"] .bl-footer-copy,
[data-theme="light"] .bl-footer-visits {
	color: var(--bl-muted, rgba(29, 29, 31, 0.56)) !important;
}

[data-theme="light"] .bl-footer-copy a,
[data-theme="light"] .bl-footer-links__item a,
[data-theme="light"] .bl-legal-trigger,
[data-theme="light"] .bl-footer-visits strong {
	color: var(--bl-text, #1d1d1f) !important;
}

[data-theme="light"] .bl-footer-links__item::after {
	border-left-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .bl-legal-tooltip {
	color: rgba(29, 29, 31, 0.72) !important;
	background: rgba(255, 255, 255, 0.98) !important;
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bl-legal-tooltip::after {
	border-top-color: rgba(0, 0, 0, 0.1);
}
