/**
 * Test de Longevidad (Figma 20/11: «V2 · Longevidad · Test · Paso 2–5», «Confirmación»).
 * Marco claro con la lista de pasos a la izquierda y la tarjeta del test a la derecha.
 */

.psw-lt .psw-sec__inner {
	max-width: calc(1880px + 2 * 17.92px);
	padding-inline: 17.92px;
}

.psw-lt .psw-lt__frame {
	position: relative;
	padding: 76px 64px 80px;
	border-radius: 28px;
	background-color: var(--psw-surface);
	scroll-margin-top: 120px;
}

.psw-lt .psw-breadcrumb {
	position: absolute;
	top: 24px;
	left: 64px;
	margin: 0;
}

.psw-lt .psw-lt__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
	min-height: 560px;
}

/* --- Columna izquierda --- */

.psw-lt .psw-lt__eyebrow {
	margin-bottom: 22px;
}

.psw-lt .psw-lt__h1 {
	margin: 0;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: clamp(60px, 4.9vw, 88px);
	font-weight: 300;
	line-height: 0.92;
	letter-spacing: -0.02em;
}

.psw-lt .psw-lt__h1 em {
	color: var(--psw-secondary);
	font-style: italic;
}

.psw-lt .psw-lt__intro {
	max-width: 920px;
	margin: 24px 0 0;
	color: var(--e-global-color-om_texto_cuerpo, #4f4c45);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	line-height: var(--e-global-typography-om_texto_m-line-height, 28px);
}

.psw-lt .psw-lt__steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.psw-lt .psw-lt__step-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	line-height: 28px;
}

.psw-lt .psw-lt__dot {
	display: inline-grid;
	flex: none;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background-color: var(--psw-surface-raised);
	color: var(--psw-muted-foreground);
	font-size: 12.5px;
	line-height: 1;
}

.psw-lt .psw-lt__dot svg {
	display: none;
	width: 12px;
	height: 12px;
}

.psw-lt .psw-lt__step-item.is-current {
	color: var(--psw-foreground-strong);
	font-weight: 500;
}

.psw-lt .psw-lt__step-item.is-current .psw-lt__dot {
	background-color: var(--psw-foreground-strong);
	color: var(--psw-primary-foreground);
}

.psw-lt .psw-lt__step-item.is-done .psw-lt__dot {
	background-color: var(--psw-primary);
	color: var(--psw-primary-foreground);
}

.psw-lt .psw-lt__step-item.is-done .psw-lt__dot-n {
	display: none;
}

.psw-lt .psw-lt__step-item.is-done .psw-lt__dot svg {
	display: block;
}

/* --- Tarjeta --- */

.psw-lt .psw-lt__card {
	justify-self: end;
	width: 100%;
	scroll-margin-top: 110px; /* bajo la cabecera fija al cambiar de paso */
	max-width: 760px;
	padding: 38px;
	border-radius: 28px;
	background-color: var(--psw-surface-raised);
	box-shadow: 0 24px 48px -16px rgba(47, 50, 43, 0.22);
}

.psw-lt .psw-lt__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.psw-lt .psw-lt__label,
.psw-lt .psw-lt__count {
	margin: 0;
	color: var(--psw-label);
	font-size: var(--e-global-typography-om_etiqueta-font-size, 13px);
	font-weight: 500;
	line-height: 20px;
	letter-spacing: var(--e-global-typography-om_etiqueta-letter-spacing, 1.6px);
	text-transform: uppercase;
}

.psw-lt .psw-lt__bar {
	height: 3px;
	margin: 14px 0 26px;
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--psw-surface);
}

.psw-lt .psw-lt__bar span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background-color: var(--psw-primary);
	transition: width 0.3s ease;
}

.psw-lt .psw-lt__step {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Sin JS se ven todos los pasos, separados. */
.psw-lt .psw-lt__grid:not(.psw-lt--js) .psw-lt__step + .psw-lt__step {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--psw-border);
}

.psw-lt .psw-lt__grid:not(.psw-lt--js) [data-psw-lt-back],
.psw-lt .psw-lt__grid:not(.psw-lt--js) [data-psw-lt-next] {
	display: none;
}

.psw-lt .psw-lt__step[hidden],
.psw-lt .psw-lt__nav [hidden],
.psw-lt .psw-lt__form[hidden],
.psw-lt .psw-lt__done[hidden],
.psw-lt .psw-lt__error[hidden] {
	display: none;
}

.psw-lt .psw-lt__title {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: var(--e-global-typography-om_display_s-font-size, 36px);
	font-weight: 300;
	line-height: 1.14;
	outline: none;
}

