/* DW Slider — front (v1.1.0) */
.dw-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #e9e9e9;
	aspect-ratio: 1170 / 461;
}

.dw-slider__stage {
	position: absolute;
	inset: 0;
}

.dw-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 0.9s ease, transform 0.9s ease;
	will-change: opacity, transform;
}

.dw-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transform: none;
}

.dw-slide__link {
	display: block;
	width: 100%;
	height: 100%;
}

.dw-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* ---- Efectos por imagen ---- */
.dw-fx-fade:not(.is-active) {
	transform: none;
}

.dw-fx-zoom:not(.is-active) {
	transform: scale(1.09);
}

.dw-fx-slide:not(.is-active) {
	transform: translate3d(12%, 0, 0);
}

.dw-fx-flip:not(.is-active) {
	transform: perspective(1400px) rotateY(-16deg) scale(0.96);
	transform-origin: center center;
}

/* ---- Flechas ---- */
.dw-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(17, 17, 17, 0.45);
	color: #ffffff;
	cursor: pointer;
	opacity: 0;
	z-index: 6;
	transition: opacity 0.3s ease, background-color 0.25s ease, transform 0.25s ease;
}

.dw-slider:hover .dw-slider__nav,
.dw-slider__nav:focus-visible {
	opacity: 1;
}

.dw-slider__nav,
.dw-slider__nav:focus,
.dw-slider__nav:focus-visible,
.dw-slider__nav:active,
.dw-slider__nav:visited {
	background-color: rgba(17, 17, 17, 0.45) !important;
	border: 0 !important;
	color: #ffffff !important;
	box-shadow: none !important;
	outline: none !important;
	text-decoration: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.dw-slider__nav:hover,
.dw-slider__nav:focus:hover {
	background-color: rgba(17, 17, 17, 0.72) !important;
	color: #ffffff !important;
}

.dw-slider__nav:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7) !important;
	outline-offset: 2px;
}

.dw-slider__nav--prev {
	left: 16px;
}

.dw-slider__nav--next {
	right: 16px;
}

.dw-slider__nav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- Puntos ---- */
.dw-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 6;
}

.dw-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #ffffff;
	border-radius: 50%;
	background-color: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dw-slider__dot.is-active {
	background-color: #ffffff;
}

@media (max-width: 767px) {
	.dw-slider {
		aspect-ratio: 16 / 9;
	}

	.dw-slider__nav {
		width: 38px;
		height: 38px;
	}

	.dw-slider__nav--prev {
		left: 8px;
	}

	.dw-slider__nav--next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dw-slide {
		transition: opacity 0.2s linear;
	}

	.dw-fx-zoom:not(.is-active),
	.dw-fx-slide:not(.is-active),
	.dw-fx-flip:not(.is-active) {
		transform: none;
	}
}

/* ---- Efecto persianas verticales ---- */
.dw-fx-blinds:not(.is-active) {
	transform: none;
}

.dw-blinds {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}

.dw-blinds__slat {
	position: absolute;
	top: 0;
	height: 100%;
	overflow: hidden;
	background-color: #e9e9e9;
	transform: scaleY(1);
	transform-origin: 50% 0;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.dw-blinds__slat img {
	position: absolute;
	top: 0;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.dw-blinds.is-open .dw-blinds__slat {
	transform: scaleY(0);
}
