/* Amor por los Libros · Pie global 4.2.2 */


/* Inicio antiguo: la página de Inicio fue construida dentro de .apl y contiene
 * un footer local previo. El Core 4.0.7 lo oculta únicamente en la portada
 * para evitar duplicar el nuevo pie global, sin modificar el HTML de Inicio. */
body.home .apl footer {
	display: none !important;
}

/* El Core aporta el footer global; se oculta el footer nativo de Astra. */
.site-footer,
#colophon,
.ast-footer-overlay,
footer.site-footer {
	display: none !important;
}

.apl-global-footer {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	background: #941F2B;
	color: #FFF5DE;
	border-top: 1px solid rgba(255,245,222,.58);
	font-family: inherit;
}

.apl-global-footer *,
.apl-global-footer *::before,
.apl-global-footer *::after {
	box-sizing: border-box;
}

.apl-global-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 28px 18px;
	display: grid;
	grid-template-columns: minmax(180px, .9fr) minmax(360px, 1.55fr) minmax(150px, .75fr);
	gap: 30px;
	align-items: center;
}

.apl-global-footer__brand,
.apl-global-footer__center,
.apl-global-footer__books {
	min-width: 0;
}

.apl-global-footer__brand {
	text-align: center;
}

.apl-global-footer__logo {
	display: block;
	width: min(100%, 230px);
	height: auto;
	margin: 0 auto 8px;
}

.apl-global-footer__brand p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #FFF5DE;
}

.apl-global-footer__center {
	text-align: center;
}

.apl-global-footer__center h2 {
	margin: 0 0 5px;
	color: #FFF5DE !important;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(20px, 2vw, 25px);
	line-height: 1.16;
	font-weight: 700;
}

.apl-global-footer__intro {
	margin: 0 auto 10px;
	max-width: 560px;
	color: #FFF5DE;
	font-size: 13px;
	line-height: 1.45;
}

.apl-global-footer__subscribe {
	max-width: 450px;
	margin: 0 auto 9px;
}

/* MailPoet: compactamos únicamente el formulario que vive dentro de nuestro footer. */
.apl-global-footer__subscribe .mailpoet_form,
.apl-global-footer__subscribe form {
	margin: 0 auto !important;
	max-width: 450px !important;
}

.apl-global-footer__subscribe .mailpoet_form {
	padding: 8px 10px !important;
	border-radius: 12px !important;
}

.apl-global-footer__subscribe .mailpoet_paragraph {
	margin: 5px 0 !important;
}

.apl-global-footer__subscribe input[type="email"],
.apl-global-footer__subscribe input[type="text"] {
	min-height: 38px !important;
	padding: 8px 12px !important;
	border-radius: 8px !important;
}

.apl-global-footer__subscribe input[type="submit"],
.apl-global-footer__subscribe button {
	min-height: 38px !important;
	padding: 8px 18px !important;
	border-radius: 8px !important;
	background: #7f1722 !important;
	color: #fff !important;
}

.apl-global-footer__subscribe p,
.apl-global-footer__subscribe label,
.apl-global-footer__subscribe .mailpoet_text {
	font-size: 11px !important;
	line-height: 1.3 !important;
}

.apl-global-footer__contact {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	line-height: 1.35;
}

.apl-global-footer__contact a {
	color: #FFF5DE !important;
	text-decoration: none;
}

.apl-global-footer__contact a:hover,
.apl-global-footer__contact a:focus {
	text-decoration: underline;
}

.apl-global-footer__books {
	text-align: center;
}

.apl-global-footer__books img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 178px;
	margin: 0 auto;
	object-fit: contain;
}

.apl-global-footer__bottom {
	border-top: 1px solid rgba(255,245,222,.28);
	padding: 9px 20px 10px;
	text-align: center;
}

.apl-global-footer__bottom p {
	margin: 0;
	color: #FFF5DE;
	font-size: 11px;
	line-height: 1.35;
}

.apl-global-footer__affiliate-disclosure {
	margin-bottom: 5px !important;
}

@media (max-width: 900px) {
	.apl-global-footer__inner {
		grid-template-columns: 1fr 1.65fr;
		padding: 22px 22px 16px;
		gap: 22px;
	}
	.apl-global-footer__books {
		display: none;
	}
}

@media (max-width: 640px) {
	.apl-global-footer__inner {
		grid-template-columns: 1fr;
		padding: 20px 18px 14px;
		gap: 16px;
	}
	.apl-global-footer__logo {
		width: min(72%, 205px);
	}
	.apl-global-footer__brand p {
		font-size: 12px;
	}
	.apl-global-footer__center h2 {
		font-size: 21px;
	}
	.apl-global-footer__intro {
		font-size: 12px;
	}
	.apl-global-footer__contact {
		font-size: 11px;
		gap: 5px;
	}
}
