/* ==========================================================================
   Propiel Skin Quiz
   Colores y fuentes llegan como variables desde el shortcode.
   ========================================================================== */

.psq {
	--psq-primary: #2d4c6d;
	--psq-accent: #c29648;
	--psq-bg: #faf9f8;
	--psq-surface: #ffffff;
	--psq-font-heading: Mattone, Kanit, sans-serif;
	--psq-font-body: Kanit, sans-serif;

	--psq-text: var(--psq-primary);
	--psq-muted: #5e5e5e;
	--psq-line: #e6e0d6;
	--psq-tint: rgba(45, 76, 109, 0.06);
	--psq-tint: color-mix(in srgb, var(--psq-primary) 7%, transparent);
	--psq-accent-soft: rgba(194, 150, 72, 0.16);
	--psq-accent-soft: color-mix(in srgb, var(--psq-accent) 16%, transparent);
	--psq-radius: 20px;
	--psq-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--psq-shadow: 0 18px 40px -22px rgba(29, 49, 71, 0.45);

	position: relative;
	max-width: 1040px;
	margin: 0 auto;
	padding: clamp(22px, 4vw, 48px);
	border-radius: 28px;
	background:
		radial-gradient(120% 80% at 100% 0%, var(--psq-accent-soft) 0%, transparent 55%),
		radial-gradient(90% 70% at 0% 100%, var(--psq-tint) 0%, transparent 60%),
		var(--psq-bg);
	color: var(--psq-text);
	font-family: var(--psq-font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.55;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	container: psq / inline-size;
	-webkit-font-smoothing: antialiased;
}

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

.psq svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

/* Reset de botones y enlaces frente a los estilos del tema. */
.psq button,
.psq .psq-btn {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	text-shadow: none;
	text-decoration: none;
	min-height: 0;
	width: auto;
	cursor: pointer;
	transition: none;
}

.psq button:focus-visible,
.psq a:focus-visible {
	outline: 3px solid var(--psq-accent);
	outline-offset: 3px;
}

.psq h2,
.psq h3,
.psq h4,
.psq p,
.psq ul {
	margin: 0;
	padding: 0;
}

.psq ul {
	list-style: none;
}

/* ---------- Escenario y transiciones ---------- */

.psq-stage {
	position: relative;
	transition: height 0.5s var(--psq-ease);
}

.psq-screen {
	position: relative;
	z-index: 1;
}

.psq-screen.is-leaving {
	position: absolute;
	inset: 0 0 auto 0;
	pointer-events: none;
	animation: psq-leave-left 0.42s var(--psq-ease) forwards;
}

.psq-screen.is-leaving.to-right {
	animation-name: psq-leave-right;
}

.psq-screen.is-entering.from-right {
	animation: psq-enter-right 0.5s var(--psq-ease) both;
}

.psq-screen.is-entering.from-left {
	animation: psq-enter-left 0.5s var(--psq-ease) both;
}

@keyframes psq-leave-left {
	to { opacity: 0; transform: translateX(-60px) scale(0.98); }
}
@keyframes psq-leave-right {
	to { opacity: 0; transform: translateX(60px) scale(0.98); }
}
@keyframes psq-enter-right {
	from { opacity: 0; transform: translateX(70px); }
	to { opacity: 1; transform: none; }
}
@keyframes psq-enter-left {
	from { opacity: 0; transform: translateX(-70px); }
	to { opacity: 1; transform: none; }
}
@keyframes psq-rise {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to { opacity: 1; transform: none; }
}
@keyframes psq-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.psq-loading {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 80px 0;
}

.psq-loading span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--psq-accent);
	animation: psq-dot 1s infinite ease-in-out;
}

.psq-loading span:nth-child(2) { animation-delay: 0.15s; }
.psq-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes psq-dot {
	0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
	40% { transform: scale(1); opacity: 1; }
}

/* ---------- Tipografía y elementos comunes ---------- */

.psq-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--psq-surface);
	color: var(--psq-accent);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px -10px rgba(29, 49, 71, 0.35);
}

