/* ==========================================================================
   SERVIALARMAS PROCESS TIMELINE - STYLES
   ========================================================================== */

:root {
	--sa-line-color: #E60000;
	--sa-line-thickness: 3px;
}

.sa-timeline-wrapper,
.sa-timeline-wrapper * {
	box-sizing: border-box;
}

.sa-timeline-wrapper {
	font-family: inherit;
	width: 100%;
	position: relative;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.sa-timeline-header {
	position: relative;
	z-index: 2;
}

.sa-timeline-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 12px;
	transition: color 0.3s ease;
}

.sa-timeline-title {
	font-size: 44px;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	margin-top: 0;
	margin-bottom: 18px;
	transition: color 0.3s ease;
}

.sa-timeline-title .highlight {
	color: #E60000;
	transition: color 0.3s ease;
}

.sa-timeline-intro {
	font-size: 17px;
	line-height: 1.65;
	margin-top: 0;
	margin-bottom: 0;
	transition: color 0.3s ease;
}

/* ==========================================================================
   TIMELINE STEPS TRACK
   ========================================================================== */
.sa-timeline-steps-container {
	position: relative;
	width: 100%;
}

.sa-timeline-swiper {
	position: relative;
	width: 100%;
}

.sa-timeline-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Step Item */
.sa-step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	min-width: 0;
	box-sizing: border-box;
}

/* Timeline Node */
.sa-step-node-wrapper {
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	position: relative;
	z-index: 3;
}

.sa-step-node {
	width: 16px;
	height: 16px;
	background-color: #E60000;
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 0 0 2px #E60000;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sa-step-item:hover .sa-step-node {
	transform: scale(1.35);
	box-shadow: 0 0 0 5px rgba(230, 0, 0, 0.25);
}

/* ==========================================================================
   CARDS BASE STYLES
   ========================================================================== */
.sa-step-card {
	border-radius: 14px;
	padding: 32px 24px;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
	text-decoration: none !important;
	overflow: hidden;
	border: 1px solid transparent;
}

.sa-step-card:hover {
	transform: translateY(-6px);
}

/* Light Card Theme */
.sa-step-card.style-light {
	background-color: #ffffff;
	border-color: #e8ecef;
	color: #111111;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.sa-step-card.style-light:hover {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Dark Card Theme */
.sa-step-card.style-dark {
	background-color: #111111;
	border-color: #222222;
	color: #ffffff;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.sa-step-card.style-dark:hover {
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Giant Background Step Number */
.sa-step-number {
	position: absolute;
	top: -10px;
	right: 12px;
	font-size: 80px;
	font-weight: 900;
	line-height: 1;
	opacity: 0.12;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	font-family: inherit;
}

.sa-step-card.style-light .sa-step-number {
	color: #000000;
}

.sa-step-card.style-dark .sa-step-number {
	color: #ffffff;
}

.sa-step-card:hover .sa-step-number {
	opacity: 0.22;
	transform: scale(1.05);
}

/* Card Content Inner */
.sa-step-content-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-grow: 1;
	width: 100%;
}

/* Icon Container */
.sa-step-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 20px;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
	flex-shrink: 0;
}

.sa-step-card:hover .sa-step-icon {
	transform: scale(1.1);
}

.sa-step-card.style-light .sa-step-icon {
	background-color: rgba(230, 0, 0, 0.08);
	color: #E60000;
}

.sa-step-card.style-light .sa-step-icon svg {
	fill: #E60000;
}

.sa-step-card.style-dark .sa-step-icon {
	background-color: #E60000;
	color: #ffffff;
}

.sa-step-card.style-dark .sa-step-icon svg {
	fill: #ffffff;
}

/* Step Title */
.sa-step-title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 12px;
	line-height: 1.25;
	transition: color 0.3s ease;
}

.sa-step-card.style-light .sa-step-title {
	color: #111111;
}

.sa-step-card.style-dark .sa-step-title {
	color: #ffffff;
}

/* Step Description */
.sa-step-desc {
	font-size: 14px;
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 0;
	transition: color 0.3s ease;
}

.sa-step-card.style-light .sa-step-desc {
	color: #555555;
}

.sa-step-card.style-dark .sa-step-desc {
	color: #b0b0b0;
}

/* ==========================================================================
   DESKTOP VIEW ( >= 1025px ) - DISEÑO FIJO EXACTO ORIGINAL
   ========================================================================== */
