/*Generales*/

:root {

    --color-azul: #0200D7;
    --color-gris: #666666;
    --color-blanco: #ffffff;


}

@font-face {
    font-family: Roboto-Regular;
    src: url(font/Roboto/Roboto-Regular.ttf);
}

@font-face {
    font-family: Roboto-Medium;
    src: url(font/Roboto/Roboto-Medium.ttf);
}

@font-face {
    font-family: Roboto-Bold;
    src: url(font/Roboto/Roboto-Bold.ttf);
}

@font-face {
    font-family: Roboto-Light;
    src: url(font/Roboto/Roboto-Light.ttf);
}

header {
    background-color: #CCCCCC;
}

header img {
    max-width: 100%;
    display: block;
    margin: auto;
}

body {
    margin: 0px;
    align-content: center;
    line-height: 1.5;
}

main {
    padding: 40px 60px;
    max-width: 1280px;
    margin: auto;
}

h1 {
    font-family: Roboto-Regular;
    color: var(--color-gris);
    font-size: 2.19rem;
    font-weight: 400;
    margin-top: 2.3rem;
}

p {
    color: var(--color-gris);
    font-size: 1rem;
    font-weight: 400;
}

/*Menú 2*/

#menu {

    width: auto;
    height: 64px;
    z-index: 10;
}

#menu>ul {
    display: flex;
}

#menu ul {
    list-style: none;
    margin: 0 50px;
    padding: 0;
    margin: auto;
    max-width: 1920px;
}

/* items del menu */

#menu ul li {
    background-color: #CCCCCC;
}

/* enlaces del menu */

#menu ul a {
    display: block;
    color: var(--color-gris);
    text-decoration: none;
    font-size: 1rem;
    padding: 20px;
    font-family: "Roboto-Regular";
}

/* items del menu */

#menu ul li {
    position: relative;
    margin: 0;
    padding: 0;
}

/* efecto al pasar el ratón por los items del menu */

#menu ul li:hover {
    background: #1838C6;
    color: var(--color-blanco);

}

#menu ul a:hover {
    color: var(--color-blanco);
}


/* menú desplegable */

#menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    background: #CCCCCC;
    padding: 0;
    margin: 0;
    min-width: 130%;
    z-index: 6;
}


/* elementos del menú desplegable */

#menu ul ul li {
    background: #3759F1;
    color: var(--color-blanco);
    border-bottom: 1px solid #5571ED;
}

/* enlaces de los elementos del menú desplegable */

#menu ul ul a {
    line-height: 120%;
    padding: 10px 30px;
    color: white;
    text-align: center;

    /*   color:var(--color-gris);
    background-color: #CCCCCC;*/

}

/* elementos del menú desplegable al pasar el ratón */

#menu ul li:hover>ul {
    display: block;

}

#menu ul li:hover #desplegable {
    color: white;

}

#desplegable::after {
    content: "\25BC";
    display: inline-block;
    margin-left: 3px;

}



/*menú de hamburguesa*/

.boton-accion-menu {
    width: 30px;
    background: none;
    border: none;
    display: none;


}

.boton-accion-menu * {
    pointer-events: none;
}

/*Contenido*/

.contenido-principal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.renglon {
    display: flex;
    flex-basis: 35%;
}


.contenido {
    font-family: Roboto-Light;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-basis: 62%;
    margin-left: 10px;
}

.contenido img {
    width: 60%;
    align-self: center;
    margin: 20px 0;

}

/*Logotipo*/

.logotipo {

    display: block;
    flex-direction: row;
    align-content: start;
    font-family: Roboto-Medium;
    flex-basis: 35%;
    padding-right: 25px;
}

.logotipo span {
    color: var(--color-azul);
}

.logotipo-nombre-1 {
    text-transform: uppercase;
    font-size: 2.2rem;
}

.logotipo-nombre-2 {
    text-transform: uppercase;
    font-size: 1.9rem;
}

.logotipo-nombre-3 {
    text-transform: uppercase;
    font-size: 2rem;

}

.logotipo img {
    width: 100%;
}

/*inline-block para que permita heredar el line-height: 1.5 del body*/
.logotipo-pie {
    font-size: 0.75rem;
    font-weight: normal;
    display: inline-block;

}