.psq-badge svg {
	font-size: 16px;
}

.psq .psq-title {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: clamp(30px, 4.6vw, 50px);
	line-height: 1.12;
	color: var(--psq-primary);
	letter-spacing: -0.01em;
	text-transform: none;
}

.psq .psq-sub {
	color: var(--psq-muted);
	font-size: clamp(16px, 1.6vw, 18px);
	max-width: 620px;
}

.psq .psq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 12px;
	font-family: var(--psq-font-heading);
	font-size: 16px;
	font-weight: normal;
	line-height: 1.2;
	transition: transform 0.25s var(--psq-ease), box-shadow 0.25s var(--psq-ease), background-color 0.25s, color 0.25s, opacity 0.25s;
	position: relative;
	white-space: nowrap;
}

.psq .psq-btn svg {
	font-size: 18px;
	transition: transform 0.25s var(--psq-ease);
}

.psq .psq-btn:hover svg:last-child {
	transform: translateX(4px);
}

.psq .psq-btn-primary,
.psq .psq-btn-primary:hover,
.psq .psq-btn-primary:focus {
	background: var(--psq-primary);
	color: #fff;
	box-shadow: 0 14px 30px -14px var(--psq-primary);
}

.psq .psq-btn-accent,
.psq .psq-btn-accent:hover,
.psq .psq-btn-accent:focus {
	background: var(--psq-accent);
	color: #fff;
	box-shadow: 0 14px 30px -14px var(--psq-accent);
}

.psq .psq-btn-ghost,
.psq .psq-btn-ghost:hover,
.psq .psq-btn-ghost:focus {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.psq .psq-btn:hover {
	transform: translateY(-2px);
}

.psq .psq-btn:active {
	transform: translateY(0) scale(0.98);
}

.psq .psq-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.psq .psq-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--psq-primary);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--psq-accent);
	padding: 8px 4px;
}

.psq .psq-link svg {
	font-size: 17px;
	color: var(--psq-accent);
	transition: transform 0.5s var(--psq-ease);
}

.psq .psq-link:hover svg {
	transform: rotate(-180deg);
}

/* ---------- Fondos animados ---------- */

.psq-blobs {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.psq-blobs i {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.55;
	animation: psq-blob 14s ease-in-out infinite alternate;
}

.psq-blobs i:nth-child(1) {
	width: 260px;
	height: 260px;
	top: -60px;
	right: 4%;
	background: var(--psq-accent-soft);
}

.psq-blobs i:nth-child(2) {
	width: 220px;
	height: 220px;
	bottom: -40px;
	left: 2%;
	background: var(--psq-tint);
	animation-duration: 18s;
}

.psq-blobs i:nth-child(3) {
	width: 160px;
	height: 160px;
	top: 40%;
	left: 40%;
	background: var(--psq-accent-soft);
	animation-duration: 22s;
	opacity: 0.35;
}

@keyframes psq-blob {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(30px, -20px) scale(1.12); }
	100% { transform: translate(-20px, 25px) scale(0.92); }
}

/* ---------- Intro ---------- */

.psq-intro {
	text-align: center;
	padding: clamp(28px, 6vw, 72px) 0;
}

.psq-intro-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.psq-intro-inner > * {
	animation: psq-rise 0.8s var(--psq-ease) both;
}

.psq-intro-inner > :nth-child(2) { animation-delay: 0.08s; }
.psq-intro-inner > :nth-child(3) { animation-delay: 0.16s; }
.psq-intro-inner > :nth-child(4) { animation-delay: 0.24s; }
.psq-intro-inner > :nth-child(5) { animation-delay: 0.32s; }
.psq-intro-inner > :nth-child(6) { animation-delay: 0.4s; }

.psq-intro .psq-title {
	max-width: 760px;
}

.psq-intro .psq-start {
	margin-top: 6px;
	padding: 18px 34px;
	font-size: 17px;
}

.psq-intro .psq-start::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 16px;
	border: 2px solid var(--psq-primary);
	opacity: 0;
	animation: psq-ping 2.4s var(--psq-ease) infinite 1.2s;
}

