/* ── Slider ───────────────────────────────────────────────── */
.ms-slider {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

/* ── Track ────────────────────────────────────────────────── */
.ms-slides-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ── Slide ────────────────────────────────────────────────── */
.ms-slide {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity var(--ms-fade-speed, 800ms) ease;
	pointer-events: none;
}

.ms-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* ── Ken Burns ────────────────────────────────────────────── */
.ms-slide.has-ken-burns.is-active {
	animation: ms-ken-burns 8s ease-out forwards;
}

@keyframes ms-ken-burns {
	from { transform: scale(1);    transform-origin: center center; }
	to   { transform: scale(1.08); transform-origin: center center; }
}

/* ── Overlay ──────────────────────────────────────────────── */
.ms-slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ── Contenido ────────────────────────────────────────────── */
.ms-slide-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ms-slide-inner {
	width: 100%;
	max-width: 800px;
	padding: 40px;
	text-align: center;
}

.ms-slide-title {
	margin: 0 0 20px;
	color: #fff;
}

.ms-slide-description {
	margin: 0 0 30px;
	color: #fff;
}

/* ── Botón con líneas decorativas laterales ───────────────── */
.ms-slide-btn-wrap {
	display: inline-flex;
	align-items: center;
}

.ms-slide-btn-wrap::before,
.ms-slide-btn-wrap::after {
	content: '';
	display: block;
	width: 30px;
	height: 1px;
	background-color: #fff;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

/* Las líneas se solapan con el borde del botón */
.ms-slide-btn-wrap::before {
	margin-right: -15px;
	z-index: 1;
}

.ms-slide-btn-wrap::after {
	margin-left: -15px;
	z-index: 1;
}

.ms-slide-btn {
	display: inline-block;
	padding: 12px 32px;
	border: 1px solid #fff;
	background-color: transparent;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ms-slide-btn:hover {
	background-color: #fff;
	color: #000;
}

.ms-slide-btn-wrap:has(.ms-slide-btn:hover)::before,
.ms-slide-btn-wrap:has(.ms-slide-btn:hover)::after {
	background-color: #000;
}

/* ── Navegación ───────────────────────────────────────────── */
.ms-nav-prev,
.ms-nav-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #fff;
	padding: 0;
	line-height: 1;
	font-family: Roboto, sans-serif;
	font-style: normal;
	font-weight: 400;
	transition: color 0.2s ease;
}

.ms-nav-prev { left: 30px; }
.ms-nav-next { right: 30px; }

.ms-nav-prev:hover,
.ms-nav-next:hover {
	background: transparent !important;
	background-color: transparent !important;
}

/* Bloque número + /total */
.ms-nav-nums {
	display: inline-flex;
	align-items: flex-start;
	line-height: 1;
}

/* Número grande */
.ms-nav-num-current {
	font-family: inherit;
	font-size: 48px;
	font-weight: 300;
	line-height: 1;
}

/* /total pequeño superíndice */
.ms-nav-num-total {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	margin-top: 4px;
}

/* Flecha — centrada respecto al número grande */
.ms-arrow {
	display: flex;
	align-items: center;
	align-self: center;
	line-height: 0;
}

.ms-arrow svg {
	width: 25px;
	height: auto;
	display: block;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
	.ms-slide-inner {
		padding: 24px;
	}

	.ms-nav-num-current {
		font-size: 16px;
	}

	.ms-nav-num-total {
		font-size: 10px;
	}

	.ms-arrow {
		font-size: 16px;
	}
}
