header.cabecera {
	position: -webkit-sticky;
	position: sticky;
	top: 0px;
	z-index: 1000;
	height: 70px;
	background: white;
	vertical-align: middle;
	border-bottom: 1px solid #f0f0f0;
	border-bottom: 1px solid var(--border-color);
  color: #137EAC;
	color: var(--primary-color);
  font-size: 13px;
}

nav.navbar {
	display: flex;
	height: 100%;

}

#titulo-curso {
	font-size: 13px;
	color: #656666;
	color: var(--text-color);
	text-align: center;
}

/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 2000; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
	overflow-y: auto; /* Allow scrolling when lot of content */
  padding-top: 25px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a, .sidenav li {
  padding: 15px 15px 15px 32px;
  text-decoration: none;
  font-size: 16px;
  display: block;
  transition: 0.3s;
	cursor: pointer;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 10px;
	color: white;
}

.sidenav h4 {
	font-size: 12px;
	padding: 8px 8px 8px 32px;
	padding-right: 60px;
	color: white;
	color: var(--menu-on);
}

.navbar-brand {
	margin-right: 0;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

#superior-derecha {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#superior-derecha img {
	margin: 0 7px;
}

#superior-derecha div {
	padding: 0 1em;
	vertical-align: middle;
	border-left: 1px solid #f0f0f0;
	border-left: 1px solid var(--border-color);
}

#superior-derecha a {
	vertical-align: middle;
	color: #137EAC;
	color: var(--primary-color);
}

#indicador-progreso {
	font-weight: bold;
	white-space: nowrap;
}

#ayuda {
	white-space: nowrap;
}

#menu-open-close, #superior-derecha {
	width: 20%;
}

#menu-open-close svg path {
	fill: var(--primary-color);
}

#menuLateral {
	background: #137EAC;
	background: var(--primary-color);
	color: white;
	color: var(--menu-on);
}

#menuLateral li, #menuLateral a.titulo-apartado {
	margin-left: 30px;
}

#menuLateral a.titulo-apartado {
	margin-left: 30px;
	background-image: url('../../imagenes/layout/menu-border-left-dotted-continuous.png');
	background-position: top left;
	background-repeat: no-repeat;
}

#menuLateral a.titulo-apartado.primer-elemento {
	background-image: url('../../imagenes/layout/menu-border-left-dotted.png');
}

#menuLateral a.titulo-apartado.ultimo-elemento {
	background-image: url('../../imagenes/layout/menu-border-left-dotted-end.png');
}

#menuLateral li {
	background-image: url('../../imagenes/layout/menu-border-left-dotted-lg.png');
	background-position: top left;
	background-repeat: repeat-y;
}

#menuLateral li.visto, #menuLateral a.titulo-apartado.visto {
	background-image: url('../../imagenes/layout/menu-border-left-continuous.png');
}

#menuLateral li.visto, #menuLateral a.titulo-apartado.visto.primer-elemento {
	background-image: url('../../imagenes/layout/menu-border-left-continuous-start.png');
}

#menuLateral li.visto, #menuLateral a.titulo-apartado.visto.ultimo-elemento {
	background-image: url('../../imagenes/layout/menu-border-left-continuous-end.png');
}


#menuLateral a.titulo-apartado.visto {
	margin-left: 30px;
	background-image: url('../../imagenes/layout/menu-border-left.png');
	background-position: top left;
	background-repeat: no-repeat;
}

#menuLateral a.titulo-apartado.visto {
	background-image: url('../../imagenes/layout/menu-border-left-continuous.png');
}

#menuLateral li.visto {
	background-image: url('../../imagenes/layout/menu-border-left-lg.png');
	background-position: top left;
	background-repeat: repeat-y;
}

/* Opciones de menú auxiliar */
#menuLateral .auxiliar {
	color: white;
  color: var(--menu-on);
	background: #3399CC;
  background: var(--secondary-color);
  font-weight: bold;
	text-transform: uppercase;
	margin-left: 0;
	border: none;
}

#menuLateral li.auxiliar.visto {
	background-image: none;
}

/* Color opciones inactivas */
#menuLateral li, #menuLateral a.titulo-apartado {
	color: #89bfd6;
  color: var(--menu-off);
}

/* Color opciones activas */
#menuLateral li.visto, #menuLateral a.titulo-apartado.visto {
	color: white;
  color: var(--menu-on);
}


/* Menú de la página principal */
#menuIndex {
	width: 100%;
	margin: 2em 0;
}

.menuIndexItem {
	padding: 2em;
	min-height: 300px;
	position: relative;
	background: white;
	margin: 2em 0;
	margin-top: 0;
	-webkit-box-shadow: 0px 0px 20px 0px rgba(209,209,209,1);
	-moz-box-shadow: 0px 0px 20px 0px rgba(209,209,209,1);
	box-shadow: 0px 0px 20px 0px rgba(209,209,209,1);
}

.menuIndexItem.taller {
	min-height: 350px;
}

.menuIndexItem.no-iniciado {
	opacity: 0.5;
	 filter: alpha(opacity=50); /* For IE8 and earlier */
}

.menuIndexItem .btn-y-progress {
	width: 80%;
	position: absolute;
	bottom: 0;
}

.menuIndexItem h5 {
	/*font-family: "Open Sans";*/
	font-weight: bold;
	color: #137EAC;
	color: var(--primary-color);
	font-size: 10px;
	text-transform: uppercase;
}

.menuIndexItem h2 {
	color: #1a1a1a;
	color: var(--text-gris3);
	/*font-family: "Open Sans";*/
	font-size: 20px;
	font-weight: bold;
}


.menuIndexItem a.btn {
	border: 1px solid #137EAC;
	border: 1px solid var(--primary-color);
	color: #137EAC;
	color: var(--primary-color);
	border-radius: 5px;
	margin: 1em 0;
	margin-bottom: 0;
	padding: 0.5em 2.5em;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
}

.menuIndexItem a.btn:hover {
 	background: #137EAC;
	background: var(--primary-color);
	color: white;
}

.menuIndexItem.no-iniciado a.btn {
	display: none;
}

.menuIndexItem hr {
	width: 100%;
}

.menuIndexItem .progreso-bar {
	font-size: 12px;
	margin: 0;
	padding: 0;
	margin-bottom: 1em;
	color: #ABABAB;
	color: var(--text-gris);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.menuIndexItem .progreso-bar .progress {
	height: 5px;
	width: 80%;
}

.menuIndexItem .progreso-bar .progress .progress-bar {
	background: #439a41;
}


@media (max-width: 968px) {

	header.cabecera {
		height: auto;
	}
	#superior-derecha {
		order: 2;
	}
	#menu-open-close {
		order: 1;
	}

	#titulo-curso {
		order: 3;
		margin-top: 10px;
		border-top: 1px solid #f0f0f0;
		border-top: 1px solid var(--border-color);
		padding: 10px 0;
		width: 100%;
	}

}