/*Pie de página*/

footer {
    color: var(--color-blanco);
}

footer a {
    color: var(--color-blanco);
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

.dgapa {
    background-color: #3f3f40;
    font-family: Roboto-Regular;
    text-align: center;
    font-size: 0.88rem;
    padding: 11px;
}

.dgapa span {
    font-weight: bold;
}


.creditos {
    background-color: #1838C6;
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.creditos-logotipo {
    text-align: right;
    padding-right: 5px;

}

.creditos-logotipo img {
    width: 80px;
}

.creditos-contacto {
    text-align: left;
    flex-basis: 35%;
    font-family: Roboto-Light;
    font-size: 0.88rem;
}

.creditos-licencia {
    text-align: center;
    flex-basis: 30%;
    font-family: Roboto-Regular;
    font-size: 0.63rem;
}

.creditos-licencia img {
    width: 90px;
    vertical-align: top;
}

.creditos-derechos {
    text-align: right;
    flex-basis: 35%;
}

.creditos-derechos span {
    font-family: Roboto-Medium;
    font-size: 0.75rem;
}

.creditos-derechos-leyenda {
    font-family: Roboto-Regular;
    font-size: 0.69rem;
}

/*Páginas internas*/

.contenido-secundario {
    display: block;
    justify-content: space-between;
    padding: 15px;
    flex-direction: column;
    flex-basis: 66%;
}

.contenido-secundario p {
    color: var(--color-gris);
    font-family: Roboto-Light;
    font-size: 1rem;

}

.contenido-secundario img {
    width: 75%;
    height: auto;
    padding-top: 15px;

}

.contenido-secundario h2 {
    color: var(--color-azul);
    font-size: 1.75rem;
    font-family: Roboto-Regular;
    margin-bottom: 0px;
    font-weight: 400;
}

.contenido-secundario h3 {
    color: var(--color-gris);
    font-size: 1.38rem;
    font-family: Roboto-Medium;
    margin-bottom: 0px;
    font-weight: 400;
}

.contenido-secundario span {
    color: var(--color-azul);
    font-size: 1.13rem;
    font-family: Roboto-Light;
    font-weight: 400;
}

.contenido-secundario li {
    color: var(--color-azul);
    font-family: Roboto-Light;
    font-size: 1rem;
}

.contenido-secundario li span {
    color: var(--color-gris);
    font-family: Roboto-Light;
    font-size: 1rem;
}

.medios {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenido-secundario dd {
    color: var(--color-gris);
    font-family: Roboto-Light;
    font-size: 1rem;

}

.contenido-secundario dt {
    color: var(--color-azul);
    font-size: 1.13rem;
    font-family: Roboto-Light;
    font-weight: 400;
}

.boton {
    width: 75%;
    border: 1px solid #ACA6A6;
    border-radius: 1em;
    text-align: center;
    font-family: Roboto-Regular;
    margin-top: 20px;

}

.boton a:link a:visited {

    color: var(--color-azul);
}

/*Quiénes somos*/

.integrante {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-family: Roboto-Light;
}

.integrante:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.integrante:nth-child(even) {
    flex-direction: row;
}

.nombre {
    flex-basis: 32%;
    text-align: center;
}

.nombre h4 {
    color: var(--color-gris);
    font-size: 1.13rem;
    margin-bottom: 0px;
}

.nombre h5 {
    color: var(--color-azul);
    font-size: 1rem;
    font-family: Roboto-Light;
    margin-top: 0px;
}

.nombre img {
    border-radius: 50%;
}

.semblanza {
    flex-basis: 65%;
}

.referencia-semblanza {
    color: var(--color-gris);
    font-style: normal;
    font-size: 0.88rem;
    text-align: right;
}

.integrante-principal {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 20px 20px;
    font-family: Roboto-Light;

}

.becarios {
    margin: 0;
    padding-top: 50px;
    padding-right: 110px;
    flex-basis: 35%;
}

.becarios h4 {
    font-family: Roboto-Medium;
    font-size: 1.13rem;
    color: var(--color-azul);
    text-align: right;
    margin: 0;
}

.becarios h5 {
    font-family: Roboto-Bold;
    font-size: 1rem;
    color: #5F5F5F;
    text-align: right;
    margin: 0;
}



.becarios p {
    color: var(--color-gris);
    font-family: Roboto-Light;
    font-size: 1rem;
    text-align: right;
    margin: 0;

}

/*Modulos*/

.menu-modulos {
    display: flex;
    z-index: -1;

}

.menu-modulos a {
    text-decoration: none;
    font-family: Roboto-Medium;
    font-size: 0.88rem;
    color: #5F5F5F;
    position: relative;
    padding-top: 30px;
    padding-right: 20px;
    text-align: center;
}


.menu-modulos a::after {
    content: "";
    border: solid;
    border-color: var(--color-azul);
    border-width: 1px;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 50%;
    position: absolute;
    left: calc(50% - 21px);
    top: 5px;
    background: white;
}

.menu-modulos a:first-child::before {
    width: calc(100% + 4px);
    left: calc(50% - 15px);

}

.menu-modulos a:last-child::before {
    width: 50%;
    left: 0;
}

.menu-modulos a::before {
    content: "";
    border: solid;
    border-color: var(--color-azul);
    border-width: 1px;
    width: calc(100% + 4px);
    display: inline-block;
    position: absolute;
    left: 0;
    top: 15px;
}

.menu-modulos a:last-child::before {
    width: calc(50% - 4px);
    left: 0;
}

.menu-modulos a:hover {
    color: var(--color-azul);
}

.menu-modulos a:hover::after {
    background: var(--color-azul);

}

.menu-modulos a.activo {
    color: var(--color-azul);
    text-align: center;

}

.menu-modulos a.activo::after {
    background: var(--color-azul);

}

/*hover en la a para cambiar a azul*/

hr {
    height: 1px;
    width: 100%;
    border: 0.5px solid #9D9D9D;
}

#modulos ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    padding-top: 100px;
}

#modulos li {
    width: 50%;
}


#modulos ul a {
    display: block;
    color: #0002D6;
    text-decoration: none;
    font-size: 1.75rem;
    font-family: "Roboto-Medium";
}

