/* Secciones propias de Soluciones Corporativas. */

/* ---------- Desafíos (acordeón + panel destacado) ---------- */

.desafios__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-8);
	padding-block: var(--section-y);
}

.desafios__title {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
	font-weight: 700;
	line-height: 1.26;
	letter-spacing: 0;
	text-align: center;
}

.desafios__lead {
	max-width: 760px;
	color: var(--color-text-secondary);
	line-height: 1.3;
	text-align: center;
}

.desafios__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: start;
	gap: var(--space-12);
	width: 100%;
}

.desafios__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.desafio {
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-lg);
	background: var(--color-bg-page);
	transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.desafio:hover {
	border-color: var(--color-border-strong);
	box-shadow: 0 8px 20px rgba(12, 30, 61, 0.06);
}

.desafio.is-open {
	border-color: var(--orange-600);
	background: var(--color-bg-section-alt);
	box-shadow: inset 0 0 0 1px var(--orange-600);
}

.desafio__heading {
	font-family: var(--font-body);
	font-size: var(--text-body-sm);
	font-weight: 600;
	line-height: 1.3;
}

.desafio__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	width: 100%;
	padding: 20px 24px;
	border: 0;
	background: transparent;
	color: var(--color-text-heading);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.desafio__toggle:hover,
.desafio__toggle:focus {
	background: transparent;
	color: var(--color-text-heading);
}

.desafio__toggle > span:first-child {
	max-width: 400px;
}

.desafio__sign {
	position: relative;
	flex: none;
	width: 12px;
	height: 12px;
	color: #8a93a3;
}

.desafio__sign::before,
.desafio__sign::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s ease;
}

.desafio__sign::after {
	transform: rotate(90deg);
}

.desafio.is-open .desafio__sign {
	color: var(--orange-600);
}

.desafio.is-open .desafio__sign::after {
	transform: rotate(0deg);
}

.desafio__panel {
	padding: 0 24px 20px;
	color: var(--color-text-secondary);
	font-size: var(--text-label-md);
	line-height: 1.3;
	animation: sst-fade-in 0.3s ease;
}

.desafios__highlight {
	border-radius: var(--radius-xl);
	background: var(--color-bg-dark);
	color: var(--color-text-inverse);
}

.highlight {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-8);
	animation: sst-fade-in 0.35s ease;
}

.highlight[hidden] {
	display: none;
}

.highlight__label {
	color: var(--color-text-accent-on-dark);
	font-size: var(--text-label-sm);
	font-weight: 600;
	text-transform: uppercase;
}

.highlight__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.26;
}

.highlight__checks {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.highlight__checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--text-label-md);
	line-height: 1.3;
}

.icon--16 {
	width: 16px;
	height: 16px;
}

.btn--accent {
	padding-block: 12px;
	background: var(--color-accent-btn);
	color: var(--white);
	font-weight: 600;
	letter-spacing: 0;
	white-space: normal;
}

.btn--accent:hover,
.btn--accent:focus {
	background: var(--color-accent-btn-hover);
	color: var(--white);
}

.btn--accent:focus-visible {
	outline-color: var(--white);
}

@keyframes sst-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Grilla de soluciones ---------- */

.sol {
	scroll-margin-top: var(--space-6);
}

.sol__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-10);
	padding-block: var(--section-y);
}

.sol__inner > h2 {
	text-align: center;
}

.sol__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6);
	width: 100%;
}

.sol__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-height: 200px;
	padding: 28px 24px;
	border-radius: var(--radius-xl);
	background: var(--color-bg-section-alt);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.sol__card:hover {
	background: var(--color-bg-page);
	transform: translateY(-6px);
	box-shadow: 0 18px 36px rgba(12, 30, 61, 0.1);
}

.sol__card:hover .badge {
	transform: scale(1.08);
	box-shadow: 0 10px 20px rgba(82, 153, 249, 0.35);
}

.sol__card h3 {
	font-size: var(--text-h4);
	font-weight: 500;
	line-height: var(--leading-h4);
}

.sol__card p {
	max-width: 340px;
	color: var(--color-text-secondary);
}

/* ---------- Videos ---------- */

.videos {
	background: var(--color-bg-section-alt);
	scroll-margin-top: var(--space-6);
}

.videos__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-10);
	padding-block: var(--section-y-sm);
}

.videos__inner > h2 {
	text-align: center;
}

.videos__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6);
	width: 100%;
}

.videos__grid--1 {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

.videos__grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.video-card__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: var(--color-bg-dark);
}

.video-card__frame iframe,
.video-card__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-card__play {
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.video-card__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.3s ease;
}

.video-card__play:hover img {
	transform: scale(1.04);
	opacity: 0.85;
}

.video-card__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 10px 24px rgba(12, 30, 61, 0.3);
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.video-card__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-block: 11px solid transparent;
	border-left: 18px solid var(--navy-900);
	transform: translate(-50%, -50%);
}

.video-card__play:hover .video-card__icon {
	transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
	font-size: var(--text-h4);
	font-weight: 500;
	line-height: var(--leading-h4);
}

.video-card p {
	color: var(--color-text-secondary);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.desafios__row {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}

	.desafio__toggle > span:first-child {
		max-width: none;
	}

	.sol__grid,
	.videos__grid,
	.videos__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sol__grid,
	.videos__grid,
	.videos__grid--2 {
		grid-template-columns: 1fr;
	}

	.sol__card {
		min-height: 0;
	}

	.desafio__toggle {
		padding: 16px 18px;
	}

	.desafio__panel {
		padding: 0 18px 16px;
	}

	.highlight {
		padding: var(--space-6);
	}
}
