/* ABRIR Y CERRAR MENU */
#caf_menu {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  left: 0;
  font-size: 13px;
  height: 72px;
  overflow: hidden;
  transition: 0.1s;
  transition-timing-function: ease-out;
  transform: translateY(0);
  /*   line-height: 5.3;  */
  /* ELIMINAMOS ESTILO: CONFLICTO CON EL HEADER SCROLL COMPACTO */
  display: block;
}

#caf_menu:target {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

/*NUEVAS CLASES PARA ANULAR SCROLL CUANDO ESTÁ ABIERTO MODAL DEL HEADER */
.body-modal {
  overflow: hidden;
}

/* ABRIR Y CERRAR SUBMENUS. CUALQUIER NUEVO SUBMENU AGREGAR ID */
#caf_nav_busqueda,
#caf_nav_paises,
#caf_nav_temas,
#caf_nav_explorar {
  position: fixed;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 0;
  left: 0;
  transition: 0.1s;
  transition-timing-function: ease-out;
  transform: translateY(0);
  opacity: 1;
  line-height: 1.8;
  overflow: hidden;
  height: 0;
}

#caf_nav_busqueda:target,
#caf_nav_paises:target,
#caf_nav_temas:target,
#caf_nav_explorar:target {
  height: 100%;
}

#caf_menu_closed {
  transition: 0.1s;
  transition-timing-function: ease-out;
  transform: translateY(0);
}

.caf_menu_list {
  display: inline-block;
}

.nav-link {
  padding: 0;
}

/*.caf_nav_b2 a,*/
.caf_nav_open a {
  color: #000;
}

.caf_brandnav {
  float: left;
}

.caf_brandnav img {
  width: 195px;
  /*margin: 0 1em;
  margin-bottom: 1px;*/
  margin-bottom: 17px;
  margin-top: 8px;/*17px;*/
  margin-left: 1em;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

/* 
#caf_menu:target .caf_brandnav img {
  margin: 1.3em 1em;
} */

/* CAMBIO: ELIMINAMOS EL ESTILO DE ARRIBA */
/* CON EL MISMO SELECTOR HACEMOS EL ESTILO DE ABAJO. (AL CLICAR HAMBURGUESA, LOGO CONSERVA TAMAÑO)*/
#caf_menu:target .caf_brandnav img {
  width: 195px !important;
  margin-bottom: 17px;
  margin-top: 8px;/*17px;*/
  margin-left: 1em;
}

.caf_nav_p a {
  padding: 0 0.3em;
}

#caf_menu ul {
  list-style-type: none;
  position: relative;
}

#caf_menu li {
  display: inline-block;
}

#caf_menu a {
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 5;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

#caf_menu a:hover {
  background-color: rgba(255, 255, 255, 0);
}

.caf_menu_uno {
  font-weight: 400;
}

.caf_menu_uno,
.caf_menu_dos,
.caf_menu_tres {
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  opacity: 1;
}

.caf_nav_open {
  position: relative;
  right: 0;
  padding-right: 15px;
  top: 0;
}

@media (max-width: 1357.98px) {
  .caf_nav_open {
    position: absolute;
    right: 0;
    padding-right: 15px;
    top: 0;
  }
}

.caf_nav_open a {
  font-size: 2em;
  line-height: 2.5 !important;
}

.caf-icon-nav {
  display: inline-block;
}

.caf_brandnav_offcanvas,
.caf_menu_offcanvas,
.caf_nav_close,
.caf_nav_offcanvas_container {
  display: none;
}

.caf_nav_rrss_offcanvas {
  line-height: 1.2;
  text-align: center;
  font-weight: 200;
  font-size: min(max(19px, 1.5vw), 28px) !important;
}

.caf_nav_rrss_txt {
  line-height: 1.2;
  text-align: center;
  font-size: 1em;
  font-weight: 200;
}

.caf_buscar_offcanvas a {
  color: #00789f !important;
}

.caf_nav_idiomas_offcanvas a {
  text-transform: initial !important;
  font-weight: 200;
  text-align: right;
  font-size: 0.8em;
}

@media (min-width: 768px) {
  #caf_menu:target .caf_menu_uno,
  #caf_menu:target .caf_menu_dos,
  #caf_menu:target .caf_menu_cuatro {
    width: 33.333%;
  }
}

@media (max-width: 767.98px) {
  .caf_menu_uno,
  .caf_menu_dos,
  .caf_menu_tres {
    display: none;
  }

  #caf_menu:target .caf_menu_uno,
  #caf_menu:target .caf_menu_dos {
    display: block !important;
    padding: 25px;
  }

  #caf_menu:target .caf_menu_uno,
  #caf_menu:target .caf_menu_dos {
    width: 50%;
  }

  #caf_menu:target .caf_menu_cuatro {
    width: 100%;
  }
}

