.flacso-banners:not(.flacso-banners--carousel) {
	--flacso-banner-blue: #0f3f76;
	--flacso-banner-gold: #e0aa37;
	--flacso-banner-ink: #17242e;
	--flacso-banner-white: #fff;
	display: grid;
	gap: 1rem;
}

.flacso-banners {
	position: relative;
	left: 50%;
	width: var(--flacso-banner-viewport-width, 100vw);
	max-width: none;
	margin-left: 0;
	transform: translateX(-50%);
}

.flacso-banners--carousel {
	--flacso-banner-blue: #0f3f76;
	--flacso-banner-gold: #e0aa37;
	--flacso-banner-ink: #17242e;
	--flacso-banner-white: #fff;
	position: relative;
	height: 500px;
	min-height: 500px;
	overflow: hidden;
	background: var(--flacso-banner-blue);
}

.flacso-banner {
	position: relative;
	display: flex;
	align-items: center;
	height: 500px;
	min-height: 500px;
	overflow: hidden;
	background: var(--flacso-banner-blue);
	color: var(--flacso-banner-white);
}

.flacso-banner__image,
.flacso-banner__image::after {
	position: absolute;
	inset: 0;
}

.flacso-banner__image::after {
	content: "";
	background: linear-gradient(90deg, rgba(8, 31, 55, 0.78), rgba(8, 31, 55, 0.12));
}

.flacso-banner__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flacso-banner__content {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
	padding: clamp(1.5rem, 6.5vw, 7rem);
}

.flacso-banners--carousel > .flacso-banner {
	position: absolute;
	inset: 0;
	min-height: 0;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 700ms ease, visibility 700ms ease;
}

.flacso-banners--carousel > .flacso-banner.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.flacso-banners--carousel > .flacso-banner .flacso-banner__content {
	padding-bottom: clamp(5rem, 9vw, 6rem);
}

.flacso-banner__text {
	max-width: 700px;
	color: var(--flacso-banner-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3.2vw, 3.25rem);
	font-weight: 400;
	line-height: 1.15;
}

.flacso-banner__text :is(h1, h2, h3, p) {
	color: inherit;
	font: inherit;
	line-height: inherit;
}

.flacso-banner__text > p {
	margin-block: 0;
}

.flacso-banner__text > .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.flacso-banner__text > .wp-block-buttons::before {
	flex: 0 0 54px;
	width: 54px;
	height: 3px;
	margin-right: calc(100% - 54px);
	background: var(--flacso-banner-gold);
	content: "";
}

.flacso-banner__text .wp-block-button {
	flex: 0 0 auto;
	margin: 0;
}

.flacso-banner__text .wp-block-button:nth-child(n + 4) {
	display: none;
}

.flacso-banner__text .wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--flacso-banner-blue) !important;
	border-radius: 8px;
	padding: 0.65rem 1rem;
	background: var(--flacso-banner-blue) !important;
	color: var(--flacso-banner-white) !important;
	font-family: Aptos, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.flacso-banner__text .wp-block-button:nth-child(n + 2) .wp-block-button__link.wp-element-button {
	border-color: rgba(255, 255, 255, 0.85) !important;
	background: transparent !important;
	color: var(--flacso-banner-white) !important;
}

.flacso-banner__text .wp-block-button__link.wp-element-button::after {
	margin-left: 0.65rem;
	content: "→";
}

.flacso-banner__text .wp-block-button__link.wp-element-button:hover {
	border-color: var(--flacso-banner-gold) !important;
	background: var(--flacso-banner-gold) !important;
	color: var(--flacso-banner-ink) !important;
}

.flacso-banner__text > :first-child {
	margin-top: 0;
}

.flacso-banner__text > :last-child {
	margin-bottom: 0;
}

.flacso-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.flacso-banner__actions::before {
	flex: 0 0 54px;
	width: 54px;
	height: 3px;
	margin-right: calc(100% - 54px);
	background: var(--flacso-banner-gold);
	content: "";
}

.flacso-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--flacso-banner-blue);
	border-radius: 8px;
	padding: 0.65rem 1rem;
	background: var(--flacso-banner-blue);
	color: var(--flacso-banner-white);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.flacso-banner__button:nth-of-type(n + 2) {
	border-color: rgba(255, 255, 255, 0.85);
	background: transparent;
	color: var(--flacso-banner-white);
}

.flacso-banner__button::after {
	margin-left: 0.65rem;
	content: "→";
}

.flacso-banner__button:hover {
	border-color: var(--flacso-banner-gold);
	background: var(--flacso-banner-gold);
	color: var(--flacso-banner-ink);
}

.flacso-banner__button:nth-of-type(n + 2):hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--flacso-banner-white);
}

.flacso-banner__button:focus-visible {
	outline: 3px solid var(--flacso-banner-white);
	outline-offset: 3px;
}

.flacso-banner__controls {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.flacso-banner__arrow,
.flacso-banner__pause,
.flacso-banner__dot {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
	padding: 0;
	background: rgba(8, 31, 55, 0.34);
	color: var(--flacso-banner-white);
	opacity: 0.62;
	transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
	cursor: pointer;
	pointer-events: auto;
}

.flacso-banner__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.flacso-banner__arrow--previous {
	left: clamp(0.75rem, 2vw, 1.5rem);
}

.flacso-banner__arrow--next {
	right: clamp(0.75rem, 2vw, 1.5rem);
}

.flacso-banner__pause {
	position: absolute;
	right: clamp(0.75rem, 2vw, 1.5rem);
	bottom: 1rem;
	width: 36px;
	height: 36px;
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(8, 31, 55, 0.25);
}

.flacso-banner__arrow span,
.flacso-banner__pause span {
	font-size: 1.35rem;
	line-height: 1;
}

.flacso-banner__arrow:hover,
.flacso-banner__pause:hover,
.flacso-banner__dot:hover {
	background: rgba(255, 255, 255, 0.12);
	opacity: 1;
}

.flacso-banner__pagination {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 0.2rem;
	transform: translateX(-50%);
	pointer-events: auto;
}

.flacso-banner__dot {
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
	opacity: 0.64;
}

.flacso-banner__dot span {
	width: 6px;
	height: 6px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.flacso-banner__dot.is-active span {
	width: 16px;
	height: 6px;
	border-color: var(--flacso-banner-gold);
	border-radius: 4px;
	background: var(--flacso-banner-gold);
}

.flacso-banner__arrow:focus-visible,
.flacso-banner__pause:focus-visible,
.flacso-banner__dot:focus-visible {
	z-index: 1;
	opacity: 1;
	outline: 2px solid var(--flacso-banner-gold);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.flacso-banner,
	.flacso-banners--carousel {
		height: min(460px, 56vh);
		height: clamp(380px, 56svh, 460px);
		min-height: 380px;
	}

	.flacso-banner__content {
		padding: 1.5rem;
	}

	.flacso-banners--carousel > .flacso-banner .flacso-banner__content {
		padding-bottom: 5rem;
	}

	.flacso-banner__text {
		font-size: clamp(1.85rem, 8vw, 2.4rem);
	}

	.flacso-banner__arrow--previous {
		left: 0.5rem;
	}

	.flacso-banner__arrow--next,
	.flacso-banner__pause {
		right: 0.5rem;
	}

	.flacso-banner__arrow {
		width: 38px;
		height: 38px;
	}

	.flacso-banner__pagination {
		bottom: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flacso-banner,
	.flacso-banner__button,
	.flacso-banner__dot span {
		transition: none;
	}

	.flacso-banners--carousel > .flacso-banner {
		transition: none;
	}
}