/* ===== Footer ===== */
.footer { background: var(--analdex-navy-dark); color: #fff; overflow: hidden; font-family: var(--font-family); position: relative; }

/* Botón "ir arriba" sobrepuesto en el borde superior del footer */
/*
 * El botón se apoya sobre el borde superior del footer, mitad fuera y mitad
 * dentro. Antes el ancla tenía altura cero y el botón sobresalía hacia arriba
 * invadiendo la última sección de la página; como decenas de esas secciones
 * llevan overflow:hidden, el botón terminaba recortado o tapado según la
 * página.
 *
 * Por eso el ancla reserva su propia altura en lugar de desbordar: ocupa la
 * mitad del botón (24px de 48px) y el resto se resuelve con un margen
 * negativo equivalente sobre el footer. Así la mitad superior queda por
 * encima del borde y nada externo puede recortarla.
 *
 * Las tres medidas van juntas: si cambia el tamaño del botón, la altura del
 * ancla y su margen negativo han de seguir siendo la mitad.
 */
.footer__top-anchor {
	position: relative;
	height: 24px;
	/* Sube el ancla para que su mitad reservada quede sobre el footer. */
	margin-top: -24px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	z-index: 30;
	pointer-events: none;
}
.footer__top {
	position: relative;
	pointer-events: auto;
	width: 48px;
	height: 48px;
	border-radius: 9999px;
	border: 3px solid #fff;
	background: var(--analdex-yellow);
	color: var(--analdex-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
	transition: transform 0.2s ease, background 0.2s ease;
}
.footer__top:hover {
	background: #fff;
	transform: translateY(-3px);
}
.footer__top:active {
	transform: translateY(-1px);
}
.footer__inner { max-width: 80rem; margin: 0 auto; padding: 4rem 6%; }
@media (min-width: 1024px) { .footer__inner { padding: 4rem 1.5rem; } }
.footer__grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 4fr; } }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 1rem; display: block; margin-left: 0; margin-right: auto; }
.footer__logo img { height: 48px; width: auto; object-fit: contain; display: block; }
.footer__brand-desc { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 1.5rem; line-height: 1.6; }
.footer__newsletter { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.footer__newsletter input { flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px; padding: 8px 16px; font-size: 14px; color: #fff; outline: none; }
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter input:focus { border-color: var(--analdex-yellow); }
.footer__newsletter button { background: var(--analdex-yellow); color: var(--analdex-navy); font-weight: 700; padding: 8px 20px; border-radius: 9999px; font-size: 14px; white-space: nowrap; transition: background 0.2s; }
.footer__newsletter button:hover { background: rgba(255,196,0,0.9); }
.footer__privacy-note { color: rgba(255,255,255,0.3); font-size: 12px; margin-bottom: 1.5rem; }
.footer__socials { display: flex; gap: 1rem; }
.footer__socials a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__socials a:hover { color: var(--analdex-yellow); }
.footer__links { display: flex; flex-wrap: wrap; gap: 2rem; }
@media (min-width: 1024px) { .footer__links { justify-content: space-between; } }
.footer__col h4 { color: var(--analdex-yellow); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(255,255,255,0.6); font-size: 12px; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bottom-inner { max-width: 80rem; margin: 0 auto; padding: 1.25rem 6%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 768px) { .footer__bottom-inner { flex-direction: row; justify-content: space-between; padding: 1.25rem 1.5rem; } }
.footer__bottom-copy { color: rgba(255,255,255,0.4); font-size: 12px; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: rgba(255,255,255,0.4); font-size: 12px; transition: color 0.2s; }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }