/**
 * YoLaburo — Site footer 2026 (alineado al header #0d2b7d).
 */

.zp-site-footer--2026 {
	--zp-footer-bg: #0d2b7d;
	--zp-footer-bg-deep: #071828;
	--zp-footer-text: rgba(255, 255, 255, 0.88);
	--zp-footer-muted: rgba(255, 255, 255, 0.62);
	--zp-footer-border: rgba(255, 255, 255, 0.12);
	--zp-footer-accent: #93c5fd;
	margin: 0;
	padding: 0;
	background: linear-gradient(180deg, var(--zp-footer-bg) 0%, var(--zp-footer-bg-deep) 100%);
	color: var(--zp-footer-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Ocultar footer legacy solo cuando el footer 2026 está en el DOM */
body:has(#zp-site-footer) footer:not(.zp-site-footer--2026),
body:has(#zp-site-footer) .copyright-wrapper {
	display: none !important;
}

.zp-site-footer__main {
	padding: 32px 0 20px;
}

.zp-site-footer__container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.zp-site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.zp-site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.zp-site-footer__logo-link {
	display: inline-flex;
	line-height: 0;
}

.zp-site-footer__logo {
	width: auto;
	height: 40px;
	max-width: 180px;
	object-fit: contain;
}

.zp-site-footer__tagline {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--zp-footer-muted);
	max-width: 280px;
}

.zp-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.zp-site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--zp-footer-border);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.zp-site-footer__social-link:hover,
.zp-site-footer__social-link:focus {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.zp-site-footer__nav-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
}

.zp-site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.zp-site-footer__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid transparent;
	color: var(--zp-footer-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.zp-site-footer__link:hover,
.zp-site-footer__link:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--zp-footer-border);
	color: #fff;
}

.zp-site-footer__link-chev {
	flex-shrink: 0;
	font-size: 16px;
	color: var(--zp-footer-accent);
	opacity: 0.85;
}

.zp-site-footer__bar {
	border-top: 1px solid var(--zp-footer-border);
	background: rgba(0, 0, 0, 0.18);
}

.zp-site-footer__bar-inner {
	padding: 14px 20px 18px;
}

.zp-site-footer__copy {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--zp-footer-muted);
	text-align: center;
}

.zp-site-footer__copy a {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	text-decoration: none;
}

.zp-site-footer__copy a:hover {
	text-decoration: underline;
}

.zp-site-footer__copy-sep {
	margin: 0 6px;
	opacity: 0.5;
}

/* Espacio para bottom nav fija + asegurar que se vea al hacer scroll */
.zp-site-footer--2026 {
	display: block !important;
	visibility: visible !important;
	position: relative;
	z-index: 1;
	width: 100%;
	box-sizing: border-box;
}

body:has(#menu-footer.zp-bottom-nav-shell) .zp-site-footer--2026 {
	margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
	.zp-site-footer__main {
		padding: 44px 0 28px;
	}

	.zp-site-footer__grid {
		grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1fr);
		align-items: start;
		gap: 40px;
	}

	.zp-site-footer__link {
		padding: 10px 12px;
		font-size: 14px;
	}

	.zp-site-footer__copy {
		text-align: left;
	}
}

@media (min-width: 992px) {
	.zp-site-footer__grid {
		grid-template-columns: minmax(260px, 1.2fr) minmax(320px, 1fr);
		gap: 56px;
	}

	.zp-site-footer__links {
		gap: 6px;
	}
}
