@font-face { font-family: "Cera Pro"; src: url("../fonts/subset-CeraPro-Bold.woff2") format('woff2'), url("../fonts/subset-CeraPro-Bold.woff") format('woff'), url("../fonts/subset-CeraPro-Bold.ttf") format('truetype'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: "Cera Pro"; src: url("../fonts/subset-CeraPro-Medium.woff2") format('woff2'), url("../fonts/subset-CeraPro-Medium.woff") format('woff'), url("../fonts/subset-CeraPro-Medium.ttf") format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }


:root {
	--black: #000;
	--white: #FFF;
	--white-over: #DDD;
	--gris: #5c6770;
	--magenta: #ef4370;
	--cyan: #2cd5c4;

	--disabled: #a19d94;
}

html, body {
	height: 100%;
	overflow: hidden;
	touch-action: pan-x pan-y;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-touch-callout: none;

	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;
	font-size: 22px;
}

body {
	margin: 0 auto;

	background-color: var(--white);
	color: var(--gris);

	display: flex;
	flex-direction: column;
}

html {
	text-align: center;
}

a {
	color: var(--magenta);
}

a:hover {
	color: var(--magenta);
}

button {
	background-color: var(--white);
	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;

	display: inline-block;

	font-family: "Cera Pro";
	font-size: 2rem;
	color: var(--magenta);
	text-transform: uppercase;

	padding: 0.5rem 1rem;

	position: relative;

	min-width: 14rem;
}

button:hover {
	color: var(--magenta);
	cursor: pointer;
}

button:disabled {
	color: var(--disabled);
	cursor: default;
}


button.loading {
	color: transparent;
}

button.loading::after {
	content: "";
	position: absolute;
	width: 0.75rem;
	height: 0.75rem;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	border: 0.25rem solid transparent;
	border-top-color: var(--magenta);
	border-radius: 50%;
	animation: loading 1s ease infinite;
}

input[type=text], input[type=email] {
	width: 100%;
	background-color: var(--gris);
	color: var(--white);
	border: none;
	border-radius: 0.5rem;

	padding: 0.5rem 0.5rem;

	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;

	font-size: max(16px, 1.75rem);
	text-transform: uppercase;

	box-sizing: border-box;

	outline: none;
	text-align: center;
}

input[type=text]::placeholder, input[type=email]::placeholder {
	color: var(--white);

	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;

	font-size: 1.75rem;
	text-transform: uppercase;

	opacity: 1;
}

span.label {
	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;

	font-size: 1rem;
	text-transform: uppercase;
	color: var(--gris);

	display: inline-block;
}

input[type=checkbox] + label {
	display: flex;
	margin: 0;
	cursor: pointer;
	padding-bottom: 0.5rem;

	color: var(--gris);
	min-height: 1.5rem;
	line-height: 1.25rem;
	align-items: center;

	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;
	font-size: 0.75rem;
}

input[type=checkbox] {
	display: none;
}

input[type=checkbox] + label::before {
	content: "X";
	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;

	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.75rem;

	margin-right: 0.5rem;

	vertical-align: bottom;
	color: transparent;
	transition: .2s;

	display: flex;
	align-items: center;
	justify-content: center;
}

input[type=checkbox] + label:active:before {
	transform: scale(0);
}

input[type=checkbox]:checked + label:before {
	background-color: var(--gris);
	border-color: var(--gris);
	color: var(--white);
}

input[type=checkbox]:disabled + label:before {
	transform: scale(1);
	border-color: var(--disabled);
}

input[type=checkbox]:checked:disabled + label:before {
	transform: scale(1);
	background-color: #444;
	border-color: #444;
}

select {
	width: 100%;
	border: none;
	background-color: var(--gris);
	color: var(--white);

	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;

	padding: 0.5rem 0.5rem;

	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;
	font-size: max(16px, 1rem);
	text-transform: uppercase;

	cursor: pointer;
}

select:disabled {
	cursor: default;
	opacity: 0.2;
}

select option {
	background-color: var(--white);
	color: var(--black);
	text-transform: uppercase;
}

select option:disabled {
	display: none;
}

h1 {
	font-weight: 500;
	font-style: normal;
	font-size: 2.5rem;
	line-height: 2.6rem;
	margin: 0;
	text-transform: uppercase;
}

h2 {
	font-weight: 500;
	font-style: normal;
	font-size: 2rem;
	line-height: 2.1rem;
	margin: 0;
	text-transform: uppercase;
}

h3 {
	font-weight: 500;
	font-style: normal;
	font-size: 1.5rem;
	line-height: 1.75rem;
	margin: 0.15rem;
	text-transform: uppercase;
}

h4 {
	font-size: 1.25rem;
	font-weight: normal;
	margin: 0.1rem;
}

#msghead {
	color: var(--magenta);
}

header {
	padding: 0 0 1rem 0;
	position: relative;
	overflow: visible;
}

header::after {
	content: "";
	display: block;
	width: 112%;
	aspect-ratio: 1080 / 280;
	position: absolute;
	left: -6%;
	top: 40%;
	background: url("../images/divider.svg") no-repeat center bottom / 100% auto;
	z-index: -1;
	pointer-events: none;
}

