@charset "utf-8";
/* CSS Document */

p{
    text-align: justify;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    padding-right: 5%;
    line-height: 1.5em;
    padding-top: 2%;
}

p span{
   font-weight: bold;
}

#content{
    padding-bottom: 6%;
}

/*****************IMAGENES********************/


#imagenes{ /*CONTENEDOR PRINCIPAL IMAGENES*/
    margin:auto;
    margin-left: 80px;
    margin-top: 5%;
    overflow: auto;
}

#imagen{ /*  DIV IMAGEN  */
    position: relative;
    float: left;
    width: 400px;
    height: 400px;
    margin: 10px;
}
.im1{background-image:url(../img/fibra22.jpg);}
.im2{background-image:url(../img/electric.jpg);}
.im3{background-image:url(../img/ilum.jpg);}
.im4{background-image:url(../img/rack2.jpg);
    background-size: 120%;
}
/*IMG DIFERENTES*/


.link { /*div contenedor link*/
    position:absolute; 
    overflow: hidden;
    width: 400px;
    height: 400px;
    background-color:rgba(31,31,31,0.5);
    -webkit-transition:opacity 0.6s;
    -moz-transition:opacity 0.6s;
    opacity: 0;
}

#imagen:hover .link{
    opacity: 1;
}

.textoimagen{
    font-size: 21px;
    position: absolute;
    text-decoration: none;
    font-family: 'Days One', sans-serif;
    color:white;
    letter-spacing: 2px;
    padding-left: 35%;/* De esta manera el enlace ocupa prácticamente todo el bkg*/
    padding-top: 45%;
    padding-bottom: 50%;
    padding-right: 22%;
}

/*********************************************/

@media screen and (max-width:600px){
    .link { /*div contenedor link*/
        opacity: 1;
        width: 100%;
    }
    #imagen{ /*  DIV IMAGEN  */
        width: 90%;
        height: 400px;
        margin: 0%;
        margin-top: 2%;
    }
    .textoimagen{
        font-size: 2em;
        position: absolute;
        margin-top: 00%;
        margin-left: 00%;

        padding-left: 20%;
        padding-top: 27%;
        padding-bottom: 33%;
        padding-right: 6%;
    }
    
    .im1 .textoimagen{
        padding-right: 40%;
    }
    .im4 .textoimagen{
        padding-right: 22%;
    }
    
    .im4{background-image:url(../img/rack1.jpg);}
    
    #content p{
        padding-top: 8%;
    }

}
