@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');

/* 

IMPORTANTE:
- Desde 4 hasta 9 semestres por cada malla 

COLORES:

Primario	NEGRO       #444444
Primario	ROJO        #E30613
Primario	GRIS 1      #727b7f
Primario    GRIS 2      #606060
Neutrales	GRIS    	#939599
Neutrales	GRIS        #BCBEC2
Neutrales	GRIS        #D0D2D4
Neutrales	GRIS        #E8E7EA
Acento 1	CELESTE 1   #4CB3B4
Acento 2	CELESTE 2   #83A3B7
Semántica	AZUL        #2078b1
Semántica	AZUL CLARO  #00a3ce
Semántica	NARANJA     #ea573c
Semántica	ROSADO      #ea5583
Semántica	AMARILLO    #fbbc36

TIPOS DE CURSOS:
Malla                       ma
Formación Integral          fg
Electivo                    el
Electivo de especialidad    ee
Inglés                      in
Titulación                  ti
Práctica                    pr
Especialización             es
Requisito de otro curso     re
Curso abierto al pasarlo    ad

*/

/* Global */ 

body {
    font-family: 'Source Sans Pro', sans-serif;
}

h1 {
    text-align: center;
    font-size: bold;
}

.hidden {
    display: none;
}

.visuallyHidden {
    opacity: 0;
}

a, .hidden, .visuallyHidden {
    -webkit-transition: all 0.1s ease;
    -moz-transition:    all 0.1s ease;
    -ms-transition:     all 0.1s ease;
    -o-transition:      all 0.1s ease;
    transition:         all 0.1s ease;
}

/* Contenedores Malla */ 

#malla-interactiva-fcfm {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    overflow: hidden;
}

.mallas-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.mallas-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

.mallas-col {
    flex-basis: 0;
    flex-grow: 1;
    padding: 5px;
}

.col-except {
    flex-grow: 4 !important;
}

/*** Malla Interactiva ***/

/* Titulo Malla */

.titulo-malla {
    padding: 5px 10px;
    color: #585861;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    text-align: left;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    border-bottom: 3px solid #bdbec1;
    text-align: center;
}

.titulo-malla span {
    font-weight: 600;
}

.descripcion-malla {
    color: #585861;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.2px;
    text-align: justify;
    margin: 0 5px 20px 5px;
}

/* Periodo */

.periodo {
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    color: #6d6e70;
    border-bottom: 3px solid #bdbec1;
    padding: 5px;
    margin: 0 0 10px 0;
}

.plancomun {
    flex-basis: 0;
    flex-grow: 1;
    font-size: 16px;
    margin-top: 6px;
}

.licenciatura {
    flex-basis: 0;
    flex-grow: 4;
}

.especialidad {
    flex-basis: 0;
    flex-grow: 3;
}

/* Semestre */
.mallas-semestre {
    text-align: center;
    font-weight: 600;
    color: #6d6e70;
    border-bottom: 3px solid #bdbec1;
    font-size: 14px;
    line-height: 16px;
    padding: 5px 0;
}

.mallas-semestre span {
    font-size: 24px;
}

/* Agrupar Plan Común */
.mallas-col-pc {
    flex-basis: 0;
    flex-grow: 1;
    padding: 5px;
    margin-top: 20px;
}

.mallas-col-pc > .mallas-semestre {
    font-size: 14px !important;
}

/* Curso */

.mallas-curso {
    padding: 5px;
    margin: 10px 0;
    background: e4f2f8;
    color: #444444;
    font-size: 12px;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    -webkit-transition: all 0.5s ease;
    -moz-transition:    all 0.5s ease;
    -ms-transition:     all 0.5s ease;
    -o-transition:      all 0.5s ease;
    transition:         all 0.5s ease;
}

.mallas-curso.extended-height {
    height: 120px;
}

.mallas-curso .codigo {
    display: block;
    float: left;
    text-align: left;
}

.mallas-curso .creditos {
    display: block;
    float: right;
    text-align: right;
    padding-left: 6px;
}