@keyframes psq-ping {
	0% { transform: scale(0.96); opacity: 0.5; }
	70%, 100% { transform: scale(1.12, 1.3); opacity: 0; }
}

.psq-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin-top: 8px;
	color: var(--psq-muted);
	font-size: 14px;
}

.psq-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.psq-meta svg {
	color: var(--psq-accent);
	font-size: 18px;
}

.psq-floaters {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.psq-floater {
	position: absolute;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: var(--psq-surface);
	color: var(--psq-primary);
	font-size: 26px;
	box-shadow: var(--psq-shadow);
	animation: psq-float 6s ease-in-out infinite, psq-fade 1s ease both;
}

.psq-floater:nth-child(even) {
	color: var(--psq-accent);
}

.psq-floater-1 { top: 6%; left: 4%; transform: rotate(-10deg); }
.psq-floater-2 { top: 14%; right: 6%; animation-delay: -1.5s, 0.1s; }
.psq-floater-3 { bottom: 16%; left: 9%; animation-delay: -3s, 0.2s; width: 48px; height: 48px; font-size: 22px; }
.psq-floater-4 { bottom: 8%; right: 10%; animation-delay: -4.5s, 0.3s; }
.psq-floater-5 { top: 48%; left: -1%; animation-delay: -2s, 0.4s; width: 42px; height: 42px; font-size: 19px; }
.psq-floater-6 { top: 52%; right: 0; animation-delay: -5s, 0.5s; width: 44px; height: 44px; font-size: 20px; }

@keyframes psq-float {
	0%, 100% { translate: 0 0; rotate: -6deg; }
	50% { translate: 0 -14px; rotate: 6deg; }
}

/* ---------- Preguntas ---------- */

.psq-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: clamp(24px, 4vw, 40px);
}

.psq .psq-back {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--psq-surface);
	color: var(--psq-primary);
	font-size: 20px;
	box-shadow: 0 6px 16px -10px rgba(29, 49, 71, 0.5);
	transition: transform 0.25s var(--psq-ease), background 0.25s, color 0.25s;
}

.psq .psq-back:hover {
	background: var(--psq-primary);
	color: #fff;
	transform: translateX(-3px);
}

.psq-progress {
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: var(--psq-line);
	overflow: hidden;
}

.psq-progress-bar {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--psq-accent), var(--psq-primary));
	transition: width 0.7s var(--psq-ease);
	position: relative;
}

.psq-progress-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: psq-shine 1.8s ease-in-out infinite;
}

@keyframes psq-shine {
	from { transform: translateX(-100%); }
	to { transform: translateX(100%); }
}

.psq-count {
	font-family: var(--psq-font-heading);
	font-size: 14px;
	min-width: 32px;
	text-align: right;
}

.psq-q-head {
	text-align: center;
	margin-bottom: clamp(24px, 4vw, 36px);
	animation: psq-rise 0.6s var(--psq-ease) both;
}

.psq-kicker {
	display: block;
	color: var(--psq-accent);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.psq .psq-q-title {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: clamp(25px, 3.4vw, 38px);
	line-height: 1.2;
	color: var(--psq-primary);
	text-transform: none;
}

.psq .psq-q-sub {
	color: var(--psq-muted);
	margin-top: 10px;
}

.psq-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.psq-options[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; }
.psq-options[data-count="4"],
.psq-options[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psq-options[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.psq .psq-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	padding: 24px 14px 20px;
	border-radius: var(--psq-radius);
	background: var(--psq-surface);
	box-shadow: inset 0 0 0 1.5px var(--psq-line), 0 10px 24px -20px rgba(29, 49, 71, 0.6);
	text-align: center;
	color: var(--psq-text);
	animation: psq-rise 0.55s var(--psq-ease) both;
	animation-delay: calc(var(--i, 0) * 55ms + 120ms);
	transition: transform 0.3s var(--psq-ease), box-shadow 0.3s var(--psq-ease), background-color 0.3s, opacity 0.3s;
}

@media (hover: hover) {
	.psq .psq-option:hover {
		transform: translateY(-5px);
		box-shadow: inset 0 0 0 1.5px var(--psq-accent), 0 22px 36px -22px rgba(29, 49, 71, 0.55);
		background: var(--psq-surface);
		color: var(--psq-text);
	}
}

.psq-option-icon {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--psq-bg);
	color: var(--psq-primary);
	font-size: 28px;
	transition: transform 0.4s var(--psq-ease), background-color 0.3s, color 0.3s;
}

@media (hover: hover) {
	.psq .psq-option:hover .psq-option-icon {
		transform: scale(1.08) rotate(-6deg);
		background: var(--psq-accent-soft);
	}
}

.psq-option-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.psq-option-text strong {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: 16px;
	line-height: 1.25;
}

.psq-option-text small {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--psq-muted);
}

