:root {
    --primary: #0200ae;
    --dark-primary: #000087;
    --light-primary: rgb(0, 0, 179, 0.7);
    --secondary: #6f6f6f;
    --tertiary: #0099ff;
    --dark-tertiary:  #007acc;
    --bg-thead: #D7ECF7;
    --color-txt: #444;
    --bg-main: rgba(80, 80, 80, 0.8);
    --bg-invert: rgba(0, 0, 0, 0.2);
	--bg-sections: #f9f9f9;
	--bd-sections: 1px solid #d9d9d9;
	--bd-projects: 2px solid #d9d9d9;
    --fs-nav: 0.875em;
    --fs-trail: 0.875em;
    --hover-nav: rgba(0, 0, 0, 0.3);
    --fg-nav: #2068a0;
    --bs-nav: rgba(43, 43, 43, 0.4);
    --bs-input: rgba(0, 113, 184, 0.5);
    --bd-input: rgba(56, 181, 230, 0.75);
    --bd-item: 1px solid #c9c9c9;
    --bx-shadow: 0 2px 5px 0 var(--bs-nav);
    --main-background-image: url(../themes/Mirage/images/slider/bannerCTS1.png);
    /* Modificar la variable --main-background-lfilter para aplicar a la parte detrás de "igp-news" (parte izquierda)*/
    --main-background-lfilter: rgba(255, 255, 255, 0.9);
    /* Modificar la variable --main-background-rfilter para aplicar a la parte directamente visible de la imagen de fondo (parte derecha)*/
    --main-background-rfilter: rgba(255, 255, 255, 0);
    --width-description: 50%;
    --height-complement: 450px;
    --bg-overlay: rgba(0, 0, 0, 0.5);
}
html {
    height: 100%;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.875em;
    color: var(--color-txt);
    min-height: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}
/* BEGIN footer bottom position  */
body::after{ 
    content:'';
    display:block;
    height: 200px;
}
body::before{ 
    content: '';
    position: absolute;
    z-index: 9;
    background-color: var(--bg-overlay);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    opacity: 0;
    visibility: hidden;
}
body.active::before{ 
    opacity: 1;
    visibility: visible;
}
@media (min-width: 480px) {
    body::after{ height: 242px; }
}
@media (min-width: 768px) {
    body::after{ height: 200px; }
}
@media (min-width: 992px) {
    body::after{ height: 138px; }
}
/* END footer bottom position*/
/* Titles */
h1 {
    font-size: 1.875em;
    font-weight: 700;
    margin-top: 0.5em;
    margin-bottom: 1em;
    color: var(--primary);
}
h2 {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1em;
}
h2.center {
    text-align: center;
}
h2.center:after {
    margin: 0 auto;
}
h3 {
    font-size: 1.25em;
	color: var(--primary);
	font-weight: 300;
}
h4 {
	font-size: 1em;
	margin: .5rem 0;
}
h5 {
    font-size: 1em;
    line-height: 1.3;
}
a, a:hover, a:focus, a:link {
    color: inherit;    
}
button {    
    user-select: none;
    border: none; 
    background-color: inherit;
    cursor: pointer;  
}
button:focus {
    outline: none;
}
.igp-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.container-lr {
	display: flex;
	justify-content: center;
	flex-direction: column;
}
.content-r, .content-l {
    padding-right: 15px;
	padding-left: 15px;
	width: 100%;
	padding-top: 2em;
	padding-bottom: 2em;
}
@media (min-width: 576px) {	
    .igp-container {
        width: 540px;
    }    
	.content-r {
        width: 540px;
        margin-right: auto;
        margin-left: auto;
	}
	.content-l {
        width: 540px;
        margin-right: auto;
        margin-left: auto;
	}
	
}
@media (min-width: 768px) {
    .igp-container {
        width: 720px;
    }
    .container-lr {
		flex-direction: row;
	}
	.container-l {
		width: 50%;
	}
	.container-r {
		width: 50%;
	}
	.content-r {
        width: 360px;
        margin-left: 0;
	}
	.content-l {
        width: 360px;
        margin-right: 0;
	}
}

