/* ============================================================
   DiscKey — Test público. Fondo BLANCO, Poppins, móvil-first.
   ============================================================ */
.disckey-wrapper {
	--dk-accent: #5b2d8e;
	--dk-accent-dark: #47216f;
	--dk-ink: #1a1523;
	--dk-ink-2: #6b6577;
	--dk-line: #ececf1;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	background: #ffffff;
	max-width: 680px;
	margin: 0 auto;
	padding: 20px 18px 40px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.disckey-wrapper * { box-sizing: border-box; }

/* Barra superior */
.disckey-topbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 4px 2px 14px;
}
.disckey-test-title {
	font-weight: 600; font-size: 15px; color: var(--dk-ink);
	letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.disckey-progress { font-size: 13px; font-weight: 600; color: var(--dk-ink-2); flex: none; }

/* Barra de progreso */
.disckey-progressbar {
	height: 6px; background: var(--dk-line); border-radius: 100px; overflow: hidden; margin-bottom: 24px;
}
.disckey-progressbar span {
	display: block; height: 100%; width: 0; background: var(--dk-accent);
	border-radius: 100px; transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* Tarjeta principal — BLANCA */
.disckey-card {
	background: #ffffff;
	border: 1px solid var(--dk-line);
	border-radius: 20px;
	padding: 40px 32px;
	min-height: 380px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	box-shadow: 0 1px 3px rgba(26,21,35,.03), 0 12px 32px rgba(26,21,35,.05);
}

/* ---------- Intro ---------- */
.disckey-intro { text-align: center; max-width: 460px; animation: dkfade .4s ease; }
.disckey-intro-icon {
	width: 72px; height: 72px; border-radius: 20px; background: #f3edfa;
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.disckey-intro h2 { font-size: 26px; font-weight: 700; color: var(--dk-ink); margin: 0 0 12px; letter-spacing: -0.02em; }
.disckey-intro p { color: var(--dk-ink-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 24px; }
.disckey-intro-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.disckey-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: #f7f5fb; color: var(--dk-accent-dark); font-size: 13px; font-weight: 500;
	padding: 8px 14px; border-radius: 100px;
}
.disckey-chip svg { flex: none; }

/* ---------- Pregunta ---------- */
.disckey-qnum {
	font-size: 13px; font-weight: 600; color: var(--dk-accent);
	text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; text-align: center;
	width: 100%;
}
.disckey-question {
	font-size: 26px; font-weight: 700; color: var(--dk-ink);
	text-align: center; max-width: 560px; margin: 0 0 34px; line-height: 1.35;
	letter-spacing: -0.02em; animation: dkfade .3s ease;
}
.disckey-options { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.disckey-option {
	background: #ffffff; border: 1.5px solid var(--dk-line); border-radius: 14px;
	padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
	font-family: inherit; font-size: 16px; font-weight: 500; color: var(--dk-ink);
	cursor: pointer; transition: all .15s ease; text-align: left; width: 100%;
}
.disckey-option:hover { border-color: var(--dk-accent); background: #faf8fd; transform: translateY(-1px); }
.disckey-option:active { transform: translateY(0); }
.disckey-option.is-selected { border-color: var(--dk-accent); background: #f3edfa; }
.disckey-option:disabled { cursor: default; opacity: .55; }
.disckey-option.is-selected:disabled { opacity: 1; }
.disckey-option-left { display: flex; align-items: center; gap: 14px; }
.disckey-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.disckey-arrow { color: var(--dk-accent); display: inline-flex; opacity: .5; transition: opacity .15s, transform .15s; }
.disckey-option:hover .disckey-arrow { opacity: 1; transform: translateX(3px); }

/* ---------- Botón ---------- */
.disckey-btn-primary {
	background: var(--dk-accent); color: #fff; border: none; border-radius: 14px;
	padding: 15px 36px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: background .15s, transform .05s; box-shadow: 0 4px 14px rgba(91,45,142,.25);
}
.disckey-btn-primary:hover { background: var(--dk-accent-dark); }
.disckey-btn-primary:active { transform: translateY(1px); }

/* ---------- Mensajes simples ---------- */
.disckey-msg { font-size: 20px; font-weight: 600; color: var(--dk-ink); text-align: center; margin: 20px 0 6px; }
.disckey-msg-sub { font-size: 15px; color: var(--dk-ink-2); text-align: center; }

/* ---------- Resultado ---------- */
.disckey-result { text-align: center; max-width: 460px; animation: dkfade .4s ease; width: 100%; }
.disckey-result-check { margin-bottom: 12px; }
.dk-check-circle { stroke-dasharray: 157; stroke-dashoffset: 157; animation: dkcircle .5s ease forwards; }
.dk-check-mark { stroke-dasharray: 48; stroke-dashoffset: 48; animation: dkmark .35s .45s ease forwards; }
@keyframes dkcircle { to { stroke-dashoffset: 0; } }
@keyframes dkmark { to { stroke-dashoffset: 0; } }

.disckey-result h2 { font-size: 25px; font-weight: 700; color: var(--dk-ink); margin: 0 0 20px; letter-spacing: -0.02em; }
.disckey-result-badge {
	width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(26,21,35,.16);
}
.disckey-result-big { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.disckey-result-name { font-size: 18px; font-weight: 600; color: var(--dk-ink); margin: 0 0 24px; }

.disckey-disc-bars { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; text-align: left; }
.disckey-disc-bar { display: flex; align-items: center; gap: 12px; }
.disckey-disc-key { width: 20px; font-weight: 700; font-size: 15px; flex: none; text-align: center; }
.disckey-disc-track { flex: 1; height: 10px; background: #f0eef4; border-radius: 100px; overflow: hidden; }
.disckey-disc-fill { display: block; height: 100%; border-radius: 100px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.disckey-disc-pct { width: 42px; text-align: right; font-size: 14px; font-weight: 600; color: var(--dk-ink-2); flex: none; }

.disckey-final-msg { color: var(--dk-ink-2); font-size: 15.5px; line-height: 1.65; margin: 0; }

/* ---------- Loading ---------- */
.disckey-loading { text-align: center; }
.disckey-loading p { color: var(--dk-ink-2); font-size: 15px; margin-top: 16px; }
.disckey-spinner {
	width: 40px; height: 40px; border: 3px solid #f0eef4; border-top-color: var(--dk-accent);
	border-radius: 50%; margin: 0 auto; animation: dkspin .7s linear infinite;
}
@keyframes dkspin { to { transform: rotate(360deg); } }
@keyframes dkfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.disckey-footer { display: flex; justify-content: center; padding-top: 22px; }
.disckey-prelace-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #a8a4b0; text-decoration: none; }
.disckey-prelace-badge strong { color: var(--dk-accent); font-weight: 600; }
.disckey-prelace-logo { height: 14px; width: auto; opacity: .8; }

/* ---------- Móvil ---------- */
@media (max-width: 600px) {
	.disckey-wrapper { padding: 14px 14px 30px; }
	.disckey-card { padding: 32px 20px; border-radius: 18px; min-height: 340px; }
	.disckey-question { font-size: 21px; margin-bottom: 26px; }
	.disckey-option { padding: 16px 18px; font-size: 15.5px; }
	.disckey-intro h2 { font-size: 23px; }
	.disckey-intro p { font-size: 14.5px; }
	.disckey-intro-icon { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; }
	.disckey-result h2 { font-size: 22px; }
	.disckey-result-badge { width: 76px; height: 76px; }
	.disckey-result-big { font-size: 38px; }
	.disckey-btn-primary { width: 100%; padding: 16px; }
}
