/* Font Poppins & Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--primary-font: 'Poppins', sans-serif;
	--secondary-font: 'Lato', sans-serif;
	--back-color: #012227;
	--back-image: linear-gradient(to bottom, transparent 15%, #18223D 100%), url('../img/background.png');
	--back-image-2: linear-gradient(to bottom, transparent 15%, #18223D 100%), url('../img/background2.png');
	--back-image-3: linear-gradient(to bottom, transparent 15%, #18223D 100%), url('../img/background3.png');
	--font-color: #FFF;
	--error-color: #EC1C24;
	--primary-color: #EC1C24;
	--font-size: 12px;
	/* Config form-control */
	--input-back: white;
	--input-before: var(--primary-color);
	--input-color: #323232;
	--input-height: 45px;
	--input-radio: 23px;
	--input-size: var(--font-size);
	--input-weight: 600;
	/* Config Button */
	--btn-height: 45px;
	--btn-size: 16px;
	--btn-weight: 600;
	--btn-radio: 23px;
	--btn-border: solid 2px var(--primary-color);
	--btn-color: #FFFFFF;
	--btn-back: #000000;
	--btn-font: var(--primary-font);
}

/* ============================================
               Globales
=============================================== */
html {
	height: 100%;
}

html > body,
html > body > #mainContent {
	min-height: 100%;
}

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

body {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	font-family: var(--primary-font);
	font-weight: 400;
	color: var(--font-color);
	font-size: var(--font-size);
}

#mainContent {
	display: flex;
	flex-direction: column;
	flex: 1;
	background-color: var(--back-color);
	background-image: var(--back-image);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

main#main {
    display: flex;
    flex-direction: column;
}

.page-content {
	flex: 1;
	width: 100%;
}

.container {
	padding-left: 30px;
	padding-right: 30px;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	color: inherit;
}

input[type='number'],
input[type='number']:active,
input[type='number']:focus,
input[type='number']:hover {
	border: none;
	border-radius: 0;
	outline: none;
	box-shadow: none;
}

/* ============================================
               Utilidades
=============================================== */
.js-start {
	justify-self: start;
}

.js-center {
	justify-self: center;
}

.js-end {
	justify-self: end;
}

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

.h-100 {
	height: 100%;
}

.h-250 {
	height: 250px;
}

.no-wrap {
	flex-wrap: nowrap;
}

.d-flex {
	display: flex !important;
}

.flex-1 {
	flex: 1;
}

.mb-1 {
	margin-bottom: 10px !important;
}

.mb-2 {
	margin-bottom: 20px !important;
}

.mb-3 {
	margin-bottom: 30px !important;
}

.mb-4 {
	margin-bottom: 40px !important;
}

.mb-5 {
	margin-bottom: 50px !important;
}

.mb-6 {
	margin-bottom: 60px !important;
}

.circle {
	background: #27a243;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
}

.check {
	width: 60px;
}

/* ============================================
               Main
=============================================== */
#header {
	margin: 10px auto calc(40dvh - 100px) auto;
	width: 100%;
	height: 60px;
}

#header .brand {
	max-width: 100%;
	display: block;
	margin-left: auto;
}

#header .title {display: none;}

.form-inputs {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	overflow: hidden;
	font-size: var(--input-size);
	height: var(--input-height);
	background: var(--input-back);
	border-radius: var(--input-radio);
	font-weight: var(--input-weight);
}

.form-inputs .before-element {
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--btn-color);
	background: var(--primary-color);
}

.form-inputs .form-control {
	padding: 0 10px;
	line-height: 1;
	font-size: var(--input-size);
	color: var(--input-color);
	font-weight: inherit;
	background-color: transparent;
	height: 100%;
	width: 100%;
}

.btn {
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	width: 100%;
	margin-bottom: 30px;
	font-size: var(--btn-size);
	font-weight: var(--btn-weight);
	min-height: var(--btn-height);
	border-radius: var(--btn-radio);
	background: var(--btn-back);
	font-family: var(--btn-font);
	color: var(--btn-color);
	border: var(--btn-border);
}

.btn:focus {
	color: var(--btn-color);
}

.btn:disabled {
	opacity: 0.8;
}

