/* MAW Category Slider */

.maw-cs {
	--maw-cs-per-view: 4;
	--maw-cs-gap: 20px;
	position: relative;
}

/* Núcleo mínimo de Swiper: no depende de la hoja de estilos de Swiper que cargue Elementor. */
.maw-cs__swiper {
	position: relative;
	overflow: hidden;
}

.maw-cs .swiper-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	width: 100%;
	box-sizing: content-box;
	transition-property: transform;
}

.maw-cs .swiper-slide {
	position: relative;
	flex-shrink: 0;
	height: auto;
	box-sizing: border-box;
}

/* Antes de que arranque el JS, las tarjetas ya ocupan su ancho final (sin salto). */
.maw-cs:not(.is-ready) .swiper-slide {
	width: calc((100% - (var(--maw-cs-per-view) - 1) * var(--maw-cs-gap)) / var(--maw-cs-per-view));
	margin-inline-end: var(--maw-cs-gap);
}

.maw-cs__viewport {
	position: relative;
}

/* Tarjeta */
.maw-cs__item {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: transform .3s ease, box-shadow .3s ease;
}

.maw-cs__item:hover,
.maw-cs__item:focus {
	color: inherit;
	text-decoration: none;
}

.maw-cs__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.maw-cs__image {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.maw-cs .maw-cs__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform .5s ease;
}

.maw-cs--hover-zoom .maw-cs__item:hover .maw-cs__image img {
	transform: scale(1.08);
}

.maw-cs--hover-lift .maw-cs__item:hover {
	transform: translateY(-6px);
}

.maw-cs__content {
	padding: 12px 8px;
	text-align: center;
}

.maw-cs__title {
	margin: 0 0 4px;
	color: inherit;
	font-size: 1rem;
	line-height: 1.3;
	transition: color .2s ease;
}

.maw-cs__count,
.maw-cs__description {
	display: block;
	font-size: .85em;
	opacity: .75;
}

.maw-cs__description {
	margin-top: 6px;
}

/* Texto encima de la imagen */
.maw-cs--overlay .maw-cs__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 40px 16px 16px;
	color: #fff;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .65));
}

.maw-cs--overlay .maw-cs__count,
.maw-cs--overlay .maw-cs__description {
	opacity: .9;
}

/* Flechas: doble clase para no perder contra el «button:hover» de temas como Hello Elementor. */
.maw-cs .maw-cs__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--maw-cs-arrow-color, #111);
	background: var(--maw-cs-arrow-bg, #fff);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	font-size: 16px;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.maw-cs .maw-cs__arrow:hover,
.maw-cs .maw-cs__arrow:focus {
	color: var(--maw-cs-arrow-color-hover, var(--maw-cs-arrow-color, #111));
	background: var(--maw-cs-arrow-bg-hover, var(--maw-cs-arrow-bg, #fff));
}

.maw-cs__arrow--prev { left: 8px; }
.maw-cs__arrow--next { right: 8px; }

.maw-cs__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.maw-cs__arrow i {
	font-size: 1em;
}

.maw-cs .maw-cs__arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.maw-cs .maw-cs__arrow.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

/* Puntos */
.maw-cs__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.maw-cs__dots .swiper-pagination-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ccc;
	opacity: 1;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.maw-cs__dots .swiper-pagination-bullet-active {
	background: #111;
	transform: scale(1.2);
}

/* Si caben todas, Swiper bloquea la navegación: se oculta. */
.maw-cs .maw-cs__arrow.swiper-button-lock,
.maw-cs__dots.swiper-pagination-lock {
	display: none;
}

.maw-cs-empty {
	padding: 20px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
}
