*, *:before, *:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-card-layer: rgba(169, 169, 169, .8);
}

.root {
    font-size: 16px;
    font-family: sans-serif;
    padding: 15px;
}

.our-team__title {
    text-align: center;
    margin: 15px 0;
    font-size: 2rem;
}

.cards-container  {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 10px 10px;
    max-width: 1200px;
    margin: auto;
}

@media screen and (min-width: 576px) {
    .cards-container  {
        grid-template-columns: repeat(2, auto);
    }
}

@media screen and (min-width: 768px) {
    .cards-container  {
        grid-template-columns: repeat(3, auto);
    }
}

@media screen and (min-width: 992px) {
    .cards-container  {
        grid-template-columns: repeat(3, auto);
    }

    .our-team__title {
        font-size: 2.5rem;
    }
}

.card {
    position: relative;
    overflow: hidden;
}

.card__layer {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-card-layer);

    animation-duration: .3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.card__layer.enter-top {
    animation-name: enterTop;
}

.card__layer.enter-bottom {
    animation-name: enterBottom;
}

.card__layer.enter-left {
    animation-name: enterLeft;
}

.card__layer.enter-right {
    animation-name: enterRight;
}

.card__layer.leave-top {
    animation-name: leaveTop;
}

.card__layer.leave-bottom {
    animation-name: leaveBottom;
}

.card__layer.leave-left {
    animation-name: leaveLeft;
}

.card__layer.leave-right {
    animation-name: leaveRight;
}

@keyframes enterTop {
    from {
        top: -100%;
        left: 0;
    }
    to {
        top: 0;
        left: 0;
    }
}

@keyframes leaveTop {
    from {
        top: 0;
        left: 0;
    }
    to {
        top: -100%;
        left: 0;
    }
}

@keyframes enterBottom {
    from {
        top: 100%;
        left: 0;
    }
    to {
        top: 0;
        left: 0;
    }
}

@keyframes leaveBottom {
    from {
        top: 0;
        left: 0;
    }
    to {
        top: 100%;
        left: 0;
    }
}

@keyframes enterLeft {
    from {
        top: 0;
        left: -100%;
    }
    to {
        top: 0;
        left: 0;
    }
}

@keyframes leaveLeft {
    from {
        top: 0;
        left: 0;
    }
    to {
        top: 0;
        left: -100%;
    }
}

@keyframes enterRight {
    from {
        top: 0;
        left: 100%;
    }
    to {
        top: 0;
        left: 0;
    }
}

@keyframes leaveRight {
    from {
        top: 0;
        left: 0;
    }
    to {
        top: 0;
        left: 100%;
    }
}


.card__title, .card__description {
    display: block;
    width: 100%;
    text-align: center;
}

.card__title {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card__description {
    font-size: 1.2rem;
}

.card__layer, .card__bg-img, .card {
    border-radius: 5px;
}

.card__bg-img {
    display: block;
    width: 100%;
}
/* Formulario */
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
}

:focus{
    outline: none;
}

body{
    background: #DBDBDB;
    font-family: 'Open sans';
}

/* FORMULARIO =================================== */

.form_wrap{
    width: 1050px;
    height: 530px;
    margin: 50px auto;
    display: flex;

    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

/* Informacion de Contacto*/

.cantact_info::before{
    content: '';
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;

    background: #12bd4b;
    opacity: 0.9;
}

.cantact_info{
    width: 38%;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-image: url('../fondo.jpg');
    background-size: cover;
    background-position: center center;

}

.info_title,
.info_items{
    position: relative;
    z-index: 2;
    color: #fff;
}

.info_title{
    margin-bottom: 60px;
}

.info_title span{
    font-size: 100px;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.info_title h2{
    font-size: 35px;
    text-align: center;
}

.info_items p{
    display: flex;
    align-items: center;

    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info_items p:nth-child(1) span{
    font-size: 30px;
    margin-right: 10px;
}

.info_items p:nth-child(2) span{
    font-size: 50px;
    margin-right: 15px;
    margin-left: 4px;
}


/* Formulario de contacto*/
form.form_contact{
    width: 62%;
    padding: 30px 40px;
}

form.form_contact h2{
	font-size: 25px;
	font-weight: 600;
	color: #807d7d;
	margin-bottom: 30px;
}

form.form_contact .user_info{
    display: flex;
    flex-direction: column;
}

form.form_contact label{
    font-weight: 600;
}

form.form_contact input,
form.form_contact textarea{
    width: 100%;
    padding: 8px 0px 5px;
    margin-bottom: 20px;

    border: none;
    border-bottom: 2px solid #999999;

    font-family: 'lato';
	color: #464646;
	font-size: 14px;
	font-weight: 400;
}

form.form_contact textarea{
    max-width: 100%;
    min-width: 100%;
    max-height: 90px;
}

form.form_contact input[type="button"]{
    width: 180px;
	background: #1ae6a2;
	padding: 10px;
	border: none;
	border-radius: 25px;

    align-self: flex-end;

    color: #fff;
	font-family: 'lato';
	font-size: 300px;
	font-weight: 600;
	cursor: pointer;
}

form.form_contact input[type="button"]:hover{
    background: #33b65f;
}

/* Ventana de errores*/
.modal_wrap{
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: center;
}

.mensaje_modal{
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
    width: 400px;
    padding: 30px 20px 15px;
}

.mensaje_modal h3{
    text-align: center;
    font-family: 'lato';
	font-size: 20px;
	font-weight: 400;
}

.mensaje_modal h3:after{
    content: 'lato';
	display: block;
	width: 100%;
	height: 1px;
	background: #C5C5C5;
	margin: 10px 0px 15px;
}

.mensaje_modal p{
    font-size: 16px;
    color: #606060;
}

.mensaje_modal p:before{
    content: "\f00d";
    font-family: FontAwesome;
    display: inline-block;
    color: #0ac247;
    margin-right: 8px;
}

#btnClose{
    display: inline-block;
	padding: 3px 10px;
	margin-top: 10px;
	background: #ffffff;
	color: #fff;
	border: 2px solid #ffffff;
	cursor: pointer;
	float: right;
}
@media screen and (max-width:900px){
	.form_wrap{
        width: 100%;
        height: 100%;
        margin: 0px auto;
    }
    .cantact_info{
        width: 0;
        position: relative;
    
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    
        background-image: url('../');
        background-size: cover;
        background-position: center center;
    
    }
    form.form_contact{
        width: 100%;
        padding: 30px 40px;
    }
    .info_title,
    .info_items{
    position: relative;
    z-index: 2;
    color: transparent;
}

}
