/* =================== HEADER =================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  padding-block: 16px;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 17, 0.9),
    rgba(5, 7, 17, 0.7),
    transparent
  );
  backdrop-filter: blur(12px);
  transition:
    background-color 0.35s ease,
    padding 0.25s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(5, 7, 17, 0.97);
  padding-block: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
}

.header-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

/* NAV DESKTOP */

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  position: relative;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding-block: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(167, 107, 255, 0.9),
    rgba(88, 220, 255, 0.9)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

/* HEADER RIGHT */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ocultamos la hora pero dejamos el nodo */
.local-time {
  display: none;
}

/* CTA BOOKING en header */

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: rgba(5, 7, 17, 0.7);
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.header-cta:hover {
  background: #ffffff;
  color: #050509;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

/* HAMBURGER */

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger {
  position: relative;
  width: 16px;
  height: 2px;
  background: #ffffff;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #ffffff;
}

.burger::before {
  top: -5px;
}
.burger::after {
  top: 5px;
}

/* NAV MOBILE */

.mobile-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-height);
  background: rgba(5, 7, 17, 0.98);
  backdrop-filter: blur(18px);
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
}

.mobile-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

/* ocultar con hidden de verdad */
.mobile-nav[hidden] {
  display: none !important;
}

/* no mostrar nav móvil en desktop */
@media (min-width: 861px) {
  #mobile-nav {
    display: none !important;
  }
}

/* switch a mobile nav + burger */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }
}


/* =================== FOOTER =================== */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 26px 16px 34px;
  text-align: center;
}

.footer-logo {
  height: 30px;
  margin-inline: auto;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-social a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0;
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

.footer-inner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Desktop nav: el UL tiene que ser flex --- */
.nav{ flex: 1; justify-content: center; }

.nav-list{
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* si se te rompe por ancho en algunos desktops, mejor wrap que desborde */
@media (min-width: 861px){
  .nav-list{ flex-wrap: wrap; justify-content: center; }
}

/* --- Mobile nav: el UL también necesita layout --- */
.mobile-nav-list{
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Menú móvil: que NO se vea si está hidden --- */
.mobile-nav{ display: none; }
.mobile-nav:not([hidden]){ display: flex; }
/* =========================
   HEADER: normalización cross-pages (ul.nav-list y links sueltos)
   Archivo: css/responsive.css (PEGAR AL FINAL)
   ========================= */

/* 1) Contenedor consistente */
.site-header .header-inner{
  width: min(1220px, 100%);
  margin-inline: auto;
  padding-inline: clamp(14px, 2vw, 22px);
  gap: clamp(10px, 1.6vw, 18px);
}

/* 2) NAV como “fila única” SIEMPRE */
.site-header .nav{
  flex: 1 1 auto;
  min-width: 0; /* clave: permite que flex calcule bien sin forzar wrap */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Caso A: nav con ul */
.site-header .nav .nav-list{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.55vw, 22px);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Caso B: nav con anchors directos */
.site-header .nav{
  gap: clamp(12px, 1.55vw, 22px);
  flex-wrap: nowrap;
}

/* 3) Links: no se parten nunca (adiós “EN / VIVO”) */
.site-header :where(.nav a, .nav .nav-list a){
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1;
}

/* 4) Si el ancho queda justo (laptop chica): scroll horizontal en vez de 2 líneas */
@media (max-width: 1180px) and (min-width: 900px){
  .site-header .nav{
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header .nav::-webkit-scrollbar{ display: none; }

  /* asegura que el contenido pueda ser más ancho que el contenedor */
  .site-header .nav .nav-list{
    width: max-content;
  }
}

/* 5) Acciones (booking/burger) no deben encoger raro */
.site-header .header-actions{
  flex: 0 0 auto;
  min-width: max-content;
}
