/* Menú común EN/ES. Diseño de referencia: Daily Trips.
   Todos los ajustes del encabezado se hacen aquí, dentro de #site-header. */

#site-header .custom-navbar {
  border: none;
  margin-bottom: 0;
  padding: 25px 0;
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  line-height: 1.42857143;
  font-weight: 400;
  letter-spacing: normal;
  text-shadow: none;
}

#site-header .custom-navbar .navbar-brand {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
}

#site-header .custom-navbar .navbar-brand span {
  color: #ce3232;
}

#site-header .custom-navbar .navbar-brand img {
  
  margin-top: -4%;
}

#site-header .top-nav-collapse {
  background: #ffffff;
}

#site-header .top-nav-collapse img {

  width: 50%;
}

#site-header .custom-navbar .navbar-nav.navbar-nav-first {
  float: right;
}

#site-header .custom-navbar .nav li a {
  font-weight: normal;
  font-size: 25px;
  color: #ffffff;
  padding-right: 22px;
  padding-left: 22px;
  text-transform: uppercase;
  text-decoration: none;
}

#site-header .custom-navbar .nav li a img {
  width: 35px;
  margin: -9px -3px;
}

#site-header .custom-navbar .nav li a .fa {
  font-size: 86%;
}

#site-header .custom-navbar .nav li a:hover {
  background: transparent;
  color: #E7B63D;
}

#site-header .custom-navbar .navbar-nav>li>a:hover,
#site-header .custom-navbar .navbar-nav>li>a:focus {
  background-color: transparent;
}

#site-header .custom-navbar .nav li.active>a {
  background-color: transparent;
  color: #E7B63D;
}

#site-header .custom-navbar .navbar-toggle {
  border: none;
  padding-top: 10px;
}

#site-header .custom-navbar .navbar-toggle {
  background-color: transparent;
}

#site-header .custom-navbar .navbar-toggle .icon-bar {
 
 background: #000000;
 border-color: transparent;
 
  
}

#site-header .dropdown-menu {
  background: none;
}

#site-header .custom-navbar .waters-menu-heading {
  display: flex;
  align-items: center;
  justify-content: center;
}

#site-header .custom-navbar .nav li .waters-menu-link {
  position: relative;
  display: block;
  padding-top: 15px;
  padding-right: 4px;
  padding-bottom: 15px;
}

#site-header .custom-navbar .waters-menu-toggle {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 20px;
  padding: 15px 22px 15px 0;
}

#site-header .custom-navbar .waters-menu-toggle:hover,
#site-header .custom-navbar .waters-menu-toggle:focus,
#site-header .custom-navbar .waters-dropdown.open .waters-menu-toggle {
  color: #E7B63D;
}

#site-header .top-nav-collapse .waters-menu-toggle {
  color: #575757;
}

@media (min-width: 768px) {
#site-header .custom-navbar .waters-menu-heading {
    display: block;
  }

#site-header .custom-navbar .nav li .waters-menu-link {
    line-height: 20px;
    padding: 15px 22px;
  }

#site-header .custom-navbar .waters-menu-toggle {
    display: none;
  }

#site-header .custom-navbar {
    border-bottom: 0;
    background: 0 0;
  }

#site-header .custom-navbar.top-nav-collapse {
    background: #ffffff;
    -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
  }

#site-header .top-nav-collapse .navbar-brand {
    color: #454545;
  }

#site-header .top-nav-collapse .navbar-brand img {
    content: url("../images/logotipo_solo_sr.svg");
    margin-top: -4%;
    width: 85%;
  }

#site-header .top-nav-collapse .nav li a {
    color: #575757;
  }

}

@media screen and (max-width: 480px) {
#site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin: 0;
    float: initial;
  }

#site-header .navbar-header .navbar-brand {
    padding: 15px 7px;
  }

#site-header .navbar-header .navbar-brand img {
    
    
    width: 200px;
    margin-top: -4%;
  }

}

@media screen and (min-width: 481px) and (max-width: 768px) {
#site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin: 0;
    float: initial;
  }

#site-header .custom-navbar .navbar-brand img {
        
    
    width: 200px;
    margin-top: -5%;
  }

}

@media screen and (min-width: 760px) and (max-width: 990px) {
#site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin-left: -25%;
  }

#site-header .custom-navbar .navbar-brand img {
    width: 40%;
  }

}

@media screen and (min-width: 991px) and (max-width: 1023px) {
#site-header .custom-navbar .navbar-brand img {
    width: 60%;
    
    
  }

}

@media screen and (min-width: 1024px) and (max-width: 1099px) {
#site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin-left: -10%;
  }

#site-header .custom-navbar .navbar-brand img {
    width: 60%;
  }

}

@media screen and (min-width: 1100px) and (max-width: 1200px) {
#site-header .custom-navbar .navbar-brand {
    height: 25px;
  }