footer {
	display: none;
	text-align: right;
}

body.stepEnd footer {
	display: block;
}


#body-wrapper {
	height: 100vh;
	height: 100dvh;
	width: 100%;
	max-width: 1200px;
	overflow: hidden;

	margin: 0 auto;
	position: relative;
}

@media (orientation: landscape) {
	#body-wrapper {
		width: auto;
		aspect-ratio: 10/16;
	}
}

#page-container {
	position: relative;
	display: flex;
	flex-flow: column;
	touch-action: pan-x pan-y;
	height: 100%;
	min-height: 0;
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
	-webkit-overflow-scrolling: touch;

	padding: 0 5% 2% 5%;
	padding-bottom: calc(2% + env(safe-area-inset-bottom));
	box-sizing: border-box;
	z-index: 15;
}

#page-black {
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;

	opacity: 1;
	transition: opacity .2s ease-in-out;
	-moz-transition: opacity .2s ease-in-out;
	-webkit-transition: opacity .2s ease-in-out;

	background: var(--white);
	z-index: 25;

	pointer-events: none;
}

#page-background {
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;


	z-index: 10;

	pointer-events: none;

	background: url("../images/splash.png");
	background-position-x: 0%;
	background-position-y: 0%;
	background-repeat: repeat;
	background-repeat: no-repeat;
	background-position: 0% 100%;
	background-size: 80% auto;

}

#content-wrap {
	flex: 1 1 auto;
	min-height: 0;
	align-content: flex-end;
}

#termsdetails {
	max-width: 40rem;
	color: #000;
	display: none;
}

#termsdetails a {
	color: var(--gris);
}

#termsdetails a:hover {
	color: var(--magenta);
}

#termsdetails h3 {
	color: var(--magenta);
}

#termsdetails div {
	font-size: 0.9rem;
}

#messages {
	display: none;
	z-index: 25;
	color: var(--gris);
	text-align: center;
	background-color: var(--white);
}

#messages h3 {
	padding-top: 0 !important;
	margin-top: 0 !important;
	font-weight: bold;
}

div.loading::after {
	content: "";
	position: absolute;
	width: 3rem;
	height: 3rem;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	border: 0.5rem solid transparent;
	border-top-color: var(--magenta);
	border-radius: 50%;
	animation: loading 1s ease infinite;
}

.gap1r {
	gap: 1rem;
}

.gap2r {
	gap: 2rem;
}

.gap2halfr {
	gap: 2.5rem;
}

.gap5r {
	gap: 5rem;
}


.flex {
	display: flex;
}

.flex1 {
	flex: 1;
}

.flex-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
}

.flex-row-nc {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
}

.flex-col {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 1;
}

.flex-col-wider {
	flex: 2 !important;
}

.flex-col-nc {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 1;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.flex-justify-end {
	justify-content: flex-end;
}

.h100pct {
	height: 100%;
}

.w50pct {
	width: 50% !important;
}

.w100pct {
	width: 100% !important;
}

.w2rem {
	width: 2rem !important;
}

.w2halfrem {
	width: 2.5rem !important;
}

.w3rem {
	width: 3rem !important;
}

.mauto {
	margin: 0 auto;
}

.inline {
	display: inline;
}

.inlineblock {
	display: inline-block;
}

.left {
	text-align: left;
}

.right {
	text-align: right;
}

.center {
	text-align: center;
}

.middle {
	justify-content: center;
}

.center-flex {
	align-items: center;
}

.bolded {
	font-weight: bold;
}

.uppercase {
	text-transform: uppercase;
}

.notransform {
	text-transform: none !important;
}

.formbreak {
	display: inline;
}

.column {
	float: left;
	width: 30%;
}

.column-min {
	float: left;
	width: 4%;
}

.paded {
	padding-left: 5px !important;
	padding-right: 5px !important;
}

.pad0 {
	padding: 0 !important;
}

.padleft5 {
	padding-left: 5px;
}

.padleft10 {
	padding-left: 10px;
}

.padright5 {
	padding-right: 5px;
}

.padright10 {
	padding-right: 10px;
}

.padtop5 {
	padding-top: 5px;
}

.padtop10 {
	padding-top: 10px;
}

.padtop20 {
	padding-top: 20px;
}

.padtop30 {
	padding-top: 30px;
}

.padtop40 {
	padding-top: 40px;
}

.padtop1r {
	padding-top: 1rem;
}

.padtop2r {
	padding-top: 2rem;
}

.padtop3r {
	padding-top: 3rem;
}

.padtop5r {
	padding-top: 5rem;
}

.padbot1r {
	padding-bottom: 1rem;
}

.padbot2r {
	padding-bottom: 2rem;
}

.ls2 {
	letter-spacing: 2px;
}

.ls4 {
	letter-spacing: 4px;
}

.mw400 {
	max-width: 400px;
}

.mw450 {
	max-width: 450px;
}

.mw500 {
	max-width: 500px;
}

.mw550 {
	max-width: 550px;
}

.mw600 {
	max-width: 600px;
}

.mw650 {
	max-width: 650px;
}

.mw700 {
	max-width: 700px;
}

.mw800 {
	max-width: 800px;
}

.hidden {
	display: none;
}

.invisible {
	visibility: hidden;
	pointer-events: none;
}

.biggest {
	font-size: 3rem;
}

.verybig {
	font-size: 2rem;
}

.big {
	font-size: 1.75rem;
}

.small {
	font-size: 0.75rem;
}

.ui-dialog { z-index: 25 !important ;}

.blocker {
	z-index: 100;
}

.modal {
	width: auto !important;
	border-radius: 0.5rem;
	border: 0.15rem solid var(--gris);
	background: var(--white);
	color: var(--gris);
}

.modal a.close-modal[class*="close-"] {
	top: -1rem;
	right: -1rem;
	width: 2rem;
	height: 2rem;
	color: transparent !important;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	text-indent: 0;
	background: var(--white);
	border: 0.15rem solid var(--gris);
	border-radius: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.25rem;
}

.modal a.close-modal[class*="close-"]:after {
	content: "X";
	color: var(--magenta);
	position: absolute;
}

.relative {
	position: relative;
}

/* PERSONAL */
.step {
	display: none;
	height: 100%;
	min-height: 0;

	padding-top: 6rem;
	box-sizing: border-box;
}

#step1.step,
#step2.step {
	padding-top: 0;
}

