* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background-color: white;
}
.login {
    width: 400px;
    background-color: #dfdfdf;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
    font-size: 10px;
    margin-top: 100px;
}
.login h1 {
    text-align: center;
    color: black;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: red;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #dfdfdf;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: black;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
  background-color: rgb(255, 255, 255);
    transition: background-color 0.2s;
}

.navtop {
	background-color: darkblue;
	height: 60px;
	width: 100%;
	border: 0;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 1000px;
	height: 100%;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 24px;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	padding: 0 20px;
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
body.loggedin {
	background-color: #f3f4f7;
}
.content {
	width: 1000px;
	margin: 0 auto;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}
#Encabezado {
  background-color: rgb(232, 14, 14);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

#Encabezado a{ /* Control de listado parte supereior derecha */
    color: white;
    text-decoration: none;
    display: inline-block;  
    margin: 0px;
}
#Logo {
  height: 50px;
  width: auto;
}

#LoginLink img {
  width: 60px;
  height: 60px;
  margin-right: 25px;
}

nav { /* Control de navegación  */
    float: right;
    padding: 10px;
}
    nav ul {
            list-style: none;
            display: flex;
            gap: 20px;
            margin: 0;
            padding: 0;
            }
        
            nav ul li {
                display: inline-block;
                line-height: 65px;
            }
                
                nav ul li a {
                    color: white;
                    text-decoration: none;
                    font-size: 1em;
}

footer{ /* Control de pie de pagina */
    background-color: black;
    color:white;
    margin-top: 20px;
    text-align: center;
    align-items: center;
    padding: auto;
    width: 100%;

}
#contenedor { 
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        text-align: center;
        align-items: center;
        width: 100%;   
    }
    #contenedor a p img{
        width: 300px;
        height: 110px;
    }
    #contenedor > div {
        width: 33.33%; /* Control de columnas 33.33% = 3, 50% = 2, */
        text-align: center;
                
    }
    #contenedor a img{ /* Control de la imagen en el pie de pagina  facebook */
        width: 150px;
        height: 150px;
}

@media (max-width: 768px) {
    #contenedor > div {
        width: 100%;
    }

    #Encabezado {
        height: auto;
        text-align: left;
    }

    nav ul li {
        display: block;
        line-height: 40px;
    }
}

@media screen and (max-width: 768px) {
  #Encabezado {
    align-items: left;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  nav ul {

    align-items: right;
  }

  #LoginLink img {
    width: 50px;
    height: 50px;
    align-items: right;

  }
}

@media (max-width: 768px) {
    .login {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
}