/*
 * BuenTheme — footer.css
 * Pie de página. Se carga en todo el sitio y en el editor.
 * Extraído de style.css en 2.6.148. No se borró ninguna regla.
 */

/* ==========================================================================
   GESTOR DE PIES DE PÁGINA
   ========================================================================== */

.buentheme-footer-wrapper {
	width: 100%;
}

.buentheme-footer-wrapper .buentheme-copyright {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.buentheme-footer-wrapper .buentheme-menu-wrapper-mobile,
.buentheme-menu-block--footer .buentheme-menu-wrapper-mobile,
.buentheme-menu-block--footer .wp-block-navigation__responsive-container-open,
.buentheme-menu-block--footer .wp-block-navigation__responsive-container-close,
.buentheme-footer-wrapper .buentheme-menu-block--footer .wp-block-navigation__responsive-container-open,
.buentheme-footer-wrapper .buentheme-menu-block--footer .wp-block-navigation__responsive-container-close,
.buentheme-menu-block--footer .buentheme-bar-logo,
.buentheme-menu-block--footer .buentheme-bar-actions,
.buentheme-menu-block--footer .buentheme-drawer-chrome,
.buentheme-menu-block--footer .wp-block-site-logo,
.buentheme-menu-block--footer .wp-block-site-title,
.buentheme-menu-block--footer .wp-block-site-tagline,
.buentheme-menu-block--footer .buentheme-mega-panel,
.buentheme-footer-wrapper .buentheme-menu-block .buentheme-bar-logo,
.buentheme-footer-wrapper .buentheme-menu-block .buentheme-bar-actions,
.buentheme-footer-wrapper .buentheme-menu-block .buentheme-drawer-chrome,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-site-logo,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation__responsive-container-open,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation__responsive-container-close {
	display: none !important;
}

.buentheme-menu-block.buentheme-menu-block--footer,
.buentheme-menu-block.buentheme-menu-block--footer.wp-block-navigation,
.buentheme-menu-block.buentheme-menu-block--footer.has-buentheme-bar-layout,
.buentheme-footer-wrapper .buentheme-menu-block,
.buentheme-footer-wrapper .buentheme-menu-block.wp-block-navigation,
.buentheme-footer-wrapper .buentheme-menu-block.has-buentheme-bar-layout {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	align-items: stretch !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	position: relative !important;
}

.buentheme-menu-block--footer .wp-block-navigation__responsive-container,
.buentheme-menu-block--footer .wp-block-navigation__responsive-close,
.buentheme-menu-block--footer .wp-block-navigation__responsive-dialog,
.buentheme-menu-block--footer .wp-block-navigation__responsive-container-content,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation__responsive-container,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation__responsive-container:not(.is-menu-open) {
	display: block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	overflow: visible !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	background: transparent !important;
	transform: none !important;
	inset: auto !important;
	padding: 0 !important;
}

.buentheme-menu-block.buentheme-menu-block--footer.wp-block-navigation > ul,
.buentheme-menu-block.buentheme-menu-block--footer > ul,
.buentheme-menu-block.buentheme-menu-block--footer .wp-block-navigation__container,
.buentheme-footer-wrapper .buentheme-menu-block.wp-block-navigation > ul,
.buentheme-footer-wrapper .buentheme-menu-block > ul,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
	gap: var(--bt-menu-gap, 0.4em) !important;
	width: 100%;
	max-width: 100%;
}

.buentheme-menu-block.buentheme-menu-block--footer.buentheme-menu-block--horizontal.wp-block-navigation > ul,
.buentheme-menu-block.buentheme-menu-block--footer.buentheme-menu-block--horizontal > ul,
.buentheme-menu-block.buentheme-menu-block--footer.buentheme-menu-block--horizontal .wp-block-navigation__container,
.buentheme-footer-wrapper .buentheme-menu-block.buentheme-menu-block--horizontal.wp-block-navigation > ul,
.buentheme-footer-wrapper .buentheme-menu-block.buentheme-menu-block--horizontal > ul,
.buentheme-footer-wrapper .buentheme-menu-block.buentheme-menu-block--horizontal .wp-block-navigation__container {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: var(--bt-menu-gap, 1.25em) !important;
}

.buentheme-menu-block--footer .wp-block-navigation-item,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-navigation-item {
	width: auto;
	max-width: 100%;
}

.buentheme-menu-block--footer:not(.buentheme-menu-block--horizontal) .wp-block-navigation__submenu-container,
.buentheme-footer-wrapper .buentheme-menu-block:not(.buentheme-menu-block--horizontal) .wp-block-navigation__submenu-container {
	position: static !important;
	display: flex !important;
	flex-direction: column !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	box-shadow: none !important;
	background: transparent !important;
	min-width: 0 !important;
	width: 100% !important;
	padding: 0.15em 0 0.15em 0.85em !important;
	margin: 0 !important;
	border: 0 !important;
}

.buentheme-menu-block--footer .wp-block-columns,
.buentheme-menu-block--footer .wp-block-column,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-columns,
.buentheme-footer-wrapper .buentheme-menu-block .wp-block-column {
	display: block !important;
	width: 100% !important;
	flex-basis: auto !important;
}

.buentheme-footer-wrapper .wp-block-social-links {
	margin-top: 0;
	margin-bottom: 0;
}

/*
 * BuenChat launcher is position:fixed bottom-right (60px + 20px = --buentheme-chat-slot).
 * Footer socials are also right-aligned in the last row, so they collide at the page bottom.
 * Keep the icons in flow, just clear the FAB slot (same token as back-to-top).
 */
body:has(#buenchat-launcher) .buentheme-footer-wrapper .wp-block-social-links,
body:has(#buenchat-container) .buentheme-footer-wrapper .wp-block-social-links {
	margin-inline-end: var(--buentheme-chat-slot, 80px);
}

@media (max-width: 781px) {
	body:has(#buenchat-launcher) .buentheme-footer-wrapper,
	body:has(#buenchat-container) .buentheme-footer-wrapper {
		padding-bottom: calc(var(--wp--preset--spacing--40, 1.5rem) + var(--buentheme-chat-slot, 80px)) !important;
	}
}
