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;
}

.enlaces-derecha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-negocios {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-left: 20px;
  font-size: 1.8em;
  transition: color 0.3s;
  margin-right: 30px;
}

.link-negocios:hover {
  color: yellow;
}

#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;
}

/*--------------------------------------------------*/



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;
  display: flex;
  justify-content: center;
  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 {
  background-color: black;
  color: white;
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

#contenedor { 
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* separa elementos en escritorio */
  align-items: center;
  width: 100%;   
  gap: 20px; /* espacio entre columnas */
}

/* Logo principal */
.footer-logo img {
  width: 250px;   /* tamaño grande en escritorio */
  height: auto;
}

/* Icono de Facebook */
.Red img {
  width: 150px;   /* tamaño diferente */
  height: auto;
  transition: transform 0.3s ease;
}

.Red img:hover {
  transform: scale(1.1); /* efecto visual opcional */
}

/* Teléfonos */
.footer-telefonos p {
  line-height: 1.6em;
  font-size: 1em;
}

/* 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;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
}

.texto {
  flex: 1;
  min-width: 300px;
  max-width: 50%;  
  flex-direction: column;
  justify-content: center; /* Centra el texto verticalmente */
  height: 100%;
  margin-left: 10px;
}
hr{
  border: none; 
  height: 2px; 
  background-color: #333; 
  margin: 20px 0;
}

.anuncios {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

#convocatoria {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 100px;
  
}

.tabla-cuerpo{
  margin-top: 100px;
  text-align: center;
  align-items: center;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Para dispositivos moviles */

@media (max-width: 768px) {
    #contenedor > div {
      width: 100%;
    }
    #Encabezado {
    height: auto;
    text-align: left;
    align-items: left;
    padding: 10px;
    gap: 10px;
    }
    nav ul li {
      display: block;
      line-height: 40px;
    }
  nav ul {
    align-items: right;
  }
  #LoginLink img {
    width: 50px;
    height: 50px;
    align-items: right;

  }
    #contenedor {
    flex-direction: column; 
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    width: 180px; 
  }

  .Red img {
    width: 80px; 
    }
  #Video {
    width:200px;
    height: auto;
    padding: 8px;
  }
  .seccion {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 10px;
  }
  .texto,
  .anuncios {
    max-width: 100%;
    width: 100%;
  }
  .carrusel {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
  }
  .texto h1 {
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
  }
  .texto p {
    padding: 0 10px;
    font-size: 1em;
  }
  .ilustracion img {
    max-width: 100%;
  }
}