.psq-option-check {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--psq-accent);
	color: #fff;
	font-size: 15px;
	transform: scale(0);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.psq-option-check svg {
	stroke-width: 3;
}

.psq .psq-option.is-selected {
	background: var(--psq-surface);
	box-shadow: inset 0 0 0 2px var(--psq-primary), 0 22px 36px -22px rgba(29, 49, 71, 0.6);
}

.psq-option.is-selected .psq-option-icon {
	background: var(--psq-primary);
	color: #fff;
}

.psq-option.is-selected .psq-option-check {
	transform: scale(1);
}

.psq .psq-option.is-dimmed {
	opacity: 0.5;
}

.psq-option.is-pop .psq-option-icon {
	animation: psq-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes psq-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.22) rotate(8deg); }
	100% { transform: scale(1); }
}

.is-shake {
	animation: psq-shake 0.42s ease;
}

@keyframes psq-shake {
	0%, 100% { translate: 0 0; }
	20% { translate: -6px 0; }
	40% { translate: 6px 0; }
	60% { translate: -4px 0; }
	80% { translate: 4px 0; }
}

.psq-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-top: 30px;
	animation: psq-fade 0.6s ease both 0.4s;
}

.psq-selected-count {
	color: var(--psq-muted);
	font-size: 14px;
}

.psq-selected-count.is-shake {
	color: #b4462d;
}

/* ---------- Analizando ---------- */

.psq-analyzing {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	padding: clamp(40px, 8vw, 90px) 0;
}

.psq-orb {
	position: relative;
	width: 160px;
	height: 160px;
	display: grid;
	place-items: center;
}

.psq-orb::before {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #fff, var(--psq-surface) 40%, var(--psq-accent-soft));
	box-shadow: 0 24px 50px -20px var(--psq-primary);
	animation: psq-breathe 1.6s ease-in-out infinite;
}

@keyframes psq-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.psq-ring {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	transform: rotate(-90deg);
}

.psq-ring circle {
	fill: none;
	stroke-width: 6;
}

.psq-ring-bg {
	stroke: var(--psq-line);
}

.psq-ring-fg {
	stroke: var(--psq-accent);
	stroke-linecap: round;
}

.psq-orb-icon {
	position: relative;
	color: var(--psq-primary);
	font-size: 46px;
	display: grid;
}

.psq-orb-icon.is-in,
.psq-analyzing-text.is-in {
	animation: psq-rise 0.45s var(--psq-ease) both;
}

.psq-percent {
	font-family: var(--psq-font-heading);
	font-size: 34px;
	color: var(--psq-primary);
	font-variant-numeric: tabular-nums;
}

.psq-analyzing-text {
	color: var(--psq-muted);
	font-size: 18px;
	min-height: 1.6em;
}

/* ---------- Resultados ---------- */

.psq-results > * {
	position: relative;
	z-index: 1;
}

.psq-res-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	margin-bottom: clamp(26px, 4vw, 40px);
}

.psq-res-hero > * {
	animation: psq-rise 0.7s var(--psq-ease) both;
}

