/**
 * Página de acceso de clientes (/acceder/).
 *
 * A la izquierda el formulario (cristal oscuro con pestañas), a la derecha una escena 3D
 * hecha solo con CSS: un portal con tarjetas, claves y monedas en órbita. En el móvil la
 * escena pasa a ser una cabecera corta. Sin movimiento si el sistema lo pide.
 */

:root {
	--a-bg: #07071a;
	--a-bg-2: #0c0c24;
	--a-line: rgba(255, 255, 255, 0.08);
	--a-line-2: rgba(255, 255, 255, 0.12);
	--a-line-3: rgba(169, 150, 247, 0.22);
	--a-text: #f5f5f8;
	--a-muted: #b4b5c8;
	--a-subtle: #8a8ba4;
	--a-violet: #6438ee;
	--a-violet-2: #7c5cf5;
	--a-violet-3: #9a7bff;
	--a-lavender: #c9bdfb;
	--a-ok: #34d399;
	--a-bad: #fb7185;
	--a-warn: #fbbf24;
	--a-gold: #f6c75a;
	--a-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--a-head: "Estedad", "Inter", system-ui, sans-serif;
	--a-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--a-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Escena: tamaño de las tarjetas y radio de la órbita. */
	--cw: 128px;
	--ch: 192px;
	--r: 250px;
	color-scheme: dark;
}

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

[hidden] {
	display: none !important;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body.wdsa {
	background: var(--a-bg);
	color: var(--a-text);
	font-family: var(--a-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wdsa a {
	color: var(--a-lavender);
}

.wdsa-icon {
	flex: none;
	display: block;
}

.wdsa-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 20;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	color: #0b0920 !important;
	font-weight: 600;
	text-decoration: none;
}

.wdsa-skip:focus {
	top: 12px;
}

:where(.wdsa a, .wdsa button, .wdsa input):focus-visible {
	outline: 2px solid var(--a-lavender);
	outline-offset: 3px;
}

/* 1. Marco ---------------------------------------------------------------- */
.wdsa-shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(400px, 540px) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
}

.wdsa-main {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 28px clamp(24px, 4vw, 56px) 24px;
	background:
		radial-gradient(90% 60% at 0% 0%, rgba(100, 56, 238, 0.16), transparent 60%),
		radial-gradient(70% 50% at 100% 100%, rgba(124, 92, 245, 0.08), transparent 60%),
		var(--a-bg);
}

.wdsa-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wdsa-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.wdsa-logo__img {
	display: block;
	width: auto;
	height: 30px;
	max-width: 200px;
	object-fit: contain;
}

.wdsa .wdsa-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--a-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--a-muted);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.wdsa .wdsa-back:hover {
	border-color: var(--a-line-3);
	background: rgba(124, 92, 245, 0.1);
	color: #fff;
}

.wdsa-back .wdsa-icon {
	transition: transform 0.3s var(--a-ease);
}

.wdsa-back:hover .wdsa-icon {
	transform: translateX(-3px);
}

/* 2. Tarjeta del formulario ------------------------------------------------- */
.wdsa-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 30px 30px 28px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(30, 27, 62, 0.78), rgba(15, 15, 36, 0.86));
	box-shadow:
		0 40px 90px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.07),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transform-origin: 50% 100%;
	animation: wdsa-card-in 0.9s var(--a-ease) both;
}

/* Borde que se ilumina donde está el puntero. */
.wdsa-card__spot {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 150, 247, 0.7), rgba(124, 92, 245, 0.15) 45%, transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.wdsa-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 245, 0.1), transparent 60%);
	pointer-events: none;
}

.wdsa-card.is-shake {
	animation: wdsa-shake 0.45s var(--a-ease);
}

/* Pestañas con píldora deslizante. */
.wdsa-tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 26px;
	padding: 5px;
	border: 1px solid var(--a-line);
	border-radius: 15px;
	background: rgba(4, 4, 18, 0.45);
}

