.dilumek-image-text-brand-carousel {
	--dilumek-image-text-brand-carousel-navy: #0a1f3d;
	--dilumek-image-text-brand-carousel-red: #f9161f;
	--dilumek-image-text-brand-carousel-text: #0f0f0f;
	--dilumek-image-text-brand-carousel-btn: #144999;
	background: transparent;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	overflow: visible;
	padding: 56px 0 48px;
	position: relative;
	width: 100%;
}

.dilumek-image-text-brand-carousel *,
.dilumek-image-text-brand-carousel *::before,
.dilumek-image-text-brand-carousel *::after {
	box-sizing: inherit;
}

/* Tarjeta blanca que contiene imagen + contenido */
.dilumek-image-text-brand-carousel__inner {
	align-items: start;
	background: #ffffff;
	border-radius: 16px;
	display: grid;
	gap: 36px 48px;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	margin: 0;
	max-width: none;
	overflow: visible;
	padding: 40px 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

.dilumek-image-text-brand-carousel__carousel {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	position: relative;
	width: 100%;
	z-index: 2;
}

.dilumek-image-text-brand-carousel__viewport {
	aspect-ratio: 500 / 422;
	border-radius: 10px;
	box-shadow:
		0 4px 12px -2px rgba(0, 0, 0, 0.18),
		0 16px 40px -6px rgba(0, 0, 0, 0.22);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.dilumek-image-text-brand-carousel__slide {
	height: 100%;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	visibility: hidden;
	width: 100%;
	z-index: 0;
}

.dilumek-image-text-brand-carousel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	z-index: 1;
}

.dilumek-image-text-brand-carousel__slide.is-active.is-enter-next {
	animation: dilumek-brand-carousel-enter-next 0.65s ease both;
}

.dilumek-image-text-brand-carousel__slide.is-active.is-enter-prev {
	animation: dilumek-brand-carousel-enter-prev 0.65s ease both;
}

@keyframes dilumek-brand-carousel-enter-next {
	from {
		opacity: 0;
		transform: translateX(32px) scale(1.03);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes dilumek-brand-carousel-enter-prev {
	from {
		opacity: 0;
		transform: translateX(-32px) scale(1.03);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

.dilumek-image-text-brand-carousel__slide-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.dilumek-image-text-brand-carousel__nav {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
	width: 100%;
}

.dilumek-image-text-brand-carousel__arrow,
.entry-content .dilumek-image-text-brand-carousel__arrow,
.entry-content button.dilumek-image-text-brand-carousel__arrow {
	align-items: center;
	appearance: none;
	background: transparent !important;
	border: 0;
	box-shadow: none !important;
	color: var(--dilumek-image-text-brand-carousel-red);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 44px;
	justify-content: center;
	margin: 0;
	min-width: 44px;
	padding: 0;
	width: 44px;
}

.dilumek-image-text-brand-carousel__arrow:hover,
.dilumek-image-text-brand-carousel__arrow:focus {
	opacity: 0.8;
}

.dilumek-image-text-brand-carousel__arrow-icon {
	display: block;
	height: 16px;
	max-width: 28px;
	object-fit: contain;
	width: auto;
}

.dilumek-image-text-brand-carousel__arrow-fallback {
	border-style: solid;
	display: block;
	height: 0;
	width: 0;
}

.dilumek-image-text-brand-carousel__arrow-fallback--prev {
	border-color: transparent var(--dilumek-image-text-brand-carousel-red) transparent transparent;
	border-width: 7px 10px 7px 0;
}

.dilumek-image-text-brand-carousel__arrow-fallback--next {
	border-color: transparent transparent transparent var(--dilumek-image-text-brand-carousel-red);
	border-width: 7px 0 7px 10px;
}

.dilumek-image-text-brand-carousel__dots {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.dilumek-image-text-brand-carousel__dot {
	appearance: none;
	background: #d9d9d9;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: block;
	height: 8px;
	margin: 0;
	padding: 0;
	position: relative;
	width: 8px;
}

.dilumek-image-text-brand-carousel__dot::before {
	content: "";
	height: 44px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
}

.dilumek-image-text-brand-carousel__dot.is-active,
.dilumek-image-text-brand-carousel__dot[aria-current="true"] {
	background: var(--dilumek-image-text-brand-carousel-red);
}

.dilumek-image-text-brand-carousel__content {
	display: flex;
	flex-direction: column;
	gap: 18px;
	justify-content: flex-start;
	min-width: 0;
	overflow: visible;
	padding: 4px 0 0;
	position: relative;
	z-index: 1;
}

/* Textura detrás del logo y parte del párrafo */
.dilumek-image-text-brand-carousel__texture {
	height: 95%;
	max-height: none;
	max-width: none;
	object-fit: cover;
	object-position: top right;
	opacity: 0.18;
	pointer-events: none;
	position: absolute;
	right: -140px;
	top: -64px;
	user-select: none;
	width: 145%;
	z-index: 0;
}

/* Logo, texto y botón por encima de la textura */
.dilumek-image-text-brand-carousel__brand,
.dilumek-image-text-brand-carousel__text,
.dilumek-image-text-brand-carousel__feature,
.dilumek-image-text-brand-carousel__actions {
	position: relative;
	z-index: 1;
}

/* Logo ancho, alineado arriba junto a la franja superior de la imagen */
.dilumek-image-text-brand-carousel__brand {
	display: flex;
	flex-shrink: 0;
	justify-content: center;
	line-height: 0;
	margin: 0;
	max-width: 100%;
	width: 100%;
}

.dilumek-image-text-brand-carousel__brand-logo {
	display: block;
	height: auto;
	max-height: 140px;
	max-width: min(440px, 100%);
	object-fit: contain;
	object-position: center;
	width: auto;
}

.dilumek-image-text-brand-carousel__text,
.entry-content .dilumek-image-text-brand-carousel .dilumek-image-text-brand-carousel__text,
.entry-content .wp-block-dilumek-image-text-brand-carousel .dilumek-image-text-brand-carousel__text {
	color: var(--dilumek-image-text-brand-carousel-text);
	flex: 1 1 auto;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
	max-width: none;
	text-align: justify !important;
}

.dilumek-image-text-brand-carousel__text p,
.entry-content .dilumek-image-text-brand-carousel .dilumek-image-text-brand-carousel__text p,
.entry-content .wp-block-dilumek-image-text-brand-carousel .dilumek-image-text-brand-carousel__text p {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	margin: 0 0 1em;
	text-align: justify !important;
}

.dilumek-image-text-brand-carousel__text p:last-child {
	margin-bottom: 0;
}

.dilumek-image-text-brand-carousel__text strong,
.dilumek-image-text-brand-carousel__text b,
.dilumek-image-text-brand-carousel__bold strong,
.dilumek-image-text-brand-carousel__bold b {
	font-weight: 400;
}

.dilumek-image-text-brand-carousel__feature {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	margin: 0;
	width: 100%;
}

.dilumek-image-text-brand-carousel__extra-media {
	flex: 0 0 auto;
	line-height: 0;
	margin: 0;
	max-width: 72px;
}

.dilumek-image-text-brand-carousel__extra-image {
	display: block;
	height: auto;
	max-height: 56px;
	max-width: 72px;
	object-fit: contain;
	width: auto;
}

.dilumek-image-text-brand-carousel__bold {
	color: #0f0f0f;
	flex: 1 1 auto;
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	margin: 0;
	min-width: 0;
	vertical-align: middle;
}

.dilumek-image-text-brand-carousel__actions {
	display: flex;
	justify-content: center;
	margin-top: auto;
	padding-top: 8px;
	width: 100%;
}

.dilumek-image-text-brand-carousel__button {
	align-items: center;
	background: var(--dilumek-image-text-brand-carousel-btn);
	border: 0;
	border-radius: 4px;
	box-sizing: border-box;
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	gap: 10px;
	height: 50px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	min-width: 179px;
	padding: 16px 32px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	width: auto;
}

.dilumek-image-text-brand-carousel__button:hover,
.dilumek-image-text-brand-carousel__button:focus {
	background: #0f3a7a;
	color: #ffffff !important;
	opacity: 1;
	text-decoration: none !important;
}

.dilumek-image-text-brand-carousel__button--disabled {
	cursor: default;
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 960px) {
	.dilumek-image-text-brand-carousel {
		padding: 40px 0 36px;
	}

	.dilumek-image-text-brand-carousel__inner {
		gap: 28px;
		grid-template-columns: 1fr;
		padding: 28px 0;
	}

	.dilumek-image-text-brand-carousel__carousel {
		justify-self: center;
		max-width: 579px;
		width: 100%;
	}

	.dilumek-image-text-brand-carousel__brand-logo {
		max-height: 120px;
		max-width: min(380px, 100%);
	}

	.dilumek-image-text-brand-carousel__texture {
		height: 85%;
		right: -80px;
		top: -32px;
		width: 130%;
	}

	.dilumek-image-text-brand-carousel__text {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.dilumek-image-text-brand-carousel {
		padding: 28px 0;
	}

	.dilumek-image-text-brand-carousel__inner {
		border-radius: 12px;
		gap: 20px;
		padding: 20px 0;
	}

	.dilumek-image-text-brand-carousel__texture {
		height: 80%;
		right: -40px;
		top: -20px;
		width: 120%;
	}

	.dilumek-image-text-brand-carousel__text {
		font-size: 15px;
	}

	.dilumek-image-text-brand-carousel__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dilumek-image-text-brand-carousel__slide.is-active.is-enter-next,
	.dilumek-image-text-brand-carousel__slide.is-active.is-enter-prev {
		animation: none;
	}
}
