@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/*------------VARIABLES CSS------------*/
:root{
  --primaryColor: #C32C43;
}
/*------------VARIABLES CSS------------*/

/*----------------GENERAL--------------*/
html, body,
h1, h1, h3, h4, h5, h6,
p, li, a{
	font-family: "Source Sans 3", sans-serif;
}  

h1, h2, p, a, li, span{
  color: black;
  text-decoration: none;
}

ul {
  list-style: none;
}

p,
.formacion-wrap .list li,
.projects-wrap li{
  font-size: 20px;
}

h2{
  font-weight: 660;
  position: relative;
}

h2::before{
  content: ''; 
  display: block; 
  height: 8px; 
  width: 85px; 
  background-color: var(--primaryColor);
  position: absolute;
  background-position: right;
  bottom: -10px;
  left: 2px;
}

.background-custom-menu{
  background-color: var(--primaryColor);
}

.background-custom-menu .navbar-brand img{
  filter: brightness(10000%) saturate(1000%);
}

.background-custom-menu a,
.background-custom-menu ul.menu a.is-active, 
.background-custom-menu p{
  color: white
}

header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 60px 0;
}

.view-frontpage.view-id-frontpage{
  display: none;
}

/*-------------BURGER MENU-----------*/
#block-vootstrap-mainnavigation,
.region-content-add{
  display: none;
}

.navbar-toggler:focus{
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}

.navbar-toggler{
  background-color: var(--primaryColor);
  border-radius: 50%; 
  position: relative; /* Needed for the shadow positioning */
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}

.background-custom-menu .navbar-toggler{
  background-color: white;
}

.navbar-toggler.collapsed{
  padding: 3px 8px;
}

.navbar-toggler.collapsed .navbar-toggler-icon{
  height: 2.4em;
  width: 2em;
  background-image: url('../images/icons/bars-solid.svg');
}

.navbar-toggler .navbar-toggler-icon{
  height: 2.2em;
  background-image: url('../images/icons/xmark-solid.svg');
}

.background-custom-menu #superfish-main--2 li,
.background-custom-menu #superfish-main--2-accordion li{
  position: relative;
}

.background-custom-menu #superfish-main--2 li::before,
.background-custom-menu #superfish-main--2-accordion li::before{
  content: ''; 
  display: block; 
  height: 8px; 
  width: 85px; 
  background-color: white;
  position: absolute;
  background-position: right;
  top: 28px;
  left: 18%;
}

.region-content-add{
  margin: auto;
  justify-content: right;
}

.region-content-additional{
  width: 100%;
}

.custom-menu-wrap .menu li{
  margin-bottom: 30px;
}

.custom-menu-wrap .menu a{
  font-size: 2.8em;
  font-weight: 600;
}

.custom-menu-wrap .menu{
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.contactos{
  text-align: right;
  margin-bottom: 20px;
}

.contactos p{
  margin-bottom: unset !important;
}

.contactos b p{
  margin-bottom: 10px !important;
  font-size: 23px;
  font-weight: 660;
}

.contactos > p:nth-child(3){
  margin-bottom: 10px !important;
}

.icons{
  margin-top: 15px;
}

.icons a {
  display: inline-block;
  width: 30px;  
  height: 30px; 
  text-align: center;  
}

.icons a:not(:last-child){
  margin-right: 10px; 
}

.icons a:first-child{
  margin-right: 7px !important; 
}

.icons a img{
  filter: invert(100%) brightness(100%);
}

.icons a:first-child img{
  width: 28.5px;
  height: 28.5px;
}

/*-------------FRONT PAGE------------*/
.path-frontpage .region-content{
  padding: unset;
}

.path-frontpage .copyright-notice{ 
  padding-left: 8%;
}

.front{
  display: flex;
}

#front-content{
  display: flex;
  flex-direction: column;
  width: 45%;
  padding-left: 10%; 
}

#front-content .region-header{
  padding-top: 40px;
  height: 34vh;
}

.front-main .front-img{
  height: 50vh;
}

.front-main{
  display: flex;
  flex-direction: column;
}

#front-menu{
  width: 55%;
}

.front-img img{
  max-width: 100%;
  min-width: 450px;
}