.wdsa-tabs__pill {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: 11px;
	background: linear-gradient(135deg, var(--a-violet), var(--a-violet-2));
	box-shadow: 0 10px 26px rgba(100, 56, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition: transform 0.55s var(--a-spring);
}

body[data-mode="registro"] .wdsa-tabs__pill {
	transform: translateX(100%);
}

body[data-mode="recuperar"] .wdsa-tabs,
body[data-mode="nueva-clave"] .wdsa-tabs {
	display: none;
}

.wdsa .wdsa-tab {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	height: 42px;
	border-radius: 11px;
	color: var(--a-muted);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s;
}

.wdsa .wdsa-tab:hover {
	color: #fff;
}

.wdsa .wdsa-tab[aria-current="page"] {
	color: #fff;
}

/* Cada formulario entra con un pequeño giro. */
.wdsa-panel {
	animation: wdsa-panel-in 0.55s var(--a-ease) both;
}

.wdsa-title {
	margin: 0;
	color: #fff;
	font-family: var(--a-head);
	font-size: clamp(25px, 2.4vw, 31px);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.wdsa-title:focus {
	outline: none;
}

.wdsa-lead {
	margin: 8px 0 18px;
	color: var(--a-muted);
	font-size: 14.5px;
}

.wdsa .wdsa-step-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	color: var(--a-muted);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
}

.wdsa .wdsa-step-back:hover {
	color: #fff;
}

.wdsa-sent {
	text-align: center;
}

.wdsa-sent__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 4px auto 16px;
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(124, 92, 245, 0.35), rgba(100, 56, 238, 0.1));
	box-shadow: inset 0 0 0 1px var(--a-line-3), 0 14px 34px rgba(100, 56, 238, 0.3);
	color: var(--a-lavender);
	animation: wdsa-float 4s ease-in-out infinite;
}

.wdsa-panel[data-wdsa-panel="nueva-clave"] .wdsa-sent__icon {
	margin-left: 0;
}

/* 3. Campos con etiqueta flotante ---------------------------------------- */
.wdsa-form {
	margin: 0;
}

.wdsa-field {
	position: relative;
	margin-top: 14px;
}

.wdsa-input {
	display: block;
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 22px 16px 6px 48px;
	border: 1px solid var(--a-line-3);
	border-radius: 14px;
	background: rgba(6, 6, 22, 0.55);
	color: #fff;
	font: inherit;
	font-size: 16px; /* 16 px: el iPhone no amplía la página al escribir. */
	outline: none;
	transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.wdsa-field--password .wdsa-input {
	padding-right: 54px;
}

.wdsa-input:hover {
	border-color: rgba(169, 150, 247, 0.38);
}

.wdsa-input:focus {
	border-color: var(--a-violet-2);
	background: rgba(10, 10, 30, 0.82);
	box-shadow: 0 0 0 4px rgba(124, 92, 245, 0.22);
}

.wdsa-input:focus-visible {
	outline: none;
}

.wdsa-input:-webkit-autofill,
.wdsa-input:-webkit-autofill:hover,
.wdsa-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	-webkit-box-shadow: 0 0 0 100px #121130 inset;
	caret-color: #fff;
	transition: background-color 9999s;
}

.wdsa-label {
	position: absolute;
	left: 48px;
	top: 29px;
	max-width: calc(100% - 100px);
	overflow: hidden;
	color: var(--a-subtle);
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
	transform: translateY(-50%);
	transform-origin: 0 50%;
	pointer-events: none;
	transition: top 0.25s var(--a-ease), font-size 0.25s var(--a-ease), color 0.25s, letter-spacing 0.25s;
}

.wdsa-input:focus + .wdsa-label,
.wdsa-input:not(:placeholder-shown) + .wdsa-label,
.wdsa-input:-webkit-autofill + .wdsa-label {
	top: 18px;
	color: var(--a-lavender);
	font-size: 11.5px;
	letter-spacing: 0.02em;
}

.wdsa-field__icon {
	position: absolute;
	left: 16px;
	top: 29px;
	color: var(--a-subtle);
	transform: translateY(-50%);
	transition: color 0.25s, transform 0.3s var(--a-spring);
	pointer-events: none;
}

.wdsa-field:focus-within .wdsa-field__icon {
	color: var(--a-lavender);
	transform: translateY(-50%) scale(1.08);
}

.wdsa-reveal {
	position: absolute;
	right: 8px;
	top: 9px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--a-subtle);
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.wdsa-reveal:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.wdsa-reveal[aria-pressed="true"] {
	color: var(--a-lavender);
}

.wdsa-reveal[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	top: 50%;
	height: 1.8px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(-38deg);
}

