:root{
    --colorTextos: #49454567;
}

/*
Web hecha con AlexCG Design, si te sirvió la plantilla por favor entra a AlexCG Design
        esta plantilla es libre para usar, así como otras plantillas más que tenemos en el canal...
        ->>>> https://www.youtube.com/alexcgdesign <<<<-
*/

*,
::before,
::after {
}

body {
    
    width: 100%;
    justify-content: center;
    align-items: center;
}

h1{
    text-align: center;
  
}

form{
    
    width: 30%;
    padding: 10px 0;
    
}

.form{
    width: 80%;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: justify;
}

form .grupo{
    position: relative;
    margin: 45px 0 45px 0;
}

input, textarea{
    background: none;
    color:#c6c6c6;
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border:none;
    border-bottom: 1px solid var(--colorTextos);
    resize: none;
}

input:focus,textarea:focus{
    outline: none;
    color: rgb(94,93,93);
}

input:focus~label, 
input:valid~label, 
textarea:focus~label, textarea:valid~label{
    position: absolute;
    top: -14px;
    font-size: 12px;
    color: #2196F3;
}

label{
    color: var(--colorTextos);
    font-size: 16px;
    position: absolute;
    left: 5px;
    top:10px;
    transition: 0.5s ease all;
    pointer-events: none;
}


input:focus~.barra::before, textarea:focus~.barra::before{
    width: 100%;
}
.barra{
    position: relative;
    display: block;
    width: 100%;
}
.barra::before{
    content: '';
    height: 2px;
    width: 0%;
    bottom: 0;
    position: absolute;
    background: linear-gradient(135deg, rgb(8, 8, 118) 0%, rgb(0, 233, 249) 100%);
    transition: 0.3s ease all;
    left: 0%;
}
.buttoncontact{
    background-color: rgb(8, 8, 118);
    background: -moz-linear-gradient(135deg, rgb(8, 8, 118) 0%, rgb(0, 233, 249) 100%);
    background: -webkit-linear-gradient(135deg, rgb(8, 8, 118) 0%, rgb(0, 233, 249) 100%);
    background: linear-gradient(135deg, rgb(8, 8, 118) 0%, rgb(0, 233, 249) 100%);
    display: block;
    width: 30%;
    height: 50px;
    border:none;
    color:#fff; 
    border-radius: 4px;
    font-size: 16px;
    margin: 10px auto;
    cursor: pointer;
}

@media screen and (max-width:1100px){
    form{
        width: 70%;
    }
    .buttoncontact{
        width: 70%;
    }
}

@media screen and (max-width:600px){
    form{
        width: 80%;
    }
    .buttoncontact{
        width: 70%;
    }
}

@media screen and (max-width:450px){
    form{
        width: 90%;
    }
    .buttoncontact{
        width: 70%;
    }
}

@media screen and (max-width:300px){
    form{
        width: 95%;
    }
    .buttoncontact{
        width: 70%;
    }
}

.alert{
  text-align: center;
  padding:10px;
  background:#79c879;
  color:#fff;
  margin-bottom:10px;
  display:none;
}