@media (min-width: 992px) {
    .igp-container {
        width: 960px;
	}
	.content-r {
		width: 480px;
	}
	.content-l {
		width: 480px;
	}
}

@media (min-width: 1200px) {
    .igp-container {
        width: 1140px;
	}
	.content-r {
		width: 570px;
	}
	.content-l {
		width: 570px;
	}
}

/* botones */
.igp-btn {
    color: white;
    background-color: var(--secondary);
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 1px 1px 5px 0 var(--bs-nav);
}

.igp-btn:hover {
    -webkit-filter: brightness(1.08);
    filter: brightness(1.08);
}

.btn-tertiary {
    background-color: var(--tertiary);
}

.btn-primary {
    background-color: var(--primary);
}
.btn-invert {
	border-radius: 0;
    border: 2px solid var(--primary);
	color: var(--primary);
    background-color: transparent;
    box-shadow: none;
}
.btn-invert.btn-alt{
	border-radius: 0;
    border: 2px solid white;
	color: white;
    background-color: transparent;
    box-shadow: none;
}
.btn-invert:hover {
    background-color: var(--bg-invert);
}
/* inputs */
.igp-form {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/*LISTAS*/
ul.list {
    list-style: circle;
    list-style-position: inside;
    vertical-align: middle;
}
ul.list li::marker{
    color: var(--primary);
    font-size: 20px;
}
ol.list {
    list-style: none;
    counter-reset: my-awesome-counter;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
ol.list li {
    counter-increment: my-awesome-counter;
    display: flex;
    margin-bottom: 0.5rem;
}
ol.list li::before {
    content: counter(my-awesome-counter) ". ";
    font-weight: bold;
    font-size: 2em;
    margin-right: 0.5em;
    line-height: 1;
    color: var(--dark-primary);
}

.igp-form:focus {
    -webkit-box-shadow: 0 0 8px var(--bs-input);
    box-shadow: 0 0 8px var(--bs-input);
    border-color: var(--bd-input);
    outline: medium none;
}

ul {
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

header {
    position: sticky;
    position: -webkit-sticky;
    width: 100%;
    top: 0;
    z-index: 10;
    background-color: white;
    border-bottom: var(--bd-sections);
}

ul.nav-social,
ul.nav-contact,
ul.nav-left,
nav.nav-right > ul {
    display: flex;
}

.igp-header a,
footer a {
    display: block;
}

div.nav-sec {
    background-color: var(--primary);
    padding: 5px 0;
    line-height: 25px;
}

.nav-sec > div {
    display: flex;
    justify-content: space-between;
}

div.nav-sec,
footer {
    color: white;
}
ul.nav-social > span {
    display: none;
}
ul.nav-social li a {
    text-align: center;
    width: 25px;
    height: 25px;
    line-height: 25px;
}

ul.nav-social li:not(:last-of-type),
ul.nav-contact li:not(:last-of-type) {
    margin-right: 0;
}

ul.nav-social li a:hover,
ul.nav-contact li a:hover {
    background-color: var(--hover-nav);
}
ul.nav-contact li:last-of-type {
    padding-left: 10px;
}
ul.nav-contact li:last-of-type i{
    display: none;
}
ul.nav-contact li a {
    padding: 0 10px;
}

ul.nav-contact li:not(:last-of-type) {
    display: none;
}

.nav-main {
    padding: 15px 0;
}
.nav-main .igp-container {
    display: flex;
    justify-content: space-between;
}
.logo {
    height: 30px;
}
.nav-left li:not(:last-of-type) {
    margin-right: 10px;
}
.dp-normal {
    display: none;
}
.dp-small {
    display: block;
}
.btn-nav:focus, .btn-nav:active, .btn-dropdown:focus, .btn-dropdown:active {
    outline: none;
}
.btn-nav {    
    padding: 14px 10px;    
}
.btn-nav .btn-navicon, .btn-dropdown .btn-navicon {
    background: #333;
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 18px;    
}
.btn-nav.active .btn-navicon {
    background: transparent;
}
.btn-nav .btn-navicon::before {    
    top: 5px;
}
.btn-nav.active .btn-navicon::before {
    top: 0;
    transform: rotate(-45deg);
}
.btn-nav .btn-navicon::after {
    top: -5px;
}
.btn-nav.active .btn-navicon::after {
    top: 0;
    transform: rotate(45deg);
}
.btn-nav .btn-navicon::before, .btn-nav .btn-navicon::after {
    background: var(--color-txt);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.btn-dropdown .btn-dropdownicon {
    margin-left: 15px;
    transform: rotate(0deg);
    line-height: inherit;
    transition: all .2s ease-out;
}
.btn-dropdown[aria-expanded="true"]>.btn-dropdownicon {
    transform: rotate(90deg);
}
nav.nav-right {
    margin: auto 0;
    height: 100%;    
}
nav.nav-right .btn-dropdown {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
}
nav.nav-right > ul {
    position: fixed;
    right: -400px;
    top: 95px;
    background-color: white;
    z-index: -1;
    flex-direction: column;
    box-shadow: 0 2px 2px 0 var(--bs-nav);
    border-top: 2px solid var(--primary);
    transition: right 0.5s;
}
nav.nav-right > ul.active {
    right: 0px;
    min-width: 310px;
}

nav.nav-right > ul > li {
    border-bottom: var(--bd-sections);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    
}
nav.nav-right > ul > li > button > .btn-dropdown {
    float: right;
}
nav.nav-right > ul > li ul {
    overflow: hidden;
    transition: height 0.2s ease-out;
    margin-left: 15px;
}
nav.nav-right li>button, nav.nav-right li>a {
    padding: 10px 30px;
    color: var(--secondary);
}
nav.nav-right > ul > li.active a,
nav.nav-right > ul > li.active button,
nav.nav-right > ul > li a:hover {
    color: var(--tertiary);
}
.igp-news {
    background: linear-gradient(
            to bottom,
            var(--main-background-lfilter) 100%,
            var(--main-background-rfilter) var(--height-complement)
        );
	background-size: cover;
	position: relative;
}
.igp-news .swiper-container {
	position: absolute;
	z-index: -1;
	left: 0;
	height: 100%;
	width: 100%;
}
.igp-news .bg-news {
    display: flex;
}
.igp-news .bg-news .app-description {
    padding: 1em 0;
    min-height: 280px;
}
.igp-news h2::after {
    display: none;
}
.igp-news .bg-news h2,
.igp-news .bg-news p {
    color: var(--color-txt);
}
/* NEWS SLIDE*/
.igp-news .swiper-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* */
.no-frontpage {
    margin-top: 1em;
    margin-bottom: 1em;
}
.no-frontpage h1 {
    color: var(--color-txt);
}
.no-frontpage h1:after, .no-frontpage h3:after {
    display: flex;
    width: 80px;
    border-bottom: 3px solid var(--primary);
    content: "";
    margin: 0;
    padding-top: 10px;
}
.no-frontpage img {
	width: 100%;
}
.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
    /* height: calc(100vh - 150px); */
    overflow-y: auto;
}
.sidebar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5em;
    margin-bottom: 1em;
    color: var(--color-txt);
}
.sidebar a {
    display: block;
}
.igp-equipoPI {
	padding-top: 15px;
	padding-bottom: 15px;
}
.modal-title {
	text-align: center;
	width: 100%;
}
.modal-title:after {
	display: flex;
    width: 80px;
    border-bottom: 3px solid var(--primary);
    content: "";
    margin: 0 auto;
    padding-top: 10px;
}
/* SEARCHBAR */
div.igp-search {
    background-color: var(--primary);
    padding: 15px 0;
}

div.igp-search div.search-options {
    display: flex;
}

div.igp-search div.manual-options {
    display: none;
}

/* TRAIL */
.igp-trail {
    padding: 0.5em 0;
    background-color: var(--bg-sections);
    border-bottom: var(--bd-sections);
    border-top: var(--bd-sections);
    margin-top: -1px;
}
.igp-trail ul {
    display: flex;
    overflow-x: scroll;
}
.igp-trail ul > li {
    display: inline;
    color: var(--color-txt);
    white-space: nowrap;
}
.igp-trail ul > li:first-of-type,
.igp-trail ul > li a:hover {
    color: var(--tertiary);
}
.igp-trail ul > li:not(:first-of-type):before {
    content: "|";
    margin: 1em;
}
/*SUBPROGRAMS*/
.subprograms .subprog-description {
	background-color: var(--dark-primary);
	color: white;
}
.subprograms .subprog-list>li {
    display: flex;
    background-color: var(--tertiary);
    color: white;
}
.subprograms .subprog-list>li:hover {
    background-color: var(--dark-primary);
}
.subprograms .subprog-list>li:not(:last-of-type) {
    border-bottom: 1px solid white;
}
.subprograms .subprog-list .subprogram {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: .75em;
	padding-bottom: .75em;
}
/*PROJECTS*/
.projects {
	padding-top: 1em;
	padding-bottom: 1em;
	color: var(--primary);
}

.projects ul {
    display: flex;
    flex-wrap: wrap;
}
.projects .project {
    width: 100%;
    display: flex;
}
.projects .project img {
    width: 120px;
}
.projects .project h3 {
	margin-top: .5em;
    margin-bottom: .5em;
    color: var(--color-txt);
    line-height: 1.5;
}
.projects .project .pj-links{
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/*PUBLICATIONS*/
.publications .pubs-description {
	background-color: var(--color-txt);
	color: white;
}
.publications .pubs-last{
    background-color: #f5f5f5;
}

/* FOOTER */
footer {
    background-color: var(--primary);
    position: absolute;
    bottom: 0;
    width: 100%;
}
footer .footer-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
}
/*
footer .nav-social {
    margin-top: 10px;
}*/
ul.footer-contact>li:not(:last-of-type) {
    display: grid;
    grid-template-columns: 20px auto;
    grid-gap: 5px;
}
ul.footer-contact>li span.fa {
    margin-top: 3.5px;
}
ul.footer-contact>li p {
    margin: 0;
}
iframe.map {
    display: none;
}
div.dataTables_wrapper div.dataTables_filter label {
    width: 100%;
}
div.dataTables_wrapper div.dataTables_filter input {
    width: calc(100% - 55px) !important;
}
div.dataTables_wrapper div.dataTables_length{
    text-align: left !important;
}
@media (min-width: 480px) {
    div.igp-search .btn-manual {
        display: block;
    }
    footer .footer-wrapper {
        padding-right: 15px;
        width: 50%;
    }
    iframe.map {
        display: block;
        width: 50%;
        position: absolute;
        right: 0;
        top: 0;
    }
    ul.nav-contact li:last-of-type {
        border-left: 1px solid white;
    }
    ul.nav-contact li:last-of-type i{
        display: inline-block;
    }    
}
@media (min-width: 576px) {	
    .igp-trail ul {
        overflow: initial;
    }
}
@media (min-width: 640px) {    
    .logo {
        height: 40px;
    }    
    div.igp-search div.manual-options {
        display: block;
        padding-left: 20px;
        border-left: 1px solid white;
    }
    nav.nav-right > ul {
        top: 105px;
    }
    div.dataTables_wrapper div.dataTables_filter label {
        width: auto;
    }
    div.dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
}
    
@media (min-width: 768px) {
    .igp-news {
        background: linear-gradient(
                90deg,
                var(--main-background-lfilter)
                    50%,
                var(--main-background-rfilter) var(--width-description)
            );
    }
    .igp-news .bg-news .app-description{
		width: 50%;
		padding: 2em 2em 2em 0;
	} 
	.projects {
		padding-top: 2em;
		padding-bottom: 2em;
	}	
	.projects .project {
		width: 50%;
	}	
}
@media (min-width: 992px) {
    .dp-normal {
        display: block;
    }
    .dp-small {
        display: none;
    }
    .btn-nav {
        display: none;
    }
    ul.nav-social > span {
        display: block;
    }
    ul.nav-social li:not(:last-of-type),
    ul.nav-contact li:not(:last-of-type) {
        margin-right: 10px;
    }    
    nav.nav-right>ul {
        flex-direction: row;
        position: static;
        box-shadow: none;
        height: auto;
        border-color: transparent;
    }
    nav.nav-right > ul.active {
        height: auto;
    }   
    nav.nav-right > ul li {
        padding: 0;
        width: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        border: none;
        white-space: nowrap;
    } 
    nav.nav-right > ul > li:after {
        content: "|";
    }   
    nav.nav-right ul > li:last-of-type:after {
        margin-right: 0;
    }
    nav.nav-right li a {
        border-width: 3px 0;
    }
    nav.nav-right li.active a,
    nav.nav-right li a:hover {
        border-right: none;
    }
    nav.nav-right > ul > li > .menu-dropdown {
        position: absolute;
        top: 52px;
        margin: 0;
        background-color: white;
        overflow: hidden;
        border: var(--bd-sections);
        border-top: 2px solid var(--primary);
    } 
    nav.nav-right > ul > li > .show.menu-dropdown {
        overflow: initial;
    }
    nav.nav-right>ul>li>button, nav.nav-right>ul>li>a {
        padding: 7px 1em;
    }
    nav.nav-right>ul>li>ul:before {
        border-bottom: 10px solid var(--primary);
        border-right: 7px solid white;
        border-left: 7px solid white;
        content: '';
        left: 2em;
        top: -12px;
        position: absolute;
        z-index: 0;
    }
    nav.nav-right > ul > li>ul>li {
        border-bottom: var(--bd-sections);
    }
    ul.nav-contact li:not(:last-of-type) {
        display: block;
    }
    div.igp-search > div.container {
        grid-gap: 40px;
    }
    div.igp-search div.manual-options {
        padding-left: 40px;
    }
    footer .footer-wrapper {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
	}
	footer .footer-wrapper>li{
        width: calc(50% - 10px);
    }
    .projects ul {
		overflow-x: initial;
	}
	.projects .project {
		width: 33.33%;
	}
}

/* bootstrap */
a:hover {
    text-decoration: none;
}
.list-group-item:hover, .list-group-item:focus {
    z-index: 1;
    text-decoration: none;
    background-color: var(--bg-sections);
    text-decoration: none;
}
.list-group-item.disabled, .list-group-item:disabled {
    color: #6c757d;
    background-color: #fff;
}
.list-group-item.active {
    z-index: 2;
    color: var(--tertiary);
    background-color: var(--bg-sections);
    border: 1px solid rgba(0,0,0,.125);;
}
.projects-modal .modal-header {
    background-color: var(--primary);
    color: white;
}
.projects-modal button {
    color: white;
}
.projects-modal b {
    color: var(--primary);
}
.projects-modal button:hover {
    opacity: 1;
    color: white;
}
.igp-table {
    width: 100% !important;
}
.igp-table thead {
    background-color: var(--bg-thead);
    color: var(--primary);
}
.page-item.active .page-link {
    background-color: var(--bg-thead);
    border-color: #dee2e6;
    color: var(--primary);
}
/* custom */
#results {
    right: 0;
}
#results:before{
    right: 2em;
    left: initial;
}