.region-content #block-vootstrap-mainnavigation-2 #superfish-main,
.region-content #block-vootstrap-mainnavigation-2 #superfish-main-accordion{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block-end: unset;
}


.region-content #block-vootstrap-mainnavigation-2 .menu li{
  background-color: var(--primaryColor);
  height: 23.3vh;
  align-items: center;
  padding-left: 22%;
  display: flex;
}

.region-content #block-vootstrap-mainnavigation-2 .menu li a{
  font-weight: 660;
  color: white;
  position: relative;
  padding-left: 90px;
  font-size: 2.8em;
}

.region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
  content: ""; 
  background: url('../images/icons/arrow.svg');
  background-repeat: no-repeat;
  position: absolute;
  top: -10px;
  left: -16px;
  height: 90px;
  width: 90px;
  background-size: contain;
}

.front-main .icons {
  display: flex;
  gap: 5px; 
}

.front-main .icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px; /* Circle width */
  height: 45px; /* Circle height */
  background-color: var(--primaryColor);
  border-radius: 50%; 
  overflow: hidden; 
}

.front-main .icons img {
  width: 30px; 
  height: 30px; 
}

/*-------------DEPARTAMENTO PAGE------------*/
#block-vootstrap-socaimainblock{
  display: flex;
  justify-content: center;
}

.dept-wrap{
  justify-self: end;
}

.title-wrap{
  display: flex;
  justify-content: space-between;
}

.dept-text,
.dept-text h2{
  margin-bottom: 60px;
}

.dept-wrap img{
  max-width: 100%;
}

.dept-img{
  margin-top: 80px;
}

.dept-img > div{
  margin-bottom: 20px;
}

/*-------------PROYECTOS PAGE------------*/
.formacion-wrap ul li,
.projects-wrap ul li {
  position: relative;
  padding-left: 1.2em; 
  line-height: 1.5em; 
  margin-bottom: 10px;
}

.formacion-wrap .list ul li::before,
.projects-wrap .category-wrap ul li::before {
  content: '';
  position: absolute;
  left: 0; 
  width: 10px; 
  height: 10px; 
  background-color: var(--primaryColor); 
  border-radius: 50%; 
}

.projects-wrap ul li::before{
  top: 15%;
}

#secur-sentry ul li::before{
  top: 26%;
}

.formacion-wrap ul li::before {
  top: 42%; 
  transform: translateY(-50%); 
}

.projects-wrap ul li::before {
  font-size: 19px;
}

.projects-wrap ul li{
  padding-left: 1.2em; 
  margin-bottom: 25px;
}

.section-title{
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 13px;
  padding: 0 5px;
  cursor: pointer;
}

.section-title p{
  position: relative;
  font-weight: 700;
  color: var(--primaryColor);
  font-size: 22px;
  padding: 7px 35px;
}

.section-title p::after{
  content: "";
  background: url(../images/icons/chevron-right-solid-red.svg);
  width: 30px;
  height: 30px;
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  right: 0;
}

.selected-title{
  background: var(--primaryColor);
}

.selected-title p{
  color: white !important;
}

.selected-title p::after{
  background: url(../images/icons/chevron-right-solid-white.svg) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.category-wrap{
  padding-left: 70px;
  margin-bottom: 80px;
}

.category-wrap p{
  font-size: 22px;
}

.category-button{
  text-align: center;
  background-color: var(--primaryColor);
  width: 45%;
  margin: 0 auto;
  padding: 6px;
  border-radius: 7px;
  margin-top: 75px;
}

.category-button a{
  color: white;
  font-weight: 660;
  font-size: 22px;
  padding: 5.5px 100px;
}

.projects-wrap .img{
  text-align: center;
  margin-bottom: 50px;
}

.projects-wrap .img img{
  max-width: 300px;
}

#scrin img{
  max-width: 280px;
}

#secur-sentry img{
  max-width: 150px;
}

/*-------------FORMACION PAGE------------*/
.formacion-wrap > div:nth-child(2),
.formacion-wrap .list{
  display: flex;
}

.formacion-wrap > div:nth-child(2) div{
  flex: 0 0 48%;
  text-align: center;
  background-color: #F8F8F8;
  border: 1px solid #F8F8F8;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.formacion-wrap > div:nth-child(2) div img{
  margin-bottom: 25px;
  width: 76px;
  height: 74px;
}

