/**
 * Perfiles de Cliente - Safety Garage
 * Sección: Residencial / Comercial / Industrial
 */

.client-profiles {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	padding: 5rem 0;
	position: relative;
	overflow: hidden;
}

/* Decoración de fondo sutil */
.client-profiles::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(18, 45, 92, 0.03) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.client-profiles__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Encabezado */
.client-profiles__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3.5rem;
}

.client-profiles__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	line-height: 1.2;
}

.client-profiles__subtitle {
	font-size: 1.1rem;
	color: #5a6a7a;
	margin: 0;
	line-height: 1.6;
}

/* Grid de tarjetas */
.client-profiles__grid {
	display: grid;
	gap: 2rem;
}

.client-profiles__grid--2 {
	grid-template-columns: repeat(2, 1fr);
	max-width: 900px;
	margin: 0 auto;
}

.client-profiles__grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

/* Tarjeta de perfil */
.profile-card {
	background: #fff;
	border-radius: 16px;
	padding: 2.5rem 2rem;
	text-align: center;
	box-shadow: 0 4px 20px rgba(18, 45, 92, 0.08);
	border: 1px solid rgba(18, 45, 92, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.profile-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--sg-dark, #122d5c);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.profile-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(18, 45, 92, 0.15);
}

.profile-card:hover::before {
	transform: scaleX(1);
}

/* Icono */
.profile-card__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, #e8eef4 0%, #dde5ed 100%);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sg-dark, #122d5c);
	transition: all 0.4s ease;
}

.profile-card__icon svg {
	width: 36px;
	height: 36px;
}

.profile-card:hover .profile-card__icon {
	background: var(--sg-dark, #122d5c);
	color: #fff;
	transform: scale(1.05);
}

/* Título */
.profile-card__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
}

/* Descripción */
.profile-card__desc {
	font-size: 0.95rem;
	color: #5a6a7a;
	line-height: 1.7;
	margin: 0 0 1.75rem;
}

/* Botón */
.profile-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	color: var(--sg-dark, #122d5c);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--sg-dark, #122d5c);
	border-radius: 8px;
	transition: all 0.3s ease;
}

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

.profile-card__btn:hover {
	background: var(--sg-dark, #122d5c);
	color: #fff;
}

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

/* Variantes de color por tipo */
.profile-card--residential:hover::before {
	background: linear-gradient(90deg, #122d5c 0%, #1a4a8a 100%);
}

.profile-card--commercial:hover::before {
	background: linear-gradient(90deg, #c01617 0%, #e02020 100%);
}

.profile-card--industrial:hover::before {
	background: linear-gradient(90deg, #2d5a1e 0%, #3d7a2e 100%);
}

.profile-card--commercial:hover .profile-card__icon {
	background: var(--sg-red, #c01617);
}

.profile-card--industrial:hover .profile-card__icon {
	background: #2d5a1e;
}

/* CTA alternativo para comercial */
.profile-card--commercial .profile-card__btn {
	border-color: var(--sg-red, #c01617);
	color: var(--sg-red, #c01617);
}

.profile-card--commercial .profile-card__btn:hover {
	background: var(--sg-red, #c01617);
	color: #fff;
}

/* CTA para industrial */
.profile-card--industrial .profile-card__btn {
	border-color: #2d5a1e;
	color: #2d5a1e;
}

.profile-card--industrial .profile-card__btn:hover {
	background: #2d5a1e;
	color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
	.client-profiles__grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.client-profiles__grid--3 .profile-card:last-child {
		grid-column: 1 / -1;
		max-width: 400px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.client-profiles {
		padding: 4rem 0;
	}
	
	.client-profiles__header {
		margin-bottom: 2.5rem;
	}
	
	.client-profiles__grid--2,
	.client-profiles__grid--3 {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}
	
	.client-profiles__grid--3 .profile-card:last-child {
		max-width: none;
	}
	
	.profile-card {
		padding: 2rem 1.5rem;
	}
	
	.profile-card__icon {
		width: 70px;
		height: 70px;
	}
	
	.profile-card__icon svg {
		width: 32px;
		height: 32px;
	}
}
