/*
 * Secciones fijas de las fichas de carrera (Tu Primer Paso y financiamiento).
 * Se usan con la plantilla PHP y con WPBakery: el ancho completo de la
 * ventana lo calcula secciones-fijas.js (--dfc-fijas-izq / --dfc-fijas-der).
 */

/* Ancho explícito: en WPBakery el contenedor es flex con wrap y estirarse tomaría el ancho del contenido. */
.dfc-fijas {
	align-self: flex-start;
	width: calc(100% + var(--dfc-fijas-izq, 0px) + var(--dfc-fijas-der, 0px));
	max-width: none;
	margin: 0 calc(-1 * var(--dfc-fijas-der, 0px)) 0 calc(-1 * var(--dfc-fijas-izq, 0px));
	font-family: 'Lato', sans-serif;
	color: #1a1a1a;
	text-align: left;
}

.dfc-fijas *,
.dfc-fijas *::before,
.dfc-fijas *::after {
	box-sizing: border-box;
}

/* ---------- Sigue explorando (Tu Primer Paso) ---------- */

.dfc-fijas .dfc-explora {
	display: flex;
	background: #f9f7f7;
}

/* Alto proporcional al ancho (318 / 1440): mantiene el encuadre de la maqueta en pantallas grandes. */
.dfc-explora-img {
	position: relative;
	flex: 0 0 50%;
	min-width: 0;
	min-height: 22.08vw;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .7) 21.635%, rgba(0, 0, 0, 0) 43.75%),
		var(--dfc-explora-img) center / cover no-repeat;
}

.dfc-explora-marca {
	position: absolute;
	left: 49px;
	bottom: 38px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	width: 124px;
}

.dfc-explora-marca img {
	display: block;
	width: 124px;
	height: auto;
}

.dfc-explora-lema {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25em;
	height: 14.656px;
	background: #ffb803;
	font-size: 11.828px;
	font-weight: 500;
	line-height: 1;
	color: #000;
}

.dfc-explora-lema b {
	font-weight: 900;
}

.dfc-explora-cuerpo {
	flex: 0 0 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
	padding: 40px 70px;
}

.dfc-fijas .dfc-explora-titulo,
.dfc-fijas .dfc-fin-titulo {
	margin: 0;
	font-family: 'Lato', sans-serif;
	font-size: 31.25px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.4688px;
	color: #1a1a1a;
}

.dfc-fijas .dfc-explora-texto {
	margin: 0;
	font-size: 18px;
	line-height: 1.8;
	color: #1a1a1a;
}

.dfc-fijas .dfc-explora-btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 25px;
	border-radius: 100px;
	background: var(--dfc-primario, #307fe2);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -.24px;
	color: #fff;
	text-decoration: none;
}

.dfc-fijas .dfc-explora-btn:hover,
.dfc-fijas .dfc-explora-btn:focus {
	filter: brightness(.9);
	color: #fff;
}

/* ---------- Alternativas de financiamiento ---------- */

.dfc-fijas .dfc-fin {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 60px 70px;
	background: #fff;
}

/* El carrusel llega hasta el borde derecho de la ventana, como en la maqueta. */
.dfc-fin-carrusel {
	position: relative;
	margin-right: -70px;
}

.dfc-fijas .dfc-fin-lista {
	display: flex;
	gap: 30px;
	margin: -5px 0 -5px -5px;
	padding: 5px 70px 5px 5px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 5px;
	scrollbar-width: none;
}

.dfc-fin-lista::-webkit-scrollbar {
	display: none;
}

.dfc-fijas .dfc-fin-card {
	flex: 0 0 240px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 20px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, .1);
	scroll-snap-align: start;
}

.dfc-fijas .dfc-fin-card-titulo {
	min-height: 48px;
	margin: 0;
	font-family: 'Lato', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.3px;
	color: #000;
}

.dfc-fijas .dfc-fin-card-texto {
	flex: 1 0 auto;
	min-height: 95px;
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.2;
	color: #000;
}

.dfc-fijas .dfc-fin-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 20px;
	border: 1px solid var(--dfc-primario, #307fe2);
	border-radius: 40px;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -.24px;
	color: var(--dfc-primario, #307fe2);
	text-decoration: none;
}

.dfc-fijas .dfc-fin-card-btn:hover,
.dfc-fijas .dfc-fin-card-btn:focus {
	background: var(--dfc-primario, #307fe2);
	color: #fff;
}

.dfc-fin-flecha {
	position: absolute;
	top: 50%;
	right: 44px;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 100px;
	background: #fff url('img/flecha-carrusel.svg') center / 13.5px 7.5px no-repeat;
	box-shadow: 0 0 6px rgba(0, 0, 0, .12);
	transform: translateY(-50%) rotate(-90deg);
	cursor: pointer;
}

.dfc-fin-flecha--prev {
	right: auto;
	left: 44px;
	transform: translateY(-50%) rotate(90deg);
}

.dfc-fin-flecha[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.dfc-fijas .dfc-explora {
		flex-direction: column;
	}

	.dfc-explora-img {
		flex: 0 0 200px;
		min-height: 0;
		background-size: auto, 100% auto;
		background-position: 0 0, center top;
	}

	.dfc-explora-marca {
		left: 25px;
		bottom: 15px;
	}

	.dfc-explora-cuerpo {
		padding: 20px;
	}

	.dfc-fijas .dfc-explora-titulo,
	.dfc-fijas .dfc-fin-titulo {
		font-size: 25px;
		letter-spacing: -.375px;
	}

	.dfc-fijas .dfc-explora-texto {
		font-size: 16px;
		line-height: 1.5;
		letter-spacing: -.24px;
	}

	.dfc-fijas .dfc-fin {
		padding: 30px 20px;
	}

	.dfc-fin-carrusel {
		margin-right: -20px;
	}

	.dfc-fijas .dfc-fin-lista {
		padding-right: 20px;
	}

	.dfc-fin-flecha {
		right: 20px;
		background-color: var(--dfc-primario, #307fe2);
		background-image: url('img/flecha-carrusel-blanca.svg');
		box-shadow: none;
	}

	.dfc-fin-flecha--prev {
		right: auto;
		left: 20px;
	}
}