#site-header .top-nav-collapse .navbar-brand img {
    width: 50%;
    margin-top: 7%;
  }

#site-header .custom-navbar .navbar-brand img {
    width: 65%;
    
  }

}

@media screen and (min-width: 1100px) {
#site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin-left: 9%;
  }

}

@media only screen and (min-width: 768px) and (max-width: 991px) {
#site-header .custom-navbar .nav li a {
    padding-right: 10px;
    padding-left: 10px;
  }

}

@media only screen and (max-width: 767px) {
#site-header .custom-navbar {
    
    
    background-color: transparent;
    -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    text-align: center; 
  }

#site-header .navbar-background {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    
    opacity: 0.4;
  }

#site-header .custom-navbar .nav li a {
    line-height: normal;
    padding: 8px;
  }

#site-header .custom-navbar .nav li .waters-menu-link {
    line-height: normal;
    padding: 8px;
  }

#site-header .custom-navbar .waters-menu-heading {
    position: relative;
  }

#site-header .custom-navbar .waters-menu-toggle,
#site-header .top-nav-collapse .waters-menu-toggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
  }

#site-header .custom-navbar .waters-dropdown.open .waters-menu-toggle {
    color: #E7B63D;
  }

#site-header .custom-navbar .waters-dropdown .dropdown-menu {
    width: 100%;
    text-align: center;
  }

#site-header .custom-navbar .navbar-brand,
#site-header .top-nav-collapse .navbar-brand {
    color: #252525;
    font-weight: 600;
  }

#site-header .custom-navbar .nav li a,
#site-header .top-nav-collapse .nav li a {
    color: #000000;
      text-shadow:
      1px 1px 2px rgb(145, 145, 145),
      0 0 1em #E7B63D,
      0 0 0.2em #E7B63D;
    }

}

#site-header .navbar-background {
  pointer-events: none; 
}

/* Estado del desplegable controlado desde el componente (ratón, teclado y táctil). */
@media (min-width: 768px) {
  /* Evitar el float inicial heredado del antiguo rango móvil de 481–768 px. */
  #site-header .custom-navbar .navbar-nav.navbar-nav-first {
    float: right;
  }
}

#site-header .waters-dropdown .dropdown-menu {
  display: none;
}

/* Barra compacta: reservar el ancho visible del logo y evitar una segunda fila.
   Estos ajustes se aplican sólo después de hacer scroll; el encabezado inicial
   y el menú burger conservan su presentación. */
@media (min-width: 768px) {
  #site-header .custom-navbar.top-nav-collapse {
    --compact-logo-width: 255px;
  }

  #site-header .custom-navbar.top-nav-collapse .navbar-brand {
    width: calc(var(--compact-logo-width) + 30px);
    height: 50px;
    transition-property: color, background-color;
  }

  #site-header .custom-navbar.top-nav-collapse .navbar-brand img {
    width: var(--compact-logo-width);
    margin-top: -12px;
  }

  #site-header .custom-navbar.top-nav-collapse .navbar-nav.navbar-nav-first {
    margin-left: 0;
  }

  #site-header .custom-navbar.top-nav-collapse .nav li a {
    transition-property: color, background-color;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #site-header .custom-navbar.top-nav-collapse {
    --compact-logo-width: 120px;
  }

  #site-header:lang(es) .custom-navbar.top-nav-collapse .nav li a {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
  #site-header .custom-navbar.top-nav-collapse {
    --compact-logo-width: 180px;
  }
}

@media (min-width: 1100px) and (max-width: 1200px) {
  #site-header .custom-navbar.top-nav-collapse {
    --compact-logo-width: 195px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #site-header:lang(es) .custom-navbar.top-nav-collapse .nav li a {
    padding-left: 18px;
    padding-right: 18px;
  }
}

#site-header .waters-dropdown.open .dropdown-menu {
  display: block;
}

#site-header .navbar-toggle:focus-visible,
#site-header .nav a:focus-visible,
#site-header .waters-menu-heading:has(.waters-menu-toggle:focus-visible) {
  outline: 2px solid #b88819;
  outline-offset: -2px;
}

/* Daily Trips: encabezado móvil blanco, también al desplazarse. */
@media (max-width: 767px) {
  #site-header .custom-navbar,
  #site-header .custom-navbar.top-nav-collapse {
    background-color: #fff !important;
  }

  #site-header .navbar-background {
    background: #fff !important;
    opacity: 1 !important;
    z-index: 0;
  }

  #site-header .custom-navbar > .container {
    position: relative;
    z-index: 1;
  }

  #site-header .custom-navbar .navbar-nav.navbar-nav-first {
    margin: 0;
    float: none;
  }

  #site-header .custom-navbar .navbar-brand img {
    width: 200px;
    height: auto;
  }

  /* El submenú completo y la bandera caben; en horizontal se puede desplazar. */
  #site-header .navbar-collapse {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overscroll-behavior: contain;
  }
}
