/* ===== Alterfocus - Footer compartido =====
 * Cargado via wp_enqueue_style() en functions.php.
 * Estructura y escala tipografica siguiendo el mockup footer-2a.html (Claude Design). */

.af-site-footer {
	background: var(--af-ink);
	color: var(--af-bg);
	font-family: var(--af-font-sans);
	-webkit-font-smoothing: antialiased;
	padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px) clamp(28px, 4vw, 40px);
	box-sizing: border-box;
}
.af-site-footer * { box-sizing: border-box; }
.af-site-footer .af-links a,
.af-site-footer .af-social a,
.af-site-footer .af-copy a,
.af-site-footer .af-site-footer-logo-link,
.af-site-footer .af-newsletter-btn { color: var(--af-bg); text-decoration: none; }
.af-site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.af-site-footer-inner { max-width: 1280px; margin: 0 auto; }

/* Top: marca + newsletter */
.af-site-footer-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: end;
	padding-bottom: 72px;
	border-bottom: 1px solid rgba(248,247,245,0.12);
}
.af-site-footer--no-news .af-site-footer-top {
	grid-template-columns: 1fr;
	padding-bottom: 56px;
}
.af-site-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.af-site-footer-logo-link { display: inline-block; }
.af-site-footer-logo { height: clamp(28px, 3.2vw, 40px); width: auto; filter: invert(1); }
.af-site-footer-tagline {
	font-family: var(--af-font-serif);
	font-style: italic;
	font-size: clamp(17px, 1.8vw, 22px);
	color: rgba(248,247,245,0.72);
	margin: 0;
}

.af-newsletter { display: flex; flex-direction: column; gap: 20px; }
.af-newsletter-label {
	font-family: var(--af-font-sans);
	font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	opacity: 0.6; margin: 0;
}
.af-newsletter-pitch {
	font-family: var(--af-font-serif);
	font-style: italic;
	font-size: clamp(16px, 1.6vw, 20px);
	max-width: 480px; margin: 0; line-height: 1.5;
}
.af-newsletter-form {
	display: flex; align-items: center;
	border-bottom: 1px solid var(--af-bg);
	max-width: 520px;
}
.af-newsletter-input {
	flex: 1; min-width: 0; background: transparent; border: 0;
	color: var(--af-bg); font: 15px var(--af-font-sans); padding: 14px 0;
}
.af-newsletter-input::placeholder { color: rgba(248,247,245,0.4); }
.af-newsletter-input:focus { outline: none; }
.af-newsletter-form:focus-within { box-shadow: 0 1px 0 var(--af-bg); }
.af-newsletter-btn {
	background: transparent; border: 0; color: var(--af-bg);
	font: 600 13px var(--af-font-sans); letter-spacing: 0.12em; text-transform: uppercase;
	cursor: pointer; padding: 14px 0 14px 16px; white-space: nowrap;
}
.af-newsletter-note {
	font-family: var(--af-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.45;
	margin: 6px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--af-accent);
	background: rgba(248, 247, 245, 0.08);
	color: var(--af-accent);
	opacity: 1;
	max-width: 520px;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.af-eh-stay-newsletter .af-newsletter-note {
	background: rgba(22, 22, 22, 0.05);
	color: var(--af-ink);
}

/* Bottom: paginas + redes */
.af-bottom {
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 48px; padding-top: 32px; font-size: 14px;
}
.af-links, .af-social { display: flex; list-style: none; margin: 0; padding: 0; }
.af-links { gap: 36px; flex-wrap: wrap; }
.af-social { flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px; max-width: 640px; }
.af-social a { display: inline-flex; gap: 6px; }
.af-ext { color: rgba(248,247,245,0.5); }
.af-copy { display: block; padding-top: 56px; color: rgba(248,247,245,0.4); font-size: 13px; }
.af-site-footer--no-news .af-copy { padding-top: 40px; }

/* Home: el footer es la ultima "pantalla" del scroll-snap dentro de <main> */
body.home-af .af-site-footer {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	scroll-snap-align: start;
}

/* Mobile */
@media (max-width: 768px) {
	.af-site-footer { padding: 64px 24px 32px; }
	.af-site-footer-top {
		grid-template-columns: 1fr;
		gap: 48px;
		padding-bottom: 0;
		border-bottom: 0;
	}
	.af-site-footer--no-news .af-site-footer-top { padding-bottom: 0; }
	.af-site-footer-brand { gap: 12px; }
	.af-site-footer-logo { height: 26px; }
	.af-site-footer-tagline { font-size: 18px; }
	.af-newsletter { gap: 16px; }
	.af-newsletter-pitch { font-size: 17px; }
	.af-newsletter-form {
		flex-direction: column; align-items: stretch; gap: 12px;
		border-bottom: 0; max-width: none;
	}
	.af-newsletter-input { border-bottom: 1px solid var(--af-bg); font-size: 16px; }
	.af-newsletter-btn {
		height: 48px; background: var(--af-bg); color: var(--af-ink); padding: 0;
		display: flex; align-items: center; justify-content: center;
	}
	.af-newsletter-btn .af-arrow { display: none; }
	.af-bottom {
		flex-direction: column; gap: 28px; margin-top: 48px; padding-top: 32px;
		border-top: 1px solid rgba(248,247,245,0.12); font-size: 15px;
	}
	.af-site-footer--no-news .af-bottom { margin-top: 40px; }
	.af-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
	.af-social { justify-content: flex-start; gap: 14px 24px; max-width: none; }
	.af-copy { padding-top: 28px; font-size: 12px; }
}