.wdsa-input[aria-invalid="true"] {
	border-color: var(--a-bad);
	box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.wdsa-input[aria-invalid="true"] + .wdsa-label {
	color: #fda4af;
}

.wdsa-field.is-shake {
	animation: wdsa-shake 0.45s var(--a-ease);
}

.wdsa-error,
.wdsa-help,
.wdsa-caps {
	margin: 7px 2px 0;
	font-size: 12.5px;
	line-height: 1.4;
}

.wdsa-error {
	color: #fda4af;
	animation: wdsa-drop 0.3s var(--a-ease) both;
}

.wdsa-help {
	color: var(--a-subtle);
}

.wdsa-caps {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--a-warn);
}

/* Seguridad de la contraseña. */
.wdsa-meter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 9px 2px 0;
}

.wdsa-meter__bars {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(4, 1fr);
	gap: 5px;
}

.wdsa-meter__bars i {
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.35s, transform 0.35s var(--a-spring);
}

.wdsa-meter__text {
	min-width: 72px;
	color: var(--a-subtle);
	font-size: 12px;
	font-weight: 600;
	text-align: right;
}

.wdsa-meter[data-score="1"] .wdsa-meter__bars i:nth-child(-n+1) {
	background: var(--a-bad);
}

.wdsa-meter[data-score="2"] .wdsa-meter__bars i:nth-child(-n+2) {
	background: #fb923c;
}

.wdsa-meter[data-score="3"] .wdsa-meter__bars i:nth-child(-n+3) {
	background: #a3e635;
}

.wdsa-meter[data-score="4"] .wdsa-meter__bars i {
	background: var(--a-ok);
}

.wdsa-meter[data-score="1"] .wdsa-meter__text {
	color: var(--a-bad);
}

.wdsa-meter[data-score="2"] .wdsa-meter__text {
	color: #fb923c;
}

.wdsa-meter[data-score="3"] .wdsa-meter__text {
	color: #a3e635;
}

.wdsa-meter[data-score="4"] .wdsa-meter__text {
	color: var(--a-ok);
}

/* Recordarme y ¿olvidaste…? */
.wdsa-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 16px;
}

.wdsa-check {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--a-muted);
	font-size: 14px;
	cursor: pointer;
	user-select: none;
}

.wdsa-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.wdsa-check__box {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid var(--a-line-3);
	border-radius: 6px;
	background: rgba(6, 6, 22, 0.55);
	color: transparent;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--a-spring);
}

.wdsa-check input:checked + .wdsa-check__box {
	border-color: var(--a-violet-2);
	background: var(--a-violet-2);
	color: #fff;
	transform: scale(1.06);
}

.wdsa-check input:focus-visible + .wdsa-check__box {
	outline: 2px solid var(--a-lavender);
	outline-offset: 2px;
}

.wdsa .wdsa-link {
	color: var(--a-lavender);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wdsa .wdsa-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 4. Botón principal -------------------------------------------------------- */
.wdsa .wdsa-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin-top: 22px;
	padding: 0 20px;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #6a3ff1 0%, var(--a-violet-2) 50%, var(--a-violet-3) 100%);
	box-shadow: 0 16px 36px rgba(100, 56, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	color: #fff;
	font: 650 15.5px/1 var(--a-font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--a-ease), box-shadow 0.25s, filter 0.2s;
}

.wdsa-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.9s var(--a-ease);
	pointer-events: none;
}