.formacion-wrap > div:nth-child(2) div p b{
  font-size: 22px;
}

hr{
  border: 1.5px solid;
}

.formacion-wrap .list div{
  display: flex;
  justify-content: space-between;
}

.formacion-wrap li{
  margin-top: -10px; 
  font-weight: 660;
}

/*-----------LÍNEAS DE INVESTIGACIÓN PAGE----------*/
.research-wrap{
  margin-bottom: 70px;
}

.research{
  justify-content: center;
}

.research > div{
  margin: 15px 0;
}

.research img {
  width: 100%; 
  height: auto; 
  max-width: 340px; 
  object-fit: cover;
  display: block;
  margin: auto;
}

.research p{
  text-align: center;
  color: var(--primaryColor);
  font-weight: 660;
  margin-top: 15px;
}

/*Research-items*/
.research-item-wrap{
  margin-bottom: 70px;
}

.mini-menu{
  display: flex;
  justify-content: end;
  margin-top: 20px;
}

.mini-menu a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; 
  height: 52px; 
  background-color: var(--primaryColor);
  border-radius: 50%; 
  overflow: hidden; 
}

.mini-menu img{
  width: 32px;
  height: 32px;
  filter: invert(100%) brightness(100%);
}

.research-item{
  background-color: #F8F8F8;
  border-radius: 6px;
  margin-top: 15px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  align-items: center;
}

.research-item h3{
  font-weight: 660;
  margin-bottom: 24px;
  font-size: 32px;
}

/*---------------FOOTER--------------*/
footer{
  background-color: black;
  padding: 1.1rem;
}

.copyright-notice{
  display: flex;
  margin: 0 auto;
  font-weight: 700;
  align-items: center;
}

.copyright-notice a{
  font-size: 15px;
  color: white;
  position: relative;
  margin-right: 15px;
  padding-right: 15px;
}

.copyright-notice span{
  position: relative;
  padding-left: 40px;
  color: white;
}

.copyright-notice span::before{
  content: "";
  position: absolute;
  background-image: url(../images/favicon_2.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 33px;
  height: 33px;
  left: 0;
  top: -7px;
  opacity: 0.8;
}

.copyright-notice a:not(:last-child)::after{
  content: ''; 
  display: block; 
  height: 100%; 
  width: 1.5px; 
  background-color: white;
  position: absolute;
  background-position: right;
  top: 1px;
  right: -3px;
}

.formacion-wrap .list,
.dept-wrap,
.projects-wrap{
  margin-bottom: 80px;
}

/*-------------RETURN BUTTON-----------------*/
.return-button-wrap {
  display: inline-block;
}

.return-button {
  border: 1.5px solid var(--primaryColor);
  border-radius: 7px;
  padding: 4px 10px;
  background-color: transparent;
  display: flex;
  align-items: center;
  color: var(--primaryColor);
  text-decoration: none;
  font-size: 20px;
  font-weight: 660;
  position: relative;
}

.return-button:hover{
  background-color: #ffffff33;
}

.return-button::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../images/icons/chevron-left-solid.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 3px;
}

/*--------------RESPONSIVE DESIGN-------------*/
@media (min-width: 576px) {
	.path-node .copyright-notice{ 
	  max-width: 540px;
	}

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research{
    gap: 3%;
  }
  
  .research > div{
    width: 48%;
  }

  .research p{
    font-size: 22px;
  }

  /*FORMACION PAGE*/
  .formacion-wrap > div:nth-child(2) div{
    padding: 40px 10px;
  }
}

