/* ====== PÁGINAS OBJETIVO ====== */
body.page-id-19398,
body.page-id-15848,
body.page-id-19505,
body.page-id-15465 {

  /* --- LOGO DESKTOP: SIEMPRE VISIBLE --- */
  /* Asegura que el <a> del logo no esté hidden */
  header .q_logo a{
    visibility: visible !important;
    height: 122px !important;            /* ajusta si lo prefieres */
    display: block !important;
  }

  /* Quita efectos raros del tema sobre el <img> del logo */
  header .q_logo img{
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;       /* anula top:-50% */
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    max-height: 90px !important;         /* alto final del logo */
  }

  /* Muestra SOLO la versión "normal" y oculta duplicados */
  header .q_logo img:not(.normal){
    display: none !important;
  }

  /* Prioridad de apilamiento para que no quede detrás de nada */
  .logo_wrapper{ z-index: 10010 !important; position: relative; }
}

/* ====== ICONO DE “START” EN MENÚ DESKTOP ====== */
/* Hay un <i class="menu_icon blank fa">, le inyectamos el ícono Home */
#nav-menu-item-16138 > a .menu_icon:before{
  content: "\f015";              /* Font Awesome - home */
  font-family: "FontAwesome";
  font-style: normal;
  margin-right: 6px;
}

/* ====== MOBILE: FORZAR BOTÓN HAMBURGUESA Y MENÚ ====== */
@media (max-width: 1024px){
  /* muestra el botón sí o sí */
  .mobile_menu_button{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10020 !important;
    position: relative;
  }

  /* oculta el menú de escritorio */
  nav.main_menu, .header_menu_bottom{ 
    display: none !important; 
  }

  /* muestra el menú móvil (fallback si el JS del tema no corre) */
  nav.mobile_menu{
    display: block !important;
    max-height: 80vh !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* cuando usemos nuestro toggle, abrimos/cerramos con una clase */
  nav.mobile_menu.vz-open{
    display: block !important;
  }

  /* Icono casita también en mobile */
  #mobile-menu-item-16138 > a:before{
    content: "\f015";
    font-family: "FontAwesome";
    margin-right: 6px;
    display: inline-block;
  }
}
