/*-- Reset --*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent;} body {line-height: 1;}ol, ul{list-style:none;} blockquote, q{quotes:none;} blockquote:before, blockquote:after, q:before, q:after{content:'';content:none;} :focus{outline:0;} ins{text-decoration:none;} del{text-decoration:line-through;} table{border-collapse:collapse; border-spacing:0;}

/*-- Main --*/
body {
    margin: 0;
    padding: 0;
    background: #F5F5F5;
    font-family: 'Exo', sans-serif;
    font-size: 1em;
    color: #717171;
    line-height: 1.5em;
    /* Para ajustar a la altura del header */
    padding-top: 120px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

a:hover {
    text-decoration: underline;
}
/*
footer a {
    text-decoration: none;
    color: inherit;
}

footer a:visited {
    color: inherit;
}

footer a:hover {
    text-decoration: underline;
}
*/
/* títulos del main-content */
h1 {
    color: #BEBEBE;
    font-size: 2.3em;
    line-height: 1.3em;
    margin: 15px 0;
    text-align: center;
}

h1 span {
    color: #5E5E5E;
}

/* títulos del acordeón */
h2 {
    font-size: : 2.3em;
    line-height: 45px;
    margin: 0 0;
    text-align: left;
    padding-left: 10px;
}

/* títulos del footer */
h3 {
    color: #FFF;
    font-size: 1.0em;
    line-height: 40px;
    text-align: left;
}

p {
    margin: 0 0 1.5em 0;
}

p span {
    color: #1A8327;
}

.anchor {
    display: block;
    position: relative;
    top: -90px;
    visibility: hidden;
}

.anchor2 {
    display: block;
    position: relative;
    top: -200px;
    visibility: hidden;
}

/*-- Header --*/
#main-header {
    background: #E3E3E3;
    color: #212121;
    height: 120px;
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    border-top: 6px solid #1A8327;
    min-width: 820px;
    z-index: 1000;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);
/*
    -webkit-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);
*/  
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    -ms-transition: height 0.3s;
    -o-transition: height 0.3s;
    transition: height 0.3s;
}

#main-header #logo {
    position: absolute;
    float: left;
    display: inline-block;
    margin-top: 20px; /*10*/
    margin-left: 40px;
    width: 350px; /*271*/
    height: 70px; /*66*/
    background-image: url("../img/menu-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    
    /* 1280x309 - */
}

#main-header #logo:hover {
    cursor: pointer; 
    cursor: hand;
}

#main-header #menu-hamburger {
    display: none;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 30px;
    right: 10px;
    border: none;
    background: #E3E3E3;
    background-image: url("../img/menu-ham.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#main-header #menu-hamburger:hover {
    cursor: pointer; 
    cursor: hand;
}

#main-header #menu-cross {
    display: none;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 30px;
    right: 10px;
    border: none;
    background: #E3E3E3;
    background-image: url("../img/menu-cross.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#main-header #menu-cross:hover {
    cursor: pointer; 
    cursor: hand;
}

#main-header #emergencias {
    display: none;
    position: absolute;
    right: 10px;
    height: 20px;
    line-height: 20px;
    font-size: 0.8em;
    color: #FFF;
    background: #1A8327;
    padding: 0px 20px;
    border-radius: 0 0 5px 5px;
    cursor: pointer; 
    cursor: hand;
}

/*-- Menu Navegación --*/
#main-header nav {
    float: right;
    font-weight: normal;
}

#nav-menu {
    margin: 0;
    padding: 0;
    height: 122px;
    list-style: none;
    padding-right: 30px;
    display: table-cell;
    vertical-align: bottom;
    
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    -ms-transition: height 0.3s;
    -o-transition: height 0.3s;
    transition: height 0.3s;
}

#nav-menu li {
    padding: 0; /*0 20px;*/
    display: inline-block;
    vertical-align: text-bottom;
    text-align: center;
    line-height: 40px;
    
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

#nav-menu li a {
    padding: 10px 20px;
}

#nav-menu li a:hover {
    text-decoration: none;
}

#nav-menu li:hover {
    background: #D2D2D2;
    cursor: pointer; 
    cursor: hand;
}

#nav-menu li:hover .sub-menu {
    display: block;
}

#nav-menu .bullet {
    display: none;
    float: right;
    margin-top: 5px;
    margin-left: 10px;
    width: 10px;
    height: 10px;
    background-image: url("../img/menu-bullet.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#nav-menu .sub-menu {
    display: none;
    position: absolute;
    margin-left: -20px;
    background-color: #E3E3E3;
    font-size: 0.9em;
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);
    border-bottom: 6px solid #1A8327;
    padding-bottom: 10px;
}

#nav-menu .sub-menu li {
    display: block;
    text-align: left;
    line-height: 50px;
}