@media (min-width: 768px) {
  .path-node .copyright-notice{
	    max-width: 720px;
	}
    /**/
  .custom-menu-wrap .menu li{
      padding-left: 30%;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research{
    gap: 6%;
  }
  
  .research > div{
    width: 29%;
  }

  .research > div:nth-child(4),
  .research > div:last-child{
    width: 34%;
  }

  /*FORMACION PAGE*/
  .formacion-wrap > div:nth-child(2) div{
    padding: 40px 25px;
    margin-bottom: 25px;
  }
}

@media (min-width: 769px) {
  .path-frontpage{
    height: 100vh;
    overflow: hidden;
  }

  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 92vh;
    gap: 0;
    overflow: hidden;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li:not(:last-child){
    border-bottom: 4px solid white;
  }
}
  
  @media (min-width: 992px) {
    .path-node .copyright-notice{ 
	  max-width: 960px;
	}
  }
  
  @media (min-width: 1200px) {
    .path-node .copyright-notice{ 
	  max-width: 1140px;
	}
}

  @media (min-width: 1400px) {
    .path-node .copyright-notice{ 
	    max-width: 1320px;
	}
}

@media (min-width: 992px) {

  /*-------------FRONT PAGE------------*/
  header{
    margin-bottom: 40px;
  }

  .navbar-brand img{
    min-width: 280px;
    max-width: 280px;
    height: auto;
  }

  #front-menu-icon{
    display: none;
  }

  /*-------------GENERAL------------*/
  .path-node h2{
    font-size: 2.9em;
    margin-bottom: 50px;
  }

  .return-button-wrap{
    margin-top: 12px;
  }

  /*-------------FORMACION PAGE------------*/
  .formacion-wrap > div:nth-child(2){
    justify-content: space-around;
    margin-bottom: 50px;
  }

  .formacion-wrap .list{
    margin-top: 70px;
  }

  .formacion-wrap .list div{
    width: 100%;
    justify-content: flex-end;
    gap: 15%;
    flex: 0 0 60%;
  }

  .formacion-wrap .list p{
    flex: 0 0 40%;
  }

  .formacion-wrap .list div ul{
    margin-top: 8px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research img {
    padding: 0 60px;
  }

  .research{
    gap: 9%; 
  }
  
  .research > div{
    width: 27%;
  }

  /**/
  .custom-menu-wrap .menu a{
    font-size: 3em;
  }

  .research p{
    font-size: 24px;
  }
}

@media (min-width: 1200px) {
  .formacion-wrap .list{
    justify-content: center;
  }

  .formacion-wrap .list div{
    gap: 15%;
    flex: 0 0 50%;
  }

  .formacion-wrap .list p{
    flex: 0 0 35%;
  }
  
  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research{
    gap: 12%; 
  }
  
  .research > div{
    width: 25%;
    margin-bottom: 25px;
  }

  .research p{
    font-size: 26px;
  }

  .research-item{
    gap: 50px;
    margin-right: 80px;
    padding: 100px 70px;
  }

  .mini-menu{
    padding-right: 80px;
  }

  /*-------------GENERAL------------*/
  .path-node h2{
    font-size: 3em;
  }
}

@media (min-width: 1400px) {

  /*-------------FRONT PAGE------------*/

  /*---------------------------*/
  .formacion-wrap .list{
    justify-content: center;
  }

  .formacion-wrap .list div{
    gap: 15%;
    flex: 0 0 50%;
  }

  .formacion-wrap .list p{
    flex: 0 0 35%;
  }

  .formacion-wrap > div:nth-child(2) div{
    padding: 40px 90px 55px 90px; 
  }

  .region-content-additional{
    margin-left: 10%;
  }

  /**/
  .custom-menu-wrap .menu{
    width: 85%;
  }

  .custom-menu-wrap .menu a{
    font-size: 3.3em;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    top: 33px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research p{
    font-size: 28px;
  }

  /*-------------GENERAL------------*/
  .path-node h2{
    font-size: 3.3em;
  }
}

@media (min-width: 1700px) {

  /*-------------FRONT PAGE------------*/
  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    font-size: 3.4em;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    width: 95px;
    height: 95px;
    top: -6px;
    left: -21px;
  }

  /*-------------GENERAL------------*/
  .path-node h2{
    font-size: 3.5em;
  }
}

@media (max-width: 1550px) {
  #front-content{
    padding-left: 8%;
  }

  .path-frontpage .copyright-notice{
    padding-left: 5.5%;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    padding-left: 16%;
  }

  .front-img img{
    min-width: 430px;
  }
}

@media (max-width: 1400px) {
  br{
    display: none;
  }

  .front-img img{
    min-width: 400px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    padding-right: 40px;
  }

  #front-content{
    padding-left: 6%;
  }

  .path-frontpage .copyright-notice{
    padding-left: 3%;
  }

  .category-button a{
    padding: 5.5px 70px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research-item{
    padding: 80px 30px;
  }

  .research-text{
    padding-left: 25px;
  }
}

