.main-header
{
    position: relative;
    background: var(--secondary-color);
    padding: 10px 40px;
    box-shadow: -1px 8px 5px -5px rgba(0,0,0,0.4);
    -webkit-box-shadow: -1px 4px 5px -5px rgba(0,0,0,0.4);
    -moz-box-shadow: -1px 8px 5px -5px rgba(0,0,0,0.4);
}

.link-internas
{
    color: var(--tertiary-color);
}

.logo-white-header
{
    display: none;
}

.logo-black-header
{
    display: block;
}

.icon-white
{
    display: none;
}


/**************************************************************/
.contacto-main
{
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
}

.form-main
{
    padding: var(--padding-general);
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-main
{
    width: 50%;
}

.form-main-contacto
{
    padding: 30px 0;
}

.forms-group-main
{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, 1fr);
    row-gap: 40px;
}

.title-contacto
{
    font-family: sans-serif;
    font-weight: 800;
}

.subtitle-contacto-main h4
{
    font-weight: lighter;
}

.group5
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.group
{
    position: relative;
}

.inputs 
{
    font-size: 16px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 90%;
    border: none;
    border-bottom: 1px solid #515151;
    background: transparent;
}

.inputs:focus 
{
    outline: none;
}

label 
{
    color: #999;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.inputs:focus ~ label, .inputs:valid ~ label 
{
    top: -20px;
    font-size: 14px;
    color: var(--primary-color);
}

.inputs:focus
{
    border: 0;
}

.bar 
{
    position: relative;
    display: block;
    width: 90%;
}

.bar:before, .bar:after 
{
    content: '';
    height: 1px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: var(--primary-color);
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.bar:before 
{
    left: 50%;
}

.bar:after 
{
    right: 50%;
}

.inputs:focus ~ .bar:before, .inputs:focus ~ .bar:after 
{
    width: 50%;
}

.highlight 
{
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

.inputs:focus ~ .highlight 
{
    animation: inputsHighlighter 0.3s ease;
}

@keyframes inputsHighlighter 
{
    from 
    {
        background: var(--primary-color);
    }

    to 
    {
        width: 0;
        background: transparent;
    }
}

#map
{
    width: 100%;
    height: 100%;
}

.sm-contacto-main
{
    padding: 50px 80px;
    max-width: 1440px;
    margin: 0 auto;
}

.sm-main 
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.addres, .sm, .phone
{
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.title
{
    padding: 14px 60px; 
    display: block;
    color: #000;
    position: relative;
}

.title:before{
    content: '';
    position: absolute;
    width: 30%;
    border-radius: 20px;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    right: 0;
    margin: 0 auto;
    top: calc(100% - 10px);
}

.info, .icons
{
    padding: 20px 0;
}

.info p, .info p span
{
    display: flex;
    align-items: center;
}

.info p span
{
    margin: 0 5px;
}

.link-contacto
{
    color: #000;
    text-decoration: none;
    transition: all .3s;
}


.link-contacto:hover
{
    color: var(--primary-color);
}

.title h4   
{
    font-size: 22px;
    text-transform: uppercase;
}

.icons
{
    display: flex;
    column-gap: 20px;
}

.ig-main, .fb-main, .lk-main
{
    position: relative;
}

.icon1
{

}

.icon2  
{
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    transition: all .2s;
}

.ig-main:hover .icon2
{
    opacity: 1;
}

.fb-main:hover .icon2
{
    opacity: 1;
}

.lk-main:hover .icon2
{
    opacity: 1;
}

.btn-contacto
{
    border: none;
    cursor: pointer;
}

.active::before
{
    background: var(--primary-color);
}


@media(max-width: 992px)
{
    .contacto-main
    {
        flex-direction: column;
    }

    .form-main, .map-main
    {
        width: 100%;
    }

    .map-main
    {
        height: 650px;
    }

    .form-main, .sm-contacto-main
    {
        padding: 50px 60px;
    }

    .sm-main
    {
        grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
        row-gap: 20px;
    }

    .logo-white-header
    {
        display: block;
    }

    .logo-black-header
    {
        display: none;
    }

    .icons{
        display: none;
    }

    .icons-contact
    {
        display: flex;
    }

    .inputs
    {
        width: 100%;
    }

    .bar
    {
        width: 100%;
    }

    .subtitle-contacto-main h4, .title-contacto
    {
        text-align: center;
    }

    .link-internas
    {
        color: #fff;
    }
}

@media(max-width: 768px)
{
    .form-main, .sm-contacto-main
    {
        padding: 50px 40px;
    }
}

@media(max-width: 576px)
{
    .form-main, .sm-contacto-main
    {
        padding: 50px 20px;
    }
}