/**
 * Footer El Saber — newsletter, columnas, mapa e isotipo.
 */

.es-footer {
	font-family: "Urbanist", sans-serif;
	color: #fff;
}

.es-footer-bg-map,
.es-footer-isotipo img {
	max-width: 100%;
	height: auto;
}

.es-footer a {
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

/* Barra roja — newsletter */
.es-footer-newsletter {
	background: #E62020;
	padding: 28px 0;
}

.es-footer-newsletter-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: center;
}

@media (min-width: 992px) {
	.es-footer-newsletter-inner {
		grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(280px, 420px);
		gap: 32px 40px;
	}
}

.es-footer-logo-link {
	display: inline-block;
	line-height: 0;
}

.es-footer-logo {
	display: block;
	max-height: 58px;
	width: auto;
	filter: brightness(0) invert(1);
}

.es-footer-logo-text {
	font-size: 1.25rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.es-footer-newsletter-title {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	text-align: center;
}

@media (min-width: 992px) {
	.es-footer-newsletter-title {
		text-align: center;
		padding: 0 12px;
	}
}

.es-footer-diploma-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 14px 24px;
	border-radius: 9999px;
	background: #fff;
	color: #2A2E65;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 992px) {
	.es-footer-diploma-link {
		margin-left: auto;
		margin-right: 0;
	}
}

.es-footer-diploma-link:hover {
	background: #2A2E65;
	color: #fff;
	transform: translateY(-1px);
}

.es-footer-diploma-link .es-icon {
	font-size: 22px;
}

@media (min-width: 992px) {
	.es-footer-newsletter-form {
		margin-left: auto;
		margin-right: 0;
	}
}

.es-footer-newsletter-form input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 10px 0;
	font-family: inherit;
	font-size: 14px;
	color: #2A2E65;
	outline: none;
}

.es-footer-newsletter-form input::placeholder {
	color: #8a96a3;
}

.es-footer-newsletter-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: #2A2E65;
	color: #fff;
	cursor: pointer;
	font-size: 30px;
	padding-left: 8px;
	padding-top: 4px;
}

.es-footer-newsletter-form button:hover {
	opacity: 0.9;
}

/* Cuerpo principal */
.es-footer-main {
	position: relative;
	background: #2A2E65;
	overflow: hidden;
}

.es-footer-bg-map {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: min(120%, 1400px) auto;
	opacity: 0.28;
	pointer-events: none;
}

.es-footer-isotipo {
	position: absolute;
	right: -2%;
	bottom: -8%;
	width: min(46vw, 460px);
	opacity: 0.1;
	pointer-events: none;
	z-index: 0;
}

.es-footer-isotipo img {
	display: block;
	width: 100%;
	height: auto;
}

.es-footer-main-inner {
	position: relative;
	z-index: 1;
	padding: 72px 0 64px;
}

.es-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

@media (min-width: 768px) {
	.es-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}
}

@media (min-width: 992px) {
	.es-footer-grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1.2fr);
		gap: 32px 28px;
	}
}

.es-footer-heading {
	margin: 0 0 22px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.es-footer-about-text {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
	max-width: 360px;
}

/* Redes */
.es-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.es-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	font-size: 14px;
}

.es-footer-social a:hover {
	background: rgba(255, 255, 255, 0.22);
}

.es-footer-social a iconify-icon.es-icon,
.es-footer-social-icon {
	display: block;
	width: 18px !important;
	height: 18px !important;
	color: #fff;
}

/* Enlaces */
.es-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.es-footer-links li + li {
	margin-top: 12px;
}

.es-footer-links a {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.es-footer-links a:hover {
	color: #fff;
}

/* Contacto */
.es-footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.es-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
}

.es-footer-contact-text {
	flex: 1;
	min-width: 0;
	word-break: break-word;
}

.es-footer-contact li + li {
	margin-top: 16px;
}

.es-footer-contact a.es-footer-contact-text {
	color: rgba(255, 255, 255, 0.78);
}

.es-footer-contact a.es-footer-contact-text:hover {
	color: #fff;
}

.es-footer-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	margin-top: 1px;
}

.es-footer-contact-icon iconify-icon.es-icon,
.es-footer-contact-icon__svg {
	display: block;
	width: 16px !important;
	height: 16px !important;
	color: #fff;
}

.es-footer-libro {
	margin-top: 14px;
}

.es-footer-libro-link {
	display: inline-block;
	line-height: 0;
	transition: opacity 0.15s, transform 0.15s;
}

.es-footer-libro-link:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.es-footer-libro-img {
	display: block;
	width: auto;
	max-width: 180px !important;
	height: auto !important;
	filter: brightness(0) invert(1);
}

/* Barra inferior */
.es-footer-bottom {
	background: #2A2E65;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.es-footer-copyright {
	margin: 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.62);
}

.es-footer-copyright a {
	color: #fff;
	font-weight: 700;
}

.es-footer-copyright a:hover {
	opacity: 0.85;
}

@media (max-width: 767px) {
	.es-footer-newsletter {
		padding: 24px 0;
	}

	.es-footer-main-inner {
		padding: 56px 0 48px;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