@media (max-width: 1399px) {
  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    left: 22%;
    width: 75px;
  }
}

@media (max-width: 1200px) {
  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    left: 20%;
  }

  .section-title p{
    padding: 7px 15px;
  }

  .category-wrap p{
    font-size: 20px;
  }

  .category-button a{
    padding: 5.5px 45px;
  }

  /*-------------FRONT PAGE------------*/
  #front-content{
    padding-left: 4%;
  }

  .path-frontpage .navbar-brand img{
    max-width: 230px;
  }

  .front-img img{
    min-width: 365px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    padding-left: 9%;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    font-size: 2.6em;
  }

  .path-frontpage .copyright-notice{
    padding-left: 1%;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
    /*-------------FRONT PAGE------------*/
  .front-main .icons{
    gap: 0;
  }

  .front-main .icons a{
    height: 40px;
    width: 40px;
  }

  .front-main .icons img,
  .front-main .icons a:first-child img{
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 992px) {
  /*-------------FRONT PAGE------------*/
  .navbar-brand img{
    min-width: 100px;
    max-width: 240px;
    height: auto;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    left: 17%;
  }

  /*-------------FORMACION PAGE------------*/
  .path-node h2{
    font-size: 2.5em;
    margin-bottom: 40px;
  }
  
  .formacion-wrap > div:nth-child(2),
  .list{
    gap: 20px;
  }

  .formacion-wrap > div:nth-child(2){
    margin-bottom: 30px;
  }

  .list{
    margin-top: 50px;
  }
  /*-------------------------*/
  #block-vootstrap-returnbutton{
    margin-bottom: 20px;
  }

  
  /*-------------PROYECTOS PAGE------------*/
  .selection{
    margin: 25px auto 40px auto;
  }

  .category-wrap{
    padding-left: unset;
    margin-bottom: 35px;
  }

  .projects-wrap{
    margin-bottom: 40px;
  }

  .section-title p::after{
    transform: rotate(90deg); 
    top: 12px;
    right: 15px;

  }

  .selected-title p::after{
    transform: rotate(-90deg); 
    right: 15px;
    top: 4px;
  }

  .category-button{
    margin-top: 25px;
  }

  /*---------------*/
  .research img {
    padding: 0 40px;
  }
}

@media (min-width: 767px) and (max-width: 992px){

  /*-------------FRONT PAGE------------*/
  .path-frontpage main{
    max-width: 100% !important;
  }

  /*-------------------------*/

  .formacion-wrap .list div ul{
    margin-top: 8px;
  }

  .formacion-wrap .list div ul:first-child{
    padding-right: 18px;
  }

  .formacion-wrap .list div{
    width: 100%;
    justify-content: center;
    gap: 5%;
    flex: 0 0 57%;
  }

  .formacion-wrap .list p{
    flex: 0 0 42%;
  }
}

@media (min-width: 768px) and (max-width: 768px){
  .research-item{
    gap: 24px !important;
  }

  .research-img{
    width: 38%;
  }
  
  .research-text{
    width: 58%;
  }
}

@media (min-width: 769px) and (max-width: 992px){
  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research-item{
    padding: 50px 25px;
  }
  
  .research-img{
    width: 38%;
  }
  
  .research-text{
    width: 62%;
  }
}

