<?php include '../config.php'; include '../checkSession.php';
if(strlen($_COOKIE['persistPrivado'])>5){
  $logeado = true;

}
else{
  $logeado = false;
}
?>
<link rel='stylesheet' href='/assets/slick/slick.css'>
<link rel='stylesheet' href='/assets/slick/slick-theme.css'>
<link rel="stylesheet" href="/css/balloon.min.css">
<link href="/css/zeynep.css" rel="stylesheet"/>
<link href="/css/base.css" rel="stylesheet"/>
<link href="/css/left.css" rel="stylesheet"/>
<style>
#loader{position:fixed; width:100%; height:100%; left:0; top:0; z-index:9999; background-color:#fff;
background-image:url(/assets/img/loader.gif); background-repeat:no-repeat; background-size:100px; background-position:center;}
/*  COLORES DEL SITIO CMS*/
#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover{
    color: <?php echo $colorPrincipal; ?> ;   
}

.btn.btn-primary , .bannerinferior .btn.btn-primary{
   background: <?php echo $fondoBotones; ?> ;   
}
.innerbox .btn.btn-primary, .bannerinferior .btn.btn-primary {
    float: right;
    right: 40px;
    position: absolute;
    bottom: 30px;
}
.innerbox, .avisobox {
    padding-bottom: 60px!important;
}
#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover, p.textoBuzon, .date, .descarga{
    color: <?php echo $colorSecundario; ?> ;   
}
.btn-primary:hover{
    background: <?php echo $colorSecundario; ?> ;   
}


.col-md-12 .innerbox.bg2, .avisobox{
    background: <?php echo $actionCardOscuro; ?>!important ;   
}

.innerbox{
    background: <?php echo $actionCardClaro; ?> ;   
}


.btn.btn-primary{
    color: <?php echo $colorBotones; ?>!important ;   
}

.btn.btn-primary:hover{
    color: #fff!important ;   
}


.bg-footer{
    background: <?php echo $fondoEnlacesFooter; ?>!important ;   
}

.footer a{
    color: <?php echo $colorEnlacesFooter; ?>!important ;   
}
.footer a:hover{
    opacity:.75; ;   
}

span.bullet, li::marker{
    color: <?php echo $colorBullets; ?>!important ;   
}

h1, h2, .h1, .h2{
    color: <?php echo $colorTextosPrincipales; ?> ;   
}


h3, h4, h5, h6, .h3, .h4, .h5, .h6{
    color: <?php echo $colorSubtitulos; ?> ;   
}

#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover{
    color: <?php echo $colorTextoGeneralParrafos; ?> ;   
}

/*  TIPOGRAFÍAS CMS*/

@import url('<?php echo $tipografiaPrincipalRuta; ?>');

@import url('<?php echo $tipografiaSecundariaRuta; ?>');

body, .direccion, p {font-family: '<?php echo $tipografiaSecundariaNombre; ?>', sans-serif!important;}

#mainNav .navbar-nav .nav-item .nav-link, .nav .slick-initialized .slick-slide a, .masthead-heading, .carousel-caption h5, .btn-primary, .innerbox2 h3, .innerbox2 h4, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .columnasfooter h6, .enlacesinteres h5, .notif p, .footer, .contmega{font-family: '<?php echo $tipografiaPrincipalNombre; ?>', sans-serif!important;}
nav#mainNav {
    box-shadow: 1px 1px 8px #dfdfdf;
}

