/**
 * Programa Talento Joven — estilos de la landing + funnel.
 *
 * Línea Evolve: Inter / Plus Jakarta Sans, primario #1a1a1a, grises neutros.
 * Mobile-first. El funnel es un overlay full-screen pensado sin scroll.
 *
 * Fuente: src/scss/pages/talento-joven.scss (CSS plano = SCSS válido).
 */

.page-talento-joven {
	--tj-primary: #1a1a1a;
	--tj-bg: #ffffff;
	--tj-soft: #f5f5f7;
	--tj-soft-2: #ececef;
	--tj-line: #e6e6e8;
	--tj-muted: #8a8a8a;
	--tj-text: #1a1a1a;
	--tj-radius: 14px;
	--tj-radius-lg: 22px;
	--tj-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--tj-display: "Plus Jakarta Sans", "Inter", sans-serif;

	background: var(--tj-bg);
	color: var(--tj-text);
	font-family: var(--tj-font);
	-webkit-font-smoothing: antialiased;

	/* Landing de una sola pantalla: hero ocupa el alto disponible,
	   footer al fondo, sin scroll. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.page-talento-joven * { box-sizing: border-box; }

.tj-container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ------------------------------------------------------------------ */
/* Logo de cabecera (símbolo Evolve centrado, sin topbar)             */
/* ------------------------------------------------------------------ */
.tj-hero__logo { display: block; margin: 0 auto 14px; line-height: 0; }
.tj-hero__logo svg { width: 30px; height: auto; display: block; margin: 0 auto; }

/* ------------------------------------------------------------------ */
/* Botones                                                            */
/* ------------------------------------------------------------------ */
.tj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--tj-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	padding: 14px 26px;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
	text-decoration: none;
}
.tj-btn:active { transform: translateY(1px); }
.tj-btn--dark { background: var(--tj-primary); color: #fff; }
.tj-btn--dark:hover { background: #000; }
.tj-btn--light { background: #fff; color: var(--tj-primary); }
.tj-btn--light:hover { background: var(--tj-soft); }
.tj-btn--lg { padding: 17px 34px; font-size: 17px; }
.tj-btn--block { width: 100%; }

.tj-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--tj-primary);
	font-family: var(--tj-font);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
}
.tj-link:hover { opacity: .7; }

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.tj-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--tj-muted);
	text-transform: uppercase;
	margin-bottom: 18px;
}
/* Hero a pantalla completa, contenido centrado verticalmente, sin scroll. */
.tj-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.tj-hero {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 0 18px;
}
.tj-hero__inner {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}
.tj-hero__title {
	font-family: var(--tj-display);
	font-weight: 600;
	font-size: clamp(28px, 6vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}
.tj-hero__subtitle {
	font-size: clamp(15px, 2.4vw, 19px);
	line-height: 1.5;
	color: #444;
	margin: 0 auto 12px;
	max-width: 620px;
}
.tj-hero__claim {
	font-family: var(--tj-font);
	font-weight: 700;
	font-size: clamp(15px, 2.2vw, 18px);
	color: var(--tj-primary);
	line-height: 1.4;
	margin: 0 auto 16px;
	max-width: 580px;
}
.tj-hero__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.tj-hero__microcopy { font-size: 14px; color: var(--tj-muted); }

.tj-hero__perks { display: flex; justify-content: center; margin: 16px 0 0; }
.tj-perk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tj-soft);
	border: 1px solid var(--tj-line);
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
}
.tj-perk::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--tj-primary);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.tj-stats {
	list-style: none;
	margin: 16px auto 0;
	padding: 16px 0 0;
	max-width: 620px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	border-top: 1px solid var(--tj-line);
}
.tj-stats__item { display: flex; flex-direction: column; gap: 4px; }
.tj-stats__num {
	font-family: var(--tj-display);
	font-weight: 800;
	font-size: clamp(22px, 5vw, 32px);
	letter-spacing: -0.02em;
}
.tj-stats__label { font-size: 12px; color: var(--tj-muted); }