.psw-lt .psw-lt__title em {
	color: var(--psw-secondary);
	font-style: italic;
}

.psw-lt .psw-lt__text {
	margin: 14px 0 0;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: var(--e-global-typography-om_texto_s-line-height, 22px);
}

/* Preguntas */

.psw-lt .psw-lt__q {
	margin-top: 24px;
}

.psw-lt .psw-lt__q-label {
	display: block;
	margin: 0 0 12px;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 22px;
}

/* Selector segmentado (una opción) */

.psw-lt .psw-lt__seg {
	display: grid;
	grid-template-columns: repeat(var(--psw-lt-n, 3), minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background-color: var(--psw-surface);
}

.psw-lt .psw-lt__seg-opt {
	position: relative;
	cursor: pointer;
}

.psw-lt .psw-lt__seg-opt input,
.psw-lt .psw-lt__check input,
.psw-lt .psw-lt__consent input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.psw-lt .psw-lt__seg-opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--psw-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 20px;
	text-align: center;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.psw-lt .psw-lt__seg-opt:hover span {
	background-color: rgba(255, 253, 251, 0.55);
}

.psw-lt .psw-lt__seg-opt input:checked + span {
	background-color: var(--psw-surface-raised);
	box-shadow: 0 1px 3px rgba(47, 50, 43, 0.12);
	color: var(--psw-foreground-strong);
	font-weight: 500;
}

.psw-lt .psw-lt__seg-opt input:focus-visible + span,
.psw-lt .psw-lt__check input:focus-visible ~ .psw-lt__check-text,
.psw-lt .psw-lt__consent input:focus-visible + .psw-lt__box {
	outline: 2px solid var(--psw-primary);
	outline-offset: 2px;
}

/* Casillas tipo tarjeta (varias opciones) */

.psw-lt .psw-lt__checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.psw-lt .psw-lt__check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 12px 18px;
	border: 1px solid var(--psw-border);
	border-radius: 18px;
	background-color: var(--psw-surface-soft);
	color: var(--psw-foreground);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	line-height: 22px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.psw-lt .psw-lt__check:hover {
	border-color: rgba(79, 83, 73, 0.35);
}

.psw-lt .psw-lt__box {
	display: inline-grid;
	flex: none;
	width: 20px;
	height: 20px;
	place-items: center;
	border: 1px solid rgba(79, 83, 73, 0.35);
	border-radius: 5px;
	background-color: var(--psw-surface-raised);
}

.psw-lt .psw-lt__box::after {
	content: "";
	width: 9px;
	height: 5px;
	margin-top: -2px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
	transform: rotate(-45deg);
	opacity: 0;
}

.psw-lt .psw-lt__check:has(input:checked) {
	border-color: var(--psw-primary);
	background-color: var(--psw-primary);
	color: var(--psw-primary-foreground);
}

.psw-lt .psw-lt__check input:checked + .psw-lt__box,
.psw-lt .psw-lt__consent input:checked + .psw-lt__box {
	border-color: transparent;
	background-color: var(--psw-surface);
	color: var(--psw-primary);
}

.psw-lt input:checked + .psw-lt__box::after {
	opacity: 1;
}

/* Deslizadores (edad, estrés) */

.psw-lt .psw-lt__value {
	display: block;
	margin: -4px 0 14px;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-display);
	font-size: 24px;
	line-height: 1.2;
}

.psw-lt .psw-lt__range {
	display: block;
	width: 100%;
	height: 20px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.psw-lt .psw-lt__range::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--psw-primary) var(--psw-lt-fill, 50%), var(--psw-surface) var(--psw-lt-fill, 50%));
}

.psw-lt .psw-lt__range::-moz-range-track {
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--psw-primary) var(--psw-lt-fill, 50%), var(--psw-surface) var(--psw-lt-fill, 50%));
}

.psw-lt .psw-lt__range::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	margin-top: -8.5px;
	border: 1.5px solid var(--psw-primary);
	border-radius: 50%;
	background-color: var(--psw-surface-raised);
	appearance: none;
	-webkit-appearance: none;
}

.psw-lt .psw-lt__range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--psw-primary);
	border-radius: 50%;
	background-color: var(--psw-surface-raised);
}

.psw-lt .psw-lt__range:focus-visible {
	outline: 2px solid var(--psw-primary);
	outline-offset: 6px;
}

.psw-lt .psw-lt__range-ends {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	color: var(--psw-muted-foreground);
	font-size: 13px;
	line-height: 18px;
}

/* Datos de contacto */

.psw-lt .psw-lt__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	margin-top: 22px;
}