body {
  padding: 0;
  margin: 0;
  color:#2b4365;
}
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.btn-primary {
  color: #2b4365;
  background-color: rgba(255, 255, 255, .7);
  border-color: #2b4365;
}
.oneslide .carousel-indicators{display:none;}
@media(max-width:950px){

  body {
    color: #202020;
  }
  html, body {
    width: 100%;
    min-width: 100vw;
    position: relative;
}



.events {
	height: auto;
	position: relative;
	right: 0;
	z-index: 1;
	background-color: #cdcdd4;
	padding: 10px 40px;
	bottom: 0;
	display: inline-block;
	float: left;
	margin-top: 50px;
	top: 0;
}


  .img-fluid.logofooter {
    max-width: 150px;
    margin: 0 auto;
    display: inherit;
  }
  .footer * {
    text-align: center !important;
  }
  .img-fluid.imgbuzon {
    width: max-w;
    max-width: 200px;
  }
  .col-lg-1.my-3.my-lg-0.spacecolumn {
    display: none;
  }
  .row.columnasfooter {
    text-align: left !important;
    padding: 0 15px;
  }
  .row.columnasfooter h6 {
    text-align: left !important;
  }
  .row.columnasfooter a {
    text-align: left !important;
    font-size: 12px;
    padding: 10px 0;
    width: 100%;
    display: inline-block;
  }
  .row.columnasfooter br {
    display: none;
  }
  .footer a.linkbuzon {
    text-align: center !important;
  }
  .img-txt {
    max-width: 680px;
    height: auto;
    position: relative;
    right: 0;
    z-index: 1;
    background-color: #cdcdd4;
    padding-right: 0;
    padding-left: 0;
    padding: 20px;
    margin-top: 0;
  }
  .greenbar {
    background-color: #48aa42;
    padding: 30px 0;
    bottom: 0;
  }
  .bgopacity {
    background: rgba(255, 255, 255, .6);
  }

  .enlacesinteres {
    left: 0;
    float: left;
    width: calc(100% + 30px);
    background: #fff;
    padding: 0;
    margin: 0;
    margin-left: -15px;
    margin-bottom: 40px;
  }
  .enlacesinteres .my-3 {
    width: 25%;
    display: inline-block;
  }
  .enlacesinteres .spacecolumn {
    display: none;
  }
  .home .mb-3, .home .my-3 {
    margin-bottom: 0 !important;
  }


  .home .enlacesinteres .mb-3, .home .enlacesinteres .my-3 {
    margin-bottom: 10px !important;
  }
}

/* HEADER MENU*/

nav#mainNav {
    flex: none;
    display: inline-block;
    text-align: center;
}
.navbar .container {
    width: 100%;
    float: none;
    /* min-width: 100%; */
    display: inline-block;
    flex: none;
    position: relative;
    /* align-items: center; */
    flex-wrap: inherit;
    margin: 0 auto;
    text-align: left;
}
.nav {
    display: inline-block;
    flex-wrap: inherit;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    width: 100%;
}
.navbar-expand-lg .navbar-collapse {
    display: inline-block;
    flex-basis: inherit;
    float: right;
}
.nav .slick-initialized .slick-slide {
	font-weight: bold;
	font-family: "Montserrat";
	text-decoration: none;
	text-align: center;
	position: relative;
	padding: 10px 33px;
    outline:0;
}
.nav .slick-initialized .slick-slide a {
    text-decoration: none;
    outline:0;  
}
.nav .slick-slide ul {
    width: 100%;
    position: absolute;
    left: 0;
}
.nav  .slick-list {
	position: relative;
	overflow-y: visible;
	overflow-x: hidden;
}
ul.contmega {
    width: 100%;
    list-style: none;
    display: inline-block;
    display: none;
    padding-bottom:15px;
}
a.menu-link.mega-menu-link.mega-menu-header {
    font-size: 14.5px;
    color: #2b4365;
    font-weight: bold;
    width: 100%;
    padding-bottom: 7.5px;
    border-bottom: 1px solid #48aa42;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 15px;
}
ul.menu.menu-list li {
    list-style: none;
    width: 33%;
    float: left;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    padding-left: 30px;
}
ul.menu.menu-list a:hover {
    text-decoration: none;
    outline: 0;
}
ul.menu.menu-bar.slick-initialized.slick-slider {
    margin: 0;
    margin-bottom: 0;
}
.container.logocont {
    margin-bottom: 10px;
}
li.tienesubmenu i {
    position: absolute;
    right: 0;
    top: 13px;
}
ul.contmega {
    background: #fff;
}
li.tienesubmenu i.fas.fa-sort-up {
    top: 12px;
}
.btn-open {
        display:none;
    }
    .menumobile{
        display:none;
    }
@media(max-width:1024px){
    div#navbarResponsive {
        display: inline-block;
        width: 100%;
    }
    nav#mainNav {
        display: none;
    }
    .menumobile{
        display:inline-block;
    }

    .btn-open {
        display:block;
    }
    a.logomobile img {
        width: 100px;
        margin-top: 10px;
        margin-bottom: 10px;
    }


}
* {
  margin: 0;
  padding: 0; 
}

/* Icon 1 */

#nav-icon1, #nav-icon2, #nav-icon3, #nav-icon4 {
  width: 60px;
  height: 45px;
  position: relative;
  margin: 50px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon1 span, #nav-icon3 span, #nav-icon4 span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #48aa42;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
