/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
p{
    line-height: 1.2em;
    margin-bottom: 10px;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* TIPOGRAFIAS --------------------------*/   
/* @font-face {
    font-family: 'futura_hv_btheavy';
    src: url('../fonts/futurah-webfont.eot');
    src: url('../fonts/futurah-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/futurah-webfont.woff2') format('woff2'),
         url('../fonts/futurah-webfont.woff') format('woff'),
         url('../fonts/futurah-webfont.ttf') format('truetype'),
         url('../fonts/futurah-webfont.svg#futura_hv_btheavy') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'futura_md_btmedium';
    src: url('../fonts/tt0142m_-webfont.eot');
    src: url('../fonts/tt0142m_-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/tt0142m_-webfont.woff2') format('woff2'),
         url('../fonts/tt0142m_-webfont.woff') format('woff'),
         url('../fonts/tt0142m_-webfont.ttf') format('truetype'),
         url('../fonts/tt0142m_-webfont.svg#futura_md_btmedium') format('svg');
    font-weight: normal;
    font-style: normal;

} */

@font-face {
    font-family: 'brandon_grotesquebold';
    src: url('../fonts/brandon_bld-webfont.eot');
    src: url('../fonts/brandon_bld-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/brandon_bld-webfont.woff2') format('woff2'),
         url('../fonts/brandon_bld-webfont.woff') format('woff'),
         url('../fonts/brandon_bld-webfont.ttf') format('truetype'),
         url('../fonts/brandon_bld-webfont.svg#brandon_grotesquebold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'brandon_grotesqueblack';
    src: url('../fonts/brandon_blk-webfont.eot');
    src: url('../fonts/brandon_blk-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/brandon_blk-webfont.woff2') format('woff2'),
         url('../fonts/brandon_blk-webfont.woff') format('woff'),
         url('../fonts/brandon_blk-webfont.ttf') format('truetype'),
         url('../fonts/brandon_blk-webfont.svg#brandon_grotesqueblack') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'brandon_grotesquelight';
    src: url('../fonts/brandon_light-webfont.eot');
    src: url('../fonts/brandon_light-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/brandon_light-webfont.woff2') format('woff2'),
         url('../fonts/brandon_light-webfont.woff') format('woff'),
         url('../fonts/brandon_light-webfont.ttf') format('truetype'),
         url('../fonts/brandon_light-webfont.svg#brandon_grotesquelight') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'brandon_grotesquemedium';
    src: url('../fonts/brandon_med-webfont.eot');
    src: url('../fonts/brandon_med-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/brandon_med-webfont.woff2') format('woff2'),
         url('../fonts/brandon_med-webfont.woff') format('woff'),
         url('../fonts/brandon_med-webfont.ttf') format('truetype'),
         url('../fonts/brandon_med-webfont.svg#brandon_grotesquemedium') format('svg');
    font-weight: normal;
    font-style: normal;

}
h1, h2, h3 ,h4, h5{
    /* font-family: 'futura_hv_btheavy'; */
    font-family: 'brandon_grotesquebold';
    color: #00A5C8;
}
h5{
    font-size: 15px;
    margin-bottom: -5px;
}
p, a, span {
    /* font-family: arial , sans-serif; */
    font-family: 'brandon_grotesquelight';
    color: #7D7D7D;
    font-size: 15px;
}

.titulares{
    border-bottom: solid 7px;
    /* font-family: arial, sans-serif; */
    font-family: 'brandon_grotesquebold';
    font-weight: bold;
    line-height: 21px;
    width: 50%;    
    letter-spacing: -3px;
    font-size: 35px;
    padding-top: 5px;
}
/* GRAL ---------------------------------*/
/* formularios */
input, textarea{
    font-size: 11px;   
    line-height: 12px;
    margin-bottom: 2px;
    border: solid thin #7D7D7D;
}
textarea{
    resize: none;
    height: 80px;
    margin-top: 3px;
}
.doce{
    width: 100%;
}
.seis{
    width: 49.2%;
}
.bluelink p a{ 
    color: #00A5C8;
}
.principal{
    margin-top: 10px;
    padding-bottom: 300px;  
}
/* paletas */
.celeste{
    color: #00A5C8 !important;
} 
.gris{
    color: #7D7D7D !important;
}
.imgder{
    width: 80%;
    height: auto;
    margin: auto;
}
.btn{
    display: inline-block;
    padding: 5px;
    border: solid 2px #EAEAEA;
    background: #00A5C8;
    color: white;
    text-align: center;
    outline: none;
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.btn:hover{
    background: #fff;
    color: #00A5C8;
    border: solid 2px #00A5C8;  
}
/* HEADER ------------------------------*/
header .row{
    position: relative;
}

.logo{
    width: 95px;
    height: 95px;
    display: block;
    margin: auto;

}
.logo img{
    width: 95px;
    height: 95px;
    display: block;
    margin: auto;

}
#noindex{
    display: block;
    width: 100%;
    height: 70px;
    background: #7D7D7D;
    padding-top: 10px;      
}

#indexheader{
    position: relative;
    padding-top: 10px;
}
.barragris{
    height: 50px;
    width: 100%;
    background: #7D7D7D;
    display: block;
    position: absolute;
    top: 75px;
}
.textheader{
    /* font-family: 'futura_md_btmedium'; */
    font-family: 'brandon_grotesquemedium';
    color: #fff;
    padding-top: 78px;
}
.socialbar{
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 999999;
}
.socialbar li{
    list-style: none;
    display: inline-block;
}
.socialbar li a img{
    
    height: 25px;
    width: auto;
}
.socialbar li a:hover{
    -ms-opacity: 0.8;
    -o-opacity: 0.8;
    -moz-opacity: 0.8;    
    -webkit-opacity: 0.8;
    opacity: 0.8;
}

/* NAV ----------------------------------*/
.active{
    opacity: 1;
    filter: alpha(opacity=100); /* For IE8 and earlier */
}
nav ul{
    list-style-type: none;
}
nav ul li{
    display: inline-block;
    margin: 0px 5px;
}
nav ul li a{
    display: block;
    margin: 0px 5px;
    opacity: 0.7;
    filter: alpha(opacity=70); /* For IE8 and earlier */
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
nav ul li a img{
    width: 50px;
    height: 50px;
}
nav ul li a:hover{
    opacity: 1;
    filter: alpha(opacity=100); /* For IE8 and earlier */   
}
.abajo{
    background: #fff;
    display: block;
    width: 100%;
    position: fixed;
    bottom: 0px;
    z-index: 9;

}
.abajo nav{
    padding-top: 10px;
    border-top: solid 5px gray;
}
.abajo ul{
    margin: 0px;
    margin-bottom: 5px;
    border-bottom: solid thin #D0D0D0;
}

/* FOOTER */
footer{
    color: #ccc;
    clear: both;
    margin: -3px;
}
footer p, footer a{
    font-size: 12px;
    margin-bottom: 5px; 
}
footer a{
    color: #00A5C8;
}

/* IMAGENES GRISES ----------------------------------*/
.mangcontainer{
    height: 317px;
    overflow: hidden;
}
.cuarto{
    width: 24%;
    height: 383px;
    display: block;
    float: left;
    margin-right: 3px;
    position: relative;    
    overflow: hidden;
    max-height: 317px;
    background-color: #333;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    background-size: cover;
}
.fer1{background-image: url(../img/ferreteria1-byn.jpg);}
.fer2{background-image: url(../img/ferreteria2-byn.jpg);}
.fer3{background-image: url(../img/ferreteria3-byn.jpg);}
.fer4{background-image: url(../img/ferreteria4-byn.jpg);}

.fer1:hover{background-image: url(../img/ferreteria1.jpg);}
.fer2:hover{background-image: url(../img/ferreteria2.jpg);}
.fer3:hover{background-image: url(../img/ferreteria3.jpg);}
.fer4:hover{background-image: url(../img/ferreteria4.jpg);}

.mang1{background-image: url(../img/mang-verde-byn.jpg);}
.mang2{background-image: url(../img/mang-amarilla-byn.jpg);}
.mang3{background-image: url(../img/mang-roja-byn.jpg);}
.mang4{background-image: url(../img/mang-negra-byn.jpg);}

.mang1:hover{background-image: url(../img/mang-verde.jpg);}
.mang2:hover{background-image: url(../img/mang-amarilla.jpg);}
.mang3:hover{background-image: url(../img/mang-roja.jpg);}
.mang4:hover{background-image: url(../img/mang-negra.jpg);}


.epigrafe{    
    position: absolute;
    width: 100%;
    text-align: center;
    margin: auto;
    bottom: -10px;
    z-index: 8;
}
.epigrafe p{
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 2px black;
}


#mob{
    width: 100%;
    background: #00A5C8;
    color: white;
    display: none;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

// Small screens
@media only screen { } /* Define mobile styles */

@media only screen and (max-width: 40em) { 

    aside{
        display: none;
    }
    .minihide{
        display: none;
    }
    .titulares{
        width: 100%;
        line-height: 1em
    }
    form{
        text-align: center;
        margin-top: 20px;
    }
    p,a,label, input, textarea{
        font-size: 1em;
    }
    .seis{
        width: 100%;
    }
    article{
        margin-bottom: 10px;
    }
    #menu{
        display: none;
        padding: 10px;
    }
    #mob{
        display: block;
    }
    footer{
        display: none;
    }
    .abajo nav{
        padding-top: 0px;
    }
    .barragris{
        display: none;
    }
    .minicenter{
        text-align: center;
    }

} /* max-width 640px, mobile-only styles, use when QAing mobile issues */

// Medium screens
@media only screen and (min-width: 40.063em) { } /* min-width 641px, medium screens */

@media only screen and (min-width: 40.063em) and (max-width: 64em) { } /* min-width 641px and max-width 1024px, use when QAing tablet-only issues */

// Large screens
@media only screen and (min-width: 64.063em) { } /* min-width 1025px, large screens */

@media only screen and (min-width: 64.063em) and (max-width: 90em) { } /* min-width 1025px and max-width 1440px, use when QAing large screen-only issues */

// XLarge screens
@media only screen and (min-width: 90.063em) { } /* min-width 1441px, xlarge screens */

@media only screen and (min-width: 90.063em) and (max-width: 120em) { } /* min-width 1441px and max-width 1920px, use when QAing xlarge screen-only issues */

// XXLarge screens
@media only screen and (min-width: 120.063em) { } /* min-width 1921px, xxlarge screens */



@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}