.wdsa-btn:hover {
	box-shadow: 0 20px 44px rgba(100, 56, 238, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.wdsa-btn:hover::after {
	transform: translateX(120%);
}

.wdsa-btn:active {
	transform: translateY(0) scale(0.99);
}

.wdsa-btn .wdsa-icon {
	transition: transform 0.3s var(--a-spring), opacity 0.2s;
}

.wdsa-btn:hover .wdsa-icon {
	transform: translateX(4px);
}

.wdsa-btn__label {
	transition: opacity 0.2s;
}

.wdsa-btn__spin {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
}

.wdsa-btn.is-loading {
	pointer-events: none;
}

.wdsa-btn.is-loading .wdsa-btn__label,
.wdsa-btn.is-loading .wdsa-icon {
	opacity: 0;
}

.wdsa-btn.is-loading .wdsa-btn__spin {
	opacity: 1;
	animation: wdsa-spin 0.8s linear infinite;
}

.wdsa .wdsa-btn--ghost {
	background: rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 0 0 1px var(--a-line-3);
}

.wdsa .wdsa-btn--ghost:hover {
	background: rgba(124, 92, 245, 0.16);
	box-shadow: inset 0 0 0 1px rgba(169, 150, 247, 0.45);
}

.wdsa-alt {
	margin: 20px 0 0;
	color: var(--a-muted);
	font-size: 14px;
	text-align: center;
}

.wdsa .wdsa-alt a {
	font-weight: 600;
	text-decoration: none;
}

.wdsa .wdsa-alt a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 5. Avisos (WooCommerce y propios) ---------------------------------------- */
.wdsa-notices:empty {
	display: none;
}

.wdsa-flash,
.wdsa-notices .woocommerce-error,
.wdsa-notices .woocommerce-message,
.wdsa-notices .woocommerce-info,
.wdsa-notices .wc-block-components-notice-banner {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 8px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
	animation: wdsa-drop 0.35s var(--a-ease) both;
}

.wdsa-flash {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.wdsa-flash .wdsa-icon {
	margin-top: 1px;
}

.wdsa-notices .woocommerce-error,
.wdsa-notices .wc-block-components-notice-banner.is-error {
	border: 1px solid rgba(251, 113, 133, 0.35);
	background: rgba(251, 113, 133, 0.1);
	color: #fecdd3;
}

.wdsa-flash--ok,
.wdsa-notices .woocommerce-message,
.wdsa-notices .wc-block-components-notice-banner.is-success {
	border: 1px solid rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.1);
	color: #bbf7d0;
}

.wdsa-flash--warn,
.wdsa-notices .woocommerce-info,
.wdsa-notices .wc-block-components-notice-banner.is-info {
	border: 1px solid rgba(251, 191, 36, 0.32);
	background: rgba(251, 191, 36, 0.09);
	color: #fde68a;
}

.wdsa-notices li {
	margin: 0;
	padding: 0;
}

.wdsa-notices .wc-block-components-notice-banner > svg {
	display: none;
}

.wdsa-notices a {
	color: #fff;
	font-weight: 600;
}

.wdsa-notices .button {
	display: none;
}

/* Lo que añaden otros plugins o WooCommerce al registro (privacidad, casillas…). */
.wdsa-form .woocommerce-privacy-policy-text p,
.wdsa-form .woocommerce-privacy-policy-text {
	margin: 14px 2px 0;
	color: var(--a-subtle);
	font-size: 12.5px;
	line-height: 1.5;
}

.wdsa-form .form-row {
	margin: 14px 0 0;
	padding: 0;
	color: var(--a-muted);
	font-size: 14px;
}

.wdsa-form .form-row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wdsa-form .form-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--a-violet-2);
}

/* 6. Pie -------------------------------------------------------------------- */
.wdsa-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	color: var(--a-subtle);
	font-size: 13px;
}

.wdsa .wdsa-foot a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--a-subtle);
	text-decoration: none;
	transition: color 0.2s;
}

.wdsa .wdsa-foot a:hover {
	color: #fff;
}

/* 7. Escena 3D ---------------------------------------------------------------- */
.wdsa-scene {
	position: relative;
	overflow: hidden;
	border-left: 1px solid rgba(124, 92, 245, 0.18);
	background: radial-gradient(120% 80% at 60% 35%, #1b1446 0%, #0c0a28 48%, #06061a 100%);
	isolation: isolate;
}

.wdsa-scene::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(5, 5, 20, 0.92) 0%, rgba(5, 5, 20, 0.4) 28%, transparent 48%);
	pointer-events: none;
}

.wdsa-aurora span {
	position: absolute;
	border-radius: 50%;
	opacity: 0.6;
	filter: blur(60px);
	mix-blend-mode: screen;
	animation: wdsa-drift 20s ease-in-out infinite alternate;
}

.wdsa-aurora span:nth-child(1) {
	left: -12%;
	top: -18%;
	width: 60%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(100, 56, 238, 0.85) 0%, transparent 65%);
}

.wdsa-aurora span:nth-child(2) {
	right: -15%;
	top: 15%;
	width: 52%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(56, 108, 255, 0.45) 0%, transparent 65%);
	animation-duration: 24s;
	animation-delay: -6s;
}