#nav-icon1 span:nth-child(1) {
  top: 0px;
}

#nav-icon1 span:nth-child(2) {
  top: 12px;
}

#nav-icon1 span:nth-child(3) {
  top: 24px;
}

#nav-icon1.open span:nth-child(1) {
  top: 12px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#nav-icon1.open span:nth-child(3) {
  top: 12px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

/* Icon 2 */

#nav-icon2 {
}

#nav-icon2 span {
  display: block;
  position: absolute;
  height: 9px;
  width: 50%;
  background: #d3531a;
  opacity: 1;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon2 span:nth-child(even) {
  left: 50%;
  border-radius: 0 9px 9px 0;
}

#nav-icon2 span:nth-child(odd) {
  left:0px;
  border-radius: 9px 0 0 9px;
}

#nav-icon2 span:nth-child(1), #nav-icon2 span:nth-child(2) {
  top: 0px;
}

#nav-icon2 span:nth-child(3), #nav-icon2 span:nth-child(4) {
  top: 12px;
}

#nav-icon2 span:nth-child(5), #nav-icon2 span:nth-child(6) {
  top: 24px;
}

#nav-icon2.open span:nth-child(1),#nav-icon2.open span:nth-child(6) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon2.open span:nth-child(2),#nav-icon2.open span:nth-child(5) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon2.open span:nth-child(1) {
  left: 5px;
  top: 7px;
}

#nav-icon2.open span:nth-child(2) {
  left: calc(50% - 5px);
  top: 7px;
}

#nav-icon2.open span:nth-child(3) {
  left: -50%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(4) {
  left: 100%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(5) {
  left: 5px;
  top: 29px;
}

#nav-icon2.open span:nth-child(6) {
  left: calc(50% - 5px);
  top: 29px;
}

/* Icon 3 */

#nav-icon3 span:nth-child(1) {
  top: 0px;
}

#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {
  top: 12px;
}

#nav-icon3 span:nth-child(4) {
  top: 24px;
}

#nav-icon3.open span:nth-child(1) {
  top: 12px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon3.open span:nth-child(4) {
  top: 12px;
  width: 0%;
  left: 50%;
}

/* Icon 4 */

#nav-icon4 {
}

#nav-icon4 span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4 span:nth-child(2) {
  top: 12px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4 span:nth-child(3) {
  top: 24px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: -3px;
  left: 8px;
}

#nav-icon4.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon4.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 39px;
  left: 8px;
}

div#nav-icon3 {
    width: 35px;
    height: 35px;
    padding: 0;
    margin: 0;
    position: relative;
    top: 15px;
    /* right: 40px; */
    z-index: 9999;
    display: inline-block;
    float: right;
}
a.logomobile {
    padding-left: 5px;
}
#nav-icon4.btn-open.open span {
    background: #fff;
}
.container.menumobile {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #fff;
    width: 100vw;
    max-width: 100vw;
}
.zeynep {
    padding-top: 60px;
}
.zeynep .submenu-header {
    margin-top: 60px;
}

.zeynep ul.navbar-nav.ml-auto .nav-item {
    width: 100%;
    float: left;
    display: inline-block;
    padding: 7.5px 0;
    color: #48aa42;
}

.zeynep ul.navbar-nav.ml-auto .nav-item a {
    margin: 0;
    padding: 7.5px 0;
    /* text-align: center; */
}

.zeynep ul.navbar-nav.ml-auto {
    display: inline-block;
    padding-left: 30px;
    margin-top: 0px;
}

.submenu-header {
    background: #2b4365;
    color: #fff;
}
section ul {
    margin-left: 20px;
}
.contprod h1 {
    font-size: 40px;
    font-weight: bold;
}
.contprod h2 {
    font-size: 20px;
}
.contprod h3 {
    font-size: 17.5px;
}

.contprod h4 {
    font-size: 15px;
}
tbody h6 {
    font-weight: normal;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif!important;
}
span.bt-content li {
    padding-left: 20px;
}
span.bt-content h6 li {
    padding-left: 0;
    padding-bottom: 7.5px;
    padding-top: 7.5px;
}
@media(max-width:1500px){
  .col-lg-7.textodirector {
      padding-right: 100px;
  }
  .directivo h5 {
      min-height: 40px;
  }
}