.mallas-curso .titulo {
    margin: -1px 0 0 0;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.mallas-curso .requisitos {
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
}

.clear, .mallas-curso .clear {
    clear: both;
    height: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
    max-height: 0;
    border: 0;
}

/* Descripción del curso */

.curso-descripcion {
    color: #444444;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.2px;
    margin: 0 auto;
    height: auto;
    max-height: auto;
    opacity: 1;
    display: block;
    -webkit-transition: all 0.01s ease;
    -moz-transition:    all 0.01s ease;
    -ms-transition:     all 0.01s ease;
    -o-transition:      all 0.01s ease;
    transition:         all 0.01s ease;
    width: 100%;
    padding: 5px;
}

.curso-descripcion span {
    font-weight: 700;
}

.curso-descripcion p.parrafo-descripcion {
    background: #E8E7EA;
    padding: 15px;
    margin: 0;
    height: auto;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 22px;
    -webkit-transition: all 0.5s ease;
    -moz-transition:    all 0.5s ease;
    -ms-transition:     all 0.5s ease;
    -o-transition:      all 0.5s ease;
    transition:         all 0.5s ease;
}

/* Tipos de Cursos */

.mallas-curso-hover {
    background: #f1592a !important;
    color: white !important;
}

.mallas-curso.fg {
    background: #e2dbc7;
}

.mallas-curso.fe {
    background: #f5dfdf;
}

.mallas-curso.el {
    background: #d7eacf;
}

.mallas-curso.ee {
    background: #8fcfc5;
}

.mallas-curso.ti {
    background: #e2b7c3;
}

.mallas-curso.in {
    background: #b6c8dd;
}

.mallas-curso.pr {
    background: #fcc28c;
}

.mallas-curso.ma {
    background: #ebf5fc;
}

.mallas-curso.re {
    background: #22aae2; /*#E30613*/
    color: white;
}

.mallas-curso.ad {
    background: #6d6e70; /*#E30613*/
    color: white;
}

.mallas-curso:hover {
    /*
    background: #c4d2da !important;
    color: #444444 !important;
    */
}

/* Leyenda */

.leyenda-howto {
    font-size: 14px;
}

.leyenda-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 0.5rem 0;
}

.leyenda-menu label {
    padding: 15px;
    display: inline-block;
    font-weight: bold;
    color: #444444;
}

.leyenda-menu select {
    padding: 10px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #d8d8d8;
    color: #353535;
    width: 100%;
    max-width: 300px;
}

.showHideLeyenda {
    border: 1px solid #d8d8d8;
    color: #353535;
    display: inline-block;
    margin: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    width: fit-content;
}

.showHideLeyenda:hover, .leyenda-menu select:hover {
    border-color: #bbbbbb;
    background: #f7f7f7;
}

.mallas-leyenda {
    width: 100%;
    max-width: calc(1024px - 10px);
    margin: 0 auto 3rem auto;
    border-bottom: 3px solid #bdbec1;
}

.leyenda-colores {
    border: 1px solid #bdbec1;
    padding: 10px;
    vertical-align: center;
    height: calc(100% - 20px);
}

.leyenda-colores ul {
    list-style: none;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 20px;
    float: left;
    margin: 0 10px 0 0;
}

.leyenda-colores ul li {
    color: #606060;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding: 0 0 10px 10px;
}

.leyenda-colores ul li:last-child {
    padding: 0 0 0 10px;
}

.leyenda-colores ul li:not(:last-child):not(:first-child) {
    margin: 5px 0;
}

.malla-curso-leyenda {
    width: 250px;
    margin: 20px auto 0 auto;
}

.leyenda-curso {
    background: #f5f5f5;
    margin: 0 15px;
}

.leyenda-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 2rem;
    padding: 0 0 1rem 0;
}

.leyenda-desc {
    flex-basis: 0;
    flex-grow: 2;
}

.leyenda-types {
    flex-basis: 0;
    flex-grow: 1;
}

.leyenda-col h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    padding: 0;
    color: #606060;
}

.leyenda-col p {
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 20px;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: justify;
}

.leyenda-col p span {
    font-weight: 600;
}

span.texto-requisito {
    color: #007fb6;
    text-decoration: underline;
}

span.texto-apertura {
    color: #444444;
    text-decoration: underline;
}

.leyenda-col p span.texto-curso-malla {
    color: #495bff;
}