.psq-res-hero > :nth-child(2) { animation-delay: 0.1s; }
.psq-res-hero > :nth-child(3) { animation-delay: 0.18s; }
.psq-res-hero > :nth-child(4) { animation-delay: 0.26s; }

.psq-res-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: var(--psq-primary);
	color: #fff;
	font-size: 42px;
	box-shadow: 0 20px 40px -18px var(--psq-primary);
}

.psq-res-icon svg {
	position: relative;
	z-index: 1;
}

.psq-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--psq-accent);
	animation: psq-pulse 2.6s var(--psq-ease) infinite;
}

.psq-pulse + .psq-pulse {
	animation-delay: 1.3s;
}

@keyframes psq-pulse {
	from { transform: scale(1); opacity: 0.8; }
	to { transform: scale(1.8); opacity: 0; }
}

.psq-res-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 16px;
	margin-bottom: clamp(30px, 5vw, 48px);
}

.psq-card {
	padding: 24px;
	border-radius: var(--psq-radius);
	background: var(--psq-surface);
	box-shadow: var(--psq-shadow);
	animation: psq-rise 0.7s var(--psq-ease) both 0.3s;
}

.psq .psq-card h4 {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: 17px;
	color: var(--psq-primary);
	margin-bottom: 16px;
	text-transform: none;
	letter-spacing: 0;
}

.psq-priorities ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.psq-priorities li {
	display: flex;
	align-items: center;
	gap: 14px;
	animation: psq-rise 0.6s var(--psq-ease) both;
	animation-delay: calc(var(--i) * 100ms + 0.4s);
}

.psq-prio-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--psq-bg);
	color: var(--psq-primary);
	font-size: 20px;
	flex-shrink: 0;
}

.psq-priorities li:first-child .psq-prio-icon {
	background: var(--psq-primary);
	color: #fff;
}

.psq-prio-body {
	flex: 1;
	min-width: 0;
}

.psq-prio-label {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14.5px;
	margin-bottom: 6px;
}

.psq-prio-label b {
	font-weight: 500;
	color: var(--psq-accent);
}

.psq-prio-track {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: var(--psq-line);
	overflow: hidden;
}

.psq-prio-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--psq-accent), var(--psq-primary));
	transition: width 1.2s var(--psq-ease);
}

.psq-tip {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--psq-primary);
	color: #fff;
	animation-delay: 0.42s;
}

.psq .psq-tip h4 {
	color: #fff;
	margin-bottom: 8px;
}

.psq-tip p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
}

.psq-tip-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--psq-accent);
	color: #fff;
	font-size: 24px;
	flex-shrink: 0;
	animation: psq-glow 2.4s ease-in-out infinite;
}

@keyframes psq-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(194, 150, 72, 0.55); }
	50% { box-shadow: 0 0 0 10px rgba(194, 150, 72, 0); }
}

.psq-routine-head {
	text-align: center;
	margin-bottom: 22px;
}

.psq .psq-routine-head h3 {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: clamp(24px, 3vw, 32px);
	color: var(--psq-primary);
	text-transform: none;
}

.psq-routine-head p {
	color: var(--psq-muted);
	font-size: 14.5px;
	margin-top: 6px;
}

.psq-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.psq-products[data-count="1"],
.psq-products[data-count="2"],
.psq-products[data-count="3"] {
	grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
	justify-content: center;
}

.psq-product {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--psq-radius);
	background: var(--psq-surface);
	box-shadow: inset 0 0 0 1.5px var(--psq-line);
	overflow: hidden;
	cursor: pointer;
	animation: psq-rise 0.6s var(--psq-ease) both;
	animation-delay: calc(var(--i) * 90ms + 0.55s);
	transition: transform 0.3s var(--psq-ease), box-shadow 0.3s var(--psq-ease), opacity 0.3s;
}

@media (hover: hover) {
	.psq-product:hover {
		transform: translateY(-4px);
		box-shadow: inset 0 0 0 1.5px var(--psq-accent), var(--psq-shadow);
	}
}

.psq-product.is-selected {
	box-shadow: inset 0 0 0 2px var(--psq-primary), var(--psq-shadow);
}

