/* =============================================================
   Senderos Post Slider — Estilos principales
   ============================================================= */

/* ── Contenedor raíz ── */
.sps-wrapper {
	position: relative;
	width: 100%;
	padding: 0 40px;
	box-sizing: border-box;
	user-select: none;
}

/* ── Viewport (oculta lo que se desborda) ── */
.sps-viewport {
	overflow: hidden;
	width: 100%;
}

/* ── Track (fila de slides) ── */
.sps-track {
	display: flex;
	gap: 20px;
	transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
	will-change: transform;
	align-items: stretch;
}

/* ── Slide individual ── */
.sps-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
}

/* ── Tarjeta ── */
.sps-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sps-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

/* ── Link de imagen ── */
.sps-card__image-link {
	display: block;
	text-decoration: none;
	overflow: hidden;
}

/* ── Imagen ── */
.sps-card__image {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.sps-card__image img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.sps-card__image-link:hover .sps-card__image img {
	transform: scale(1.04);
}

/* ── Insignia de fecha ── */
.sps-date-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	color: #333333;
	width: 52px;
	min-height: 52px;
	padding: 5px 4px;
	border-radius: 3px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	line-height: 1.2;
	pointer-events: none;
}

.sps-date-badge__day {
	font-size: 1.2rem;
	font-weight: 700;
	display: block;
	text-align: center;
}

.sps-date-badge__month {
	font-size: 0.7rem;
	font-weight: 400;
	text-transform: lowercase;
	display: block;
	text-align: center;
}

/* ── Cuerpo de la tarjeta ── */
.sps-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 15px;
	text-align: center;
}

/* ── Título ── */
.sps-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.sps-card__title a {
	color: #222222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sps-card__title a:hover {
	color: #3a843a;
}

/* ── Extracto ── */
.sps-card__excerpt {
	font-size: 0.875rem;
	color: #666666;
	line-height: 1.6;
	flex-grow: 1;
	margin: 0 0 12px;
}

/* ── Leer más ── */
.sps-card__readmore {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #3a843a;
	text-decoration: none;
	margin-top: auto;
	transition: color 0.2s ease;
}

.sps-card__readmore:hover {
	color: #2a622a;
	text-decoration: underline;
}

/* ── Flechas de navegación ── */
.sps-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background-color: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.sps-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.sps-arrow--prev {
	left: 0;
}

.sps-arrow--next {
	right: 0;
}

.sps-arrow:focus-visible {
	outline: 2px solid #3a843a;
	outline-offset: 2px;
}

/* ── Dots ── */
.sps-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 18px;
}

.sps-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.sps-dot.is-active {
	background-color: #3a843a;
	transform: scale(1.25);
}

.sps-dot:focus-visible {
	outline: 2px solid #3a843a;
	outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
	.sps-wrapper {
		padding: 0 36px;
	}
}

@media (max-width: 767px) {
	.sps-wrapper {
		padding: 0 30px;
	}
	.sps-card__image img {
		height: 180px;
	}
	.sps-arrow {
		width: 30px;
		height: 30px;
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	.sps-wrapper {
		padding: 0 26px;
	}
}
