/* ============================================
   OCULTAR HEADER ORIGINAL EN < 1213px
   ============================================ */

@media (max-width: 1212px) {
  /* Ocultar todo el header builder de WPBakery */
  .site-header .thegem-template-header {
    display: none !important;
  }

  /* Ocultar también el header background si es necesario */
  #site-header .header-background {
    background-color: transparent !important;
  }
}

/* ============================================
   MENÚ RESPONSIVE - Solo visible < 1213px
   ============================================ */

.navbar-responsive {
  display: none; /* Oculto por defecto en escritorio */
}

/* arreglo menu burger */
#menuLogoRight {
  width: 75px;
  margin-left: 4rem;
}

@media (max-width: 1212px) {
  /* Mostrar el menú responsive */
  .navbar-responsive {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 9999;
    transition: background-color 0.3s ease;
  }

  /* Fondo negro al hacer scroll */
  .navbar-responsive.scrolled {
    background-color: #fff;
  }

  /* ============================================
     CONTAINER DE LOS BOTONES
     ============================================ */

  .navbar-responsive-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  /* ============================================
     BOTONES (Izquierda y Derecha)
     ============================================ */

  .navbar-toggler {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
  }

  /* Botón izquierdo fijo a la izquierda */
  .navbar-toggler-left {
    position: absolute;
    left: 20px;
  }

  /* Botón izquierdo: OCULTO por defecto (antes de scroll) */
  .navbar-toggler-left {
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Botón izquierdo: VISIBLE al hacer scroll */
  .navbar-toggler-left.scrolled {
    opacity: 1;
    pointer-events: auto;
  }

  /* Botón izquierdo: SIEMPRE VISIBLE cuando está activo (menú abierto) */
  .navbar-toggler-left.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Botón derecho fijo a la derecha */
  .navbar-toggler-right {
    position: absolute;
    right: 20px;
  }
  /* Botón derecho: OCULTO por defecto (antes de scroll) */
  .navbar-toggler-right {
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Botón derecho: VISIBLE al hacer scroll */
  .navbar-toggler-right.scrolled {
    opacity: 1;
    pointer-events: auto;
  }

  /* Botón derecho: SIEMPRE VISIBLE cuando está activo (menú abierto) */
  .navbar-toggler-right.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Logo dentro del botón (visible por defecto) */
  .menu-logo {
    display: block;
    width: 45px;
    height: auto;
    transition: opacity 0.3s ease;
    border: 0px solid red;
  }

  /* Icono X - SIEMPRE oculto por defecto */
  .menu-icon {
    display: none !important;
    font-size: 28px;
    color: white;
  }

  /* Logo - SIEMPRE visible por defecto */
  .menu-logo {
    display: block !important;
    width: 120px;
    height: auto;
    transition: opacity 0.3s ease;
    margin-top: -8px;
  }

  /* SOLO cuando el menú está abierto (clase active) */
  .navbar-toggler.active .menu-logo {
    display: none !important;
  }

  .navbar-toggler.active .menu-icon {
    display: block !important;
  }

  /* Estilo con scroll: fondo circular */
  .navbar-toggler.scrolled {
    background-color: #000000;
  }

  /* Estilo con scroll: fondo circular */
  .navbar-toggler.scrolled:first-of-type {
    background-color: transparent;
  }

  /* Botón derecho con fondo naranja al hacer scroll */
  .navbar-toggler-right.scrolled {
    background-color: transparent;
  }

  /* ============================================
     LOGO CENTRAL
     ============================================ */

  .navbar-brand-responsive {
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10000; */
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: blur(0);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
    z-index: 10000;
  }

  /* .navbar-brand-responsive img {
    height: 50px;
    width: auto;
  } */

  .navbar-brand-responsive img {
    height: 250px;
    width: auto;
    margin-top: 475px;
  }

  /* Ocultar logo al hacer scroll */
  .navbar-brand-responsive.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* ============================================
     MENÚS LATERALES (Izquierda y Derecha) 
     ============================================ */

  .navbar-collapse {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow-y: auto;
    transition: transform 0.4s ease-in-out;
  }

  /* Menú izquierdo: desliza desde la izquierda */
  .navbar-collapse-left {
    transform: translateX(-100%);
  }

  .navbar-collapse-left.show {
    transform: translateX(0);
  }

  /* Menú derecho: desliza desde la derecha */
  .navbar-collapse-right {
    transform: translateX(100%);
  }

  .navbar-collapse-right.show {
    transform: translateX(0);
  }

  /* Estilos de los enlaces */
  .navbar-nav {
    list-style: none;
    padding: 0 40px;
    margin: 0;
    width: 100%;
  }

  .nav-item {
    margin-bottom: 15px;
  }

  .nav-link {
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    display: block;
    padding: 15px 0;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:hover {
    color: #f16901;
  }

  /* ============================================
     BLOQUEAR SCROLL DEL BODY
     ============================================ */

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

.navbar-brand-responsive.is-scrolled-logo {
  opacity: 0;
  transform: translateX(-50%) translateY(-40px) scale(0.9);
  filter: blur(8px);
  pointer-events: none;
  transition: transform 0.1s cubic-bezier(0.65, 0, 0.35, 1),
    filter 0.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 2.5s ease-in-out;
}

.bienvenido-color {
  color: #f16901;
}
