*{
    margin: 0;
    padding: 0;
}

body{
    background: #fff;
    color:black;
    font-family: 'Roboto', sans-serif;
}

header {
	margin-top:10px;
    width: 100%;
    overflow: hidden;
    height: 120px;
    position: relative;
}

nav {
    top:-20px;
    position: absolute;
    left:0;
    right:0;
	margin:20px auto;
	max-width:1200px;
	width:90%;
}

nav ul {
	list-style:none;
}

nav > ul {
	display:table;
	width:100%;
	background:rgb(27, 57, 106);
	position:relative;
}

nav > ul li {
	display:table-cell;
}

/*Sub-menu*/
nav > ul > li:hover > ul{
	display:block;
	height:100%;
    
}

nav > ul > li > ul {
	/*display:block;*/
    overflow: hidden;
	position:absolute;
    background:rgb(128, 127, 131);
    left:0;
	right:0;
	height:0%;
    -webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
    box-sizing:border-box;
}


/* --- --- CAROUSEL --- --- */
.carousel__contenedor {
	position: relative;
}

.carousel__anterior,
.carousel__siguiente {
	position: absolute;
	display: block;
	width: 30px;
	height: 30px;
	border: none;
	top: calc(50% - 35px);
	cursor: pointer;
	line-height: 30px;
	text-align: center;
	background: none;
	color: rgb(59, 53, 53);
	opacity: 20%;
}

.carousel__anterior:hover,
.carousel__siguiente:hover {
	opacity: 100%;
}

.carousel__anterior {
	left: -30px;
}

.carousel__siguiente {
	right: -30px;
}

.carousel__lista {
	overflow: hidden;
}

.carousel__elemento {
	text-align: center;
}

.carousel__indicadores .glider-dot {
	display: block;
	width: 30px;
	height: 4px;
	background: rgb(90, 86, 86);
	opacity: .2;
	border-radius: 0;
}

.carousel__indicadores .glider-dot:hover {
	opacity: .5;
}

.carousel__indicadores .glider-dot.active {
	opacity: 1;
}

@media screen and (max-width: 800px) {
	body {
		padding: 40px 0;
	}

	.contenido-principal {
		flex-direction: column;
	}

	.contenido-principal > * {
		width: 100%;
	}
}

