/* Pa el quiz — "¿Qué lector eres?". Estética Libros Medellín. */
#lm-quiz {
	max-width: 640px;
	margin: 30px auto;
	padding: 0 16px;
}

.lm-quiz-card {
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 18px;
	padding: 32px 28px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
	text-align: center;
	animation: lm-quiz-in 0.35s ease;
}

@keyframes lm-quiz-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.lm-quiz-intro h2,
.lm-quiz-result-name {
	margin: 0 0 8px;
}

.lm-quiz-intro p {
	opacity: 0.75;
	margin: 0 0 22px;
}

/* ── Botones ── */
.lm-quiz-btn,
.lm-quiz-btn-ghost {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95em;
	cursor: pointer;
	text-decoration: none;
	border: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lm-quiz-btn {
	background: #ad1531;
	color: #fff;
}

.lm-quiz-btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	color: #fff;
}

.lm-quiz-btn-ghost {
	background: transparent;
	border: 1.5px solid #ad1531;
	color: #ad1531;
}

.lm-quiz-btn-ghost:hover {
	background: #ad1531;
	color: #fff;
}

/* ── Progreso ── */
.lm-quiz-progress {
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin-bottom: 16px;
}

.lm-quiz-progress span {
	display: block;
	height: 100%;
	background: #ad1531;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.lm-quiz-step {
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.55;
	margin: 0 0 6px;
}

.lm-quiz-q {
	font-size: 1.3em;
	margin: 0 0 22px;
	line-height: 1.25;
}

/* ── Respuestas ── */
.lm-quiz-answers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lm-quiz-answer {
	padding: 14px 18px;
	border: 1.5px solid rgba(0, 0, 0, 0.14);
	border-radius: 12px;
	background: var(--wp--preset--color--base, #fff);
	color: inherit;
	font-size: 0.95em;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.lm-quiz-answer:hover {
	border-color: #ad1531;
	transform: translateX(3px);
}

.lm-quiz-answer.is-picked {
	background: #ad1531;
	border-color: #ad1531;
	color: #fff;
}

/* ── Resultado ── */
.lm-quiz-result-label {
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.6;
	margin: 0;
}

.lm-quiz-result-emoji {
	font-size: 4rem;
	line-height: 1;
	margin: 6px 0;
}

.lm-quiz-result-name {
	color: #ad1531;
	font-size: 1.7em;
}

.lm-quiz-result-desc {
	opacity: 0.8;
	line-height: 1.55;
	margin: 8px 0 26px;
}

.lm-quiz-books-title {
	margin: 0 0 16px;
	font-size: 1.1em;
}

.lm-quiz-books {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}

.lm-quiz-book {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-decoration: none;
	color: inherit;
}

.lm-quiz-book img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	border-radius: 8px;
}

.lm-quiz-book-name {
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.25;
}

.lm-quiz-book-price {
	font-size: 0.8em;
	color: #ad1531;
	font-weight: 700;
}

.lm-quiz-book-cta {
	font-size: 0.75em;
	opacity: 0.6;
}

.lm-quiz-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.lm-quiz-loading {
	opacity: 0.6;
	padding: 16px 0;
}

@media (max-width: 480px) {
	.lm-quiz-books {
		grid-template-columns: 1fr 1fr;
	}
}
