/* ======================================================================
   Carrusel Viajes Dante
   IMPORTANTE: TODO el CSS está encerrado bajo .viajes-carousel-wrapper
   para que NO afecte a ningún otro widget, plugin o elemento de la página.
   Incluimos un Swiper mínimo propio para no depender del CSS global de
   Elementor/Swiper (que sí afectaría a otros sliders del sitio).
   ====================================================================== */

.viajes-carousel-wrapper {
	position: relative;
	width: 100%;
}

/* --------- Swiper mínimo, scopeado solo a nuestro carrusel --------- */
.viajes-carousel-wrapper .viajes-carousel {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	z-index: 1;
}

.viajes-carousel-wrapper .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	box-sizing: content-box;
	transition-property: transform;
}

.viajes-carousel-wrapper .swiper-slide {
	flex-shrink: 0;
	position: relative;
	width: 100%;
	height: auto;
	box-sizing: border-box;
}

/* ----------------------------- Slide ----------------------------- */
.viajes-carousel-wrapper .vc-slide-inner {
	position: relative;
	width: 100%;
	height: 550px;          /* lo sobreescribe el control "Altura del slide" */
	overflow: hidden;
}

.viajes-carousel-wrapper .vc-slide-link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* Imagen como FONDO del slide: abarca todo el contenedor y se adapta
   (recorta lo que sobre) sin importar si la imagen es ancha o alta. */
.viajes-carousel-wrapper .vc-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* Capa para mejorar la lectura del texto. Por defecto, degradado inferior. */
.viajes-carousel-wrapper .vc-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

/* Zona del texto (al pie por defecto). */
.viajes-carousel-wrapper .vc-slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;   /* lo sobreescribe "Posición vertical" */
	padding: 24px;
	box-sizing: border-box;
	z-index: 2;
}

.viajes-carousel-wrapper .vc-slide-title {
	margin: 0;
	font-size: 1.5em;
	line-height: 1.2;
	color: #ffffff;
	font-weight: 600;
}

.viajes-carousel-wrapper .vc-slide-subtitle {
	margin: 6px 0 0;
	font-size: 1em;
	line-height: 1.4;
	color: #f0f0f0;
}

/* ----------------------------- Flechas ----------------------------- */
.viajes-carousel-wrapper .vc-swiper-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.5);
	font-size: 28px;
	line-height: 1;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.viajes-carousel-wrapper .vc-swiper-button:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.viajes-carousel-wrapper .vc-swiper-button-prev {
	left: 10px;
}

.viajes-carousel-wrapper .vc-swiper-button-next {
	right: 10px;
}

.viajes-carousel-wrapper .vc-swiper-button.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* ----------------------------- Puntos ------------------------------ */
.viajes-carousel-wrapper .swiper-pagination {
	position: static;
	margin-top: 15px;
	text-align: center;
	line-height: 0;
}

.viajes-carousel-wrapper .swiper-pagination-bullet {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 4px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #000000;
	opacity: 0.25;
	cursor: pointer;
}

.viajes-carousel-wrapper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #0d6efd;
}

/* ================= Modo edición de Elementor ================= */
/* Sin Swiper inicializado, apilamos los slides para poder verlos/editarlos. */
.elementor-editor-active .viajes-carousel-wrapper .swiper-wrapper {
	display: block;
	transform: none !important;
}

.elementor-editor-active .viajes-carousel-wrapper .swiper-slide {
	width: 100% !important;
	margin: 0 0 15px 0 !important;
	transform: none !important;
}

.elementor-editor-active .viajes-carousel-wrapper .vc-swiper-button {
	display: none;
}
