/* Carrusel Ixtli Slider */
.ixtli-slider {
	position: relative;
	overflow: hidden;
	max-width: 100%;
	margin: 0 auto 1.5em;
	background: #1a1a1a;
}

.ixtli-slider-viewport {
	overflow: hidden;
}

.ixtli-slider-track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.5s ease;
}

.ixtli-slide {
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
}

.ixtli-slide-enlace,
.ixtli-slide-media {
	display: block;
	position: relative;
	aspect-ratio: 3 / 1;
	overflow: hidden;
}

.ixtli-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ixtli-slide-texto {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 0.6em 1.2em;
	background: rgba(17, 24, 39, 0.72);
	color: #fff;
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
}

.ixtli-slider-flecha {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.55);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ixtli-slider-flecha:hover,
.ixtli-slider-flecha:focus-visible {
	background: rgba(17, 24, 39, 0.85);
}

.ixtli-slider-anterior {
	left: 12px;
}

.ixtli-slider-siguiente {
	right: 12px;
}

.ixtli-slider-puntos {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 8px;
}

.ixtli-slider-puntos button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ixtli-slider-puntos button.activo,
.ixtli-slider-puntos button:hover {
	background: #fff;
}

.ixtli-slider-flecha:focus-visible,
.ixtli-slider-puntos button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 782px) {
	.ixtli-slide-enlace,
	.ixtli-slide-media {
		aspect-ratio: 16 / 9;
	}

	.ixtli-slider-flecha {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.ixtli-slide-texto {
		font-size: 0.85rem;
		padding: 0.5em 0.8em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ixtli-slider-track {
		transition: none;
	}
}
