/* ===== DIX Carrusel (contenedores + noticias) ===== */

/* Contexto de posición para las flechas.
   Noticias usa .dix-carousel-outer; el carrusel de contenedores posiciona las
   flechas respecto al propio widget (sin envoltorio extra, como Elementor Pro). */
.dix-carousel-outer,
.elementor-widget-dix_carousel,
.elementor-widget-dix_carousel > .elementor-widget-container {
	position: relative;
}

.dix-carousel {
	width: 100%;
	overflow: hidden;
}

/* Slides de igual altura */
.dix-carousel .swiper-slide {
	height: auto;
	display: flex;
}
.dix-carousel .swiper-slide > * {
	width: 100%;
}

/* ----- Flechas (modelo orientación + posición por flecha, estilo Pro) ----- */
/* Capa que cubre el carrusel; cada flecha se ancla con justify-self/align-self
   (Orientation) y se desplaza con --ph/--pv (Position). */
.dix-nav {
	position: absolute;
	inset: 0;
	display: grid;
	pointer-events: none;
	z-index: 5;
}
.dix-nav-btn {
	grid-area: 1 / 1;
	pointer-events: auto;
	justify-self: start;
	align-self: center;
	transform: translate(var(--ph, 0px), var(--pv, 0px));
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	cursor: pointer;
	background: #2743ff;
	color: #fff;
	border-radius: 50%;
	transition: background .2s ease, opacity .2s ease;
	line-height: 1;
}
.dix-nav-next { justify-self: end; }
.dix-nav-btn.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}
.dix-nav-btn.swiper-button-lock { display: none; }

/* ----- Puntos ----- */
.dix-carousel-pagination {
	position: static;
	margin-top: 16px;
	text-align: center;
}
.dix-carousel-pagination .swiper-pagination-bullet {
	transition: background .2s ease;
}

/* ===== Tarjeta de noticias ===== */
.dix-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
a.dix-post-card { color: inherit; }

.dix-post-thumb {
	width: 100%;
	height: 200px;
	overflow: hidden;
	flex: 0 0 auto;
}
.dix-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dix-post-thumb--empty {
	background: linear-gradient(135deg, #2743ff, #6a2ff5, #9b30ff);
}

.dix-post-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px;
}
.dix-post-date {
	color: #6a2ff5;
	font-size: 13px;
	margin-bottom: 8px;
}
.dix-post-title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
}
.dix-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color .2s ease;
}
.dix-post-excerpt {
	flex: 1 1 auto;
	margin-bottom: 16px;
}
.dix-post-btn {
	align-self: flex-start;
	margin-top: auto;
	display: inline-block;
	background: #2743ff;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.dix-posts-empty {
	padding: 24px;
	border: 1px dashed #c9c9f2;
	border-radius: 8px;
	color: #6a2ff5;
	text-align: center;
}

/* Igualar alturas de los contenedores-slide */
.dix-eqh-yes .dix-carousel .swiper-slide > .e-con {
	height: 100%;
}

/* Barra de progreso de paginación */
.dix-carousel-pagination.swiper-pagination-progressbar {
	position: relative;
	height: 4px;
	background: rgba(0, 0, 0, .1);
	margin-top: 16px;
}

/* ===== Editor: carrusel de CONTENEDORES =====
   Swiper NO corre en el editor (rompería la edición de los contenedores). Mostramos
   los slides en fila, con ancho, para poder añadir/editar contenedores en cada uno.
   El deslizamiento real ocurre en el frontend. */
.elementor-editor-active .dix-carousel:not(.dix-posts-carousel) .swiper-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	transform: none !important;
}
.elementor-editor-active .dix-carousel:not(.dix-posts-carousel) .swiper-slide {
	flex: 0 0 auto;
	width: calc(33.333% - 11px);
	height: auto;
	min-height: 80px;
}