@media (max-width: 768px) {
  .sf-accordion-toggle{
    display: none;
  }

  .category-button a{
    padding: 5.5px 20px;
  }

  /*-------------FRONT PAGE------------*/
  header{
    margin: 30px 40px 40px 40px;
  }

  .path-frontpage main{
    margin-bottom: 60px;
  }

  .navbar-brand img{
    min-width: 90px;
    height: auto;
  }

  .front{
    flex-direction: column;
  }

  #front-content,
  #front-menu{
    width: 100%;
  }

  .front-img img{
    min-width: 500px;
  }

  .path-frontpage .navbar-brand{
    position: relative;
  }

  .path-frontpage header{
    display: flex;
  }

  #front-content .region-header{
    height: 7.5vh;
    padding-top: unset;
  }

  .front-main .front-img{
    height: 64vh;
    padding-top: 15vh;
    text-align: center;
  }

  .front-main .icons{
    justify-content: center;
  }

  .front-main .icons a{
    width: 60px;
    height: 60px;
  }
  
  .front-main .icons img{
    width: 34px;
    height: 34px;
  }

  #front-menu-icon{
    position: relative;;
    display: block;
    margin-right: 25px;
    width: 64px; 
    height: 62px; 
    background-color: var(--primaryColor);
    border-radius: 50%;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3); 
    cursor: pointer;
  }

  .path-frontpage #front-menu-icon::after{
    content: '';
    position: absolute; 
    background: url(../images/icons/bars-solid.svg);
    width: 46px;
    height: 54px;
    background-repeat: no-repeat;
    background-size: contain;
    top: 4px;
    left: 9.5px;
  }

  .path-frontpage .front-menu-icon-collapsed::after{
    background: url(../images/icons/xmark-solid.svg) !important;
    filter: brightness(1000%) saturate(1000%);
    width: 30px !important;
    height: 44px !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    top: 10px !important;
    left: 18px !important;
  }

  #front-menu{
    position: absolute;
    bottom: 75px;
    display: none;
  }

  #front-menu ul.menu{
    margin-left: 0;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    height: 18vh;
  }

  .path-frontpage .copyright-notice{
    padding-left: unset;
  }
  /*-------------------------*/

  /*-------------GENERAL------------*/
  .path-node h2{
    font-size: 2em;
  }
  /*-------------------------*/

  .list{
    flex-direction: column;
  }

  .formacion-wrap .list div{
    justify-content: space-around;
  }

  /*-------------------------*/
  .custom-menu-wrap .menu li{
    padding-left: 20%;
  }

  .custom-menu-wrap .menu a{
    font-size: 2.5em;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    left: 3.5%;
    width: 65px;
    height: 6.8px;
    top: 25px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/

  .research-item-wrap{
    margin-bottom: 35px;
  }

  .mini-menu{
    margin-top: 5px;
  }

  .research-item{
    padding: 25px 25px 35px 25px;
    gap: 35px;
  }

  .research-img{
    text-align: center;
  }

  .research-img img{
    max-width: 260px;
  }

  .research-wrap{
    margin-bottom: 30px;
  }

  /*--Footer--*/
  .copyright-notice{
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 10px;
  }

  .copyright-notice div{
    text-align: center;
  }
}

@media (max-width: 576px) {
  /*-------------FRONT PAGE------------*/
  .path-frontpage header{
    margin: 30px 10px;
  }

  .front-img img{
    min-width: 390px !important;
  }

  .front-main .icons a{
    width: 53px;
    height: 53px;
  }
  
  .front-main .icons img{
    width: 32px;
    height: 32px;
  }
  /*-----------------*/

  .region-content-additional .menu{
    margin-left: 20px;
  }

  .formacion-wrap > div:nth-child(2){
    flex-direction: column;
  }

  .formacion-wrap > div:nth-child(2) div{
    width: 90%;
    margin: 10px auto;
    padding: 40px;
  }

  .formacion-wrap > div:first-child p{
    margin-bottom: 30px;
  }

  .path-frontpage .navbar-brand img,
  .navbar-brand img{
    max-width: 200px;
  }

  .dept-img > div{
    text-align: center;
  }

  /*CUSTOM MENU*/
  .custom-menu-wrap .menu li{
    padding-left: 15%;
  }

  .region-content-additional .menu a{
    font-size: 2.3em;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    height: 6px;
    width: 50px;
    top: 23px;
    left: 2%;
  }

  .contactos{
    margin-right: 10px;
  }

  .contactos p{
    font-size: 18px;
  }

  .contactos b p{
    font-size: 21px;
  }

  /*-----PROYECTOS PAGE-----*/
  .category-button{
    width: 70%;
  }

  .projects-wrap ul li::before{
    top: 10%;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research img {
    padding: 0 60px;
  }

  .research-item{
    padding-right: 15px;
    padding-left: 15px;
    margin-right: 10px;
    margin-left: 10px;
  }

  .research-text{
    padding-right: unset;
    padding-left: unset;
  }

  .research-item h3{
    text-align: center;
  }
}

@media (max-width: 500px){
  /*-------------FORMACION PAGE------------*/
  .list{
    margin: 30px 0 30px 0;
  }

  #block-vootstrap-returnbutton{
    margin-bottom: 20px;
    text-align: end;
  }

  .path-node h2{
    margin-bottom: 10px;
  }

   /*CUSTOM MENU*/
  .region-content-additional .menu{
    margin-left: 10px;
  }

  .custom-menu-wrap .menu li{
    padding-left: 13%;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    width: 35px;
    height: 5px;
    left: 0;
  }

  /**/
  .title-wrap{
    flex-direction: column;
  }

  #front-content{
    padding-left: unset;
  }

  #front-menu-icon{
    margin-right: unset;
  }
}