@media(max-width:900px){
  .col-lg-7.textodirector {
      padding: 15px;
  }
}

@media(min-width:1920px){
  .navbar .container {
    width: 100%;
    max-width: 100%;
  }
  nav#mainNav {
    padding: 15px 10%;
  }
}
#services .container {
	padding-top: 30px;
}

.home #services .container {
	padding-top: 0px;
}

</style>
<div id="loader"></div>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top navbar-shrink" id="mainNav" googl="true">
    <div class="container logocont">
        <a class="navbar-brand js-scroll-trigger" href="<?php if($lang=="es"){echo "/";} if($lang=="en"){echo "/en";}?>">
            <img src="<?php echo $cloudfront.$logoIndeval;?>" alt="">
        </a>
 
        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav ml-auto">
            <?php 

              if($lang == 'es'){
                $titulo_privado ="Sitio Privado";
                $texto_sesion ="Iniciar sesión";
                $texto_Acceso = "Acceso clientes";
                $volver="Volver";
                foreach ($array['data']['enlacesSuperiores'] as $item) {
                  foreach ($item['localizations'] as $subitem){
                    echo ' 
                        <li class="nav-item">
                          <a class="nav-link js-scroll-trigger active" href="'.$subitem['link'].'">'.$subitem['titulo'].'
                              <span>
                                  <i class="'.$subitem['icono'].'" aria-hidden="true"></i>
                              </span>
                          </a>
                      </li>
                      ';
                  }
                }
              }

              if($lang == 'en'){
                $titulo_privado ="Clients area";
                $texto_sesion ="Login";
                $texto_Acceso = "Clients access";
                $volver="Back";
                foreach ($array['data']['enlacesSuperiores'] as $item) {
                    echo ' 
                        <li class="nav-item">
                          <a class="nav-link js-scroll-trigger active" href="'.$item['link'].'">'.$item['titulo'].'
                              <span>
                                  <i class="'.$item['icono'].'" aria-hidden="true"></i>
                              </span>
                          </a>
                      </li>
                      ';
                }
              }

            ?>


                <li class="nav-item">
                    <a aria-label-tooltip="<?php echo $texto_Acceso;?>" data-balloon-pos="down" class="nav-link js-scroll-trigger active" href="<?php if($logeado == true){echo "/area-clientes";} else{echo "#login";}?>"><?php if($logeado == true){echo $titulo_privado;} else{echo $texto_sesion;}?>
                        <span>
                        <i class="far fa-user"></i>
                        </span>
                    </a>
                </li>
            </ul>
        </div>
        
	</div>
    
    <div class="container">
    <div class="nav">
    <nav>
        <ul class="menu menu-bar">

            <?php   
              foreach ($array['data']['menusPrincipales'] as $item) {

                if($lang == 'es'){
                  foreach ($item['localizations'] as $subitem) {
                    if($subitem['tieneSubmenu'] == '0'){
                        echo '
                        <li>
                            <a href="'.$subitem['link'].'" class="menu-link menu-bar-link">'.urldecode($subitem['titulo']).'</a>
                        </li>';
                    }
                    if($subitem['tieneSubmenu'] == '1'){
                      echo '
                        <li class="tienesubmenu" data-texto="'.$subitem['titulo'].'">
                          <a href="javascript:void(0);" class="menu-link menu-bar-link" aria-haspopup="true">'.urldecode($subitem['titulo']).' <i class="fas fa-caret-down"></i></a>
                          <ul class=" contmega mega-menu mega-menu--flat" mstyle="display:block" data-padre="'.urldecode($subitem['titulo']).'">
                      ';

                      foreach ($array['data']['subMenusSuperior'] as $item2) {
                        foreach ($item2['localizations'] as $subitem2) {

                          if($subitem2['categoriaPadre'] == $subitem['titulo']){
                            echo '
                            <li>
                              <a href="#" class="menu-link mega-menu-link mega-menu-header" style="pointer-events:none; cursor:auto;">'.$subitem2['tituloEnlace'].'</a>
                              <ul class="menu menu-list">';

                                foreach ($array['data']['subMenusSuperior'] as $item3) {
                                  foreach ($item3['localizations'] as $subitem3) {
          
                                    if($subitem3['categoriaPadre'] == $subitem2['tituloEnlace']){
                                     echo '<li>
                                              <a href="'.$subitem3['enlace'].'" class="menu-link menu-list-link">'.urldecode($subitem3['tituloEnlace']).'</a>
                                          </li>';
                                    }
                                   
                                  }
                                }

                            echo '</ul></li>';
                          }
                         
                        }
                      }
                              
                                
                            
                      echo '
                          </ul>
                        </li>';
                  }
                }
              }
              

              if($lang == 'en'){
 
                  if($item['tieneSubmenu'] == '0'){
                      echo '
                      <li>
                          <a href="'.$item['link'].'" class="menu-link menu-bar-link">'.urldecode($item['titulo']).'</a>
                      </li>';
                  }
                  if($item['tieneSubmenu'] == '1'){
                    echo '
                      <li class="tienesubmenu" data-texto="'.$item['titulo'].'">
                        <a href="javascript:void(0);" class="menu-link menu-bar-link" aria-haspopup="true">'.urldecode($item['titulo']).' <i class="fas fa-caret-down"></i></a>
                        <ul class=" contmega mega-menu mega-menu--flat" mstyle="display:block" data-padre="'.urldecode($item['titulo']).'">
                    ';

                    foreach ($array['data']['subMenusSuperior'] as $item2) {
                        if($item2['categoriaPadre'] == $item['titulo']){
                          echo '
                          <li>
                            <a href="#" class="menu-link mega-menu-link mega-menu-header" style="pointer-events:none; cursor:auto;">'.$item2['tituloEnlace'].'</a>
                            <ul class="menu menu-list" data-title="'.urldecode($item2['tituloEnlace']).'">';

                              foreach ($array['data']['subMenusSuperior'] as $item3) {
                                
                                  if($item3['categoriaPadre'] == $item2['tituloEnlace'] || $item3['categoriaPadre'] == $item2['localizations'][0]['tituloEnlace']){

                                    
                                   echo '<li data-padre="'.$item3['categoriaPadre'].'">
                                            <a href="'.$item3['enlace'].'" class="menu-link menu-list-link">'.urldecode($item3['tituloEnlace']).'</a>
                                        </li>';
                                  }
                                 
                                
                              }

                          echo '</ul></li>';
                        }
                       
                      
                    }
                            
                              
                          
                    echo '
                        </ul>
                      </li>';
                }
              
            }
            }      
                    
            ?>


        </ul>
    </nav>
