/* Websy Servicios — carrusel de cards */

.wsv-carousel {
	--wsv-per-view: 4;
	--wsv-scroll: 1;
	--wsv-gap: 20px;
	--wsv-dur: 300ms;
	--wsv-hover-scale: 1.04;
	--wsv-hover-y: 0px;
	--wsv-img-zoom: 1;
	position: relative;
	width: 100%;
}

.wsv-carousel *,
.wsv-carousel *::before,
.wsv-carousel *::after {
	box-sizing: border-box;
}

/* ---------- Viewport / pista ---------- */
.wsv-stage {
	position: relative;
}

.wsv-viewport {
	overflow: hidden;
	padding: 48px 14px 24px;
	touch-action: pan-y;
}

.wsv-track {
	display: flex;
	align-items: stretch;
	gap: var(--wsv-gap, 20px);
	will-change: transform;
}

.wsv-slide {
	flex: 0 0 calc((100% - (var(--wsv-per-view, 4) - 1) * var(--wsv-gap, 20px)) / var(--wsv-per-view, 4));
	min-width: 0;
	display: flex;
}

/* ---------- Card ---------- */
.wsv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	outline: none;
	z-index: 1;
	transition: transform var(--wsv-dur, 300ms) ease;
}

.wsv-card:hover,
.wsv-card:focus-within {
	z-index: 3;
	transform: translateY(var(--wsv-hover-y, 0)) scale(var(--wsv-hover-scale, 1.04));
}

.wsv-card-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	overflow: hidden;
	background-color: #fff;
	border-radius: 28px;
	transition: all var(--wsv-dur, 300ms) ease;
}

.wsv-card:hover .wsv-card-inner,
.wsv-card:focus-within .wsv-card-inner {
	background-color: #1b3a99;
}

/* ---------- Imagen ---------- */
.wsv-media {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: #e9ecf3;
	flex: 0 0 auto;
}

.wsv-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: transparent;
	pointer-events: none;
	transition: background-color var(--wsv-dur, 300ms) ease;
}

.wsv-carousel .wsv-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	border-radius: inherit;
	transition: transform var(--wsv-dur, 300ms) ease;
	-webkit-user-drag: none;
	user-select: none;
}

.wsv-card:hover .wsv-img,
.wsv-card:focus-within .wsv-img {
	transform: scale(var(--wsv-img-zoom, 1));
}

/* ---------- Texto ---------- */
.wsv-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 22px 18px;
	text-align: center;
}

.wsv-carousel .wsv-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2em;
	color: #0b3c4c;
	transition: color var(--wsv-dur, 300ms) ease;
}

.wsv-carousel .wsv-text {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4em;
	color: #111;
	transition: color var(--wsv-dur, 300ms) ease;
}

.wsv-card:hover .wsv-title,
.wsv-card:focus-within .wsv-title,
.wsv-card:hover .wsv-text,
.wsv-card:focus-within .wsv-text {
	color: #fff;
}

/* ---------- Insignia superior ---------- */
.wsv-badge {
	position: absolute;
	left: 50%;
	bottom: calc(100% + -1px);
	transform: translate(-50%, 8px);
	opacity: 0;
	visibility: hidden;
	white-space: nowrap;
	padding: 7px 28px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background-color: #1b3a99;
	border-radius: 14px 14px 0 0;
	pointer-events: none;
	transition: opacity var(--wsv-dur, 300ms) ease, transform var(--wsv-dur, 300ms) ease, visibility var(--wsv-dur, 300ms);
}

.wsv-badge--always .wsv-badge,
.wsv-badge--hover .wsv-card:hover .wsv-badge,
.wsv-badge--hover .wsv-card:focus-within .wsv-badge {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.wsv-badge--none .wsv-badge {
	display: none;
}

/* ---------- Flechas ---------- */
.wsv-carousel .wsv-arrow {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1;
	color: #fff;
	background-color: #1b3a99;
	border: 0 solid transparent;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wsv-carousel .wsv-prev {
	left: 4px;
}

.wsv-carousel .wsv-next {
	right: 4px;
}

.wsv-carousel .wsv-arrow:hover {
	color: #fff;
	background-color: #0a9bff;
}

.wsv-carousel .wsv-arrow i {
	font-size: inherit;
	line-height: 1;
	color: inherit;
}

.wsv-carousel .wsv-arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.wsv-carousel .wsv-arrow.is-disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* ---------- Paginación ---------- */
.wsv-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 22px;
}

.wsv-carousel .wsv-dot {
	display: block;
	width: 12px;
	height: 12px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	background-color: #cfcfcf;
	border: 0 solid transparent;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transition: all 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wsv-carousel .wsv-dot:hover {
	background-color: #8fa3e0;
}

.wsv-carousel .wsv-dot.is-active {
	width: 18px;
	height: 18px;
	background-color: #0a9bff;
}

.wsv-carousel button:focus-visible {
	outline: 2px solid #0a9bff;
	outline-offset: 2px;
}

.wsv-card:focus-visible {
	outline: 2px solid #0a9bff;
	outline-offset: 4px;
	border-radius: 28px;
}

/* ---------- Estado ---------- */
.wsv-carousel.is-dragging .wsv-track {
	cursor: grabbing;
}

.wsv-carousel.is-dragging .wsv-card {
	pointer-events: none;
}

.wsv-carousel.is-static .wsv-arrow,
.wsv-carousel.is-static .wsv-dots {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.wsv-card,
	.wsv-card-inner,
	.wsv-img,
	.wsv-badge {
		transition: none;
	}
}

/* ---------- Enlace (toda la card clicable) ---------- */
.wsv-carousel .wsv-link,
.wsv-carousel .wsv-link:hover,
.wsv-carousel .wsv-link:focus {
	color: inherit;
	font: inherit;
	text-decoration: none;
	box-shadow: none;
}

.wsv-carousel .wsv-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* ---------- Animación de entrada ---------- */
.wsv-carousel {
	--wsv-anim-dur: 700ms;
	--wsv-anim-dist: 40px;
	--wsv-anim-stagger: 120ms;
}

.wsv-anim .wsv-slide {
	opacity: 0;
	transition:
		opacity var(--wsv-anim-dur) ease,
		transform var(--wsv-anim-dur) cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: calc(var(--i, 0) * var(--wsv-anim-stagger));
}

.wsv-anim--fade-up .wsv-slide { transform: translateY(var(--wsv-anim-dist)); }
.wsv-anim--fade-down .wsv-slide { transform: translateY(calc(var(--wsv-anim-dist) * -1)); }
.wsv-anim--fade-left .wsv-slide { transform: translateX(calc(var(--wsv-anim-dist) * -1)); }
.wsv-anim--fade-right .wsv-slide { transform: translateX(var(--wsv-anim-dist)); }
.wsv-anim--zoom-in .wsv-slide { transform: scale(0.85); }

.wsv-anim.is-visible .wsv-slide {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.wsv-anim .wsv-slide {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
