@font-face {
	font-family: "At Aero Regular";
	src: url("/assets/intro/fonts/AtAero-Regular.otf") format("opentype");
	font-display: swap;
	font-style: normal;
	font-weight: 400;
}

@font-face {
	font-family: "At Aero Medium";
	src: url("/assets/intro/fonts/AtAero-Medium.otf") format("opentype");
	font-display: swap;
	font-style: normal;
	font-weight: 500;
}

@font-face {
	font-family: "At Aero Bold";
	src: url("/assets/intro/fonts/AtAero-Bold.otf") format("opentype");
	font-display: swap;
	font-style: normal;
	font-weight: 700;
}

:root {
	color-scheme: dark;
	font-family: "At Aero Regular", Arial, sans-serif;
	color: #fff;
	background: #020307;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	--green: #47e3a8;
	--red: #f00a39;
	--blue: #2868ff;
	--ink: #020307;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

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

body {
	min-height: 100svh;
	background: #020307;
}

button,
input,
select {
	font: inherit;
}

.poster {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 760px;
	min-height: 100svh;
	margin: 0 auto;
	overflow: clip;
	--poster-image: url("/assets/intro/iniesta-barcelona.jpg");
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .3)),
		var(--poster-image) center / cover no-repeat,
		#05070b;
}

.poster[data-background="seleccion"] {
	--poster-image: url("/assets/intro/iniesta-seleccion.jpg");
}

.poster::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .2) 42%, rgba(0, 0, 0, .88) 100%),
		url("/assets/intro/grain-background.jpg") center / cover;
	background-blend-mode: normal, screen;
	opacity: .38;
	pointer-events: none;
}

.poster--texture {
	--poster-image: url("/assets/intro/grain-background.jpg");
}

.poster--portrait {
	--poster-image: url("/assets/intro/iniesta-barcelona.jpg");
	background-position: center top;
}

.poster__shade {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .2) 35%, rgba(0, 0, 0, .9) 88%);
	pointer-events: none;
}

.poster__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100svh;
	padding: clamp(24px, 6vw, 46px) clamp(24px, 7vw, 54px) clamp(34px, 8vw, 64px);
}

.brand {
	display: inline-flex;
	align-items: flex-start;
	align-self: flex-start;
	gap: 8px;
	width: clamp(130px, 36vw, 210px);
	color: #fff;
	text-decoration: none;
}

.brand img {
	display: block;
	width: 100%;
}

.motif {
	position: absolute;
	z-index: 3;
	display: block;
	pointer-events: none;
}

.motif--green {
	top: clamp(82px, 13vh, 120px);
	left: 0;
	width: clamp(74px, 24vw, 150px);
	height: clamp(18px, 10.5vw, 70px);
	background: linear-gradient(90deg, var(--green), rgba(71, 227, 168, 0));
	animation: motif-green-return 20s cubic-bezier(.45, 0, .2, 1) infinite;
}

.motif--red {
	top: -48px;
	right: clamp(24px, 7vw, 54px);
	width: clamp(72px, 20vw, 120px);
	height: auto;
	aspect-ratio: 1;
	border: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 18deg,
		var(--red) 0deg,
		var(--red) 68deg,
		rgba(240, 10, 57, .62) 98deg,
		rgba(240, 10, 57, 0) 132deg,
		transparent 360deg
	);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - clamp(13px, 4vw, 28px)), #000 calc(100% - clamp(12px, 3.8vw, 27px)));
	mask: radial-gradient(farthest-side, transparent calc(100% - clamp(13px, 4vw, 28px)), #000 calc(100% - clamp(12px, 3.8vw, 27px)));
	animation: motif-ring-turn 24s linear infinite;
}

.motif--blue {
	bottom: 0;
	left: clamp(38px, 10vw, 72px);
	width: clamp(22px, 7vw, 50px);
	height: clamp(48px, 10vw, 74px);
	background: var(--blue);
	animation: motif-blue-drift 28s cubic-bezier(.45, 0, .2, 1) infinite;
}