.btn:hover {
	color: var(--btn-color);
}

.info-label {
	display: block;
	text-align: center;
	text-transform: uppercase;
	font-weight: 300;
	margin-bottom: 20px;
	line-height: 1;
}

.info-reglas {
	margin-bottom: 20px;
	text-align: center;
}

.price {
	text-align: center;
	max-width: 270px;
	margin: 0 auto;
}

.legales {
	text-align: center;
	margin-bottom: 20px;
}

.link {
	text-decoration: underline;
	font-weight: bold;
	cursor: pointer;
}

img.check {
	display: block;
	margin: 0 auto 20px;
}

.message {
	margin: 0 auto 20px;
	max-width: 270px;
}

.message h2 {
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
}

.message h3 {
	font-size: var(--font-size);
}

/* ========================================
            Internas
=========================================== */
body.request-pin {
	#mainContent {background-image: var(--back-image-3);}
	.form-inputs {
		margin-bottom: 20px;
		.form-control {text-align: center;}
	}
}
body.form-he {
	.info-label {
		text-transform: none;
		margin-bottom: 60px;
	}
}
body.active {
	#mainContent {background-image: var(--back-image-2);}
	.message h2 {display: none;}
	.legales {display: none;}
	.btn.cancel {
		font-size: 16px;
		background-color: var(--error-color);
	}
}
body.form-ok {
	#mainContent {background-image: var(--back-image-2);}
	.message h2 {margin-bottom: 40px;}
	.message h3 {display: none;}
	.legales {display: none;}
}
body.error {
	#mainContent {background-image: var(--back-image-2);}
	.legales {display: none;}
}

/* ========================================
            Checkbox TYC
=========================================== */
.custom__checkbox {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.custom__checkbox.v2 {
    color: #000;
    font-size: 12px;
    font-weight: bold;
}
.custom__checkbox.v2 .checkbox {
   position: relative;
   width: 20px;
   height: 20px;
   flex-shrink: 0;
   color: #fff;
}
.custom__checkbox.v2 #tyc {
   position: absolute;
   left: 0;
   top: 0;
   z-index: 1;
   width: 100%;
   height: 100%;
   cursor: pointer;
}
.custom__checkbox.v2 #tyc:checked {opacity: 0;}
.custom__checkbox.v2 .custom-checkbox {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%; 
   height: 100%; 
   cursor: pointer;
   font-size: 13px;
   background-color: var(--primary-color);
   border: solid 1px rgb(0 0 0 / .3);
   border-radius: 3px;
}

/* ============================================
               Loader
=============================================== */
#loader {
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 100;
	background: radial-gradient( rgb(255 255 255 / .3) 40%, rgb(255 255 255 / .5));
	backdrop-filter: blur(5px);
	opacity: 0;
 }
 #loader #iconAnimated {
	width: 50px;
	height: 50px;
	border: 6px solid var(--primary-color); /* Borde transparente */
	border-top: 6px solid transparent; /* Color sólido en la parte superior */
	border-radius: 50%;
	animation: spin 1s linear infinite;
	background-clip: border-box;
	-webkit-background-clip: border-box;
 }
 @keyframes spin {
	0% {transform: rotate(0deg);}
	100% {transform: rotate(360deg);}
 }
 
 /* ============================================
               Error
=============================================== */
.campo_error {
	.form-inputs {
		border: solid 2px var(--error-color);
	}
	.info-reglas {display: none;}
}
body.request-pin .campo_error .form-inputs {
		margin-bottom: 10px;
}
.error-content {
	text-align: center;
	color: var(--error-color);
	font-weight: 400;
	margin-bottom: 10px;
}

.error-content #error__message,
.error-content #info__message {
	margin: 0;
}

body.campo__error .error-content {
	display: block;
}

body.campo__error .form-inputs {
	border: solid 2px var(--error-color);
}

/* ============================================
               Single Page
=============================================== */
*[data-element] {display: none;}
#view-signup *[data-element~="signup"] {display: block !important;}
#view-request-pin *[data-element~="request-pin"] {display: block !important;}
#view-form-he *[data-element~="form-he"] {display: block !important;}
#view-confirm *[data-element~="confirm"] {display: block !important;}
#view-request-doi *[data-element~="request-doi"] {display: block !important;}
#view-form-ok *[data-element~="form-ok"] {display: block !important;}
#view-active *[data-element~="active"] {display: block !important;}
#view-error *[data-element~="error"] {display: block !important;}