#caf_menu:target .caf_brandnav img {
  margin: 1.3em 1em;
}

#caf_menu:target .caf_nav_close {
  display: block;
  width: 70px;
  margin-left: auto;
  margin-right: auto;
  border: 0 #ffffff2e solid;
}

#caf_menu:target .caf_menu_offcanvas {
  padding: 25px;
  width: 100%;
}

#caf_menu:target :first-child.caf_menu_offcanvas {
  border-top: 1px solid;
}

#caf_menu:target .caf_nav_open,
.caf_cierre_wrapper {
  position: absolute;
  right: 0;
  padding-right: 15px;
  top: 0;
}

#caf_menu:target .caf_ul_nav_wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

#caf_menu:target .mr-auto {
  margin-right: initial !important;
}

@media (min-width: 768px) {
  #caf_menu:target ul {
    font-size: 1.6em;
    max-height: 100%;
  }
}

@media (max-width: 767.98px) {
  #caf_menu:target ul {
    max-height: 100%;
    margin: 0 !important;
  }

  .caf_nav_idiomas_offcanvas a {
    font-size: 1em;
  }

  #caf_menu:target .caf_menu_offcanvas {
    padding: 25px 25px 0 25px;
  }
}

#caf_menu:target .caf_brandnav {
  width: 100%;
}

#caf_menu:target .caf_icon_nav,
#caf_menu:target .caf_menu_offcanvas {
  display: inline-block;
}

#caf_menu:target .caf_icon_offcanvas {
  text-align: center;
  font-size: 1.8em;
}

#caf_menu:target .caf_idioma_offcanvas {
  font-size: 0.6em;
  letter-spacing: 2px;
}

#caf_menu:target .caf_brandnav_offcanvas {
  display: block;
  width: 250px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 30px;
}

#caf_menu:target li {
  display: block;
}

#caf_menu:target a {
  line-height: 2 !important;
  display: inline-block;/*display: block;*/
  background-color: rgba(255, 255, 255, 0);
  color: #000;
}

#caf_menu:target a:hover {
  background-color: rgba(255, 255, 255, 0);
}

#caf_menu:target li:not(:first-child) {
  margin-top: 2px;
}

#caf_menu:target .caf-item-nav a {
  color: #000;
  font-size: min(max(21px, 2.8vw), 40px);
  line-height: 2 !important;
  font-family: Playfair Display, serif;
  text-transform: initial;
  font-weight: 600;
}

#caf_menu:target .pl-2 {
  padding-left: 0;
}

@media (min-width: 768px) {
  #caf_menu:target .caf_nav_close {
    margin-top: -20px;/*20px;*/
  }

  #caf_menu:target .caf_brandnav_offcanvas {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  #caf_menu:target .caf_nav_close {
    margin-top: -10px;/*0;*/
  }

  #caf_menu:target .caf_brandnav_offcanvas {
    margin-bottom: 0;
  }
}

#caf_menu:target .caf-idioma-li,
#caf_menu:target .caf-lupa-li,
#caf_menu:target .caf_icon_nav_container,
#caf_menu:target .caf_nav_block {
  display: none;
}

#caf_menu:target .form-control {
  width: 40%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
  border: 0 solid;
}

#caf_menu:target .caf_nav_p a {
  padding: 0;
}

#caf_nav_paises ul,
#caf_nav_temas ul,
#caf_nav_explorar ul {
  list-style-type: none;
  position: relative;
  padding: 0 !important;
}

.caf_nav_paises_wrap {
  margin-top: 20px;
  padding: 0 25px;
}

#caf_nav_paises a,
#caf_nav_temas a,
.caf_modal_submenu a,
#caf_nav_explorar.caf_modal_eventos .caf_modal_opciones_audio a {
  color: #fff;
  font-size: calc(14px + 2 * ((100vw - 200px) / 680));
}

.caf_modal_eventos .caf_nav_close_global a {
  color: #fff;
}

#caf_nav_explorar a,
#caf_nav_explorar li {
  color: #fff;
  font-size: calc(35px + 2 * ((100vw - 00px) / 680));
  font-weight: 200;
}

#caf_nav_explorar.caf_modal_eventos a,
#caf_nav_explorar.caf_modal_eventos li {
  color: #fff;
  font-size: min(max(21px, 2.8vw), 40px);
  font-weight: 200;
}