.img-filled {
	max-width: 95%;
	margin: 0 auto;
}

.img-semi-filled {
	max-width: 75%;
	margin: 0 auto;
}

.img-logo-brand {
	max-height: 30vh;
	margin: 0 auto;
}

.img-logo-small {
	max-width: 8rem;
	margin: 0 auto;
}

.img-fire {
	width: 65%;
	height: 100%;
}

.logo {
	width: 70%;
	margin: 0 auto;
}


#resultspreloader {
	min-height: 10rem;
}

.boxresult {
	display: grid;
	place-items: center;

	flex: 0 0 auto;
	width: 10rem;
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 50%;

	background: var(--white) url("../images/circle.svg") no-repeat center / contain;
}

.boxresult #correct {
	color: var(--magenta);
	font-size: 4rem;
	font-weight: bold;
	line-height: 1;
}

.box {
	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;
	padding: 1rem;
}

.boxmini {
	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;
	padding: 0.5rem;
}

.boxminiest {
	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;
	padding: 0.1rem;
}

ul.register {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

ul.register li {
	list-style: none;
	width: 100%;

	box-sizing: border-box;
	padding: 0.5rem 1rem;
}

ol.answers {
	counter-reset: list;
	padding: 0;
	margin: 0;

	width: 100%;
}

ol.answers li {
	list-style: none;
	list-style-position: inside;
	counter-increment: list;

	margin-bottom: 0.75rem;


	font-family: "Cera Pro";
	font-weight: 500;
	font-style: normal;

	font-size: 1.5rem;
	line-height: 1.6rem;

	color: var(--magenta);
	background: var(--white);

	border: 0.15rem solid var(--gris);
	border-radius: 0.5rem;

	cursor: pointer;

	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	text-transform: uppercase;
	text-align: center;
	transition: background-color 0.2s ease-in-out;
}

ol.answers.answer-locked li {
	cursor: default;
	pointer-events: none;
}

ol.answers li.correct-answer {
	background-color: var(--cyan);
	color: var(--white);
}

ol.answers li.incorrect-answer {
	background-color: var(--magenta);
	color: var(--white);
	animation: answer-wiggle 0.5s ease-in-out;
}

ol.answers li .circle {
	position: absolute;

	border: 0.15rem solid var(--gris);
	height: 3rem;
	left: -2px;
	top: -2px;
	width: 3rem;
	border-radius: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	font-size: 2rem;
}

ol.answers li .text {
	padding: 0.5rem 0.75rem;
}

.onlydesktop {
	display: block;
}

@media only screen and (max-height: 1024px) {
	html, body {
		font-size: 16px;
	}
}

@media only screen and (max-height: 850px) {
	html, body {
		font-size: 14px;
	}
}


@media only screen and (max-height: 850px) and (max-width: 450px) {
	h1 {
		font-size: 2.25rem;
		line-height: 2.35rem;
	}

	h2 {
		font-size: 1.75rem;
		line-height: 1.85rem;
	}
}

@media only screen and (max-height: 650px) {
	html, body {
		font-size: 12px;
	}
}

@media (orientation: portrait) {
	body::before {
		width: 100vh; /* Intercambiamos width y height */
		height: 100vw;
		transform: rotate(90deg) translate(0, -100%);
		transform-origin: top left;
	}
}

@media only screen and (max-width: 400px) {
	.flex-col {
		padding-left: 2%;
		padding-right: 2%;
	}
}


@keyframes loading {
	from {
		transform: rotate(0turn);
	}

	to {
		transform: rotate(1turn);
	}
}

@keyframes answer-wiggle {
	0%, 100% {
		transform: translateX(0);
	}

	20%, 60% {
		transform: translateX(-0.5rem);
	}

	40%, 80% {
		transform: translateX(0.5rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	ol.answers li.incorrect-answer {
		animation: none;
	}
}