.psq-product:not(.is-selected) {
	opacity: 0.6;
}

.psq-product:not(.is-selected) img {
	filter: grayscale(0.7);
}

.psq-product.is-disabled {
	cursor: default;
	opacity: 0.85;
}

.psq-step {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--psq-surface);
	color: var(--psq-primary);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 12px -6px rgba(29, 49, 71, 0.4);
}

.psq-step svg {
	color: var(--psq-accent);
	font-size: 14px;
}

.psq .psq-product-toggle {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--psq-surface);
	color: transparent;
	box-shadow: inset 0 0 0 2px var(--psq-line);
	font-size: 17px;
	transition: background 0.25s, color 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.psq .psq-product-toggle svg {
	stroke-width: 3;
}

.psq .psq-product.is-selected .psq-product-toggle {
	background: var(--psq-primary);
	color: #fff;
	box-shadow: none;
	transform: scale(1.06);
}

.psq-product-img {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--psq-bg);
	overflow: hidden;
}

.psq-product-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--psq-ease), filter 0.3s;
}

@media (hover: hover) {
	.psq-product:hover .psq-product-img img {
		transform: scale(1.06);
	}
}

.psq-product-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 18px;
	flex: 1;
}

.psq .psq-product-name {
	color: var(--psq-primary);
	font-family: var(--psq-font-heading);
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}

.psq .psq-product-name:hover {
	color: var(--psq-accent);
}

.psq-product-price {
	color: var(--psq-accent);
	font-weight: 500;
	font-size: 15px;
}

.psq-product-price del {
	color: var(--psq-muted);
	opacity: 0.7;
	margin-right: 4px;
}

.psq-product-price ins {
	text-decoration: none;
}

.psq .psq-product-more {
	margin-top: auto;
	font-size: 14px;
	color: var(--psq-primary);
	text-decoration: underline;
	text-decoration-color: var(--psq-accent);
	text-underline-offset: 3px;
}

.psq-cartbar {
	position: sticky;
	bottom: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
	padding: 14px 14px 14px 26px;
	border-radius: 18px;
	background: var(--psq-primary);
	color: #fff;
	box-shadow: 0 24px 50px -20px rgba(20, 35, 52, 0.7);
	animation: psq-rise 0.7s var(--psq-ease) both 0.9s;
}

.psq-total {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.psq-total small {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

.psq-total strong {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: 22px;
	color: #fff;
}

.psq-total strong.is-bump {
	animation: psq-pop 0.4s ease;
	display: inline-block;
	transform-origin: left center;
}

.psq .psq-add.is-loading {
	color: transparent;
	pointer-events: none;
}

.psq .psq-add.is-loading::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	animation: psq-spin 0.7s linear infinite;
}

@keyframes psq-spin {
	to { transform: rotate(360deg); }
}

.psq-cartbar.is-done > .psq-total,
.psq-cartbar.is-done > .psq-add {
	display: none;
}

.psq-added {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	flex-wrap: wrap;
	animation: psq-rise 0.5s var(--psq-ease) both;
}

.psq-added-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--psq-accent);
	color: #fff;
	font-size: 22px;
	flex-shrink: 0;
	animation: psq-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.1s;
}

.psq-added-icon svg {
	stroke-width: 3;
}

.psq-added-text {
	flex: 1;
	min-width: 180px;
	display: flex;
	flex-direction: column;
}

.psq-added-text strong {
	font-family: var(--psq-font-heading);
	font-weight: normal;
	font-size: 17px;
}

.psq-added-text small {
	color: rgba(255, 255, 255, 0.75);
}

.psq-added-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.psq-cartbar .psq-btn-primary,
.psq-cartbar .psq-btn-primary:hover,
.psq-cartbar .psq-btn-primary:focus {
	background: var(--psq-accent);
	box-shadow: none;
}

.psq-cartbar .psq-btn-ghost,
.psq-cartbar .psq-btn-ghost:hover {
	color: #fff;
}