.caf_brandnav_white img {
  width: 250px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.caf_nav_close_global {
  width: 100%;
  color: #fff;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.caf_nav_close_global a {
  font-size: 14px !important;
}

.caf_nav_block {
  display: block;
}

@media (max-width: 767.98px) {
  .caf_modal_submenu ul,
  .caf_nav_paises_list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}

@media (min-width: 768px) {
  .caf_nav_paises_list,
  .caf_submenu_overlay {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}

@media (min-width: 1200px) {
  .caf_nav_paises_list {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
  }
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* HAMBURGUESA */

#nav-icon1,
.caf-nav-cierre {
  width: 25px;
  height: 25px;
  position: relative;
  margin: 28px auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

#nav-icon1 span,
.caf-nav-cierre span {
  display: block;
  position: absolute;
  height: 2px;
  opacity: 1;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

#nav-icon1 span:nth-child(1) {
  top: 0px;
  width: 75%;
  right: 0;
}

#nav-icon1 span:nth-child(2) {
  top: 6px;
  width: 100%;
  right: 0;
}

#nav-icon1 span:nth-child(3) {
  top: 12px;
  width: 55%;
  right: 0;
}

#nav-icon1.open_hamb span:nth-child(1),
.caf-nav-cierre span:nth-child(1) {
  top: 8px;
  left: 0;
  width: 100%;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

#nav-icon1.open_hamb span:nth-child(2),
.caf-nav-cierre span:nth-child(2) {
  width: 100%;
  left: 0;
  opacity: 0;
}

#nav-icon1.open_hamb span:nth-child(3),
.caf-nav-cierre span:nth-child(3) {
  width: 100%;
  left: 0;
  top: 8px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

#nav-icon1:hover span {
  width: 100%;
}

/* UTILIDAD DESAPARECE ICONO DE HAMBURGUESA CUANDO HAY UN DROPDOWN DE IDIOMA */

.hideicon_nav {
  display: none;
}

.showicon_nav {
  display: block;
}

/* DROPDOWN IDIOMAS */

.dropdown-menu {
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #000;
  background-color: #ffffffd9;
  border: 0px;
  border-radius: 0rem;
  left: -50px !important;
  top: 2px !important;
}

.dropdown-item {
  text-transform: initial !important;
  line-height: 2.4 !important;
}

.dropdown-item:hover {
  color: #f31156;
  /*color: white;*/
}

.show-idiomas {
  overflow: visible !important;
}

/* CAMPO BUSQUEDA */

.form-control {
  font-size: 2rem;
  font-weight: 100;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 0rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.caf_nav_paises_wrap .input-group {
  width: 40%;
  margin-left: auto;
  margin-right: auto;
}

.form-control:focus {
  border-color: #fff !important;
}

.caf_form_busqueda_wrap {
  margin-top: 100px;
}

#caf_nav_busqueda a {
  color: #fff;
}

.caf_nav_paises_wrap .fa-search,
.caf_nav_paises_wrap .btn {
  font-size: 1.2rem !important;
  color: #000 !important;
  line-height: 5;
  margin-left: -2rem !important;
}

.caf_nav_paises_wrap h2 {
  color: #fff;
  font-size: 3.5em;
}

@media (max-width: 576px) {/*se agrego con cambios del submenu*/
  .caf_nav_paises_wrap h2 {
    font-size: 2em;
  }
}

/* ANIMACION MENU HOVER  */
@keyframes animX {
    0% {right: 0px;}
    100% {right: calc(100% + 105vw);}
}

.caf_nav_paises_list li a:after {
    transform: translateX(100%) translateY(0);
    content: attr(title);
    opacity: 0;
    font-size: 120px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    position: absolute;
    white-space: nowrap;
    display: inline-block;
    pointer-events: none;
}

.caf_nav_paises_list li a:hover:after {
    animation: animX linear 6s forwards;
    opacity: .1;
}

/*  HEADER SCROLL */

.cafnav_scroll:target {
  height: 100% !important;
  z-index: 100 !important;
}


.cafnav_scroll {
  height: 72px;
}

/* IDIOMAS */
.idioma-down {
    vertical-align: 10%;
}

.caf-op-idiomas {
  position: absolute;
  z-index: 1000;
  right: 150px;
  top: 55px;
  -webkit-box-shadow: 0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  box-shadow: 0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  visibility: hidden;
  -webkit-transform: scale(0);
  transform: scale(0);
  opacity: 0;
  -webkit-transform-origin: top right;
  transform-origin: top right;
  transition: opacity .1s ease,
    -webkit-transform .2s ease;
  transition: transform .2s ease,
    opacity .1s ease;
  transition: transform .2s ease,
    opacity .1s ease,
    -webkit-transform .2s ease;
}

.caf-op-idiomas li a {
  font-size: .8rem;
  color: #fff;
}

.caf-op-idiomas li a:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.199);
}