.motif--red-block {
	right: 0;
	bottom: 0;
	width: clamp(48px, 12vw, 86px);
	height: clamp(32px, 7vw, 54px);
	background: linear-gradient(180deg, rgba(240, 10, 57, 0) 0%, rgba(240, 10, 57, .62) 48%, var(--red) 100%);
	animation: motif-pink-drop 22s cubic-bezier(.45, 0, .2, 1) infinite;
}

.poster__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	align-self: center;
	width: 500px;
	max-width: calc(100vw - 48px);
	min-width: 0;
	margin: auto;
	text-align: center;
}

.poster__content .logo__center img {
	display: block;
	width: 100%;
	margin: 0 auto;
}

.poster__content--bottom {
	margin-top: auto;
	margin-bottom: 5vh;
}

.poster[data-active-view="language"] {
	background: var(--poster-image) center / cover no-repeat, #05070b;
}

.poster[data-active-view="language"]::before {
	display: none;
}

.poster[data-active-view="language"] .motif {
	z-index: 0;
	display: block;
	will-change: transform;
}

.poster[data-active-view="language"] .motif--green {
	top: clamp(16px, 3.2vh, 34px);
	left: 0;
	width: clamp(92px, 29vw, 190px);
	height: clamp(30px, 6.1vh, 62px);
	background: linear-gradient(90deg, #47e3a8 0%, #238565 55%, rgba(0, 0, 0, .94) 100%);
	animation: motif-green-sweep 20s cubic-bezier(.45, 0, .2, 1) infinite;
}

.poster[data-active-view="language"] .motif--red {
	top: auto;
	right: auto;
	bottom: clamp(58px, 8vh, 108px);
	left: clamp(-142px, -22vw, -72px);
	width: clamp(178px, 48vw, 330px);
	height: auto;
	aspect-ratio: 1;
	border: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 338deg,
		#ff123b 0deg,
		#ff123b 66deg,
		rgba(255, 18, 59, .66) 91deg,
		rgba(255, 18, 59, 0) 124deg,
		transparent 360deg
	);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - clamp(23px, 6vw, 43px)), #000 calc(100% - clamp(22px, 5.8vw, 42px)));
	mask: radial-gradient(farthest-side, transparent calc(100% - clamp(23px, 6vw, 43px)), #000 calc(100% - clamp(22px, 5.8vw, 42px)));
	transform: none;
	animation: motif-ring-turn 24s linear infinite;
}

.poster[data-active-view="language"] .motif--blue {
	top: clamp(27px, 5vh, 54px);
	right: 0;
	bottom: auto;
	left: auto;
	width: clamp(30px, 8.2vw, 56px);
	height: clamp(42px, 8.4vh, 82px);
	background: #2f74d7;
	animation: motif-blue-slide 24s cubic-bezier(.45, 0, .2, 1) infinite;
}

.poster[data-active-view="language"] .motif--red-block {
	right: 0;
	bottom: 0;
	width: clamp(54px, 14vw, 100px);
	height: clamp(58px, 10.5vh, 104px);
	background: linear-gradient(180deg, rgba(255, 14, 75, 0) 0%, rgba(255, 14, 75, .58) 52%, #ff0e4b 100%);
	animation: motif-pink-drop 22s cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes motif-green-sweep {
	0%, 14%, 100% { transform: translateX(-102%); }
	32%, 64% { transform: translateX(0); }
	82% { transform: translateX(-102%); }
}

@keyframes motif-green-return {
	0%, 28%, 100% { transform: translateX(0); }
	44% { transform: translateX(-102%); }
	62% { transform: translateX(0); }
}

@keyframes motif-blue-slide {
	0%, 30%, 100% { transform: translateX(0); }
	45% { transform: translateX(105%); }
	60% { transform: translateX(0); }
}

@keyframes motif-blue-drift {
	0%, 12%, 42%, 58%, 94%, 100% { transform: translateY(0); }
	27% { transform: translateY(46%); }
	76% { transform: translateY(108%); }
}

@keyframes motif-pink-drop {
	0%, 32%, 100% { transform: translateY(0); }
	47% { transform: translateY(calc(100% + 44px)); }
	64% { transform: translateY(0); }
}

@keyframes motif-ring-turn {
	to { transform: rotate(360deg); }
}

.poster[data-active-view="language"] .poster__shade {
	background: rgba(0, 0, 0, .5);
}

.poster[data-active-view="language"] .poster__inner {
	z-index: 1;
	padding: 0 24px max(24px, env(safe-area-inset-bottom));
	background-color: #000000c7;
}

.poster[data-active-view="language"] .poster__content {
	width: min(300px, 100%);
	max-width: none;
	gap: 0;
	margin: 0 auto;
	padding-top: max(24px, calc(50svh - 36px));
}

.poster[data-active-view="intro"] {
	overflow: hidden;
}

.poster[data-active-view="intro"] .poster__shade {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .38) 34%, rgba(0, 0, 0, .7) 78%, rgba(0, 0, 0, .9) 100%);
}