@media (min-width: 1025px) {
	.sa-timeline-swiper {
		overflow: visible !important;
	}

	.sa-timeline-swiper > .swiper-wrapper {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		align-items: stretch !important;
		gap: 20px;
		transform: none !important;
		width: 100% !important;
		height: auto !important;
	}

	.sa-timeline-swiper > .swiper-wrapper > .swiper-slide {
		flex: 1 1 0 !important;
		width: auto !important;
		height: auto !important;
		margin-right: 0 !important;
	}

	/* Escalonado vertical en cards pares */
	.sa-has-stagger .sa-timeline-swiper > .swiper-wrapper > .swiper-slide:nth-child(even) {
		margin-top: 40px !important;
	}

	/* Línea horizontal conectora original */
	.sa-has-line .sa-timeline-steps-container::before {
		content: '';
		position: absolute;
		top: 16px;
		left: 8%;
		right: 8%;
		height: var(--sa-line-thickness, 3px);
		background-color: var(--sa-line-color, #E60000);
		z-index: 1;
		pointer-events: none;
		transition: background-color 0.3s ease, opacity 0.3s ease;
	}

	.sa-no-line .sa-timeline-steps-container::before {
		display: none !important;
	}

	/* Ocultar flechas y paginación en escritorio */
	.sa-swiper-pagination,
	.sa-carousel-arrow {
		display: none !important;
	}
}

/* ==========================================================================
   CARRUSEL SWIPER (MÓVIL Y TABLET < 1025px)
   ========================================================================== */
@media (max-width: 1024px) {
	.sa-timeline-title {
		font-size: 34px;
	}

	.sa-timeline-swiper {
		overflow: hidden;
		padding: 10px 4px 15px 4px;
	}

	.sa-timeline-swiper > .swiper-wrapper > .swiper-slide {
		height: auto !important;
		display: flex;
		flex-direction: column;
	}

	.sa-timeline-swiper > .swiper-wrapper > .swiper-slide:nth-child(even) {
		margin-top: 0 !important;
	}

	.sa-has-line .sa-timeline-steps-container::before {
		display: none !important;
	}

	/* Swiper Pagination Dots */
	.sa-swiper-pagination {
		position: relative !important;
		bottom: auto !important;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 8px !important;
		margin-top: 26px !important;
		z-index: 5 !important;
	}

	.sa-swiper-pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background-color: #d1d5db;
		opacity: 1 !important;
		margin: 0 !important;
		cursor: pointer;
		outline: none;
		transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.sa-swiper-pagination .swiper-pagination-bullet-active {
		background-color: #E60000 !important;
		width: 24px !important;
		border-radius: 12px !important;
	}

	/* Swiper Navigation Arrows */
	.sa-carousel-arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 38px;
		height: 38px;
		border-radius: 50%;
		background-color: #E60000;
		color: #ffffff;
		border: none;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 10;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
		cursor: pointer;
		outline: none;
		transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
	}

	.sa-carousel-arrow:active {
		transform: translateY(-50%) scale(0.92);
	}

	.sa-carousel-prev {
		left: 6px;
	}

	.sa-carousel-next {
		right: 6px;
	}

	.sa-carousel-arrow.swiper-button-disabled {
		opacity: 0.35 !important;
		cursor: not-allowed;
		pointer-events: none;
	}
}

/* ==========================================================================
   MÓVIL ESPECÍFICO (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
	.sa-timeline-title {
		font-size: 28px;
	}

	.sa-timeline-intro {
		font-size: 15px;
	}

	/* Fallback si el usuario desactiva el slider en móvil */
	.sa-slider-disabled-mobile .sa-timeline-swiper {
		overflow: visible !important;
	}

	.sa-slider-disabled-mobile .sa-timeline-steps {
		display: flex !important;
		flex-direction: column !important;
		gap: 20px !important;
		padding-left: 28px !important;
		transform: none !important;
		position: relative;
	}

	.sa-slider-disabled-mobile.sa-has-line .sa-timeline-steps-container::before {
		display: block !important;
		top: 20px;
		bottom: 20px;
		left: 6px;
		right: auto;
		width: var(--sa-line-thickness, 3px);
		height: auto;
	}

	.sa-slider-disabled-mobile .sa-step-item {
		width: 100% !important;
		margin-top: 0 !important;
		align-items: stretch !important;
	}

	.sa-slider-disabled-mobile .sa-step-node-wrapper {
		position: absolute;
		left: -28px;
		top: 20px;
		margin-bottom: 0;
	}

	.sa-slider-disabled-mobile .sa-swiper-pagination,
	.sa-slider-disabled-mobile .sa-carousel-arrow {
		display: none !important;
	}
}