#izquierda {
    text-align: left;
}

#derecha {
    text-align: right;
}



/*Recursos y materiales*/

.medios-recursos {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    align-items: baseline;
}

.medio-recursos {
    width: 50%;

}




.medio-recursos p {
    font-family: Roboto-Medium;
}


.acordeon {
    margin: 10px auto;
}

.acordeon .contenedor {
    position: relative;

}

.acordeon .etiqueta {
    position: relative;
    color: var(--color-azul);
    font-size: 1.75rem;
    font-family: Roboto-Regular;
    margin-bottom: 0px;
    font-weight: 400;
    cursor: pointer;
}

.acordeon .etiqueta::before {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: -5px;
    font-size: 1.38rem;
    transform: translateY(-50%);
}

/* Oculta el contenido (altura: 0), disminuye el tamaño de la fuente, justifica el texto y añade la transición */

.acordeon .contenido {
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    height: 0px;
    padding-top: 5px;
}

/* Añade una línea horizontal entre los contenidos */

.acordeon hr {
    margin-left: 0;
    border: 0.5px solid #707070;
}

/* Muestra la parte de contenido cuando está activa. Establece la altura */

.acordeon .contenedor.activa .contenido {
    height: max-content;
    padding-top: 10px;
}

/* Cambia de signo positivo a negativo una vez activado */

.acordeon .contenedor.activa .etiqueta::before {
    content: '\25B2';
}

/*Página de créditos*/

.columna-creditos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.columna-CIDI {
    display: block;
    flex-basis: 40%;
}

.columna-DGTIC {
    display: block;
    flex-basis: 40%;
}



#nombre-creditos {
    font-family: Roboto-Medium;
    font-size: 1rem;
    color: #5F5F5F;
    padding-top: 8px;
    padding-bottom: 0px;
    margin: 0;



}

#participacion-creditos {
    font-family: Roboto-Light;
    font-size: 0.88rem;
    color: #5F5F5F;
    padding-top: 0;
    padding-bottom: 8px;
    margin: 0;
}




/*Diseño responsivo*/

