/**
 * GoTalentia — Test de Empleabilidad 360°
 * Estilos aislados bajo .gt-quiz (no afectan al resto del sitio).
 * Marca: azul #0C0CA1 · verde #39A239. Acento por nivel vía --gt-accent.
 */

.gt-quiz {
	--gt-blue: #0C0CA1;
	--gt-green: #39A239;
	--gt-accent: #39A239;
	max-width: 640px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
	color: #2b3441;
	font-family: inherit;
}

.gt-quiz *,
.gt-quiz *::before,
.gt-quiz *::after {
	box-sizing: border-box;
}

.gt-card {
	background: #fff;
	border: 1px solid #edeef1;
	border-radius: 20px;
	padding: 36px 32px;
	box-shadow: 0 10px 40px rgba(16, 24, 40, 0.05);
	text-align: center;
}

/* ---- Tipografía base ---- */
.gt-title {
	color: var(--gt-blue);
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
}

.gt-subtitle {
	color: #667085;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 24px;
}

/* ---- Formulario de inicio ---- */
.gt-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}

.gt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gt-field__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #344054;
}

.gt-quiz .gt-field__input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e2e6ea;
	border-radius: 8px;
	font-size: 1rem;
	color: #2b3441 !important;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color 0.2s ease;
}

.gt-quiz .gt-field__input::placeholder {
	color: #98a2b3;
	opacity: 1;
}

.gt-quiz .gt-field__input:focus {
	border-color: var(--gt-blue) !important;
	background: #fff !important;
	background-color: #fff !important;
}

.gt-error {
	margin: 0;
	color: #e03131;
	font-size: 0.9rem;
}

/* ---- Botones ---- */
.gt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.gt-btn--primary {
	background: var(--gt-green);
	color: #fff;
}

.gt-btn--primary:hover {
	filter: brightness(0.93);
	color: #fff;
}

.gt-btn--lg {
	width: 100%;
	padding: 16px 32px;
	font-size: 1.05rem;
	margin-top: 8px;
}

/* ---- Cabecera de progreso (fuera del card) ---- */
.gt-qheader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 4px 10px;
}

.gt-qcount {
	margin: 0;
	color: #98a2b3;
	font-size: 0.95rem;
	font-weight: 500;
}

.gt-qpct {
	color: #98a2b3;
	font-size: 0.95rem;
	font-weight: 600;
}

/* ---- Progreso ---- */
.gt-progress {
	height: 8px;
	background: #eef0f2;
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 24px;
}

.gt-progress__bar {
	height: 100%;
	background: var(--gt-green);
	border-radius: 99px;
	transition: width 0.3s ease;
}

/* ---- Pregunta ---- */
.gt-question {
	text-align: left;
}

.gt-qtheme {
	display: inline-block;
	margin: 0 0 18px;
	padding: 7px 16px;
	border-radius: 99px;
	background: rgba(12, 12, 161, 0.08);
	color: var(--gt-blue);
	font-size: 0.85rem;
	font-weight: 700;
}

.gt-qtext {
	margin: 0 0 28px;
	color: var(--gt-blue);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.3;
}

.gt-options {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gt-option {
	display: flex;
	align-items: center;
	min-height: 58px;
	padding: 14px 20px;
	border: 1.5px solid #e7e9ee;
	border-radius: 14px;
	background: #fff;
	color: #344054;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.gt-option:hover,
.gt-option:focus-visible {
	border-color: var(--gt-green);
	background: rgba(57, 162, 57, 0.06);
	color: var(--gt-green);
	transform: translateY(-1px);
	outline: none;
}

.gt-back {
	margin-top: 20px;
	background: none;
	border: none;
	color: #98a2b3;
	font-size: 0.9rem;
	cursor: pointer;
}

/* ---- Resultado ---- */
.gt-check {
	width: 72px;
	height: 72px;
	margin: 0 auto 8px;
}

.gt-result__title {
	margin: 12px 0 4px;
	color: var(--gt-blue);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.2;
}

.gt-result__level {
	margin: 0 0 24px;
	color: #98a2b3;
	font-size: 1.05rem;
}

.gt-score {
	margin: 0 0 24px;
	text-align: left;
}

.gt-score__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.gt-score__label {
	color: #667085;
	font-weight: 600;
}

.gt-score__value {
	color: var(--gt-blue);
	font-size: 1.1rem;
	font-weight: 800;
}

.gt-score__track {
	height: 14px;
	background: #eef0f2;
	border-radius: 99px;
	overflow: hidden;
}

.gt-score__fill {
	height: 100%;
	background: var(--gt-accent);
	border-radius: 99px;
	transition: width 0.5s ease;
}

.gt-panel {
	margin: 0 0 24px;
	padding: 24px;
	border: 1px solid var(--gt-accent);
	border-radius: 16px;
	background: #f8f9fb;
	background: color-mix(in srgb, var(--gt-accent) 7%, #fff);
	text-align: center;
}

.gt-panel__name {
	margin: 0 0 12px;
	color: var(--gt-accent);
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.25;
}

.gt-panel__diag {
	margin: 0 0 16px;
	color: #344054;
	line-height: 1.55;
}

.gt-panel__loss {
	margin: 0;
	color: #98a2b3;
	font-size: 0.92rem;
	font-style: italic;
	line-height: 1.5;
}

.gt-link {
	display: block;
	margin: 16px auto 0;
	background: none;
	border: none;
	color: #98a2b3;
	font-size: 0.95rem;
	cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
	.gt-card {
		padding: 24px 18px;
	}
	.gt-title,
	.gt-result__title {
		font-size: 1.5rem;
	}
	.gt-qtext {
		font-size: 1.12rem;
	}
}
