:root{
  --header-radius: 18px;
  --header-blur: 16px;
  --header-shadow: 0 2px 16px rgba(0,0,0,.08);
  --header-accent: #2db2ff;
  --header-bg: #0e1628;       /* fondo oscuro */
  --header-h: 84px;           /* altura de la barra: súbela/bájala a gusto */
}

/* Barra principal */
#header.typeheader-1{
  position: sticky;
  top: 0; z-index: 1000;
  width: 100%;
  background: var(--header-bg);
  box-shadow: none;
  transition: background .28s, box-shadow .22s;
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  padding: 0;
}

/* Layout 3 zonas + centrado vertical real */
#header .header-top{
  min-height: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;            /* centra vertical */
  justify-content: space-between; /* logo izq / menú centro / acciones der */
}

/* Wrapper interno forzado a flex (sobrescribe el tema) */
#header .header-top .container,
#header .header-top .row{
  display:flex !important;
  align-items:center;             /* centra vertical */
  justify-content: space-between;
  width:100%;
}

/* Neutraliza floats heredados */
.header-logo, .header-menu, .header-actions{ float:none !important; }

/* Logo (izquierda) */
#header .header-logo{
  display:flex; align-items:center; gap:10px;
  width: 160px; /* ancho fijo para balancear el centrado del menú */
}
#header .header-logo img{
  border-radius: 20px;
  width: 100px; height: 60px; object-fit:cover;
  margin-right: 11px; vertical-align:middle;
}
#header .navbar-logo a{
  display:flex; align-items:center; gap:8px;
  color:#fff; text-decoration:none;
}
#header .navbar-logo a span{ font-weight:700; font-size:1.05rem; }

/* Menú (centro) */
.header-menu{
  flex: 1 1 auto;
  display:flex; align-items:center; justify-content:center;
  min-width: 0;
}
#header .header-menu .megamenu{
  display:flex !important;
  align-items:center;              /* centra verticalmente los li */
  justify-content:center;          /* centra horizontalmente */
  gap: 32px; margin:0; padding:0; list-style:none;
  line-height: 1;                  /* evita empujes por alturas de línea del tema */
}
#header .header-menu .megamenu > li{ list-style:none; }

/* Enlaces del menú: centrados vertical con inline-flex y alto táctil */
#header .header-menu .megamenu > li > a.subcategory_item{
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff;
  padding: 12px 0;          
  background:transparent; border-radius:4px;
  font-weight:500; text-decoration:none; font-size:1.3rem;
  transition: color .2s;
  white-space:nowrap;
  line-height: 1;
}
#header .header-menu .megamenu > li > a.subcategory_item:hover{ color:var(--header-accent); }
#header .megamenu > li:last-child{ margin-right:.5vw; }

/* Acciones (derecha) - opcional */
.header-actions{
  display:flex; align-items:center; gap:12px;
  margin-left:16px;
}

/* Botón login pill */
.header-menu .btn-login,
.header-actions .btn-login{
  display:inline-block;
  padding: 8px 22px;
  border-radius: 2em;
  background:#fff; color:#191919;
  font-weight:600; border:0;
  box-shadow: 0 2px 16px rgba(2,12,32,.13);
  transition: background .2s, color .2s;
  text-decoration:none;
}
.header-menu .btn-login:hover,
.header-actions .btn-login:hover{
  background: var(--header-accent); color:#fff;
}

/* Link “signup” o similar */
.header-menu .signup-link,
.header-actions .signup-link{
  color:#fff; text-decoration:none; font-weight:500;
  transition: color .2s;
}
.header-menu .signup-link:hover,
.header-actions .signup-link:hover{ color:var(--header-accent); }

/* Estado scrolled (si lo usas) */
#header.scrolled{
  background:#fff;
  box-shadow: var(--header-shadow);
}
#header.scrolled .header-logo a,
#header.scrolled .header-logo a span{ color:#222; }
#header.scrolled .header-menu .megamenu > li > a.subcategory_item{ color:#1a2540; }
#header.scrolled .header-menu .megamenu > li > a.subcategory_item:hover{ color:var(--header-accent); }
#header.scrolled .header-menu .signup-link{ color:#222; }
#header.scrolled .header-menu .btn-login{ background:#222; color:#fff; }
#header.scrolled .header-menu .btn-login:hover{ background:var(--header-accent); }

/* Limpieza de anchos/overrides del tema que impiden centrar */
#header .container-megamenu,
#header .megamenu-wrapper,
#header .megamenu-pattern{
  width:auto !important;
  max-width:none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 16px;
  margin-right: 0;
  /* Con justify-content: space-between en .row y .container, esto se va al extremo derecho */
}
.btn-reserva {
  display: inline-block;
  background: #db086e;
  color: #fff;
  font-weight:600;
  border-radius: 10px;
  padding:8px 22px;
  box-shadow:0 2px 12px rgba(2,12,32,0.11);
  font-size:1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-reserva:hover {
  background: #22a0e6;
  color: #000000 !important;
}

.icon-whatsapp {
  position: fixed;
  bottom: 20px;
  cursor: pointer;
  color: #fff;
  display: inline-block;
  text-align: center;
  width: 60px;
  height: 60px;
  line-height: 70px !important;
  z-index: 999999999999999;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  opacity: 1;
  right: 20px;
}
  .icon-whatsapp .hidden-top {
    bottom: -100px;
    opacity: 0;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0); }
  .icon-whatsapp:hover {
    background-color: #444; }
  .icon-whatsapp i {
    font-size: 32px;
    margin: 0 !important;
    display: inline-block; 
    color: white;
  }
  .icon-whatsapp i:before {
    font-family: fontawesome; }

/* Responsivo */
@media (max-width: 1024px){
  :root{ --header-h: 72px; }
  #header .header-logo{ width:auto; }
  #header .header-menu .megamenu{ gap:18px; }
}
@media (max-width: 768px){
  #header .header-top{ justify-content: space-between; }
  #header .header-menu{ justify-content:flex-end; }

  #header .container-megamenu, #header .megamenu-wrapper, #header .megamenu-pattern {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    top: 0 !important;
    text-align: initial;
    background: var(--header-bg);
    color: white !important;
}
    .megamenu-style-dev .responsive ul.megamenu > li.click::before, .megamenu-style-dev .responsive ul.megamenu > li.hover::before {
    display: none !important;
    }
    .megamenu-style-dev .navbar-default .horizontal .megamenu-wrapper ul.megamenu > li > a strong {
    color: #fff !important;
    font-weight: 600 !important;
    }
    header.typeheader-1 .header-top .header-menu{
      margin: 0 !important;
    }
    .megamenu-style-dev .navbar-default .horizontal .navbar-toggle{
      background-color: #2b6df3 !important;
    }
}


