*{
    box-sizing: border-box;
    margin: 0;
}

body{
    background-image: url(/imagenes/logoYfondo/fondo.png);
    font-family: 'Roboto', sans-serif;
}

header{  
    height: 130px;
    margin-left: 15%;
    display:flex;
    align-items: center;  
    justify-content: space-between;

}
.fondoHeder{
    height: 146px;

}
header h1{
    padding: 0px 20px;
    width: 100%;
    margin-top: 25px;
    font-size: 30px;
    font-weight: 700;
    color: rgb(4, 64, 99) ;
}
#header #logo{
    display: flex;
    justify-content: center;
    margin-left: 15%;
}

    /* Header de Quienes somos en adelante  */
.fondoHeder{
    background-image:url(/imagenes/logoYfondo/header.jpg);
    margin: 0;
}

#header{
    width:100%;
    margin-left: 0;
    height: 130px auto;
    

}
#logoICSA{
    display: flex;
    justify-content: space-between;
    
}

#idioma{
    margin: 2px 19% 7px;
    flex-direction: column;
    align-items: center;
}
#idioma p{
    margin: 0;
}
.flag{
    flex-direction: row !important;
}

/* ----- Barra de navegacion ----- */
nav{ 
    background-color: rgb(37, 60, 125);
    color: rgb(240, 240, 240);
    font-weight: 100;
}
.navbar-toggler-icon{
    width: 1rem;
    height: 1.5rem;
    
}
.navbar-toggler{
    margin-right: 2%;
}
.navbar{
    padding:0.2rem !important;

}
.nav-link{
    font-weight: 400 !important;
    color: rgb(240, 240, 240) !important;
}
.nav-link:hover{
    color:rgb(116, 186, 226) !important;
  
}

#blog{
     background-color: rgba(253, 241, 231, 0.726);
    border-radius: 8px;
    color: rgb(50, 51, 121) !important;
    font-weight: 500 !important;
    padding: .1rem 1rem !important;
    margin-top: 6px; 
    
}

main{
    min-height: calc(100vh - 46.4px - 146px - 40px);
}

/* ----- Footer -----  */
footer{
    background-color: rgb(37, 60, 125);
    margin: auto; 
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0px 20px 0 20px;
 
}
footer a{
    text-decoration: none;
    color: rgb(157, 178, 206); 
    font-size: 1rem; 
}
footer p{
    margin: 0;
    font-weight: 400;
    color: rgb(157, 178, 206);  
}
footer label{
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 0rem;
}
.footerProyecto{
    font-size: 14px;

}

/* ----- Medias Queris ----- */
@media (max-width: 576px){
 
    header{
        flex-direction: column;
        height: 15%;
        margin: auto;
        padding-top: 5px;
        
    }

    .fondoHeder{
        height: 180px;
    
    }

    /* #logoICSA "div que engloba el logo y el el nombre" */
    #logoICSA{
        flex-direction: column;
        
    }
   

    /* .ic "imagen del logo de icsa" */
    .ic{
        margin:auto;
    }
    header h1{
        padding: 0px 5px;
    }

    .nav-link{
        margin:auto 0.1rem ;
    }
    
    /*---footer---*/
   span{
       display: flex;
       justify-content: center;
    }
    

} 

@media (max-width:768px ){
   
    header{
        flex-direction: column;
        height: 15%;
        margin: auto;
        padding-top: 15px;

    } 
    header h1{
        margin: 0;
        
        
    }
    #logo{
        margin: 0 !important;
        align-items: center;
        flex-direction: column;

    }
    #logoICSA{
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
   
  
    footer{
        display: flex;
        width: 100%;
        height: auto;
        justify-content: center;
        flex-direction: column;
    }
    
}

@media (min-width:768px ){
    header{
        flex-direction: column;
        padding-top: 5px;
        margin: 8px 0;
    }  
    #logoICSA{
        margin: auto;
        justify-content: center;
        align-items: center;
    }

    #idioma{
        margin: 0px 19% 9px;
    }
    header h1{
        margin:0;
    }

    
}

@media (min-width: 1499px){
    header{
        flex-direction: row;
    }
    .nav-link{
        margin:auto 4rem ;
    }
    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: 0rem;
        padding-left: 0rem;
        }
}