nav > ul li a {
	color:#fff;
	display:block;
	line-height:20px;
	padding:20px;
	position: relative;
	text-align:center;
	text-decoration:none;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

nav > ul > li > ul > li a:hover {
	background:#384140;
}

nav > ul > li > a span {
	background:#174459;
	display:block;
	height:100%;
	width:100%;
	left:0;
	position:absolute;
	top:-55px;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

nav > ul > li > a span .icon {
	display:block;
	line-height:60px;
}

nav > ul > li > a:hover > span {
	top:0;
}

/*Colores*/
nav ul li a .primero{
    background: #0e5061;
  
}
nav ul li a .segundo{
    background: #5da5a2;
}
nav ul li a .tercero{
    background: #f25724;
}
nav ul li a .quinto{
    background: #37a4d9;
}


.contenedor{
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    /*grid-template-rows: repeat(4, auto);*/

    grid-template-areas:    "educacion  educacion       congreso"
                            "header     header          header"
                            "carousel   carousel        carousel"
                            "space      space           space"
                            "space-centro space-centro    space-centro"
                            "contenido  contenido       contenido"                           
                            "widget-1   widget-2        widget-2"
                            "footer     footer           footer";

}

.contenedor > div, 
.contenedor .educacion,
.contenedor .header,
.contenedor .contenido,
.contenedor .space-text,
.contenedor .space-centro,
.contenedor .space-tecnm,
.contenedor .widget-1,
.contenedor .widget-2,
.contenedor .footer{
/*background: #b8b894;*/
   
}

.contenedor .header{
    color: #fff;
    grid-area: header;
    min-height: 300px;
}

.contenedor .educacion{
    grid-area: educacion;
    min-height: 40px;
}

.contenedor .carousel{
    grid-area: carousel;
}

.contenedor .congreso{
    grid-area: congreso;
    min-height: 40px;
}

.contenedor .space{
    /*background: palevioletred;*/
    color: #12203e;
    grid-auto-rows: auto;
    min-height: 230px;
}

.contenedor .contenido{
    grid-area: contenido;
    margin: 0px;
    padding: 20px;
    column-count: 1;
    column-gap: 40px;
    column-rule-style: solid;
    column-rule-width: 1px;
    font-size: 22px;
    text-align: justify;
    min-height: 300px;
    text-align-last: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instrucciones{
    grid-area: contenido;
    margin: 0px;
    padding: 20px;
    column-count: 1;
    column-gap: 40px;
    column-rule-style: solid;
    column-rule-width: 1px;
    font-size: 22px;
    min-height: 300px;
    text-align-last:left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main ul > li {
	margin-left: 60px;
}



.contenedor .widget-1,
.contenedor .widget-2{
    /*background: #55a8fd;*/
    color:#fff;
    /*height: 100px;*/
  
}

.contenedor .widget-1{
    background: #a3c2c2;
    height: 100px;
    grid-area: widget-1;
    font-size: 18px;
    padding: 10px;
    text-align: justify;
    text-align-last: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenedor .space-text{
    color:#12203e;
    min-height: 230px;
    grid-area: widget-1;
    font-size:auto;
    min-font-size:200px;
    padding: 10px;
    text-align-last: justify;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: space-text;
}

.contenedor .constructor{
    color:#B02F14;
    font-family: "Trebuchet MS", Verdana, sans-serif, bold;
    height: 60px;
    grid-area: header;
    font-size:30px;
    padding: 10px;
    text-align-last: justify;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.contenedor .space-centro{
    color:#12203e;
    font-family: "Trebuchet MS", Verdana, sans-serif, bold;
    height: 60px;
    grid-area: space-centro;
    font-size:20px;
    padding: 10px;
    text-align-last: justify;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenedor .space-tecnm{
    color: #12203e;
    grid-auto-rows: auto;
    min-height: 230px;
    grid-area: space-tecnm;
}
.contenedor .widget-2{
    grid-area: widget-2;
}

.contenedor .footer{
    /*background: #12203e;*/
    color: #660000;
    padding: 30px;
    
    grid-area: footer;
    min-height: 50px;
}

.contenedor:hover .img-tecnm{
    /*transform: translate(-400px);*/
    opacity: 100%;
   
}

.contenedor .img-tecnm{
    border-radius: 10px;
	min-height: 200px;
    opacity: 100%;
	min-width: 200px;
	position: relative;
	overflow: hidden;
	background-size: contain;
    background-repeat: no-repeat;
	background-position: center center;
    transition-property: opacity;
    transition-duration: .7s;
}

.contenedor .img-mapa{
    border-radius: 10px;
  	min-height: 200px;
   	min-width: 200px;
	position: relative;
	overflow: hidden;
	background-size: contain;
    background-repeat: no-repeat;
	background-position: center center;
    
}

.contenedor .img-educacion{
    border-radius: 10px;
	min-height: 70px;
    max-height: 160px;
	min-width: 200px;
	margin-left:52px;
	overflow: hidden;
	background-size: contain;
    background-repeat: no-repeat;
	background-position: left center;
    transition-property: opacity;
    transition-duration: .7s;
}

.contenedor .img-congreso{
    border-radius: 10px;
	min-height: 70px;
    max-height: 160px;
	min-width: 200px;
	overflow: hidden;
	background-size: contain;
    background-repeat: no-repeat;
	background-position: center center;
    transition-property: opacity;
    transition-duration: .7s;
}

.contenedor .banner ul {
	list-style: none;
    height: 100%;
    display:flex;
	justify-content:space-between;
   
}

@media screen and (max-width: 768px) {
    .contenedor{
        grid-template-areas:"educacion      educacion       educacion"
                            "congreso       congreso        congreso"
                            "header         header          header"
                            "carousel       carousel        carousel"
                            "space-centro   space-centro    space-centro"
                            "space-text     space-text      space-text"
                            "space-tecnm    space-tecnm     space-tecnm"
                            "contenido      contenido       contenido"                       
                            "widget-1       widget-1        widget-1"
                            "widget-2       widget-2        widget-2"
                            "footer         footer          footer"
                            "space          space           space";
                            

    }

    .header{      /*ACTUALIZACI�N 19-10-2023*/
        height: 40px;
        width: 500;
        text-size-adjust:inherit;
        padding: 20px;
        font-size: 16px;
        min-height: 300px;
        text-align-last:right;
    }

    .space-text{
       align-items: center;
    }

    .instrucciones{
        grid-area: contenido;
        text-size-adjust:inherit;
        padding: 20px;
        font-size: 16px;
        min-height: 300px;
        text-align-last:left;
     
    }

    nav{
        margin: 60px;
        width: 90%;
        max-width: 500px;
        max-height: 300px;
        
    }
    
    nav ul{
        max-width: 250px;
        list-style-type:none;
       
    }
    
    nav > ul{
        display: table;
        overflow: hidden;
        width: 100%;
        background: rgb(27, 57, 106);
        position: relative;
    }
    
    nav > ul li{
        display: table-row;
        max-height: 60px;/*   */
       
    
    }
    
    nav > ul li a{
       
        color: #fff;
        display: block;
        line-height: 20px;
        position: relative;
        text-align:right;
        text-decoration: none;
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        -ms-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }
    
    nav > ul > li > ul > li a:hover{
        background:#546463;
        
    
    }
    
    nav > ul > li a span{
        background: #174459;
        display:inline-block;
        height: 100%;
        width: 100%;
        position:absolute;
        text-align: right;
        top:0;
        left: -200px;
        
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        -ms-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }
    
    nav > ul > li > a span .icon{
        display:block;
        line-height: 60px;
        margin: 10px;
    }
    
    nav > ul > li > a:hover > span{
        left: 0px;
    }

     
    nav > ul > li:hover > ul{
        display:inline;
        position:fixed;
        height: 80%;
        top: 0;
        left: 230px;
        z-index: 1;
        background-color: #525658;
        overflow-x: hidden;
        transition: 0.4s;
        padding: 1rem 0;
        box-sizing:border-box;
    }
    
    nav > ul > li > ul {
        overflow: hidden;
        background:rgb(50, 45, 61);
        left:310px;
        -webkit-transition: all .3s ease;
        -moz-transition: all .3s ease;
        -ms-transition: all .3s ease;
        -o-transition: all .3s ease;
        transition: all .3s ease;
    }
}




