body {  /* Cuerpo */
	margin: 0;
	padding: 0;
	font-family: Helvetica, Arial, sans-serif;
	color: black; 
	font-size: 1em;
    line-height: 1.5em;
}

#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;
}

h1{ /* Control del titulos */
    font-size: 3.1em;
	margin-top: 110px;
    margin-bottom: 3px;
    text-align: center;
    align-items: center;
	font-weight: 300;
    z-index: 1;
    line-height: 1;
    width: 100%;
}
h2{ /* Diseño de titulos 2 */   
    text-align: center;
    margin-top:30px;
}
h3{
    padding: 50px;
    font-size: 3.6em;
    margin: 0px;
    text-align: center;
    font-weight: 300;   
}

h4{
    text-align: left;
    font-size: 2.8em;
    margin-bottom: 30px;
    margin-top: 10px;
    z-index: 1;
    line-height: 1;
    text-align: center;
}

#Texto{ /* Diseño de parrafo */
	width: 90%;
	max-width: 1000px;
	margin: 7px auto;
    padding-left: 20px;
    margin-top: 15px;
}

#Organigrama{  /* Diseño de fondo de organigrama */
    background-color: rgba(161, 161, 161, 0.35);
    width: 100%;
    padding: 40px 0;
    margin-bottom: 40px;
}

#Cancion{  /* Diseño de fondo de la cación */
 background-color: white;
}

#Video{ /* Diseño del video */
  width: 900px;
  height: 500px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  position: flex;
  align-items: center;
  margin-bottom: 40px;
  background-color: #000000;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.358);
}

/* Footer */
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;
}

/* Footer */
.organigrama-cuerpo {
    width: 400px;
    margin: 0 auto;
}

.card {
    background-color: white;
    width: 300px;
    margin: 5px auto;
    padding: 15px 30px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 10px
}

.titulo {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    align-items: center;
    text-align: center;
}

.nombre {
    font-size: 14px;
}
/* Control de los eventos  */
.boton {
  margin-top: -4px;
  margin-left: 65px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: rgb(120, 120, 120); 
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #000000;
}

.seccion {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.texto {
  flex: 1 1 300px;
  margin-left: 10px;
}

.anuncios {
  flex: 1 1 300px;
}

.anuncios img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 160px;
}

/* Para dispositivos moviles */

@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: 400px) {
  #Video {
    width: 150px;
    height: 100px;
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .seccion {
    flex-direction: column;
    text-align: center;
  }

  .imagen, .texto {
    width: 100%;
  }

    .boton-registrar {
    width: 60%;
    margin: 20px auto 0;
  }

}

@media (max-width: 768px) {
  .seccion {
    flex-direction: column;
    padding: 10px;
  }

  .texto, .anuncios {
    margin: 0 auto;
    text-align: left;
  }

  .anuncios img {
    margin-top: 10px;
  }
}