/* Colores de Leyenda */

.leyenda-colores ul li:before {
    content: ' ';
    font-weight: bold;
    display: block;
    font-size: 30px;
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 20px;
} 

.leyenda-colores ul li.ley-ob:before {
    background: #ebf5fc;
}

.leyenda-colores ul li.ley-fg:before {
    background: #e2dbc7;
}

.leyenda-colores ul li.ley-el:before {
    background: #d7eacf;
}

.leyenda-colores ul li.ley-in:before {
    background: #b6c8dd;
}

.leyenda-colores ul li.ley-pr:before {
    background: #fcc28c;
}

.leyenda-colores ul li.ley-ee:before {
    background: #8fcfc5;
}

.leyenda-colores ul li.ley-fe:before {
    background: #f5dfdf;
}

.leyenda-colores ul li.ley-tt:before {
    background: #e2b7c3;
}

/* Dropdown Mallas */

.mallas-dropdown  {
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.mallas-dropdown a {
    text-decoration: none;
}

.mallas-dropdown nav {
    display: inline-block;
}

.mallas-dropdown ul {
    background: darkorange;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mallas-dropdown > nav > ul > li {
    font-size: 20px;
}

.mallas-dropdown > nav > ul > li:hover {
}

.mallas-dropdown li {
    color: #fff;
    background: #606060;
    display: block;
    float: left;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    width: 300px;
    transition-duration: 0.5s;
    font-size: 14px;
}

.mallas-dropdown li a {
    color: #fff;
}

.mallas-dropdown li:hover {
    background: #444444;
    cursor: pointer;
}

.mallas-dropdown ul li ul li:hover,
.mallas-dropdown li:focus-within {
    background: #4CB3B4;
    cursor: pointer;
}

.mallas-dropdown li:focus-within a {
    outline: none;
}

.mallas-dropdown ul li ul {
    background: #606060;
    visibility: hidden;
    opacity: 0;
    min-width: 5rem;
    position: absolute;
    margin-top: 1rem;
    left: 0;
    display: block;
    -webkit-transition: all 0.5s ease;
    -moz-transition:    all 0.5s ease;
    -ms-transition:     all 0.5s ease;
    -o-transition:      all 0.5s ease;
    transition:         all 0.5s ease;
    height: 0 !important;
    min-height: 0 !important;
}

.mallas-dropdown ul li:hover > ul,
.mallas-dropdown ul li:focus-within > ul,
.mallas-dropdown ul li ul:hover,
.mallas-dropdown ul li ul:focus {
    visibility: visible;
    opacity: 1;
    height: auto !important;
    min-height: auto !important;
}

.mallas-dropdown ul li ul li {
    clear: both;
    width: 300px;
}

/* Round corners */

.mallas-curso, .parrafo-descripcion, .leyenda-colores, .leyenda-menu select, .showHideLeyenda, .errorMalla {
    border-radius: 5px;
}

/* Error */

.errorMalla {
    padding: 2rem;
    text-align: center;
    background: #eeeeee;
    font-weight: 400;
    margin: 0;
}

/* Loading animation */

#loading-mallas {
    width: 100%;
    max-width: calc(1024px - 10px);
    margin: 0 auto 10px auto;
    text-align: center;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #E8E7EA;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #E8E7EA transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
  

/* Mobile Responsive */

@media screen and (max-width: 1024px) {

    .mobile-scroll {
        overflow: scroll;
    }

    .mobile-scroll .scroll {
        min-width: 800px;
    }

    .leyenda-row {
        padding-top: 1rem; 
    }

    .leyenda-desc {
    }

    .leyenda-types {
    }

    .curso-descripcion {
    }

    .mallas-semestre {
        font-size: 12px;
        font-weight: 400;
        text-transform: uppercase;
    }

    .mallas-container {
    }

    .mallas-row {
    }

    .mallas-curso {
        padding: 5px;
        font-size: 12px;
        height: 90px;
    }

    .mallas-curso .titulo {
        font-size: 12px;
    }

    .mallas-curso.extended-height {
        height: 140px;
    }

}

@media screen and (max-width: 900px) {

    .leyenda-menu {
        justify-content: center;
        text-align: center;
    }

}