/* ------------------------------------------------------------------ */
/* Trust strip + marquee de logos (slider automático)                 */
/* ------------------------------------------------------------------ */
.tj-hero__trust { padding: 10px 0 20px; }
.tj-hero__trust-label {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tj-muted);
	margin: 0 0 16px;
	margin-bottom: 17px;
}
.tj-marquee {
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tj-marquee__track {
	display: flex;
	align-items: center;
	gap: 46px;
	width: max-content;
	animation: tj-marquee 48s linear infinite;
}
.tj-marquee:hover .tj-marquee__track { animation-play-state: paused; }
.tj-marquee__logo {
	height: 26px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	flex: 0 0 auto;
	filter: grayscale(1);
	opacity: .5;
	transition: opacity .2s ease, filter .2s ease;
}
.tj-marquee__logo:hover { filter: grayscale(0); opacity: 1; }
@keyframes tj-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tj-marquee__track { animation: none; } }

/* ------------------------------------------------------------------ */
/* Secciones genéricas                                                */
/* ------------------------------------------------------------------ */
.tj-section { padding: 56px 0; }
.tj-section__title {
	font-family: var(--tj-display);
	font-weight: 800;
	font-size: clamp(26px, 4.5vw, 38px);
	letter-spacing: -0.02em;
	margin: 0 0 12px;
	text-align: center;
}
.tj-section__subtitle {
	text-align: center;
	font-size: 17px;
	color: #555;
	max-width: 620px;
	margin: 0 auto 36px;
	line-height: 1.5;
}