#nav-menu .sub-menu li a {
    padding: 15px 20px;
}

/*-- Small Header --*/
#main-header.small {
    height: 70px;
}

#main-header.small #logo {
    margin-left: 5px;
    margin-top: 14px;
    width: 200px;
    height: 40px;
    /*line-height: 50px;
    font-size: 1.7em;*/
    
    /*1280x309*/
}


#main-header.small nav ul {
    height: 72px;
}

#main-header.small nav .sub-menu {
    height: 50px;
}

#main-header.small nav ul li {
    line-height: 25px;
}

#main-header.small nav ul li a {
    padding: 2px 20px;
}

#main-header.small nav ul li a:hover {
    text-decoration: none;
}

/*-- Content --*/
#main-content {
    /*position: relative;*/
    background: #F5F5F5;
    width: 100%;
    min-width: 820px;
    margin: 20px auto;
    text-align: justify;
    font-weight: 500;
}

#main-content header,
#main-content .content {
    padding: 20px 200px;
}

#main-content h1 {
    color: #BEBEBE;
    font-size: 2.3em;
    width: auto;
}

#main-content h1 span {
    color: #5E5E5E;
}

/*-- Footer --*/
#main-footer {
    background: #6C6C6C;
    color: #D9D9D9;
    margin-top: 80px;
    height: auto;
    /*min-height: 170px;*/
    width: 100%;
    min-width: 820px;
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

#main-footer p {
    margin: 0;
    margin-top: 5px;
    font-size: 0.8em;
    font-weight: 300;
}

#main-footer .foot-col {
    float: left;
    padding: 35px 10px;
    text-align: left;
    width: 190px;
}

#sec-footer {
    background: #464646;
    color: #D9D9D9;
    text-align: left;
    height: auto;
    /*min-height: 100px;*/
    width: 100%;
    min-width: 820px;
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-around;
}

#sec-footer p {
    font-size: 0.8em;
    margin: 0;
    margin-top: 0px;
    font-weight: 300;
}

#sec-footer p img {
    position: absolute;
    padding-top: 4px;
    padding-left: 4px;
}

#sec-footer h3 {
    margin: 0;
    margin-top: 5px;
    line-height: normal;
}

#sec-footer .foot-col {
    float: left;
    padding: 35px 20px;
    text-align: left;
}

/*-- Third Footer --*/
#th-footer {
    display:none;
    background: #464646;
    color: #D9D9D9;
    text-align: center;
    height: auto;
    width: 100%;
    padding-bottom: 20px;
}

#th-footer p {
    font-size: 0.8em;
    margin: 0;
    margin-top: 0px;
    font-weight: 300;
    line-height: normal;
}

#th-footer p img {
    padding-top: 4px;
}

#th-footer h3 {
    margin: 0;
    padding-top: 20px;
    line-height: normal;
    text-align: center;
}

/*------ RESPONSIVE ------*/
@media only screen and (max-width: 820px) {
    body {
        padding-top: 70px;
    }
    
    /*-- Main Header --*/
    
    #main-header {
        position: absolute;
        height: 70px;
        min-width: 0px;
    }
    
    #main-header #logo {
        margin-left: 5px;
        margin-top: 15px;
        width: 200px;
        height: 42px;
        /* 1280x309 - */
    }
    
    #main-header #emergencias {
        display: inline;
    }
    
    #main-header nav ul {
        display:none;
        position: absolute;
        padding: 0px;
        padding-right: 10px;
        background: #E3E3E3;
        right: 0px;
        top: 70px;
        width: 100%;
        height: auto;
        /*box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2);*/
        border-bottom: 6px solid #1A8327;
        z-index: 2000;
        line-height: 50px;
    }
    
    #main-header nav ul li {
        text-align: right;
        width: 100%;
        padding: 15px 5px;
        position: relative;
        vertical-align: middle;
    }
    
    #main-header nav ul li a {
        position: absolute;
        top: 0;
        right: 0;
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 30px;
        width: 100%;
        height: 100%;
    }
    
    #nav-menu .bullet {
        display: inline;
        margin-top: 0px;
    }
    
    #main-header #menu-hamburger {
        display: block;
    }
    
    #nav-menu li:hover .sub-menu {
        display: none;
    }
    
    /*-- Main Content --*/
    
    #main-content {
        min-width: 0px;
    }
    
    #main-content header,
    #main-content .content {
        padding: 5px 10px;
    }
    
    #main-content h1 {
        font-size: 2.0em;
        width: auto;
    }
    
    #main-content p {
        font-size: 0.9em;
        line-height: 20px;
    }
    
    /*-- Footer --*/
    
    #main-footer {
        display: none;
    }
    
    #sec-footer {
        display: none;
    }
    
    #th-footer {
        display: block;
    }
}