body,html 
{
    margin: 0;
    padding: 0;
}

* 

a
{
    text-decoration: none;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/*tipografia*/
#contenedor_portada>span,#contacto_cabecera p, #contacto_cabecera h1, #contenedor_portada>input, #contenedor_portada button, #contenedor_servicios span, #contenedor_texto_portfolio h1, #contenedor_texto_portfolio p, #contenedor_portfolio h1, .portfolio h1, .portfolio p
{
    font-family: 'Raleway', sans-serif;
}

#portada
{
    width: 100%;
    height: 100vh;
    background-image: url("../imagenes/portada.jpg");
    background-position: top;
    background-repeat: no-repeat;
    margin-top: -6%;
    background-size: cover;
}

#contenedor_portada
{
    width: 40%;
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    display: none;
}

#contenedor_portada>span 
{
    text-align: center;
    color: #f3f3f3;
    font-weight: 800;
    font-size: 1.6vw;
}

#contenedor_portada>input, #contenedor_portada button
{
    height: 30px;
    border: none;
    border-radius: 25px;
    width: 20%;
    padding-left: 15px;
    font-weight: 200;
    font-size: 10px;
}

#contenedor_portada input:nth-child(3)
{
    margin-left: 5%;
    width: 40%;
}

#contenedor_portada button
{
    margin-left: 5%;
    background-image: linear-gradient(to right, #9d58aa , #db4e49);
    color: #f3f3f3;
    cursor: pointer;
}

#contenedor_portada button:hover
{
    transition: color 3s ease;
    opacity: 0.8;
    background-image: linear-gradient(to left, #9d58aa , #db4e49);
    font-weight: 800;
    border: 1px solid #db4e49;
}

#contenedor_servicios
{
    width: 100%;
    height: 45vh;
    background: var(--color-verde);
    position: relative;
}

#contenedor_servicios>span
{
    width: 25%;
    height: 30vh;
    margin-top: 5vh;
    float: left;
    margin-left: 2%;
    color: white;
    cursor: pointer;
}

#contenedor_servicios span:first-child
{
    margin-left: 9.5%;
}

#contenedor_servicios span img 
{
    width: 30%;
    margin-left: 35%;
}

#contenedor_servicios span h1, #contenedor_servicios span p 
{
    padding: 0 20px 0 20px;
    text-align: center;
}

#contenedor_servicios span h1
{
    font-weight: 700;
    font-size: 1vw;
}

#contenedor_servicios span p
{
    font-weight: 300;
    font-size: 1vw;
}

#contenedor_texto_portfolio, #imagen_portfolio
{
    width: 40%;
    height: auto;
    margin: 30px 0 30px 0;
    float: left;
}

#contenedor_texto_portfolio
{
    color: #64727f;
    margin-right: 5%;
    margin-left: 7.5%;
}

#imagen_portfolio
{
    margin-left: 0;
}

#contenedor_texto_portfolio h1
{
    padding-top: 25px;
    font-weight: 500;
    padding-right: 120px;
}

#contenedor_texto_portfolio p
{
    padding-top: 20px;
    font-weight: 200;
    font-size: 20px;
    padding-right: 120px;
}

#contenedor_portfolio
{
    width: 100%;
    height: 100vh;
    background: #a6cd38;
    margin-top: 40vw;
}

.portfolio
{
    width: 25vw;
    height: 30vw;
    background: white;
    float: left;
    margin-left: 2.5vw;
}

#contenedor_portfolio div:nth-child(2)
{
    margin-left: 10vw;
}

#titulo_portfolio 
{
    color: #f3f3f3;
    font-weight: 100;
    text-align: center;
    padding-top: 7vw;
    padding-bottom: 2vw;
}

.portfolio img 
{
    width: 100%;
    height: 15vw;
}

.portfolio h1, .portfolio p 
{
    padding: 0;
    margin: 0;
    color: #333333;
    padding: 15px;
}

.portfolio h1
{
    padding-top: 0;
    padding-bottom: 25px;
    font-size: 1.5vw;
}

.portfolio p
{
    font-size: 0.8vw;
}

.portfolio p:nth-child(4)
{
    font-size: 1vw;
}

/*#galeria
{
    width: 90vw;
    margin-left: 5vw;
    height: 50vw;
    margin-top: 20vh;
}

#galeria div 
{
    width: 45vw;
    height: auto;
    padding: 0;
    float: left;
}

#galeria div h1, #galeria div p
{
    color: #333333;
    padding-right: 170px;
}

#galeria div h1
{
    font-size: 1.5vw;
    font-weight: 600;
    padding-top: 11vw;
}

#galeria div p
{
    font-size: 1.2vw;
    font-weight: 300;
}

#galeria div:nth-child(2) 
{
    width: 40vw;
    height: 40vw;
    float: left;
    padding: 0;
}

#galeria div:nth-child(2) img 
{
    object-fit: scale-down;
    width: 19vw;
    margin: 0.25vw;
    height: 19vw;
}*/

#cont_referencias
{
    height: 15vh;
    width: 100%;
    text-align: center;
}

#cont_referencias img 
{
    height: 10vh;
    width: auto;
    margin: 2.5vh 30px 0 30px;
}

#contacto
{
    position: relative;
    background: #a6cd38;
    width: 100%;
    height: auto;
    padding-top: 250px;
}

#contacto_cabecera
{
    height: auto;
    line-height: 6vh;
    text-align: center;
}

#contacto_cabecera a p, #contacto_cabecera a h1, #contacto_cabecera a i, #contacto_cabecera h1 
{
    color: white;
    font-size: 1vw;
    padding: 0;
    margin: 0;
}

#primer_contact
{
    padding-bottom: 50px;
    line-height: calc(8vh + 20px);
}

#contacto_cabecera a h1, #contacto_cabecera h1
{
    font-size: 2.5vw;
    font-weight: 500;
    letter-spacing: 5px;
    padding-bottom: 40px;
}

#logo_contacto
{
    height: 15vh;
    /* margin-top: 20px; */
    /* margin-left: 20px; */
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

#contacto_cabecera a i 
{
    color: #666666;
    font-size: 2.5vw;
    padding: 50px 20px 100px 20px;
}

#contacto_pie
{
    width: 80vw;
    margin-left: 10vw;
    height: 50vw;
}

#contacto_pie img 
{
    object-fit: cover;
    width: 35vw;
    height: 35vw;
    margin-right: 5vw;
    float: left;
}

#formulario
{
    width: 40vw;
    height: 40vw;
    float: left;
}

#formulario input , #formulario textarea, #formulario button
{
    height: 30px;
    border: none;
    color: #333333;
    background: white;
    border-radius: 25px;
    width: 50%;
    padding-left: 15px;
    font-weight: 200;
    font-size: 1vw;
    display: block;
    margin-top: 2vw;
}

#formulario textarea
{
    width: 100%;
    height: 10vw;
}

#formulario button
{
    width: 20%;
    background-image: linear-gradient(to right, #9d58aa , #db4e49);
    color: #f3f3f3;
    cursor: pointer;
    float: right;
}

#portada, #contenedor_portada
{
    -webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 4s; /* Firefox < 16 */
    -ms-animation: fadein 4s; /* Internet Explorer */
    -o-animation: fadein 4s; /* Opera < 12.1 */
    animation: fadein 4s;
}

#formulario i
{
    float: right;
    margin-top: 2vw;
    font-size: 2vw;
    margin-right: 10px;
    color:#333333;
    cursor: pointer;
}

#formulario i:nth-of-type(1)
{
    margin-right: 20px;
}

#redes
{
    position: fixed;
    top: 175px;
    left: 5px;
    z-index: 3;
    display: block;
    width: 60px;
    text-align: center;
    height: auto;
    background: var(--color-verde);;
    opacity: 0.9;
    border: 1px solid white;
    font-size: 1vw!important;
    border-radius: 15px;
    transition: all 1s ease;
}

.redes_scroll
{
    top: 86px!important;
}

#redes i 
{
    color: white;
    font-size: 1.5vw;
    margin: 10px;
    cursor: pointer;
}

#redes i:hover 
{
    transition: color 2s ease-out;
    color: #333333;
}

#galeria
{
    width: 80vw;
    margin-left: 10vw;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 15vw);
    grid-template-rows: repeat(3,15vw);
    grid-gap: 20px;
    justify-content: center;
    padding: 100px 0px;  
}

#galeria img
{
    width: 15vw;
    height: 15vw;
    object-fit: contain;
}

@media (max-width:1024px)
{
    #redes i 
    {
        font-size: 4vw;
    }

    #contenedor_portada
    {
        width: 80%;
        top: 50vh;
    }

    #contenedor_portada>span 
    {
        font-weight: 300;
        font-size: 18px;
    }

    #contenedor_portada>input, #contenedor_portada button, #contenedor_portada input:nth-child(3)
    {
        width: 70vw;
        left: 15vw;
        margin-left: 0;
        margin-top: 15px;
    }

    #contenedor_portada button
    {
        width: 90vw;
        margin-left: -5vw;
        
    }

    #contenedor_servicios
    {
        height: auto;
        padding-bottom: 50px;
    }
    
    #contenedor_servicios>span
    {
        width: 50%;
        float: none;
        margin-left: 25%;
        
    }
    
    #contenedor_servicios span:first-child
    {
        margin-left: 25%;
    }
    
    #contenedor_servicios span img 
    {
        width: 40%;
        margin-left: 5%;
        margin-top: 50px;
    }

    #contenedor_texto_portfolio
    {
        width: 100%;
        height: auto;
        position: relative;
        margin: 0;
        float: none;

        background-image: url("../imagenes/URUNDAY\ 3.jpg");
        background-position: center;
        background-size: cover;
        background-color: rgba(0,0,0,0.5);
        background-blend-mode: color;

        padding: 50px;
        display: table-cell;
    }

    #imagen_portfolio
    {
        display: none;
    }

    #contenedor_texto_portfolio
    {
        color: #64727f;
        text-align: center; 
        position: relative;
        z-index: 1;
    }

    #contenedor_texto_portfolio h1, #contenedor_texto_portfolio p 
    {
        padding: 0;
        color: #f3f3f3;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #contenedor_texto_portfolio h1
    {
        font-size: 5vw;
    }
   
    #contenedor_texto_portfolio p
    {
        font-size: 4vw;
    }

    #imagen_portfolio
    {
        margin-top: 0;
        filter: brightness(70%);
    }

    #contenedor_portfolio
    {
        margin-top: 0;
    }

    #contenedor_texto_portfolio, #imagen_portfolio
    {
        margin-bottom: 0;
    }

    #titulo_portfolio
    {
        padding-top: 0;
        margin-top: 0;
        font-weight: 700;
        padding: 5vw 10vw 0 10vw;
        font-size: 5vw;
    }

    /*.portfolio:not(#portfolio_cabecera)
    {
        display: none;
    }*/

    .portfolio
    {
        width: 95vw;
        height: 100vw;
        margin-left: 2.5vw !important;
        margin-right: 2.5vw!important;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .portfolio img 
    {
        height: 50vw;
    }

    .portfolio h1
    {

        font-size: 5vw;
        padding-bottom: 0;
    }

    .portfolio p
    {
        font-size: 3vw;
    }

    .portfolio p:nth-child(4)
    {
        font-size: 4vw;
        font-weight: 300;
    }

    #contenedor_portfolio
    {
        height: auto;
        position: relative;
        display: inline-block;
        margin-bottom: 50px;
    }
    
    #galeria
    {
        width: 95vw;
        margin-left: 2.5vw;
        grid-template-columns: repeat(2, 40vw);
        grid-template-rows: repeat(6,40vw);
        grid-gap: 5px;
    }

    #galeria img, .port_img
    {
        width: 40vw!important;
        height: 40vw!important;
    }

    /*
    #galeria div:nth-child(1)
    {
        display: none;
    }

    #galeria div:nth-child(2) img 
    {
        width: 40vw;
        margin-left: 2.5vw;
        margin-right: 2.5vw;
        height: 30vw;
    }

    #galeria div:nth-child(2)
    {
        width: 95vw;
        height: auto;
    }*/

    #cont_referencias img 
    {
        width: 15vw;
        height: auto;
        margin: 0 3vw 0 3vw;
    }

    #cont_referencias 
    {
        position: relative;
        display: inline-block;
        margin-top: 30px;
    }

    #contacto_cabecera a p
    {
        font-size: 3vw;
    }

    #contacto_cabecera a h1, #contacto_cabecera h1
    {
        font-size: 5vw;
    }

    #logo_contacto
    {
        position: relative;
        left:50%;
        transform: translateX(-50%);
        margin-left: 0;
        height: 8vh;
    }

    #primer_contact
    {
        font-size: 4vw;
        padding-bottom: 0;
    }

    #contacto_cabecera a i 
    {
        font-size: 10vw;
        padding-bottom: 20px;
    }

    #contacto_pie
    {
        height: 80vw;
        width: 90vw;
        margin-left: 2.5vw;
        margin-top: 25px;
    }

    #contacto_pie img
    {
        display: none;
    }

    #formulario input, #formulario textarea, #formulario button,#formulario
    {
        width: 100%;
    }

    #formulario textarea
    {
        height: 10vh;
        border-radius: 10px;
    }

    #formulario button
    {
        width: 40vw;
        position: relative;
        left:-50%;
        padding: 0;
        margin: 0;
        margin-top: 50px;
        transform: translateX(50%);
    }

    #formulario input, #formulario textarea, #formulario button
    {
        font-size: 3vw;
    }

    #contacto
    {
        padding-top: 0;
        height: 500px;
    }

    #formulario i
    {
        float: none;
        font-size: 5vw;
        margin-left: 10px;
    }

    #formulario i:nth-of-type(1)
    {
        margin-right: 0;
    }

    #contenedor_servicios span h1
    {
        font-size: 6vw;
    }

    #contenedor_servicios span p
    {
        font-size: 5vw;
    }

    #logo_contacto
    {
        top:25px;
    }

    #redes
    {
        top: 30px;
    }

    #redes i
    {
        font-size: 5vw;
    }
}
