:root{
    --colorHover: #C70039 ;
    --colorBtn:black;
    --colorHoverBTN: #FFA0A0;
    --colorHoverText: #4F4F4F;
    --colorNavBar: white;
    --colorNavA: #FAAAAA;
    --footer: gray;
    --input: #dcdcdcdc;
    --hoverInput: #b8e0ff;
}

.contenedor {
    width: 90%;
    max-width: 1000px;
    padding: 40px 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarjeta{
    margin-left: 30%;
    margin-top: 10%;
    width: 100%;
    max-width: 550px;
    position: relative;
    color: #fff;
    transition: .3s ease all;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    cursor: pointer;
    z-index: 2;
}

.tarjeta.active{
    transform: rotateY(180deg);
}

.tarjeta > div{
    padding: 30px;
    border-radius: 15px;
    min-height: 315px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 0 rgba(90, 116, 148, 0.3);
}

/*------ Tarjeta Delantera -------*/

.tarjeta .delantera{
    background: url(../imagenes/tarjetas/50171dbb5eb3a6496658c265e615d8c6.jpeg);
    background-size: cover;
}

.delantera .logo-marca {
    text-align: right;
    min-height: 50px;
}

.delantera .logo-marca img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 80px;
}

.delantera .chip{
    width: 100%;
    max-width: 50px;
    margin-bottom: 20px;
}

.delantera .grupo .label{
    font-size: 16px;
    color: #a7a7a7a7;
    margin-top: 5px;
}

.delantera .grupo .number,
.delantera .grupo .nombre,
.delantera .grupo .expiracion{
    color: white;
    font-size: 22px;
    text-transform: uppercase;
}

.delantera .flexbox{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/*------ Tarjeta Trasera -------*/
.trasera {
    /*background: url(https://t3.ftcdn.net/jpg/02/16/49/46/360_F_216494639_uZ0e27KMsl5qyKFXiZDTGUPO7bcMxCeh.jpg);*/
    background: url(../imagenes/tarjetas/Copia\ de\ 50171dbb5eb3a6496658c265e615d8c6.jpeg);
    background-size: cover;
    position: absolute;
    top: 0;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.trasera .barra{
    height: 40px;
    background-color: black;
    width: 100%;
    position: absolute;
    top: 30px;
    left: 0;
}

.trasera .datos {
    margin-top: 60px;
    color: #cbcbcbcb;
    display: flex;
    justify-content: space-between;
}

.datos-post .leyenda{
    font-size: 13px;
    color: #cbcbcbcb;
}

.datos-post a{
    font-size: 13px;
    text-decoration: none;
    color:#696969;
}

.trasera .datos #firma{
    width: 70%;
}

.trasera .datos #firma .firma {
    height: 40px;
    background: repeating-linear-gradient(skyblue 0, skyblue 5px, orange 5px, orange 10px);
}

.trasera .datos #firma .firma p{
    line-height: 40px;
    font-family: 'Liu Jian Mao Cao', cursive;
    color: black;
    font-size: 30px;
    padding: 0 10px;
    text-transform: capitalize;
}

.trasera .datos #ccv{
    width: 20%;
}

.trasera .datos #ccv .ccv{
    background-color: #fff;
    height: 40px;
    color: #000;
    text-align: center;
}

/* ---------- Formulario Tarjeta ----------*/

.formulario-tarjeta {
    margin-left: 25%;
	background: #fff;
	width: 100%;
	max-width: 700px;
	padding: 150px 30px 30px 30px;
	border-radius: 10px;
	position: relative;
	top: -120px;
	z-index: 1;
	clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	transition: clip-path .3s ease-out;
}

