/**
 * Por qué elegirnos - Safety Garage
 */

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

.why-choose__container {
	max-width: 1100px;
	margin: 0 auto;
}

/* Content grid - Dos columnas */
.why-choose__content {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	align-items: center;
}

/* Columna izquierda */
.why-choose__left {
	display: flex;
	flex-direction: column;
}

/* Header - Alineado a la izquierda */
.why-choose__header {
	text-align: left;
	margin-bottom: 2rem;
}

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

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

/* Features */
.why-choose__features {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	justify-content: center;
}

.why-feature {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	background: #fff;
	padding: 1.5rem;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.why-feature__icon {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	background: linear-gradient(135deg, #e8eef4 0%, #dde5ed 100%);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sg-dark, #122d5c);
}

.why-feature__icon svg {
	width: 28px;
	height: 28px;
}

.why-feature__text {
	flex: 1;
}

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

.why-feature__desc {
	font-size: 0.9rem;
	color: #5a6a7a;
	margin: 0;
	line-height: 1.6;
}

/* Video section - Formato vertical */
.why-video {
	background: var(--sg-dark, #122d5c);
	border-radius: 24px;
	padding: 0.75rem;
	box-shadow: 0 8px 32px rgba(18, 45, 92, 0.25);
	display: flex;
	flex-direction: column;
}

.why-video__title {
	display: none; /* Ocultar título en formato vertical */
}

.why-video__player {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: #0d1f3c;
	aspect-ratio: 9 / 16;
	min-height: 500px;
}

.why-video__element {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.why-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(230, 57, 70, 0.9);
	backdrop-filter: blur(4px);
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-video__play svg {
	width: 24px;
	height: 24px;
	margin-left: 3px;
}

.why-video__play:hover {
	transform: translate(-50%, -50%) scale(1.1);
	box-shadow: 0 6px 28px rgba(230, 57, 70, 0.5);
}

/* Ocultar play cuando el video está reproduciéndose */
.why-video__player.is-playing .why-video__play {
	opacity: 0;
	pointer-events: none;
}

.why-video__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.4);
	padding: 2rem;
	text-align: center;
}

.why-video__placeholder svg {
	width: 40px;
	height: 40px;
}

.why-video__placeholder span {
	font-size: 0.8rem;
	line-height: 1.4;
}

.why-video__btn {
	display: none; /* Ocultar en formato vertical */
}

/* Responsive */
@media (max-width: 900px) {
	.why-choose__content {
		grid-template-columns: 1fr 260px;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.why-choose__content {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.why-choose__header {
		text-align: center;
	}

	.why-choose__subtitle {
		margin: 0 auto;
	}

	.why-choose__video {
		max-width: 300px;
		margin: 0 auto;
	}

	.why-video__player {
		min-height: 450px;
	}
}

@media (max-width: 600px) {
	.why-choose {
		padding: 3rem 1rem;
	}

	.why-feature {
		padding: 1.25rem;
	}

	.why-feature__icon {
		width: 48px;
		height: 48px;
	}

	.why-feature__icon svg {
		width: 24px;
		height: 24px;
	}

	.why-video__player {
		min-height: 400px;
	}
}