.psw-lt .psw-lt__field--full {
	grid-column: 1 / -1;
}

.psw-lt .psw-lt__field label {
	display: block;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 22px;
}

.psw-lt .psw-lt__input {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid rgba(79, 83, 73, 0.25);
}

.psw-lt .psw-lt__input:focus-within {
	border-bottom-color: var(--psw-primary);
}

.psw-lt .psw-lt__prefix {
	color: var(--psw-foreground);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
}

.psw-lt .psw-lt__input input,
.psw-lt .psw-lt__input input:focus {
	width: 100%;
	min-height: 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--psw-foreground-strong);
	font-family: var(--psw-font-body);
	font-size: var(--e-global-typography-om_texto_m-font-size, 17px);
	outline: none;
}

.psw-lt .psw-lt__consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 18px;
	color: var(--psw-muted-foreground);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 20px;
	cursor: pointer;
}

.psw-lt .psw-lt__consent + .psw-lt__consent {
	margin-top: 12px;
}

.psw-lt .psw-lt__consent a {
	color: var(--psw-foreground-strong);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.psw-lt .psw-lt__error {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	background-color: #f6e7e1;
	color: var(--psw-terracotta-dark);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	line-height: 22px;
}

.psw-lt .psw-lt__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Navegación */

.psw-lt .psw-lt__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--psw-border);
}

.psw-lt button.psw-lt__back,
.psw-lt button.psw-lt__back:hover,
.psw-lt button.psw-lt__back:focus {
	margin-right: auto;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--psw-muted-foreground);
	font-family: var(--psw-font-body);
	font-size: var(--e-global-typography-om_texto_s-font-size, 14px);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.psw-lt button.psw-lt__back:hover {
	color: var(--psw-foreground-strong);
}

.psw-lt button.psw-btn,
.psw-lt button.psw-btn:hover,
.psw-lt button.psw-btn:focus {
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	font-family: var(--psw-font-body);
	font-size: var(--e-global-typography-om_texto_m_med-font-size, 17px);
	font-weight: 500;
	line-height: 28px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.psw-lt button.psw-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Confirmación */

.psw-lt .psw-lt__done .psw-lt__text {
	margin-top: 18px;
}

/* --- Tablet --- */

@media (max-width: 1279px) {
	.psw-lt .psw-lt__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		min-height: 0;
	}

	.psw-lt .psw-lt__card {
		max-width: 760px;
	}
}

@media (max-width: 1023px) {
	.psw-lt .psw-lt__frame {
		padding: 72px 40px 48px;
	}

	.psw-lt .psw-breadcrumb {
		left: 40px;
	}
}

/* --- Móvil (Figma: «Móvil · Longevidad · Test · Paso 3») --- */

@media (max-width: 767px) {
	.psw-lt .psw-sec__inner {
		padding-inline: 8px;
	}

	.psw-lt .psw-lt__frame {
		padding: 64px 8px 24px;
		border-radius: 24px;
	}

	.psw-lt .psw-breadcrumb {
		left: 16px;
	}

	.psw-lt .psw-lt__aside {
		padding-inline: 8px;
	}

	.psw-lt .psw-lt__grid {
		gap: 24px;
	}

	.psw-lt .psw-lt__h1 {
		font-size: 44px;
		line-height: 1;
	}

	.psw-lt .psw-lt__eyebrow,
	.psw-lt .psw-lt__intro,
	.psw-lt .psw-lt__steps {
		display: none;
	}

	.psw-lt .psw-lt__card {
		padding: 24px 20px;
		border-radius: 24px;
	}

	.psw-lt .psw-lt__label,
	.psw-lt .psw-lt__count {
		font-size: 11px;
		letter-spacing: 1.2px;
	}

	.psw-lt .psw-lt__title {
		font-size: 32px;
	}

	.psw-lt .psw-lt__seg {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 20px;
	}

	.psw-lt .psw-lt__seg-opt span {
		justify-content: flex-start;
		padding-inline: 16px;
	}

	.psw-lt .psw-lt__checks,
	.psw-lt .psw-lt__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.psw-lt .psw-lt__check {
		min-height: 52px;
		font-size: 15px;
	}
}

/* Acentos en terracota #B6744A (Figma 23/11): pasos hechos, barra, opciones marcadas, botones y línea del antetítulo. */
.psw-lt {
	--psw-primary: var(--psw-terracotta);
}

.psw-lt .psw-eyebrow__line {
	background-color: var(--psw-terracotta);
}

.psw-lt .psw-eyebrow--olive {
	color: var(--e-global-color-primary, #4f5349);
}