.formulario-tarjeta.active {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.formulario-tarjeta label {
	display: block;
	color: #7d8994;
	margin-bottom: 5px;
	font-size: 16px;
}

.formulario-tarjeta input,
.formulario-tarjeta select,
.btn-enviar {
	border: 2px solid var(--input);
	font-size: 18px;
	height: 50px;
	width: 100%;
	padding: 5px 12px;
	transition: .3s ease all;
	border-radius: 5px;
}

.formulario-tarjeta input:hover,
.formulario-tarjeta select:hover {
	border: 2px solid var(--hoverInput);
}

.formulario-tarjeta input:focus,
.formulario-tarjeta select:focus {
	outline: rgb(4,4,4);
	box-shadow: 1px 7px 10px -5px rgba(90,116,148,0.3);
}

.formulario-tarjeta input {
	margin-bottom: 20px;
	text-transform: uppercase;
}

.formulario-tarjeta .flexbox {
	display: flex;
	justify-content: space-between;
}

.formulario-tarjeta .expira {
	width: 100%;
}

.formulario-tarjeta .ccv {
	min-width: 100px;
}

.formulario-tarjeta .grupo-select {
	width: 100%;
	margin-right: 15px;
	position: relative;
}

.formulario-tarjeta .grupo-select i {
	position: absolute;
	color: var(--input);
	top: 18px;
	right: 15px;
	transition: .3s ease all;
}

.formulario-tarjeta .grupo-select:hover i {
	color: var(--hoverInput);
}

.formulario-tarjeta .btn-enviar {
	border: none;
	padding: 10px;
	font-size: 22px;
	color: var(--colorHoverText);
	background: var(--hoverInput);
	box-shadow: 2px 2px 10px 0px rgba(0,85,212,0.4);
	cursor: pointer;
    transition: all 0.3s;
}

.formulario-tarjeta .btn-enviar:hover {
    transform: scale(1.04);
	background: var(--colorHoverText);
    color: var(--hoverInput);
}

.btn-remove-card{
    position: absolute;
    top: 1%;
    right: 0.8rem;
    color: var(--colorHoverText);
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-remove-card:hover{
    transform: scale(1.2);
    color: #C70039;
}

@media(max-width: 1105px){
	.tarjeta{
		margin-left: 20%;
		margin-top: 10%;
		width: 100%;
		max-width: 550px;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 15%;
	
		background: #fff;
		width: 100%;
		max-width: 700px;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}

@media(max-width: 905px){
	.tarjeta{
		margin-left: 15%;
		margin-top: 10%;
		width: 100%;
		max-width: 550px;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 10%;
	
		background: #fff;
		width: 100%;
		max-width: 700px;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}

@media(max-width: 805px){
	.tarjeta{
		margin-left: 7%;
		margin-top: 10%;
		width: 100%;
		max-width: 550px;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 2%;
		background: #fff;
		width: 100%;
		max-width: 700px;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}


@media(max-width: 743px){
	.tarjeta{
		margin-left: 4%;
		margin-top: 15%;
		width: 100%;
		max-width: 550px;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 7%;
		margin-top: 4%;
		background: #fff;
		width: 100%;
		max-width: 600px;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}



@media(max-width: 690px){
	.tarjeta{
		margin-left: 8%;
		margin-top: 15%;
		width: 80%;
		max-width: 400px;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 7%;
		margin-top: 4%;
		background: #fff;
		width: 100%;
		max-width: 90%;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}


@media(max-width: 547px){
	.tarjeta{
		margin-left: 1%;
		margin-top: 15%;
		width: 100%;
		max-width: 80%;
		position: relative;
		color: #fff;
		transition: .3s ease all;
		transform: rotateY(0deg);
		transform-style: preserve-3d;
		backface-visibility: hidden;
		cursor: pointer;
		z-index: 2;
	}
	.formulario-tarjeta {
		margin-left: 2%;
		margin-top: 4%;
		background: #fff;
		max-width: 90%;
		padding: 150px 30px 30px 30px;
		border-radius: 10px;
		position: relative;
		top: -150px;
		z-index: 0;
		clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	}	
}
