/**
 * Página de Servicios - Safety Garage
 */

/* =============================================
   HERO
   ============================================= */

.servicios-hero {
	position: relative;
	padding: 6rem 1.5rem 5rem;
	background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6e 50%, #122d5c 100%);
	overflow: hidden;
	text-align: center;
}

.servicios-hero__overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at 50% 120%,
		rgba(192, 22, 23, 0.08) 0%,
		transparent 60%
	);
	z-index: 1;
}

.servicios-hero__container {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.servicios-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(4px);
	color: #4ade80;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	margin-bottom: 1.75rem;
	border: 1px solid rgba(74, 222, 128, 0.2);
}

.servicios-hero__badge svg {
	flex-shrink: 0;
}

.servicios-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 1.25rem;
	line-height: 1.15;
}

.servicios-hero__subtitle {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.8);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}

.servicios-hero__actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.servicios-hero__actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.servicios-hero__actions .btn--secondary {
	border-color: rgba(255, 255, 255, 0.4);
}

/* Decoración */
.servicios-hero__visual {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.servicios-hero__circle {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.servicios-hero__circle--1 {
	width: 500px;
	height: 500px;
	top: -180px;
	right: -120px;
	background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.servicios-hero__circle--2 {
	width: 350px;
	height: 350px;
	bottom: -120px;
	left: -100px;
	background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
}

.servicios-hero__circle--3 {
	width: 180px;
	height: 180px;
	top: 40%;
	left: 10%;
	background: radial-gradient(circle, rgba(192, 22, 23, 0.1) 0%, transparent 70%);
}

/* =============================================
   GRID DE SERVICIOS
   ============================================= */

.servicios-grid {
	padding: 5rem 1.5rem;
	background: #f9fafb;
}

.servicios-grid__container {
	max-width: 1100px;
	margin: 0 auto;
}

.servicios-grid__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.servicios-grid__line {
	width: 80px;
	height: 4px;
	background: var(--sg-red, #c01617);
	margin: 0 auto 1.5rem;
	border-radius: 2px;
}

.servicios-grid__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	font-style: italic;
}

.servicios-grid__subtitle {
	font-size: 1rem;
	color: #5a6a7a;
	max-width: 550px;
	margin: 0 auto;
	line-height: 1.6;
}

.servicios-grid__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

/* =============================================
   CARD DE SERVICIO
   ============================================= */

.servicio-card {
	background: #fff;
	border-radius: 16px;
	padding: 2.5rem 2rem;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.servicio-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--card-accent, var(--sg-red, #c01617));
	border-radius: 16px 16px 0 0;
}

.servicio-card:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.servicio-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #e8eef4 0%, #dde5ed 100%);
	color: var(--card-accent, var(--sg-dark, #122d5c));
	flex-shrink: 0;
}

.servicio-card__icon svg {
	width: 32px;
	height: 32px;
}

.servicio-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.servicio-card__tagline {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--card-accent, #5a6a7a);
	margin-bottom: 0.5rem;
}

.servicio-card__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 0.75rem;
}

.servicio-card__desc {
	font-size: 0.9rem;
	color: #5a6a7a;
	line-height: 1.7;
	margin: 0 0 1.5rem;
}

.servicio-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	flex: 1;
}

.servicio-card__features li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.88rem;
	color: #3d4f5f;
	padding: 0.45rem 0;
	border-bottom: 1px solid #f0f4f8;
}

.servicio-card__features li:last-child {
	border-bottom: none;
}

.servicio-card__features li svg {
	flex-shrink: 0;
}

.servicio-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--card-accent, var(--sg-red, #c01617));
	text-decoration: none;
	padding: 0.75rem 0;
	transition: gap 0.3s ease;
	margin-top: auto;
}

.servicio-card__btn:hover {
	gap: 0.85rem;
}

.servicio-card__btn svg {
	transition: transform 0.3s ease;
}

.servicio-card__btn:hover svg {
	transform: translateX(4px);
}

/* =============================================
   PROCESO DE TRABAJO
   ============================================= */

.servicios-proceso {
	padding: 5rem 1.5rem;
	background: linear-gradient(180deg, #f0f4f8 0%, #e4eaf0 100%);
}

.servicios-proceso__container {
	max-width: 1100px;
	margin: 0 auto;
}

.servicios-proceso__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.servicios-proceso__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	font-style: italic;
}

.servicios-proceso__subtitle {
	font-size: 1rem;
	color: #5a6a7a;
	max-width: 500px;
	margin: 0 auto;
	line-height: 1.6;
}

.servicios-proceso__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	position: relative;
}

/* Línea horizontal (solo desktop 4 columnas) */
.servicios-proceso__steps::before {
	content: none;
}

.proceso-step {
	text-align: center;
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	padding: 2rem 1.5rem 1.75rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.proceso-step:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.proceso-step__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sg-dark, #122d5c) 0%, #1a3a6e 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	position: relative;
	z-index: 2;
}

.proceso-step__icon svg {
	width: 24px;
	height: 24px;
}

.proceso-step__number {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--sg-red, #c01617);
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.proceso-step__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 0.5rem;
}

.proceso-step__desc {
	font-size: 0.88rem;
	color: #5a6a7a;
	margin: 0;
	line-height: 1.6;
}

/* Conectores entre pasos */
.proceso-step__connector {
	display: none;
}

@media (min-width: 961px) {
	.servicios-proceso__steps::before {
		content: '';
		position: absolute;
		top: calc(2rem + 28px);
		left: 0;
		right: 0;
		height: 2px;
		background: var(--sg-dark, #122d5c);
		opacity: 0.15;
		z-index: 0;
	}

	.proceso-step__connector {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: calc(2rem + 28px - 14px);
		right: calc(-1rem - 14px);
		width: 28px;
		height: 28px;
		z-index: 3;
		background: #e4eaf0;
		border-radius: 50%;
		border: 2px solid #d5dde8;
	}

	.proceso-step__connector::before {
		content: '';
		display: block;
		width: 8px;
		height: 8px;
		border-top: 2px solid var(--sg-dark, #122d5c);
		border-right: 2px solid var(--sg-dark, #122d5c);
		transform: rotate(45deg);
		margin-left: -2px;
		opacity: 0.5;
	}
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
	.servicios-grid__cards {
		grid-template-columns: 1fr;
		max-width: 560px;
		margin: 0 auto;
	}

	.servicios-proceso__steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.servicios-hero {
		padding: 5rem 1rem 4rem;
	}

	.servicios-hero__actions {
		flex-direction: column;
		align-items: center;
	}

	.servicios-hero__actions .btn {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}

	.servicios-proceso__steps {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.servicios-hero {
		padding: 4rem 1rem 3rem;
	}

	.servicios-grid {
		padding: 3rem 1rem;
	}

	.servicios-proceso {
		padding: 3rem 1rem;
	}

	.servicio-card {
		padding: 2rem 1.5rem;
	}

	.proceso-step {
		padding: 1.5rem 1rem;
	}
}