/* Cómo funciona */
.tj-how__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.tj-how__card {
	background: var(--tj-soft);
	border-radius: var(--tj-radius);
	padding: 26px;
}
.tj-how__num {
	font-family: var(--tj-display);
	font-weight: 800;
	font-size: 15px;
	color: var(--tj-muted);
}
.tj-how__heading { font-size: 19px; font-weight: 700; margin: 10px 0 8px; }
.tj-how__text { font-size: 15px; color: #555; margin: 0; line-height: 1.5; }

/* Áreas */
.tj-areas__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.tj-area__card {
	border: 1px solid var(--tj-line);
	border-radius: var(--tj-radius);
	padding: 28px;
	transition: border-color .2s ease, transform .2s ease;
}
.tj-area__card:hover { border-color: var(--tj-primary); transform: translateY(-2px); }
.tj-area__heading { font-family: var(--tj-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.tj-area__text { font-size: 15px; color: #555; margin: 0 0 18px; line-height: 1.5; }

/* Punto de partida / para quién es */
.tj-fit__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 880px;
	margin: 0 auto;
}
.tj-fit__card {
	background: var(--tj-soft);
	border-radius: var(--tj-radius);
	padding: 28px;
}
.tj-fit__tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--tj-display);
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 10px;
}
.tj-fit__tag::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--tj-primary);
	flex: 0 0 auto;
}
.tj-fit__text { font-size: 15px; color: #555; line-height: 1.55; margin: 0; }

/* Salida laboral */
.tj-outcome__inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.tj-outcome .tj-section__title, .tj-outcome .tj-section__subtitle { text-align: left; margin-left: 0; }
.tj-outcome__pills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.tj-outcome__pill {
	background: var(--tj-soft);
	border-radius: var(--tj-radius);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tj-outcome__pill strong { font-family: var(--tj-display); font-size: 24px; font-weight: 800; }
.tj-outcome__pill span { font-size: 14px; color: var(--tj-muted); }

/* CTA band */
.tj-cta-band { background: var(--tj-primary); color: #fff; }
.tj-cta-band__inner { text-align: center; padding: 64px 0; }
.tj-cta-band__title { font-family: var(--tj-display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); margin: 0 0 10px; letter-spacing: -0.02em; }
.tj-cta-band__text { font-size: 17px; color: rgba(255, 255, 255, .7); margin: 0 0 28px; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.tj-footer { border-top: 1px solid var(--tj-line); padding: 26px 0; font-size: 13px; }
.tj-footer__inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.tj-footer__brand { font-weight: 600; }
.tj-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tj-footer__legal a { color: var(--tj-muted); text-decoration: none; }
.tj-footer__legal a:hover { color: var(--tj-primary); }
.tj-footer__copy { color: var(--tj-muted); }

/* ================================================================== */
/* FUNNEL OVERLAY                                                     */
/* ================================================================== */
body.tj-quiz-open { overflow: hidden; }

.tj-quiz {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #fff;
	--tj-primary: #1a1a1a;
	--tj-soft: #f5f5f7;
	--tj-line: #e6e6e8;
	--tj-muted: #8a8a8a;
	--tj-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--tj-display: "Plus Jakarta Sans", "Inter", sans-serif;
	font-family: var(--tj-font);
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
}
.tj-quiz[hidden] { display: none; }
.tj-quiz * { box-sizing: border-box; }

.tj-quiz__shell {
	height: 100%;
	height: 100dvh;
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}

.tj-quiz__bar { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.tj-quiz__back, .tj-quiz__close {
	background: var(--tj-soft);
	border: 0;
	padding: 0;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	font-size: 20px;
	line-height: 1;
	color: #1a1a1a;
	cursor: pointer;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.tj-quiz__back:hover, .tj-quiz__close:hover { background: var(--tj-line); }
.tj-quiz__back--ghost { background: transparent; cursor: default; }

/* X del cierre dibujada con CSS: centrada exacta, sin depender del glifo. */
.tj-quiz__close { position: relative; font-size: 0; }
.tj-quiz__close::before,
.tj-quiz__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: #1a1a1a;
}
.tj-quiz__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.tj-quiz__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tj-quiz__progress { flex: 1; height: 6px; background: var(--tj-soft); border-radius: 999px; overflow: hidden; }
.tj-quiz__progress span { display: block; height: 100%; background: var(--tj-primary); border-radius: 999px; transition: width .3s ease; }

.tj-quiz__body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.tj-quiz__step { font-size: 13px; font-weight: 600; color: var(--tj-muted); margin: 6px 0 10px; }
.tj-quiz__title { font-family: var(--tj-display); font-weight: 800; font-size: clamp(22px, 5vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.tj-quiz__hint { font-size: 15px; color: #666; margin: 0 0 22px; }
.tj-quiz__content { margin-top: 6px; }
.tj-quiz__error { color: #c0392b; font-size: 14px; margin: 14px 0 0; }

.tj-quiz__foot { padding-top: 16px; }

/* Opciones */
.tj-options { display: flex; flex-direction: column; gap: 12px; }
.tj-option {
	position: relative;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--tj-line);
	border-radius: var(--tj-radius);
	padding: 18px 50px 18px 20px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
	font-family: var(--tj-font);
}
.tj-option:hover { border-color: #bdbdc2; }
.tj-option.is-selected { border-color: var(--tj-primary); background: var(--tj-soft); }
.tj-option__label { display: block; font-size: 16px; font-weight: 600; }
.tj-option__desc { display: block; font-size: 13px; color: var(--tj-muted); margin-top: 4px; }
.tj-option__tick {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: 2px solid var(--tj-line);
}
.tj-option.is-selected .tj-option__tick { border-color: var(--tj-primary); background: var(--tj-primary); }
.tj-option.is-selected .tj-option__tick::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Campos */
.tj-fields { display: flex; flex-direction: column; gap: 16px; }
.tj-field { display: flex; flex-direction: column; gap: 7px; }
.tj-field__label { font-size: 14px; font-weight: 600; }
.tj-field__input {
	width: 100%;
	font-family: var(--tj-font);
	font-size: 16px;
	padding: 14px 16px;
	border: 1.5px solid var(--tj-line);
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	-webkit-appearance: none;
	appearance: none;
}
.tj-field__input:focus { outline: none; border-color: var(--tj-primary); }
select.tj-field__input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a8a8a' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

/* Contacto */
.tj-contact { display: flex; flex-direction: column; gap: 16px; }
.tj-contact__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tj-contact__legal { font-size: 12px; color: var(--tj-muted); margin: 2px 0 0; }
.tj-contact__legal a { color: var(--tj-muted); }

/* Consentimiento */
.tj-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #555;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}
.tj-consent input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--tj-primary); }
.tj-consent a { color: var(--tj-primary); }

/* Teléfono: prefijo de país nativo + número */
.tj-phone { display: flex; gap: 8px; }
.tj-phone__cc { flex: 0 0 auto; width: auto; min-width: 92px; padding-right: 34px; background-position: right 12px center; }
.tj-phone__num { flex: 1 1 auto; min-width: 0; }

.tj-cv__drop {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 1.5px dashed var(--tj-line);
	border-radius: 12px;
	background: var(--tj-soft);
	cursor: pointer;
	text-align: left;
	font-family: var(--tj-font);
	font-size: 14px;
	color: #555;
}
.tj-cv.is-drag .tj-cv__drop { border-color: var(--tj-primary); }
.tj-cv.is-set .tj-cv__drop { border-style: solid; color: #1a1a1a; }
.tj-cv__icon { font-size: 18px; }
.tj-cv__text em { color: var(--tj-muted); font-style: normal; }

.tj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Análisis */
.tj-analysis { align-items: center; justify-content: center; text-align: center; gap: 22px; }
.tj-analysis__spinner {
	width: 54px;
	height: 54px;
	border-radius: 999px;
	border: 4px solid var(--tj-soft);
	border-top-color: var(--tj-primary);
	animation: tj-spin .8s linear infinite;
}
.tj-analysis__text { font-size: 18px; font-weight: 600; }
@keyframes tj-spin { to { transform: rotate(360deg); } }

/* Resultado / confirmación */
.tj-result { position: relative; }
.tj-result__close { position: absolute; top: 14px; right: 16px; }
.tj-result__inner { margin: auto; text-align: center; max-width: 460px; padding: 30px 0; }
.tj-result__logo { display: block; margin: 0 auto 18px; line-height: 0; }
.tj-result__logo svg { width: 104px; height: auto; display: block; margin: 0 auto; }
.tj-result__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	border-radius: 999px;
	background: #eafaf0;
	color: #1c7a44;
	font-size: 26px;
	line-height: 1;
}
.tj-result__title { font-family: var(--tj-display); font-weight: 800; font-size: clamp(26px, 6vw, 34px); letter-spacing: -0.02em; margin: 0 0 14px; }
.tj-result__text { font-size: 16px; color: #555; line-height: 1.6; margin: 0 0 30px; }
.tj-result__social-label { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--tj-muted); margin: 0 0 16px; }
.tj-result__social { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tj-result__social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--tj-line);
	border-radius: 999px;
	color: var(--tj-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease;
}
.tj-result__social a:hover { border-color: var(--tj-primary); background: var(--tj-soft); }
.tj-result__social i { font-size: 16px; }
.tj-result__done { display: block; margin: 22px auto 0; color: var(--tj-muted); }

/* ------------------------------------------------------------------ */
/* Desktop                                                            */
/* ------------------------------------------------------------------ */
@media (min-width: 768px) {
	.tj-how__grid { grid-template-columns: repeat(2, 1fr); }
	.tj-areas__grid { grid-template-columns: repeat(3, 1fr); }
	.tj-fit__grid { grid-template-columns: repeat(2, 1fr); }
	/* Los logos no a sangre completa en desktop: dentro de un contenedor. */
	.tj-marquee { max-width: 1000px; margin-left: auto; margin-right: auto; }
	.tj-outcome__inner { grid-template-columns: 1fr 1fr; align-items: center; }
	.tj-outcome__pills { grid-template-columns: 1fr; }
	.tj-contact__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
	.tj-how__grid { grid-template-columns: repeat(4, 1fr); }
}