.psq-cartbar .psq-btn {
	padding: 13px 20px;
}

.psq-confetti {
	position: absolute;
	left: 50%;
	top: 50%;
	pointer-events: none;
	z-index: 6;
}

.psq-confetti i {
	position: absolute;
	width: 8px;
	height: 12px;
	border-radius: 2px;
	animation: psq-confetti 1.1s cubic-bezier(0.15, 0.8, 0.35, 1) forwards;
}

.psq-confetti i:nth-child(3n) {
	border-radius: 50%;
	width: 8px;
	height: 8px;
}

@keyframes psq-confetti {
	0% { transform: translate(0, 0) rotate(0) scale(0.4); opacity: 1; }
	70% { opacity: 1; }
	100% { transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); opacity: 0; }
}

.psq-error {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fbeae6;
	color: #9c3a24;
	text-align: center;
	font-size: 14.5px;
}

.psq-empty {
	text-align: center;
	color: var(--psq-muted);
	padding: 20px;
}

.psq-res-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	text-align: center;
}

.psq-disclaimer {
	color: var(--psq-muted);
	font-size: 13px;
	opacity: 0.85;
}

.psq-noscript {
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.psq {
		border-radius: 20px;
		padding: 22px 16px;
	}
}

@container psq (max-width: 860px) {
	.psq-options[data-count="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.psq-options[data-count="8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psq-res-grid { grid-template-columns: 1fr; }
	.psq-floater-5,
	.psq-floater-6 { display: none; }
}

@container psq (max-width: 520px) {
	.psq-floaters { opacity: 0.55; }
	.psq-floater { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
	.psq-floater-1 { top: 2%; left: 2%; }
	.psq-floater-2 { top: 3%; right: 3%; }
	.psq-floater-3,
	.psq-floater-4 { display: none; }

	.psq-intro { padding-top: 48px; }

	.psq-options,
	.psq-options[data-count] {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.psq .psq-option {
		flex-direction: row;
		text-align: left;
		padding: 14px 52px 14px 14px;
		gap: 14px;
	}

	.psq-option-icon {
		width: 48px;
		height: 48px;
		font-size: 22px;
		flex-shrink: 0;
	}

	.psq-option-check {
		top: 50%;
		right: 16px;
		margin-top: -13px;
	}

	.psq .psq-option:not(.is-selected) .psq-option-check {
		transform: scale(1);
		background: transparent;
		color: transparent;
		box-shadow: inset 0 0 0 2px var(--psq-line);
	}

	/* 8 opciones de selección múltiple: dos columnas compactas. */
	.psq-options[data-count="8"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.psq-options[data-count="8"] .psq-option {
		flex-direction: column;
		text-align: center;
		padding: 16px 10px 14px;
		gap: 10px;
	}

	.psq-options[data-count="8"] .psq-option-check {
		top: 8px;
		right: 8px;
		margin-top: 0;
		width: 22px;
		height: 22px;
		font-size: 13px;
	}

	.psq-options[data-count="8"] .psq-option-text strong {
		font-size: 14px;
	}

	.psq-products,
	.psq-products[data-count] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.psq-products[data-count="1"] {
		grid-template-columns: minmax(0, 260px);
	}

	.psq-step {
		font-size: 11px;
		padding: 4px 9px;
		top: 8px;
		left: 8px;
	}

	.psq .psq-product-toggle {
		width: 28px;
		height: 28px;
		top: 8px;
		right: 8px;
	}

	.psq-product-body {
		padding: 12px;
	}

	.psq .psq-product-name {
		font-size: 14px;
	}

	.psq-cartbar {
		bottom: 10px;
		padding: 12px;
		gap: 10px;
		flex-wrap: wrap;
	}

	.psq-cartbar .psq-total {
		padding-left: 6px;
	}

	.psq-cartbar .psq-add {
		flex: 1;
		white-space: normal;
		text-align: center;
	}

	.psq-added-links {
		width: 100%;
	}

	.psq-added-links .psq-btn {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psq *,
	.psq *::before,
	.psq *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
	}
}
