@font-face {
    font-family: 'Avenir';
    src: url('../font/Avenir.ttc') format('opentype');
  }
body {
    margin: 0;
    padding: 0;
    align-items: center;
    background: white;
    overflow: hidden;
}
body * {
    font-family: 'Avenir', sans-serif !important;
}
.background {
    z-index: -1;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #3786d3 ,#2160a5, #114382, #0b3472, #01245e);
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.contenedor {
    position: relative;
    top: 170px;
    z-index: 10;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.container_principal {
	display: flex;
	flex-direction: column;
	top: 0;
	width: 100vw;
	height: 100vh;
	box-sizing: border-box;
	padding: 20px;
}
.container_principal form {
	width: 100%;
}
p {
    color: rgb(5 31 69); 
    font-size: 30px;
    font-weight: 400;
    font-family: 'Avenir', sans-serif;
    text-align: center;
    margin: 0px;
}
.subtitle{
    color: white;
    filter: blur(0px);
		text-shadow: 0 0 5px rgb( 0, 0, 0, 0.7 );
		margin-bottom: 20px;
}
.ganaste {
	padding: 20px;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	top: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
input{
    padding: 10px;
    border-radius: 7px;
    border: none;
    font-size: 20px;
    text-align: center;
    height: 33px;
		box-shadow: 0 5px 5px rgb( 0, 0, 0, 0.1 );
		border-radius: 9px;
}
/****************************************index.html***/
.input-code{
    display: block;
		width: 100%;
    max-width: 400px;
		height: 48px;
		font-size: 29px;
    margin: 0 auto;
		box-sizing: border-box;
}
.pastel{
	width: 100vw;
	height: 100vh;
	margin: 0 auto;
	justify-content: center;
}
.pastel .primero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	padding: 0;
	padding-bottom: 50px;
}
.pastel .primero .caja {
	width: fit-content;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.pastel .segundo {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 0;
}
.pastel .segundo .caja {
	position: relative;
	width: 100%;
	max-width: 820px;
}
.pastel .segundo .caja .gota-1 {
	position: absolute;
	bottom: 705px;
	left: 316px;
	width: 43px;
}
.pastel .segundo .caja .gota-2 {
	position: absolute;
	bottom: 703px;
	right: 298px;
	width: 43px;
}
.gota_flama {
  transition: transform 3s linear;
  transform: scale(1);
  transform-origin: bottom center; /* Se encoge hacia la punta de la vela */
}

.gota_flama.encogiendo {
  transform: scaleY(0) scaleX(0.3); /* se encoge en altura y un poco en ancho */
  transition: transform 3s linear;
}

.gota_flama.restaurar {
  transform: scale(1);
  transition: transform 0.3s ease-out;
}
/***********************************formulario.html***/
.col-4 input {
    width: 100%;
}
.full-width {
   width: 100%;
}
input::placeholder {
    color: rgba(173, 173, 173, 0.87);
    font-style: normal;
}
input:focus {
    outline: none;
}
button {
    margin-top: 13px;
    background:  linear-gradient(to bottom, #ff3c3c, #b30000);
    color: #f7d748;
    border: none;
    padding: 7px 20px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:  2px 2px 5px rgba(0, 0, 0, 0.5);
    align-self: center;
}
.boton-enviar{
    margin-top: 26px;
    background:  linear-gradient(to bottom, #ff3c3c, #b30000);
    color: rgb(243, 197, 98);
    border: none;
    padding: 7px 20px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:  2px 2px 5px rgba(0, 0, 0, 0.5);
    align-self: center;
    font-family: 'Avenir', sans-serif;
    text-decoration: none;
    display: -webkit-inline-box;
		line-height: 1.2;
}
button:hover {
    background: linear-gradient(to bottom, #ff5c5c, #cc0000);
}
button:active {
    transform: scale(0.95);
}
.boton-transaccion {
    font-size: 23px;
}
/****************************Boton de formulario.html***/
.boton{
    margin-top: 55px;
    font-size: 23px;
    padding: 3px 18px;
}
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.confetti {
    position: absolute;
    width: 50px;
    height: 70px;
    opacity: 1;
    transform: rotate( 45deg );
    animation: fall 3s linear infinite;
    z-index: 10;
}
/************+********* Botón de soplar ****************/
.submit-button {
    align-self: flex-start;
    border: none;
    padding: 8px 35px;
    font-size: 55px;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
    margin: 0 auto;
    text-align: center;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.submit-button::after {
    content: 'Mantener presionado hasta que la candela se apague';
    font-size: 12px;
    text-align: center;
    color: #fff;
    position: absolute;
    height: 20px;
    width: 100%;
    left: 50%;
    transform: translateX( -50% );
    font-weight: 400;
    line-height: 1.2;
    bottom: -30px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Avenir', sans-serif;
}
/******************** Contenido del modal *********/
.modal-content {
    background: radial-gradient(circle, #3786d3 ,#2160a5, #114382, #0b3472, #022562);
    padding: 20px;
    width: 612px;
    min-height: 500px;
    position: relative;
    text-align: center;
    border: 12px solid white;
    color: white;
    display: block;
}
.modal-content h2 {
    font-size: 24px;
}
.modal1-frase{
    margin-right: -118px;
    display: block;
    margin-bottom: 0px;
    margin-top: 90px;
}
h3{
    font-size: 71px;
    padding: 3px 0px;
    border-radius: 5px;
    color: gold;
    font-weight: bold;
}
.porcentaje{
    margin: 1px 0px -8px;
}
h4{
    font-size: 20px;
    margin-top:-24px;
    color: white;
}
.highlight {
    font-size: 48px;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}
span {
    display: table-caption;
    font-size: 70px;
    padding: 0px 3px;
    border-radius: 5px;
    color: gold;
}
.numero{
    font-size: 220px;
    margin-top: -64px;
    margin-left: 32px;
    font-weight: bold;
}
h2{
    color: white;
    font-weight: 300;
    margin-top: 2px;
}
/* Botón de cerrar (X) */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: black;
    background: white;
    position: absolute;
    top: -8px;
    right: -3px;
    width: 67px;
    height: 42px;
    border: none;
    border-bottom-left-radius: 15px
}
/***************************************<p>***********/
.modall{
    color: gold; 
    font-size: 45px;
    font-weight: bold;
    font-family: 'Avenir', sans-serif;
    text-align: center;
    margin: auto;
}
.premio{
    font-size: 56px;
    line-height: 64px;
    margin: auto;
    color: gold;
    font-weight: bold;
}
.img-index{
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-bottom: 10px;
}
.img-premio{
    width: 100%;
		max-width: 660px;
    height: auto;
}
.img-torta1{
		width: 100%;
    max-width: 820px;
    height: auto;
}
.img-torta2{
    width: 820px;
    height: auto;
    margin-top: -478px;
    margin-left: 957px;
}
.img-formulario{
		width: 100%;
    max-width: 450px;
    height: auto;
}
.img-felicitaciones{
    width: 430px;
    height: auto;
    margin: auto;
}
.img-modal1{
    width: 255px;
    height: auto;
    margin-bottom: -68px;
    margin-top: 10px;
    margin-left: -100px;
}
.img-modal2{
    width: 300px;
    height: auto;
    margin-top: 14px;
    margin-bottom: -90px;
}
#myModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: radial-gradient(circle, #3786d3 ,#2160a5, #114382, #0b3472, #022562);
    padding: 20px;
    width: 612px;
    min-height: 500px;
    position: relative;
    text-align: center;
    border: 12px solid white;
    color: white;
    display: block;
}
.porcentaje sub {
    font-size: 16px;
    line-height: 24px;
    display: block;
}
@keyframes fall {
    0% {
        transform: translateY(-30vh) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 600px){
    body {
        margin: 0;
        padding: 0;
        align-items: center;
        background: white;
        overflow: hidden;
    }
    .background{
        align-items: center;
    }
/****************************************index.html***/
    input{
        font-size: 15px;
        height: 27px;
    }
    .boton-enviar {
        margin-top: 26px;
        background: linear-gradient(to bottom, #ff3c3c, #b30000);
        color: rgb(243, 197, 98);
        border: none;
        padding: 7px 20px;
        font-size: 16px;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        align-self: center;
        font-family: 'Avenir', sans-serif;
        text-decoration: none;
        display: -webkit-inline-box;
    }
/****************************************index.html***/
    .modal-content{
        width: 394px;
        height: 408px;
        border: 10px solid white;
    }
    .img-felicitaciones{
        width: 312px;
        margin-top: 16px;
    }
    .premio{
        font-size: 46px;
    }
    .modall{
        font-size: 36px;
    }
    .modal-content h2 {
        font-size: 17px;
        margin-right: -15px;
        margin-bottom: 12px;
    }
    .numero {
        font-size: 133px;
        margin-top: -36px;
        margin-left: 27px;
    }
    h2{
        margin-top: 15px;
    }
    h3{
        font-size: 44px;
    }
    h4{
        font-size: 12px;
        margin-top: -19px;
    }
    .img-modal1 {
        width: 255px;
        height: auto;
        margin-bottom: -68px;
        margin-top: 10px;
        margin-left: -30px;
    }
    .img-modal2{
        width: 241px;
    }
    .img-formulario{
        width: 293px;
        margin-top: -75px;
        margin-left: 25px;
    }
    p{
        font-size: 13px;
        margin-top: -15px;
        margin-bottom: 16px;
    }
    .direccion{
        margin-left: 12px;
    }
    .boton{
        font-size: 16px;
        margin-top: 25px;
        margin-left: 132px;
    }
    .col-4{
        display: inline;
    }
    .col-8{
        display: contents;
    }
}

/* ----- Nuevo ----- */
.enviar_form {
	margin-top: 70px;
	font-size: 32px;
	padding: 3px 25px;
	border-radius: 17px;
}
.formulario {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 850px;
}
.formulario label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-shadow: 0 0 5px rgb( 0, 0, 0, 0.8 );
	color: #fff;
	margin: 0;
	font-size: 19px;
	padding: 20px 15px;
	letter-spacing: 0.5px;
}
.formulario label input {
	margin-top: 20px;
	box-shadow: 0 5px 5px rgb( 0, 0, 0, 0.1 );
	border-radius: 50px;
	width: 100%;
	font-size: 16px;
}
.humo_flama {
    width: 40px;
    position: absolute;
    transform: scaleY( 0 );
    transform-origin: bottom;
    transition: 2s;
}
.humo_flama.prende {
    transform: scaleY( 1 );
}
.humo_flama.humo-1 {
    bottom: 704px;
    left: 322px;
}
.humo_flama.humo-2 {
    bottom: 700px;
    right: 294px;
}
.gallo {
	width: 220px;
	position: absolute;
	bottom: 437px;
	right: 77px;
	z-index: 0;
}
.acepto {
    display: block;
}
.acepto span {
    font-size: 16px;
    display: inline-block;
    vertical-align: top;
    padding: 6px 0 0 10px;
    color: #fff;
}
.acepto a {
    color: #fff;
}
.btn-continuar {
    border-radius: 20px;
    font-size: 20px;
    text-decoration: none;
    color: #fff;
    margin: 20px auto;
    display: block;
    max-width: 200px;
    background: linear-gradient(to bottom, #ff3c3c, #b30000);
    color: #f7d748;
    padding: 10px;
}
@media ( max-width: 1640px ) {
	.pastel .primero {
		padding-bottom: 0;
	}
	.pastel .segundo .caja, .img-torta1, .img-premio {
		max-width: 600px;
	}
	.submit-button {
		font-size: 35px;
	}
	.submit-button::after {
		padding: 0 10px;
		font-size: 11px;
	}
	.pastel .segundo .caja .gota-1 {
		bottom: 516px;
    left: 229px;
    width: 35px;
	}
	.pastel .segundo .caja .gota-2 {
		bottom: 515px;
		right: 217px;
		width: 35px;
	}
	.humo_flama {
		width: 35px;
	}
	.humo_flama.humo-1 {
		bottom: 516px;
		left: 235px;
	}
	.humo_flama.humo-2 {
		bottom: 514px;
		right: 211px;
	}
	.gallo {
		width: 155px;
		bottom: 320px;
		right: 62px;
	}
}
@media ( max-width: 1200px ) {
	.pastel .primero {
		margin-right: -15px;
	}
	.pastel .segundo {
		margin-left: -15px;
	}
	.pastel .segundo .caja, .img-torta1, .img-premio {
		max-width: 450px;
	}
	.submit-button {
		font-size: 30px;
		margin-top: -35px;
	}
	.submit-button::after {
		padding: 0 5px;
		font-size: 10px;
	}
	.pastel .segundo .caja .gota-1 {
		bottom: 387px;
		left: 172px;
		width: 25px;
	}
	.pastel .segundo .caja .gota-2 {
		bottom: 386px;
		right: 163px;
		width: 25px;
	}
	.humo_flama {
		width: 25px;
	}
	.humo_flama.humo-1 {
		bottom: 388px;
		left: 176px;
	}
	.humo_flama.humo-2 {
		bottom: 386px;
		right: 159px;
	}
	.gallo {
		width: 120px;
		bottom: 239px;
		right: 42px;
	}
}
@media ( max-width: 900px ) {
	.pastel {
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
	}
	.pastel .primero, .pastel .segundo {
		width: 100%;
		margin: 0;
	}
	.pastel .primero { 
		padding: 0;
	}
	.pastel .primero .caja {
		margin: 0 auto;
		padding-bottom: 30px;
	}
	.pastel .primero .caja {
		padding-bottom: 50px;
	}
	.pastel .segundo .caja, .img-torta1,	.img-premio {
		margin: 0 auto;
		max-width: 400px;
	}
	.submit-button {
		font-size: 20px;
		margin-top: -30px;
	}
    .submit-button::after {
        font-size: 10px;
    }
	.pastel .segundo .caja .gota-1 {
		bottom: 343px;
		left: 234px;
		width: 21px;
	}
	.pastel .segundo .caja .gota-2 {
		bottom: 345px;
		right: 225px;
		width: 21px;
	}
	.confetti {
		width: 45px;
		height: 55px;
	}
	.pastel .segundo::after {
		content: '';
		display: flex;
		width: 100%;
		height: 50px;
		background: linear-gradient( 45deg, #3d1d06, #d27448 );
		border-radius: 10px 10px 0 0;
		box-shadow: 0 0 10px rgba( 0, 0, 0, 0.2 ),
								0 10px 20px rgba( 0, 0, 0, 0.15 );
		position: relative;
	}
	form {
		width: 100%;
	}
	.formulario {
		flex-direction: column;
		max-width: 500px;
		margin: 0 auto;
	}
	.formulario label {
		width: 100% !important;
		padding: 15px 0;
		font-size: 18px;
	}
	.formulario label input {
		margin-top: 10px;
	}
	.enviar_form {
		font-size: 25px;
		padding: 10px 25px;
		line-height: 1.2;
		margin-top: 40px;
	}
	.subtitle {
		font-size: 25px;
		margin-bottom: 10px;
	}
	.img-formulario {
		margin-bottom: 10px;
	}
	.img-index {
		max-width: 550px;
	}
	.input-code {
		max-width: 300px;
		font-size: 21px;
		height: 41px;
	}
	.boton-enviar {
		font-size: 23px;
	}
    .boton-transaccion{
        font-size: 19px;
    }
	.humo_flama {
		width: 25px;
	}
	.humo_flama.humo-1 {
		bottom: 345px;
		left: 156px;
	}
	.humo_flama.humo-2 {
		bottom: 343px;
		right: 140px;
	}
	.gallo {
		width: 104px;
		bottom: 212px;
		right: 40px;
	}
}
@media ( max-width: 500px ) {
	.pastel .primero .caja {
		margin: 0 auto;
		padding-top: 0;
		padding-bottom: 50px;
	}
	.pastel .segundo .caja, .img-torta1, .img-premio {
		max-width: 330px;
	}
	.submit-button {
		font-size: 15px;
		margin-top: -25px;
	}
    .submit-button::after {
        font-size: 9px;
        padding: 0 5px;
    }
	.pastel .segundo .caja .gota-1 {
		bottom: 284px;
		left: 127px;
		width: 17px;
	}
	.pastel .segundo .caja .gota-2 {
		bottom: 283px;
		right: 120px;
		width: 17px;
	}
	.confetti {
		width: 30px;
		height: 40px;
	}
	.img-formulario {
		margin: 0;
		margin-bottom: 20px;
		max-width: 340px;
		width: 100%;
	}
	.subtitle {
		font-size: 20px;
	}
	.formulario label {
		padding: 7px 0;
		font-size: 14px;
	}
	.formulario label input {
		margin-top: 5px;
	}
	.enviar_form {
		margin: 0 auto;
		margin-top: 30px;
		font-size: 18px;
		padding: 8px 25px;
		border-radius: 15px;
	}
	.container_principal {
		padding: 10px;
	}
	.img-index {
		max-width: 400px;
	}
	.input-code {
		max-width: none;
		width: calc(100% - 100px);
		font-size: 15px;
		height: 34px;
	}
	.boton-enviar {
		font-size: 15px;
		margin-top: 18px;
	}
    .boton-transaccion{
        font-size: 13px;
    }
	.humo_flama {
		width: 15px;
	}
	.humo_flama.humo-1 {
		bottom: 284px;
		left: 130px;
	}
	.humo_flama.humo-2 {
		bottom: 282px;
		right: 119px;
	}
	.gallo {
		width: 86px;
		bottom: 174px;
		right: 33px;
	}
}
/* ----- Nuevo ----- */