</div>
	</div>

    <div class="container" id="menumegacont"> </div>
			
</nav>



<div class="zeynep">

      <ul>

      <?php   
              foreach ($array['data']['menusPrincipales'] as $item) {

                if($lang == 'es'){
                  foreach ($item['localizations'] as $subitem) {
                    if($subitem['tieneSubmenu'] == '0'){
                        echo ' 
                        <li>
                            <a href="'.$subitem['link'].'">'.urldecode($subitem['titulo']).'</a>
                        </li>';
                    }
                    if($subitem['tieneSubmenu'] == '1'){
                      echo '

                      <li class="has-submenu">
                        <a href="#" data-submenu="'.str_replace(' ', '', urldecode($subitem['titulo'])).'">'.urldecode($subitem['titulo']).'</a>
                
                        <div id="'.str_replace(' ', '', urldecode($subitem['titulo'])).'" class="submenu">
                            <div class="submenu-header">
                                <a href="#" data-submenu-close="'.str_replace(' ', '', urldecode($subitem['titulo'])).'">Volver</a>
                            </div>
                
                            <label>'.urldecode($subitem['titulo']).'</label>
                    
                            <ul>
                      ';

                      foreach ($array['data']['subMenusSuperior'] as $item2) {
                        foreach ($item2['localizations'] as $subitem2) {

                          if($subitem2['categoriaPadre'] == $subitem['titulo']){
                            echo '

                            <li class="has-submenu">
                            <a href="#" data-submenu="'.str_replace(' ', '', urldecode($subitem2['tituloEnlace'])).'">'.urldecode($subitem2['tituloEnlace']).'</a>
            
                            <div id="'.str_replace(' ', '', urldecode($subitem2['tituloEnlace'])).'" class="submenu">
                            <div class="submenu-header">
                                <a href="#" data-submenu-close="'.str_replace(' ', '', urldecode($subitem2['tituloEnlace'])).'">Volver</a>
                            </div>
            
                            <label>'.urldecode($subitem2['tituloEnlace']).'</label>
                              <ul>';

                                foreach ($array['data']['subMenusSuperior'] as $item3) {
                                  foreach ($item3['localizations'] as $subitem3) {
          
                                    if($subitem3['categoriaPadre'] == $subitem2['tituloEnlace']){
                                     echo '
                                        <li>
                                            <a href="'.$subitem3['enlace'].'">'.urldecode($subitem3['tituloEnlace']).'</a>
                                        </li>';
                                    }
                                   
                                  }
                                }

                            echo '</ul></li>';
                          }
                         
                        }
                      }
                              
                                
                            
                      echo '
                          </ul>
                          </div>
                        </li>';
                  }
                }
              }



              if($lang == 'en'){
     
                  if($item['tieneSubmenu'] == '0'){
                      echo ' 
                      <li>
                          <a href="'.$item['link'].'">'.urldecode($item['titulo']).'</a>
                      </li>';
                  }
                  if($item['tieneSubmenu'] == '1'){
                    echo '

                    <li class="has-submenu">
                      <a href="#" data-submenu="'.str_replace(' ', '', urldecode($item['titulo'])).'">'.urldecode($item['titulo']).'</a>
              
                      <div id="'.str_replace(' ', '', $item['titulo']).'" class="submenu">
                          <div class="submenu-header">
                              <a href="#" data-submenu-close="'.str_replace(' ', '', urldecode($item['titulo'])).'">'.$volver.'</a>
                          </div>
              
                          <label>'.$item['titulo'].'</label>
                  
                          <ul>
                    ';

                    foreach ($array['data']['subMenusSuperior'] as $item2) {

                        if($item2['categoriaPadre'] == $item['titulo']){
                          echo '

                          <li class="has-submenu">
                          <a href="#" data-submenu="'.str_replace(' ', '', urldecode($item2['tituloEnlace'])).'">'.urldecode($item2['tituloEnlace']).'</a>
          
                          <div id="'.str_replace(' ', '', urldecode($item2['tituloEnlace'])).'" class="submenu">
                          <div class="submenu-header">
                              <a href="#" data-submenu-close="'.str_replace(' ', '', urldecode($item2['tituloEnlace'])).'">'.$volver.'</a>
                          </div>
          
                          <label>'.urldecode($item2['tituloEnlace']).'</label>
                            <ul>';

                              foreach ($array['data']['subMenusSuperior'] as $item3) {
        
                                  if($item3['categoriaPadre'] == $item2['tituloEnlace'] || $item3['categoriaPadre'] == $item2['localizations'][0]['tituloEnlace']){
                                   echo '
                                      <li>
                                          <a href="'.$item3['enlace'].'">'.urldecode($item3['tituloEnlace']).'</a>
                                      </li>';
                                  }
                                 
                                
                              }

                          echo '</ul></li>';
                        }
                       
                      
                    }
                            
                              
                          
                    echo '
                        </ul>
                        </div>
                      </li>';
                }
            }
            }      
                    
            ?>

      </ul>

      <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav ml-auto">
            <?php 

              if($lang == 'es'){
                foreach ($array['data']['enlacesSuperiores'] as $item) {
                  foreach ($item['localizations'] as $subitem){
                    echo ' 
                        <li class="nav-item">
                          <a class="nav-link js-scroll-trigger active" href="'.$subitem['link'].'">'.urldecode($subitem['titulo']).'
                              <span>
                                  <i class="'.$subitem['icono'].'" aria-hidden="true"></i>
                              </span>
                          </a>
                      </li>
                      ';
                  }
                }
              }

              if($lang == 'en'){
                foreach ($array['data']['enlacesSuperiores'] as $item) {
                    echo ' 
                        <li class="nav-item">
                          <a class="nav-link js-scroll-trigger active" href="'.$item['link'].'">'.urldecode($item['titulo']).'
                              <span>
                                  <i class="'.$item['icono'].'" aria-hidden="true"></i>
                              </span>
                          </a>
                      </li>
                      ';
                }
              }

            ?>
            </ul>
        </div>
    </div>

    <div class="container menumobile">
    <a class="logomobile" href="<?php if($lang=="es"){echo "/";} if($lang=="en"){echo "/en";}?>">
        <img src="<?php echo $cloudfront.$logoIndeval;?>" alt="">
    </a>
    <div id="nav-icon3" class="btn-open">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>

    </div>

    <div class="zeynep-overlay"></div>




