/* Slider Mártires */
.slm {
	--slm-accent: #b8913a;
	--slm-h: 85vh;
	position: relative;
	width: 100%;
	height: var(--slm-h);
	min-height: 440px;
	max-height: 1000px;
	overflow: hidden;
	background: #111;
	color: #fff;
	isolation: isolate;
}
.slm *, .slm *::before, .slm *::after { box-sizing: border-box; }

.slm-track { position: absolute; inset: 0; }

.slm-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.slm-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity .9s ease, visibility 0s;
}

.slm .slm-bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transform: scale(1.05);
	transition: transform 9s ease-out;
}
.slm-slide.is-active .slm-bg { transform: scale(1); }

.slm-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.70) 100%);
}

.slm-caption {
	position: absolute;
	left: 50%;
	bottom: 15%;
	transform: translateX(-50%);
	width: min(920px, calc(100% - 48px));
	text-align: center;
	z-index: 2;
}
.slm-caption > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s ease;
}
.slm-slide.is-active .slm-caption > * { opacity: 1; transform: none; }
.slm-slide.is-active .slm-caption > :nth-child(2) { transition-delay: .12s; }
.slm-slide.is-active .slm-caption > :nth-child(3) { transition-delay: .24s; }
.slm-slide.is-active .slm-caption > :nth-child(4) { transition-delay: .36s; }

.slm .slm-kicker {
	margin: 0 0 .8em;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	opacity: .9;
}
.slm .slm-title {
	margin: 0 0 .45em;
	padding: 0;
	color: #fff;
	font-size: clamp(1.7rem, 4.2vw, 3.4rem);
	line-height: 1.15;
	text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.slm .slm-text {
	margin: 0 auto 1.7em;
	max-width: 720px;
	color: #fff;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.55;
	opacity: .95;
	text-shadow: 0 1px 8px rgba(0,0,0,.45);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.slm-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.slm .slm-btn {
	display: inline-block;
	padding: .85em 1.9em;
	border: 2px solid var(--slm-accent);
	border-radius: 3px;
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .03em;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, filter .25s ease;
}
.slm .slm-btn--primary { background: var(--slm-accent); color: #fff !important; }
.slm .slm-btn--primary:hover { filter: brightness(1.12); }
.slm .slm-btn--ghost { background: rgba(0,0,0,.15); border-color: #fff; color: #fff !important; }
.slm .slm-btn--ghost:hover { background: #fff; color: #111 !important; }
.slm .slm-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Controles (reseteo para que el tema no los altere) */
.slm button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
	color: #fff;
}
.slm button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.slm svg { display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.slm .slm-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 50%;
	background: rgba(0,0,0,.28);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .25s ease;
}
.slm .slm-arrow:hover { background: rgba(0,0,0,.55); }
.slm .slm-arrow svg { width: 24px; height: 24px; }
.slm .slm-prev { left: 20px; }
.slm .slm-next { right: 20px; }

.slm-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 26px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.slm-dots { display: flex; gap: 10px; }
.slm .slm-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(255,255,255,.45);
	transition: background-color .25s ease, transform .25s ease;
}
.slm .slm-dot:hover { background: rgba(255,255,255,.8); }
.slm .slm-dot[aria-current="true"] { background: #fff; transform: scale(1.25); }

.slm .slm-pause {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(0,0,0,.28);
	display: flex;
	align-items: center;
	justify-content: center;
}
.slm .slm-pause svg { width: 14px; height: 14px; }
.slm .slm-pause .slm-i-play { fill: currentColor; stroke-width: 1.5; }
.slm .slm-i-play, .slm.is-paused .slm-i-pause { display: none; }
.slm.is-paused .slm-i-play { display: block; }

.slm.is-single .slm-arrow,
.slm.is-single .slm-controls { display: none; }

@media (max-width: 680px) {
	.slm { height: min(var(--slm-h), 640px); min-height: 500px; }
	.slm-caption { bottom: 70px; width: calc(100% - 32px); }
	.slm .slm-arrow { display: none; }
	.slm .slm-btn { padding: .8em 1.4em; font-size: .9rem; }
	.slm .slm-text { -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce) {
	.slm-slide, .slm .slm-bg, .slm-caption > * { transition: none !important; }
	.slm .slm-bg { transform: none !important; }
}

/* Diapositivas de noticias: texto más contenido para que luzca la imagen */
.slm-slide--post .slm-caption { width: min(780px, calc(100% - 48px)); bottom: 13%; }
.slm .slm-slide--post .slm-title {
	font-size: clamp(1.35rem, 2.6vw, 2.2rem);
	line-height: 1.2;
	margin-bottom: .9em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.slm .slm-slide--post .slm-kicker { font-size: .72rem; margin-bottom: .6em; }
.slm .slm-slide--post .slm-text { font-size: clamp(.95rem, 1.2vw, 1.05rem); -webkit-line-clamp: 2; margin-bottom: 1.4em; }
.slm .slm-slide--post .slm-btn { padding: .75em 1.6em; font-size: .9rem; }

/* Anillo de foco en los puntos solo al navegar con teclado */
.slm .slm-dot:focus:not(:focus-visible) { outline: none; }
