@charset "utf-8";


/* CSS Document */

.contenedor {
	width: 55%;
	max-width: 600px;
	min-width: 400px;
	border-radius: 5px;
	border: 1px;
	border-color: #fff;
	margin: auto auto 0 auto;
	padding-top: 20px;
}

.contenedor article {
	line-height: 35px;
}

.contenedor article h1 {
	font-size: 1.8em;
	text-align: left;
	padding: 50px 0;
}

.contenedor article p {
	margin-bottom: 20px;
}

.contenedor article .btn-abrir-popup {
	padding: 0 20px;
	margin-bottom: 20px;
	height: 35px;
	line-height: 17px;
	border: 1px;
	border-color: #fff;
	background: #cccccc;
	border-radius: 3px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8em;
	cursor: pointer;
	transition: .3s ease all;
}

.contenedor article .btn-abrir-popup:hover {
	background: rgba(48,38,38, .19);
}

/* ------------------------- */
/* POPUP */
/* ------------------------- */

.overlay {
	background: rgba(0,0,0,.3);
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	display: flex;
	visibility: hidden;
}

.overlay.active {
	visibility: visible;
}

.popup {
	background: rgba(0,0,0, .80);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
	border-radius: 30px 30px 30px 30px;
	border: 2px;
	border-color: #fff;
	font-family: 'Montserrat', sans-serif;
	padding: 20px;
	text-align: center;
	width: 50%;
	transition: .3s ease all;
	transform: scale(0.7);
	opacity: 0;
}

.popup .btn-cerrar-popup {
	font-size: 1.2em;
	line-height: 16px;
	display: block;
	text-align: right;
	transition: .3s ease all;
	color: #F8F8F8;
}

.popup .btn-cerrar-popup:hover {
	color: #000;
}

.popup h2 {
	font-size: 1.8em;
	font-weight: 600;
	margin-bottom: 10px;
	opacity: 0;
	color: #ffffff;
}

.popup h4 {
	font-size: 1.4em;
	font-weight: 300;
	margin-bottom: 20px;
	opacity: 0;
	color: #ffffff;
}

.popup form .contenedor-inputs {
	opacity: 0;
}

.popup form .contenedor-inputs input {
	width: 60%;
	margin-bottom: 20px;
	height: 45px;
	background: #000000;
	border-radius: 5px;
	border-color: #fff;
	font-size: 1.1em;
	color: #ffffff;
	line-height: 45px;
	text-align: center;
	border: 2px solid #ffffff;
}

.popup form .btn-submit {
	padding: 0 20px;
	height: 40px;
	line-height: 40px;
	border: none;
	color: #000;
	background: #cccccc;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 1em;
	cursor: pointer;
	transition: .3s ease all;
}

.popup form .btn-submit:hover {
	background: rgba(48,38,38, .19);
}


/* ------------------------- */
/* ANIMACIONES */
/* ------------------------- */
.popup.active {	transform: scale(1); opacity: 1; }
.popup.active h2 { animation: entradaTitulo .8s ease .5s forwards; }
.popup.active h4 { animation: entradaSubtitulo .8s ease .5s forwards; }
.popup.active .contenedor-inputs { animation: entradaInputs 1s linear 1s forwards; }

@keyframes entradaTitulo {
	from {
		opacity: 0;
		transform: translateY(-25px);
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes entradaSubtitulo {
	from {
		opacity: 0;
		transform: translateY(25px);
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes entradaInputs {
	from { opacity: 0; }
	to { opacity: 1; }
}