.wdsa-aurora span:nth-child(3) {
	left: 18%;
	bottom: -22%;
	width: 62%;
	aspect-ratio: 1.3;
	background: radial-gradient(circle, rgba(192, 77, 255, 0.45) 0%, transparent 65%);
	animation-duration: 28s;
	animation-delay: -12s;
}

/* Suelo de rejilla que avanza hacia el portal. */
.wdsa-floor {
	position: absolute;
	left: 50%;
	bottom: -8%;
	width: 170%;
	height: 52%;
	background-image:
		linear-gradient(rgba(140, 110, 255, 0.28) 1px, transparent 1px),
		linear-gradient(90deg, rgba(140, 110, 255, 0.28) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000 0%, transparent 75%);
	transform: translateX(-50%) perspective(500px) rotateX(68deg);
	transform-origin: 50% 0;
	animation: wdsa-floor 5s linear infinite;
}

.wdsa-grain {
	position: absolute;
	inset: 0;
	z-index: 3;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
	pointer-events: none;
}

.wdsa-stage {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	padding-bottom: 14vh;
	perspective: 1100px;
	perspective-origin: 50% 38%;
}

.wdsa-tilt {
	position: relative;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	transform: rotateX(calc(-11deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg));
}

/* Portal del centro (cerradura) con anillos que giran. */
.wdsa-portal {
	position: absolute;
	left: -84px;
	top: -84px;
	width: 168px;
	height: 168px;
	transform-style: preserve-3d;
}

.wdsa-portal__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}

.wdsa-portal__ring--a {
	border: 1.5px dashed rgba(201, 189, 251, 0.5);
	animation: wdsa-spin 26s linear infinite;
}

