/*
 * Header main
 */
/* Header -> Header top */
.header-top {
  position: relative;
  font-size: .9rem;
  width: 100%;
  max-height: 30px;
  margin: 0;
  padding: 0.5rem 0;
  background: #000
}
@media (min-width: 781px){
.header-top { padding: 2px 0 !important; }
}

/* SOCIAL - TOP HEADER */
.header-top .social { gap: 10px; }
.header-top .social a { line-height: 10px; color: #FECC00; }
.header-top .social ion-icon { font-size: 20px; color: #FECC00; }
.header-top .social ion-icon:hover { color: #fff; }
.header-top .social span { vertical-align: text-top; }
.header-top-container { justify-content: right !important; }

@media (max-width: 340px){
	.header-top .social a.telf-social ion-icon[name="call"] { display: none; }
	}
@media (max-width: 319px){
	.header-top .social a.telf-social { font-size: .8em; }
	}

.header-top-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
 /* -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;*/
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.header-top-block p:last-child { margin: 0; }

/* Header -> Header main */
.homepage .header,
.homepage .header-main {
  position: fixed;
  z-index: 10;
  background: transparent;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border-bottom: 0 solid #ccc;
}


/* Header con transición */
.homepage .header,
.homepage .header-main {
  position: fixed;
  z-index: 10;
  background: transparent;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border-bottom: 0 solid #ccc;
  transition: background-color 0.3s ease-in-out;
}
.homepage .header.scrolled,
.homepage .header-main.scrolled {
  background-color: rgba(19, 41, 102, 1); /* Ajustar el color y opacidad */
}


.header,
.header-main {
  /*position: relative;*/
  position: fixed;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border-bottom: 0px solid #ccc;
  background: #132966;
}
.header-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* Header -> Site branding */
.site-branding {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.site-brand #block-xaraflexrd-logomoviles { padding: 14px 20px 0 0; display: none; }
.site-brand #block-xaraflexrd-logomoviles img { width: 48px }

.site-logo { padding: 8px 20px 8px 0; }
.site-logo img { display: block; width: 260px; }

@media (max-width: 1022px) {
  .site-logo img { width: 220px; }
}
@media (max-width: 780px) {
  .site-logo img { width: 200px; }
}
@media (max-width: 300px) {
  /*.site-logo img { display: none; }
  .site-brand #block-xaraflexrd-logomoviles { display: block; }*/
}
  
.site-name-slogan {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.site-name, .site-slogan { line-height: 1.1; }

/* Header -> header right */
.header-right {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.mobile-colapse .header-right .navbar-default.navbar-we-mega-menu {
	/*background-color: transparent;*/
}
.header-right .navbar-we-mega-menu.navbar ul>li ul {
    padding-left: 10px; margin: 4px 0 0;
}

.header-right .we-mega-menu-ul>.dropdown-menu .we-mega-menu-submenu {
    border-bottom: 0px solid #828989;
}

.navbar { margin-bottom: 0; }
.homepage .overlay { z-index: 10; }

/* MENU TOP */
.menutop ul.menu { list-style-type: none; display: flex; flex-wrap: wrap; }
.menutop ul.menu li.menu-item { margin: 0 12px; }
.menutop ul.menu li.menu-item a:hover { color: #eee; }

@media (max-width: 830px) {
	.menutop ul.menu { display: none; }
}

.navbar-we-mega-menu .type-of-block h2.block-title { margin-left: 24px; }
}

.menu-wrap {
  position: fixed;
  background-color: #222222;
  color: #ffffff;
  top: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 1rem 0;
  width: 100%;
  max-width: 320px;
  z-index: 25;
  -webkit-transform: translateX(-100%);
      -ms-transform: translateX(-100%);
          transform: translateX(-100%);
  -webkit-transition: all 0.4s linear;
  -o-transition: all 0.4s linear;
  transition: all 0.4s linear;
}
.menu-wrap ul.menu {
  position: relative;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  z-index: 30;
  list-style: none;
  list-style-type: none;
}
.menu-wrap a { color: #000; }
.menu-wrap ul.menu li { position: relative; padding: 0; }
.menu-wrap ul.menu li a { border-bottom: 1px solid #434343; }
.menu-wrap ul.menu > li {
  display: block;
  float: none;
  /*line-height: 1;*/
  margin: 0;
}
.menu-wrap ul.menu > li > a {
  display: block;
  margin: 0;
  padding: 10px 0;
}
.menu-wrap ul.menu > li a::after { content: none; }
.menu-wrap ul.menu ul.submenu {
  position: relative;
  display: block;
  font-weight: 400;
  margin: 0;
  padding: 0;
  z-index: 30;
}
.menu-wrap ul.menu ul.submenu li {
  display: block;
  width: 100%;
}
.menu-wrap ul.menu ul.submenu li { background: none; }
.menu-wrap ul.menu ul.submenu li a {
  display: block;
  width: 100%;
  padding: 10px 0 10px 20px;
}
.menu-wrap ul.menu ul.submenu li a::after { content: none; }
.menu-wrap .menu li span.dropdown-arrow {
  position: relative;
  display: inline-block;
  right: 0;
  padding: 0;
}
/* Third level drop down */
.menu-wrap ul.menu ul.submenu ul.submenu {
  position: relative;
  display: block;
  margin: 0;
  padding: 0 0 0 30px;
  z-index: 30;
}
.menu-wrap ul.menu ul.submenu ul.submenu li {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.menu-wrap .menu ul.submenu li.expanded::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 10px;
}
/* Mobile Menu */
.mobile-menu {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 28px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 0;
  cursor: pointer;
}
.mobile-menu span {
  width: 100%;
  height: 2px;
  background-color: #000;
}
.active-menu .menu-wrap {
  overflow-y: scroll;
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
  -webkit-transition: all 0.4s linear;
  -o-transition: all 0.4s linear;
  transition: all 0.4s linear;
  padding: 5rem 1rem 1rem;
}
.close-mobile-menu {
  position: absolute;
  font-family: arial;
  top: 4px;
  right: 4px;
  display: none;
  width: 34px;
  height: 34px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 48;
  cursor: pointer;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  line-height: 1;
}
.active-menu .close-mobile-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.active-menu .menu { display: block; }

/*slide up */
@-webkit-keyframes slideUp {
  0% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes slideUp {
  0% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
    opacity: 1;
  }
}
/* Header -> header search form */
.full-page-search {
  position: relative;
  margin: 0;
  padding: 0;
}
.search-icon {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 0 1rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  text-align: center;
  border-radius: 50%;
  background: #fff;
}
.search-icon img { height: 24px; width: auto; }
.search-icon i, .mobile-menu i { line-height: 24px; }
.search-box {
  position: fixed;
  background-color: var(--light);
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  padding: 50px 0;
  z-index: 50;
  -webkit-transform: translate(0, -100%);
      -ms-transform: translate(0, -100%);
          transform: translate(0, -100%);
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  -o-transition: transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
}
.search-box.open {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
          transform: translate(0, 0);
}
.search-box-content {
  position: relative;
  z-index: 60;
  text-align: center;
}
.header-search-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border: 3px solid #000000;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.search-box-content .block { width: 100%; margin: 0; }
.search-box-content .block-title,
.search-box-content form label {
  display: none;
  color: #000000;
}
.search-box-content input[type="search"] {
  width: 100%;
  margin: 2rem 0;
  padding: 0 0 6px 0;
  font-size: 1.4rem;
  background: url("../images/icons/search.svg") top right no-repeat;
  background-size: contain;
  border: 0;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  outline: 0;
}
.search-box-content input[type="submit"] { display: none; }

/* Header -> Page Header */
.page-header {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 8rem 0 0;
  background: #fff;
  border-bottom: 0;
}
.region-page-header {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
/* Header -> Page Header-> breadcrumb */
.breadcrumb { position: relative; width: 100%; }
ol.breadcrumb-items { margin: 0; padding: 0; list-style: none; }
ol.breadcrumb-items li { display: inline-block; padding: 0; }
.breadcrumb-item span { margin: 0 10px; }

/* COVER */
.cover .container { 
width: 100vw;
max-width: 100vw;
padding: 0;
margin: 0 0 30px;
/*height: 80vh;  Opcional*/
overflow: hidden;
}
.cover .flexslider { 
margin: 0 !important;
}
.cover .flexslider .flex-direction-nav li { 
padding: 0;
}

/* CINTILLO */
.cintillo {
	background: linear-gradient(90deg,rgba(19, 41, 102, 1) 0%, rgba(42, 77, 149, 1) 100%);
}
.cintillo h2 {
    display: none;
}
.cintillo .views-view-flexbox {
	width: 80%;
	margin: 1px auto;
}
.cintillo .views-flexbox-item {
	flex: 1 0 20%; /* 5 iguales en una fila (100 / 5 = 20%) */
	box-sizing: border-box;
	background: linear-gradient(90deg,rgba(19, 41, 102, 1) 0%, rgba(42, 77, 149, 1) 100%);
	padding: 10px 20px 6px;
	font-size: 1rem !important;	
	}
.cintillo .views-flexbox-item h3 {
	font-size: 1.1em;
	color: #fff;
	}
.cintillo .views-flexbox-item p {
	font-size: .8em;
	color: #fff;
	line-height: 1.5em;
	}
.cintillo .views-flexbox-item a {
	color: #fff;
	}

	@media (max-width: 1200px) {
	.cintillo .views-flexbox-item {
    flex: 1 0 33.33%; /* 3 por fila */
	}
	.cintillo .views-flexbox-item:nth-child(n+4) {
    flex: 1 0 50%; /* 2 por fila en la siguiente línea */
	}
	}
	
	@media (max-width: 780px) {
	.cintillo .views-flexbox-item {
    flex: 1 0 50%; /* 3 por fila */
	}
	.cintillo .views-flexbox-item:nth-child(n+5) {
    flex: 1 0 100%; /* 2 por fila en la siguiente línea */
	}
	}
	
	@media (max-width: 530px) {
	.cintillo .views-flexbox-item {
    flex: 1 0 100% !important; 
	}
	}

/* MEGAMENU */
@media (max-width: 1200px) {
    .overlay {
        z-index: 10;
    }
}
@media (max-width: 1200px) {
    .navbar-we-mega-menu.navbar .container, .navbar-we-mega-menu.navbar .container-fluid {
        padding: 30px 0;
    }
}
.navbar-we-mega-menu .we-mega-menu-ul .center>.we-mega-menu-submenu {
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}
@media (max-width: 1200px) {
.navbar-we-mega-menu .we-mega-menu-ul .center>.we-mega-menu-submenu {
    left: 50%;
    -webkit-transform: translateX(6%);
    -ms-transform: translateX(6%);
    transform: translateX(6%);
}
}

@media (min-width: 1201px) {
    .navbar-we-mega-menu {
        background-color: transparent !important;
    }
	.we-mega-menu-ul>.we-mega-menu-li>a, .we-mega-menu-ul>.we-mega-menu-li>span {
        background-color: transparent;
		color: #fff;
		padding: 1.125rem 1.43rem;
    }
	.we-mega-menu-ul>.we-mega-menu-li>a:hover, .we-mega-menu-ul>.we-mega-menu-li>span:hover {
		color: #fff;
    }
	.we-mega-menu-ul>.we-mega-menu-li.active-trail>a, .we-mega-menu-ul>.we-mega-menu-li.active-trail>a:focus, .we-mega-menu-ul>.we-mega-menu-li.active-trail>a:hover, .we-mega-menu-ul>.we-mega-menu-li.active>a, .we-mega-menu-ul>.we-mega-menu-li.active>a:focus, .we-mega-menu-ul>.we-mega-menu-li.active>a:hover {
        color: #fff;
    }
	.we-mega-menu-ul .dropdown-menu>a:after, .we-mega-menu-ul .dropdown-menu>a:before, .we-mega-menu-ul .dropdown-menu>span:after, .we-mega-menu-ul .dropdown-menu>span:before { right: .1rem; }
}

.we-mega-menu-submenu h2 { display: none; }

/* ITEM MENU HIDEN */
.itemhiden { display: none !important; }

@media (min-width: 1201px) {
    .we-mega-menu-submenu>.we-mega-menu-submenu-inner {
        min-height: 1rem;
    }
}

@media (max-width: 1200px) {
    .region-we-mega-menu {
        background-color: transparent;
        padding: 13px 15px;
        margin-bottom: 0;
    }
}
.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 8px;
}
.navbar-toggle .icon-bar {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 1px;
}


/* SEARCH */
.search-box {
    background-color: #000;
    padding: 50px 0 20px;
}
.search-box-content input[type="search"] {
    color: #fff;
}
.button:hover {
    background: #0084b9;
}


/* GTRANSLATE */
.header-top-container { height: 24px; }
.gtranslate {
    position: absolute;
    right: 0;
    top: -14px;
}


/* SCROLLTOP */
.scrolltop {
    background: #0084b9 !important;
}