.poster[data-active-view="intro"] .poster__inner {
	padding-top: clamp(26px, 6vw, 50px);
	padding-bottom: clamp(31px, 7vw, 56px);
}

.poster[data-active-view="intro"] .brand {
	z-index: 4;
	width: clamp(170px, 46vw, 315px);
}

.poster[data-active-view="intro"] .poster__content {
	flex: 1;
	grid-template-rows: minmax(0, 1fr) auto;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: clamp(110px, 18vh, 190px) 0 1vh;
}

.poster[data-active-view="intro"] .intro-copy {
	align-self: center;
	justify-self: center;
	width: min(100%, 650px);
	font-size: clamp(18px, 5vw, 34px);
	line-height: 1.08;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.poster[data-active-view="intro"] .intro-copy p {
	margin: 0;
}

.poster[data-active-view="intro"] .intro-copy p + p {
	margin-top: 1.05em;
}

.poster[data-active-view="intro"] .intro-copy strong {
	font-family: "At Aero Bold", Arial, sans-serif;
	font-weight: 700;
}

.poster[data-active-view="intro"] .pill-button {
	justify-self: center;
	min-width: clamp(96px, 26vw, 155px);
	min-height: clamp(30px, 7vw, 42px);
	padding: 7px 19px;
	font-size: clamp(9px, 2.35vw, 14px);
	background: rgba(0, 0, 0, .24);
}

.poster__content--form {
	gap: 18px;
	margin-top: clamp(58px, 11vh, 100px);
	margin-bottom: 0;
	text-align: left;
	padding: clamp(110px, 18vh, 190px) 0 1vh;
}

.registration-copy {
	display: grid;
	gap: 8px;
	max-width: 34rem;
	color: rgba(255, 255, 255, .82);
	font-size: clamp(13px, 3vw, 17px);
	line-height: 1.3;
}

.registration-copy:empty {
	display: none;
}

.eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

h1,
h2,
p {
	margin: 0;
}

h1,
h2 {
	text-wrap: balance;
}

h1 {
	font-size: clamp(30px, 7vw, 52px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -.035em;
}

h2 {
	font-size: clamp(24px, 5.7vw, 39px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.lead {
	margin: 2rem 0 1rem;
    font-size: clamp(17px, 5vw, 60px);
    font-family: 'At Aero Regular', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    opacity: 0.75;
	max-width: 34em;
	margin-inline: auto;
	line-height: 1.25;
	text-wrap: balance;
}

.lead strong {
	font-weight: 700;
}

.language-list {
	display: grid;
	width: 100%;
	gap: 12px;
	margin: 0;
}

.language-icon {
	display: block;
	width: 72px;
	aspect-ratio: 1;
	margin: 0 auto 32px;
	object-fit: contain;
}

.language-button,
.pill-button,
.pill-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid rgba(255, 255, 255, .82);
	border-radius: 999px;
	padding: 9px 24px;
	color: #fff;
	background: rgba(0, 0, 0, .22);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .055em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.is-hidden {
	display: none !important;
}

.language-button {
	display: flex;
	width: 100%;
	min-height: 44px;
	justify-content: space-between;
	padding: 10px 16px 10px 20px;
	border: 2px solid rgba(255, 255, 255, .88);
	background: rgba(255, 255, 255, .025);
	font-family: "At Aero Bold", Arial, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .01em;
	text-align: left;
	transition:
		border-color 360ms ease,
		color 360ms ease,
		background-color 360ms ease;
}

.language-button i {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: none;
	background: transparent;
	transition: background-color 360ms ease;
}
.language-button:hover,
.language-button:focus-visible,
.pill-button:hover,
.pill-button:focus-visible,
.pill-link:hover,
.pill-link:focus-visible {
	color: #05070b;
	background: #fff;
	outline: none;
	transform: translateY(-1px);
}

.language-button:hover,
.language-button:focus-visible {
	border-color: #fbde42;
	color: #fbde42;
	background: rgba(255, 217, 5, .045);
	transform: none;
}

.language-button.is-chosen {
	border-color: #fbde42;
	color: #fbde42;
	background: rgba(255, 217, 5, .045);
}

.language-button.is-chosen i {
	background: #fbde42;
}

.language-button:disabled {
	opacity: 1;
	cursor: default;
}

.step {
	display: contents;
}

.step[hidden] {
	display: none;
}

.step.is-entering > * {
	animation: rise-in 480ms cubic-bezier(.22, .75, .22, 1) both;
}

.step.is-entering > :nth-child(2) {
	animation-delay: 70ms;
}

.step.is-entering > :nth-child(3) {
	animation-delay: 140ms;
}

@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

.player-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	min-width: 0;
}

.player-form cap-widget {
	display: block;
	--cap-widget-width: 100%;
}

.field {
	position: relative;
	min-width: 0;
}

.field label {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.field input,
.field select {
	width: 100%;
	max-width: 100%;
	height: 43px;
	border: 1px solid rgba(255, 255, 255, .82);
	border-radius: 999px;
	padding: 7px 18px 7px 50px;
	color: #fff;
	background: rgba(0, 0, 0, .44);
	outline: 0;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field::before {
	content: "[ ]";
	position: absolute;
	top: 50%;
	left: 18px;
	transform: translateY(-54%);
	font-size: 12px;
	font-weight: 700;
	pointer-events: none;
}

.field:focus-within::before {
	content: "[•]";
	color: var(--green);
}

.field input::placeholder {
	color: rgba(255, 255, 255, .86);
	opacity: 1;
}

.field input:focus,
.field select:focus {
	border-color: var(--green);
	background: rgba(0, 0, 0, .7);
	box-shadow: 0 0 0 2px rgba(71, 227, 168, .18);
}

.consents {
	display: grid;
	gap: 14px;
	min-width: 0;
	margin: 7px 0 2px;
}

.check {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

.check span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--green);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 5px;
}

.account-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35em;
	margin-top: 14px;
	color: rgba(255, 255, 255, .78);
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}

.account-switch__button {
	border: 0;
	padding: 0;
	color: #fff;
	background: transparent;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.account-switch__button:hover,
.account-switch__button:focus-visible {
	color: var(--green);
	outline: none;
}

.pill-button--secondary {
	color: #05070b;
	background: #fff;
}

.pill-button--secondary:hover,
.pill-button--secondary:focus-visible {
	color: #fff;
	background: rgba(0, 0, 0, .45);
}

.pill-button {
	min-width: 132px;
	min-height: 34px;
	padding: 8px 21px;
	font-size: 10px;
}

.pill-button:disabled {
	opacity: .55;
	cursor: wait;
	transform: none;
}

.status {
	min-height: 18px;
	color: #ffb3c1;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
}

.technical-list {
	display: grid;
	gap: 8px;
	padding: 0;
	margin: 6px 0 0;
	list-style: none;
}

.technical-list a {
	color: #fff;
	text-underline-offset: 4px;
}

.result-data {
	margin-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .34);
	padding-top: 12px;
	font-size: 12px;
	text-align: left;
}

.result-data summary {
	cursor: pointer;
}

.result-data pre {
	max-height: 28vh;
	overflow: auto;
	color: rgba(255, 255, 255, .8);
	white-space: pre-wrap;
}

@media (min-width: 761px) {
	body {
		background:
			radial-gradient(circle at 50% 30%, #101520, #020307 68%);
	}

	.poster {
		box-shadow: 0 0 90px rgba(0, 0, 0, .82);
	}
}

@media (max-height: 720px) {
	.poster__inner {
		padding-top: 20px;
		padding-bottom: 28px;
	}

	.poster__content--form {
		margin-top: 35px;
	}

	.player-form {
		gap: 7px;
	}

	.field input,
	.field select {
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