@media (max-width: 456px) {
  .region-content-additional .menu a{
    font-size: 2.1em;
  }

  ul.menu{
    margin-left: 0;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    width: 28px;
    height: 4px;
  }

  /*-------------FRONT PAGE------------*/
  .front-img img{
    min-width: 335px !important;
  }
  
  .front-main .icons{
    gap: unset;
  }

  .front-main .icons a{
    width: 45px;
    height: 45px;
  }
    
  .front-main .icons img{
    width: 30px;
    height: 30px;
  }

  #front-menu-icon{
    width: 60px;
    height: 58px;
  }

  .path-frontpage #front-menu-icon::after{
    width: 41px;
    height: 50px;
  }

  .path-frontpage .front-menu-icon-collapsed::after{
    top: 8px !important;
    left: 15.5px !important;
  }
  /*-----------------*/
}

@media (max-width: 414px){
  .dept-text h2{
    font-size: 1.9em;
  }

  /**/
  .region-content-additional .menu li{
    margin-left: unset;
  }

  .region-content-additional .menu a{
    font-size: 1.9em;
  }

  .background-custom-menu #superfish-main--2 li::before,
  .background-custom-menu #superfish-main--2-accordion li::before{
    top: 20px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research-item{
    max-width: 100%;
  }
}

@media (max-width: 379px) {
  .category-button a{
    padding: 5.5px 12px;
  }

  /*-------------FRONT PAGE------------*/
  .front-img img{
    min-width: 320px !important;
    max-width: 90% !important;
  }
  /*----------------------*/

  ul.menu{
    margin-left: -0.6em;
  }

  .formacion-wrap ul{
    margin-left: -0.7em;
  }

  .formacion-wrap ul:first-child{
    margin-right: 30px;
  }

  .formacion-wrap > div:nth-child(2) div{
    padding: 40px 10px;
  }

  .background-custom-menu #superfish-main--2 li::before{
    width: 20px;
  }

  /*---LÍNEAS DE INVESTIGACIÓN PAGE----*/
  .research-item{
    margin-right: unset;
    margin-left: unset;
  }
}

@media (max-width: 355px) {
  .formacion-wrap ul{
    padding-left: 1rem;
  }

  ul.menu{
    margin-left: -1.2em;
  }
}

/*Height and special cases*/
@media (max-height: 970px) {
  .custom-menu-wrap .menu{
    margin-bottom: 10px;
  }
}

@media (min-width: 767px) and (max-height: 794px) {
  .custom-menu-wrap .menu li{
    margin-bottom: 15px;
  }

  header{
    margin-bottom: 30px;
  }
}

@media (min-width: 992px) and (max-height: 1013px) {
  .research-item{
    padding: 45px 25px;
  }

  .mini-menu{
    margin-top: unset;
  }
}

@media (min-width: 992px) and (max-height: 865px) {
  .research-item{
    padding: 25px 15px;
  }

  header{
    margin: 25px 0 30px 0;
  }
}

@media (max-height: 1200px) {
  .projects-wrap{
    margin-bottom: unset;
  }

  .category-wrap{
    margin-bottom: 45px;
  }
}

@media (min-width: 1200px) and (max-height: 850px) {
  .path-node h2,
  .dept-text{
    margin-bottom: 30px;
  }
}

@media (min-width: 1400px) and (max-height: 970px),
(min-width: 993px) and (max-height: 970px) {
  .page-node-3 header{
    margin-bottom: 20px;
  }

  .formacion-wrap > div:nth-child(2){
    margin-bottom: 30px;
  }

  .formacion-wrap .list{
    margin-top: 40px;
  }
}

@media (max-width: 560px) and (max-height: 785px) {
  .contactos{
    margin-top: -35px;
  }

  .custom-menu-wrap .menu li{
    margin-bottom: 20px;
  }
}