@media (max-width: 800px) {

    main {

        padding-left: 22px;
        padding-right: 22px;
    }

    #menu {
        position: fixed;
        padding-top: 50px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ccc;
        z-index: 10;
        overflow: auto;
        display: none;

    }

    #menu.open {
        display: block;
    }

    header img {
        display: none;
    }

    #abrir {
        display: inline-block;
        margin: 10px;

    }

    #cerrar {
        display: inline-block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #menu ul a {
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 40px;
    }

    #menu>ul {
        display: block;
    }

    #menu ul ul {
        display: block;
        position: static;
        padding-left: 50px;
        transform: none;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;


    }

    #menu ul ul:hover li a {
        border-bottom: 1px solid #5571ED;
        color: var(--color-blanco);
        background: #3759F1;

    }

    #menu ul ul li a:hover {
        background: #1838C6;
        color: var(--color-blanco);
    }


    #desplegable::after {
        content: "";
    }

    #menu ul ul li {
        background: none;
        border: none;
        color: var(--color-blanco);
    }

    #menu ul ul a {
        color: var(--color-gris);
        text-align: left;
        padding-top: 5px;
        padding-right: 0;
    }

    #menu ul {
        margin-left: 0;
        margin-right: 0;
    }

    #menu ul ul.menu-desplegable {
        padding-left: 0;

    }




    #menu ul ul.menu-desplegable a {
        padding-left: 80px;

    }



    .logotipo {

        flex-direction: column;
        text-align: center;
        padding-left: 25px;
        padding-right: 25px;
    }

    .logotipo-nombre-1,
    .logotipo-nombre-2 {
        display: inline-block;
        font-size: 1.56rem;

    }

    .logotipo-nombre-3 {
        display: flex;
        font-size: 1.13rem;
        justify-content: center;
    }

    .logotipo-pie {
        text-align: justify;
    }

    .logotipo-imagen {
        display: block;
        padding-left: 75px;
        padding-right: 75px;
    }

    .contenido-principal {
        flex-direction: column;
    }

    h1 {
        font-size: 1.38rem;
    }

    .contenido-secundario h2 {
        font-size: 1.19rem;
    }

    .contenido-secundario h3 {
        font-size: 1rem;
    }

    .creditos {
        flex-direction: column;

    }

    .creditos-contacto {
        text-align: center;
    }

    .creditos-derechos {
        text-align: center;
    }

    .creditos-licencia {
        margin: 50px auto;
    }

    .creditos-logotipo {
        text-align: center;
    }

    .nombre img {
        max-width: 50%;
        max-height: 50%;
    }

    .medios-recursos {
        flex-direction: column;
        align-content: normal;

    }

    .medio-recursos>iframe {
       text-align: center;
        width: 320px;
        height: 240px;
    }

    .renglon {
        flex-direction: column;
    }

    .integrante,
    .integrante-principal {
        display: block;
    }

    .becarios {
        padding: 15px;
        order: 2;
    }

    .becarios h4,
    .becarios h5,
    .becarios p {

        text-align: center;
    }


    .semblanza p {

        text-align: left;

    }


    .logotipo-nombre-1,
    .logotipo-nombre-2,
    .logotipo-nombre-3 {
        text-align: center;

    }

    #quienes-somos {
        display: none;
    }


    .menu-modulos {
        justify-content: center;
    }

    #modulos ul a {
        font-size: 1.19rem;

    }



    .acordeon .etiqueta {
        font-size: 1.25rem;
    }


    .columna-creditos {
        display: block;
    }

}

.acordeon .etiqueta::before {

    font-size: 1.25rem;

}


@media (max-width: 600px) {

    .menu-modulos {
        justify-content: center;
    }

    .menu-modulos a::after {
        width: 10px;
        height: 10px;
        left: calc(20%-5px);
        top: 5px;
        margin-left: 10px;
    }

    .menu-modulos a::before {
        width: 100%;
        left: 0px;
        top: 10px;
        margin-left: 10px;
    }

    .menu-modulos a {
        font-size: 0.56rem;
        padding-right: 5px;
    }

    .menu-modulos a:last-child::before {
        width: calc(50% - 12px);
    }
}