.wdsa-portal__ring--b {
	inset: 16px;
	background: conic-gradient(from 0deg, transparent 0 15%, rgba(169, 150, 247, 0.9) 25%, transparent 40% 60%, rgba(124, 92, 245, 0.9) 75%, transparent 90%);
	-webkit-mask: radial-gradient(circle, transparent 62%, #000 63% 66%, transparent 67%);
	mask: radial-gradient(circle, transparent 62%, #000 63% 66%, transparent 67%);
	animation: wdsa-spin 9s linear infinite reverse;
}

.wdsa-portal__ring--c {
	inset: 30px;
	box-shadow: 0 0 40px rgba(124, 92, 245, 0.6), inset 0 0 26px rgba(169, 150, 247, 0.45);
	animation: wdsa-pulse 4s ease-in-out infinite;
}

.wdsa-portal__core {
	position: absolute;
	inset: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #d9cffd 0%, #8f6dff 38%, #5a2fe6 66%, #2a1572 100%);
	box-shadow: 0 0 70px rgba(124, 92, 245, 0.85), inset 0 -8px 18px rgba(16, 6, 60, 0.55), inset 0 6px 12px rgba(255, 255, 255, 0.35);
	color: #140b3d;
}

.wdsa-portal__core svg {
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}

/* Órbita de tarjetas. */
.wdsa-ring {
	position: absolute;
	left: 0;
	top: 0;
	transform-style: preserve-3d;
	animation: wdsa-orbit 42s linear infinite;
}

.wdsa-slot {
	position: absolute;
	left: calc(var(--cw) / -2);
	top: calc(var(--ch) / -2);
	width: var(--cw);
	height: var(--ch);
	transform-style: preserve-3d;
	transform: rotateY(calc(var(--i) * 60deg)) translateZ(var(--r));
}

.wdsa-c3d {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	animation: wdsa-bob 6s ease-in-out infinite;
	animation-delay: calc(var(--i) * -1s);
}

.wdsa-c3d__front,
.wdsa-c3d__back {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.wdsa-c3d__front {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px;
}

.wdsa-c3d__front img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wdsa-c3d__back {
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(135deg, rgba(169, 150, 247, 0.07) 0 8px, transparent 8px 16px),
		linear-gradient(160deg, #2b1f72, #120f36);
	color: rgba(201, 189, 251, 0.4);
	font: 800 30px/1 var(--a-head);
	letter-spacing: 0.04em;
	transform: rotateY(180deg);
}

.wdsa-c3d--gift .wdsa-c3d__front {
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
		linear-gradient(155deg, #8b6bff 0%, #5a2fe6 52%, #23125e 100%);
}

.wdsa-c3d--key .wdsa-c3d__front {
	background: linear-gradient(165deg, #1b1a44 0%, #0e0d29 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(169, 150, 247, 0.4);
}

.wdsa-c3d--premium .wdsa-c3d__front {
	background:
		radial-gradient(90% 60% at 50% 20%, rgba(246, 199, 90, 0.28), transparent 65%),
		linear-gradient(160deg, #2e1f63 0%, #150f36 100%);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(246, 199, 90, 0.4);
}

.wdsa-c3d__chip {
	position: absolute;
	left: 14px;
	top: 16px;
	width: 30px;
	height: 22px;
	border-radius: 5px;
	background: linear-gradient(135deg, #ffe8a3, #e2a83a);
	box-shadow: inset 0 0 0 1px rgba(120, 70, 0, 0.35);
}

.wdsa-c3d__brand {
	position: absolute;
	right: 14px;
	top: 12px;
	color: rgba(255, 255, 255, 0.92);
	font: 800 22px/1 var(--a-head);
	letter-spacing: 0.02em;
}

.wdsa-c3d__glyph {
	position: absolute;
	left: 50%;
	top: 40%;
	color: var(--a-lavender);
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 0 12px rgba(169, 150, 247, 0.7));
}

.wdsa-c3d--premium .wdsa-c3d__glyph {
	color: var(--a-gold);
	filter: drop-shadow(0 0 12px rgba(246, 199, 90, 0.6));
}

.wdsa-c3d__code {
	padding: 5px 6px;
	border: 1px dashed rgba(169, 150, 247, 0.5);
	border-radius: 6px;
	color: var(--a-lavender);
	font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: center;
	letter-spacing: 0.06em;
}

.wdsa-c3d__name {
	position: relative;
	color: #fff;
	font: 700 13px/1.2 var(--a-head);
}

.wdsa-c3d__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.24) 48%, transparent 60%);
	transform: translateX(-110%);
	animation: wdsa-shine 7s ease-in-out infinite;
	animation-delay: calc(var(--i) * 1.15s);
	pointer-events: none;
}

/* Monedas y llaves flotando. */
.wdsa-coin {
	position: absolute;
	left: -26px;
	top: -26px;
	width: 52px;
	height: 52px;
	transform-style: preserve-3d;
	animation: wdsa-coin 6s linear infinite;
}

.wdsa-coin i,
.wdsa-coin b {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}

.wdsa-coin i {
	background: #9a6510;
	transform: translateZ(-4px);
}

.wdsa-coin b {
	display: grid;
	place-items: center;
	border: 3px solid #ffd977;
	background: radial-gradient(circle at 35% 30%, #fff1c2 0%, #f5c04a 45%, #c58516 100%);
	box-shadow: inset 0 -3px 6px rgba(110, 60, 0, 0.35), 0 0 22px rgba(246, 199, 90, 0.35);
	color: #8a560a;
	font: 800 20px/1 var(--a-head);
}

.wdsa-coin--a {
	translate: -270px -150px 120px;
}

.wdsa-coin--b {
	translate: 250px -190px -60px;
	scale: 0.8;
	animation-duration: 7.5s;
	animation-delay: -2s;
}

.wdsa-coin--c {
	translate: 210px 150px 170px;
	scale: 0.9;
	animation-duration: 5.2s;
	animation-delay: -4s;
}

.wdsa-float-key {
	position: absolute;
	left: -17px;
	top: -17px;
	color: var(--a-lavender);
	filter: drop-shadow(0 0 14px rgba(169, 150, 247, 0.8));
	animation: wdsa-key 7s ease-in-out infinite;
}

.wdsa-float-key--a {
	translate: -230px 160px 60px;
}

.wdsa-float-key--b {
	translate: 300px 20px -140px;
	opacity: 0.75;
	animation-duration: 9s;
	animation-delay: -3s;
}

/* Chispas que suben. */
.wdsa-sparks {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.wdsa-sparks i {
	position: absolute;
	bottom: -10px;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #d9cffd;
	box-shadow: 0 0 10px 1px rgba(169, 150, 247, 0.9);
	opacity: 0;
	animation: wdsa-rise 10s linear infinite;
}

.wdsa-sparks i:nth-child(1) { left: 8%; animation-delay: 0s; }
.wdsa-sparks i:nth-child(2) { left: 17%; animation-delay: -3s; animation-duration: 12s; }
.wdsa-sparks i:nth-child(3) { left: 26%; animation-delay: -6s; }
.wdsa-sparks i:nth-child(4) { left: 34%; animation-delay: -1.5s; animation-duration: 13s; }
.wdsa-sparks i:nth-child(5) { left: 43%; animation-delay: -8s; }
.wdsa-sparks i:nth-child(6) { left: 51%; animation-delay: -4.5s; animation-duration: 11s; }
.wdsa-sparks i:nth-child(7) { left: 59%; animation-delay: -2s; }
.wdsa-sparks i:nth-child(8) { left: 66%; animation-delay: -7s; animation-duration: 14s; }
.wdsa-sparks i:nth-child(9) { left: 74%; animation-delay: -5s; }
.wdsa-sparks i:nth-child(10) { left: 82%; animation-delay: -9s; animation-duration: 12s; }
.wdsa-sparks i:nth-child(11) { left: 89%; animation-delay: -0.5s; }
.wdsa-sparks i:nth-child(12) { left: 95%; animation-delay: -6.5s; animation-duration: 13s; }

/* Texto de la escena. */
.wdsa-claim {
	position: absolute;
	left: clamp(28px, 4vw, 64px);
	right: clamp(28px, 4vw, 64px);
	bottom: clamp(28px, 5.5vh, 56px);
	z-index: 4;
	max-width: 560px;
	animation: wdsa-panel-in 1s var(--a-ease) 0.3s both;
}

.wdsa-claim__kicker {
	display: inline-flex;
	margin: 0 0 10px;
	padding: 5px 10px;
	border: 1px solid rgba(169, 150, 247, 0.3);
	border-radius: 999px;
	background: rgba(124, 92, 245, 0.12);
	color: var(--a-lavender);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wdsa-claim__big {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--a-head);
	font-size: clamp(24px, 2.3vw, 34px);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.wdsa-claim__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wdsa-claim__list li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--a-muted);
	font-size: 14px;
}

.wdsa-claim__list .wdsa-icon {
	color: var(--a-lavender);
}

/* 8. Animaciones -------------------------------------------------------------- */
@keyframes wdsa-card-in {
	from {
		opacity: 0;
		transform: perspective(900px) translateY(26px) rotateX(10deg);
	}
}

@keyframes wdsa-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@keyframes wdsa-drop {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

@keyframes wdsa-shake {
	20%,
	60% {
		transform: translateX(-6px);
	}

	40%,
	80% {
		transform: translateX(6px);
	}
}

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

@keyframes wdsa-pulse {
	50% {
		box-shadow: 0 0 60px rgba(124, 92, 245, 0.85), inset 0 0 34px rgba(169, 150, 247, 0.6);
		transform: scale(1.04);
	}
}

@keyframes wdsa-orbit {
	to {
		transform: rotateY(-360deg);
	}
}

@keyframes wdsa-bob {
	50% {
		transform: translateY(-14px);
	}
}

@keyframes wdsa-shine {
	0%,
	62% {
		transform: translateX(-110%);
	}

	80%,
	100% {
		transform: translateX(110%);
	}
}

@keyframes wdsa-coin {
	from {
		rotate: y 0deg;
	}

	to {
		rotate: y 360deg;
	}
}

@keyframes wdsa-key {
	50% {
		transform: translateY(-16px) rotate(-14deg);
	}
}

@keyframes wdsa-float {
	50% {
		transform: translateY(-5px);
	}
}

@keyframes wdsa-rise {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	12% {
		opacity: 0.9;
	}

	80% {
		opacity: 0.6;
	}

	100% {
		opacity: 0;
		transform: translateY(-92vh);
	}
}

@keyframes wdsa-drift {
	to {
		transform: translate3d(6%, 8%, 0) scale(1.12);
	}
}

@keyframes wdsa-floor {
	to {
		background-position: 0 54px;
	}
}

/* Pestaña oculta: la escena se detiene. */
.wdsa-paused .wdsa-scene *,
.wdsa-paused .wdsa-scene *::before,
.wdsa-paused .wdsa-scene *::after {
	animation-play-state: paused !important;
}

/* 9. Pantallas medianas y móvil ---------------------------------------------- */
@media (max-width: 1180px) {
	:root {
		--cw: 112px;
		--ch: 168px;
		--r: 210px;
	}

	.wdsa-coin--a {
		translate: -220px -140px 110px;
	}

	.wdsa-coin--b {
		translate: 200px -170px -60px;
	}

	.wdsa-float-key--b {
		translate: 240px 20px -140px;
	}
}

@media (max-height: 760px) and (min-width: 901px) {
	:root {
		--cw: 104px;
		--ch: 156px;
		--r: 200px;
	}

	.wdsa-claim__list {
		display: none;
	}
}

@media (max-width: 900px) {
	:root {
		--cw: 66px;
		--ch: 99px;
		--r: 128px;
	}

	.wdsa-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.wdsa-scene {
		order: -1;
		height: 250px;
		border-bottom: 1px solid rgba(124, 92, 245, 0.18);
		border-left: 0;
	}

	.wdsa-scene::after {
		background: linear-gradient(to top, var(--a-bg) 0%, rgba(7, 7, 26, 0.5) 30%, transparent 60%);
	}

	.wdsa-stage {
		padding-bottom: 0;
		perspective: 700px;
		perspective-origin: 50% 30%;
	}

	.wdsa-tilt {
		margin-top: -6px;
	}

	.wdsa-portal {
		left: -48px;
		top: -48px;
		width: 96px;
		height: 96px;
	}

	.wdsa-portal__ring--b {
		inset: 9px;
	}

	.wdsa-portal__ring--c {
		inset: 17px;
	}

	.wdsa-portal__core {
		inset: 27px;
	}

	.wdsa-portal__core svg {
		width: 22px;
		height: 22px;
	}

	.wdsa-c3d__front {
		padding: 8px;
	}

	.wdsa-c3d__name,
	.wdsa-c3d__code,
	.wdsa-c3d__brand,
	.wdsa-c3d__chip {
		display: none;
	}

	.wdsa-c3d__glyph .wdsa-icon {
		width: 26px;
		height: 26px;
	}

	.wdsa-c3d__back {
		font-size: 18px;
	}

	.wdsa-coin {
		left: -15px;
		top: -15px;
		width: 30px;
		height: 30px;
	}

	.wdsa-coin b {
		border-width: 2px;
		font-size: 12px;
	}

	.wdsa-coin--a {
		translate: -150px -10px 60px;
	}

	.wdsa-coin--b {
		translate: 150px -30px -40px;
	}

	.wdsa-coin--c {
		translate: 130px 60px 80px;
	}

	.wdsa-float-key--a {
		translate: -140px 60px 40px;
	}

	.wdsa-float-key--b {
		display: none;
	}

	.wdsa-claim {
		display: none;
	}

	.wdsa-top {
		position: absolute;
		left: 16px;
		right: 16px;
		top: 14px;
		z-index: 5;
	}

	.wdsa-logo__img {
		height: 24px;
	}

	.wdsa .wdsa-back {
		padding: 7px 10px;
		background: rgba(7, 7, 26, 0.55);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		font-size: 12.5px;
	}

	/* La barra del logo va sobre la escena: se coloca respecto a toda la página. */
	.wdsa-main {
		position: static;
		gap: 20px;
		margin-top: -64px;
		padding: 0 16px 20px;
		background: none;
	}

	.wdsa-card {
		z-index: 3;
		max-width: 480px;
		margin: 0 auto;
		padding: 22px 18px 22px;
		border-radius: 20px;
	}

	.wdsa-foot {
		position: relative;
		z-index: 3;
	}

	.wdsa-tabs {
		margin-bottom: 20px;
	}

	.wdsa-foot {
		margin-top: auto;
	}
}

@media (max-width: 380px) {
	.wdsa-back span {
		display: none;
	}
}

/* 10. Sin movimiento ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.wdsa *,
	.wdsa *::before,
	.wdsa *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.wdsa-ring {
		transform: rotateY(-24deg);
	}

	.wdsa-coin {
		rotate: y 28deg;
	}

	.wdsa-c3d__shine {
		display: none;
	}

	.wdsa-sparks {
		display: none;
	}
}