@media (min-width: 993px) and (max-height: 1050px){
  .contactos{
    margin-top: -30px;
  }

  .custom-menu-wrap .menu li{
    margin-bottom: 20px;
  }

  .custom-menu-wrap .menu a{
    font-size: 2.8em;
  }
}

/*---------FRONT PAGE----------*/
/*-------------------*/
@media (min-width: 769px) and (max-height: 1280px) {
  #front-content .region-header{
    height: 29vh;
  }

  .front-main .front-img{
    height: 50vh;
  }
}

@media (min-width: 769px) and (max-height: 1015px) {
  #front-content .region-header{
    padding-top: unset;
    height: 27vh;
  }

  .front-main .front-img{
    height: 48vh;
  }
}


@media (min-width: 769px) and (max-height: 815px) {
  #front-content .region-header{
    height: 24vh;
  }

  .front-main .front-img{
    height: 45vh;
  }
}

@media (max-width: 992px) and (max-height: 845px) {
  #front-content .region-header{
    height: 21.5vh;
  }
}

@media (min-width: 769px) and (max-width: 992px),
(max-width: 1128px) and (max-height: 660px) {
  .front-img img{
    width: 320px;
    min-width: unset;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    font-size: 2.3em;
    padding-left: 75px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 769px) and (max-width: 815px) {
  .front-img img{
    width: 300px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    padding-left: 70px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    width: 75px;
    height: 75px;
  }
}

@media (min-width: 769px) and (min-height: 1400px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 96.35vh;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    height: 24.2vh;
  }
}

@media (min-width: 769px) and (max-height: 1400px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 95.75vh;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    height: 24.2vh;
  }
}

@media (min-width: 769px) and (max-height: 1160px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 94.85vh;
  }
}

@media (min-width: 769px) and (max-height: 950px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 93.8vh;
  }
}

@media (min-width: 769px) and (max-height: 800px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 92.6vh;
  }
}

@media (min-width: 769px) and (max-height: 700px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 92.2vh;
  }
}

@media (min-width: 769px) and (max-height: 600px) {
  .region-content #block-vootstrap-mainnavigation-2 #superfish-main{
    height: 90.1vh;
  }
}

/*-------------------*/
@media (max-width: 768px) and (max-height: 880px){
  #front-content .region-header{
    height: 9vh;
  }

  .front-img img{
    min-width: 490px;
  }

  .front-main .front-img{
    height: 60vh;
    padding-top: 12vh;
  }
}

@media (max-width: 768px) and (max-height: 820px){
  #front-content .region-header{
    height: 9.5vh;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    height: 16vh;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    font-size: 2.5em;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    height: 80px;
    width: 80px;
    left: -4px;
  }
}


@media (max-width: 768px) and (max-height: 750px){
  .front-img img{
    min-width: 460px;
  }

  .front-main .front-img{
    height: 57vh;
    padding-top: 10vh;
  }
}

@media (max-width: 768px) and (max-height: 720px){
  #front-content .region-header{
    height: 10.5vh;
  }

  .front-img img{
    min-width: 435px;
  }

  .front-main .front-img{
    height: 51vh;
    padding-top: 6vh;
  }
}

@media (max-width: 600px) and (max-height: 610px){
  .front-img img{
    min-width: 400px;
  }

  .front-main .front-img{
    height: 48vh;
    padding-top: 4vh;
  }
}

@media (max-width: 590px) and (max-height: 820px),
(max-width: 400px) and (min-height: 820px),
(max-width: 480px) and (min-height: 821px) {
  .region-content #block-vootstrap-mainnavigation-2 .menu li{
    padding-left: 30px;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    padding-left: 55px;
    font-size: 2.4em;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    width: 60px;
    height: 60px;
    top: 0;
  }
}

@media (max-width: 512px) and (max-height: 730px) {
  .region-content #block-vootstrap-mainnavigation-2 .menu li a{
    font-size: 2em;
  }

  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    top: -4px;
  }
}

@media (max-width: 512px) and (max-height: 635px) {
  .region-content #block-vootstrap-mainnavigation-2 .menu li a::before{
    width: 55px;
    height: 55px;
    top: 0;
  }
}