.subway {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 30px 0;
}
.subway .stations {
	position: relative;
	display: flex;
	align-items: center;
}
.subway .labels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.subway .labels .js-start {text-align: left;}
.subway .labels .js-center {text-align: center;}
.subway .labels .js-end {text-align: right;}
.subway .stations .station {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #d0d0d0;
	overflow: hidden;
	position: relative;
}
.subway .stations .bar {
	background-color: #d0d0d0;
	height: 3px;
	width: calc(50% - 20px);
	position: relative;
}
.subway .stations .bar.active::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 10%;
	height: 100%;
	background-color: var(--primary-color);
	animation: carga 1s linear forwards;
}
.subway .station.check {
	background-color: var(--primary-color)
}
.subway .station.dot {
	background: linear-gradient(to left, var(--primary-color) 50%, #d0d0d0 50%);
	background-size: 60px;
	background-position: 0 center;
	animation: changeDot 500ms linear 1s forwards;
}
.subway .station.check::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-image: url(../img/check.png);
	background-size: 50%;
	background-position: center center;
	background-repeat: no-repeat;
}
.subway .station.dot::after {
	content: '';
	position: absolute;
	width: 50%;
	height: 50%;
	left: 25%;
	top: 25%;
	background-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: appearingDot 300ms linear 1500ms forwards;
}
@keyframes carga {
	from {width: 0;}
	to 	 {width: 100%;}
}
@keyframes changeDot {
	from {background-position: 0 center;}
	to 	 {background-position: 30px center;}
}
@keyframes appearingDot {
	from {opacity: 0;}
	to	 {opacity: 1;}
}

/* ⓘ Los siguientes estilos ocultan los elementos en las vistas que no son requeridos */

/* Subway */
#view-active .subway,
#view-error .subway,
/* Form Inputs */
#view-form-he .form-inputs ,
#view-confirm .form-inputs,
#view-request-doi .form-inputs,
#view-form-ok .form-inputs,
#view-active .form-inputs,
#view-error .form-inputs,
/* Form Msisdn */
#view-form-he .form-control#prompted_msisdn,
#view-confirm .form-control#prompted_msisdn,
#view-request-pin .form-control#prompted_msisdn,
#view-request-doi .form-control#prompted_msisdn,
#view-form-ok .form-control#prompted_msisdn,
#view-active .form-control#prompted_msisdn,
#view-error .form-control#prompted_msisdn,
/* Input Pin */
#view-signup .form-control#pin,
#view-form-he .form-control#pin,
#view-confirm .form-control#pin,
#view-request-doi .form-control#pin,
#view-form-ok .form-control#pin,
#view-active .form-control#pin,
#view-error .form-control#pin,
/* Boton submit */
#view-form-ok .btn#submitcel,
#view-active .btn#submitcel,
#view-request-doi .btn#submitcel,
#view-error .btn#submitcel,
/* Info reglas */
#view-form-he .info-reglas,
#view-confirm .info-reglas,
#view-request-pin .info-reglas,
#view-request-doi .info-reglas,
#view-form-ok .info-reglas,
#view-active .info-reglas,
#view-error .info-reglas,
/* Info Label */
#view-request-doi .info-label,
#view-form-ok .info-label,
#view-active .info-label,
#view-error .info-label,
/* Info Mensajes */
#view-signup .message,
#view-request-pin .message,
#view-form-he .message,
#view-confirm .message,
/* Imagen de Check */
#view-signup .check__content,
#view-request-pin .check__content,
#view-form-he .check__content,
#view-confirm .check__content,
#view-error .check__content,
/* Checkbox de tyc */
#view-request-pin .custom__checkbox,
#view-confirm .custom__checkbox,
#view-request-doi .custom__checkbox,
#view-form-ok .custom__checkbox,
#view-active .custom__checkbox,
#view-error .custom__checkbox,
/* Error content */
#view-error .error-content,
#view-active .error-content {
	display: none;
}
