#huf-site-header {
  --huf-primary: #1E3A2F;
  --huf-secondary: #1E6B2E;
  --huf-accent: #009688;
  --huf-text: #1A1A1A;
  --huf-white: #FFFFFF;
  --huf-border: #2C4A3D;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--huf-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  font-family: 'Lato', sans-serif;
}
#huf-site-header * { box-sizing: border-box; }

/* Compensar el espacio que el header fixed ya no ocupa en el flujo normal del documento */
body {
  padding-top: 72px;
}

/* Si el admin está logueado, WordPress agrega su barra negra arriba (32px desktop / 46px mobile);
   el header debe quedar pegado debajo de esa barra, no tapado por ella ni tapándola. */
body.admin-bar #huf-site-header {
  top: 32px;
}
@media (max-width: 600px) {
  body.admin-bar #huf-site-header {
    top: 46px;
  }
}

/* Oculta el header genérico de Kadence para que solo se vea el nuestro */
.site-header,
#masthead,
.kadence-header {
  display: none !important;
}

.huf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.huf-header-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.huf-header-logo-img {
  height: 48px;
  width: auto;
}
.huf-header-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--huf-white);
  line-height: 1.1;
}

.huf-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.huf-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--huf-white);
  text-decoration: none;
  transition: opacity 0.2s;
  opacity: 0.9;
}
.huf-nav-link:hover { opacity: 1; text-decoration: underline; }

.huf-nav-whatsapp-btn {
  background: var(--huf-accent);
  color: var(--huf-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}
.huf-nav-whatsapp-btn:hover { background: #00786d; }

.huf-header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.huf-header-burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--huf-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.huf-header-burger.huf-burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.huf-header-burger.huf-burger-open span:nth-child(2) { opacity: 0; }
.huf-header-burger.huf-burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .huf-header-logo-text { display: none; }

  .huf-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--huf-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 8px 0;
  }
  .huf-header-nav.huf-nav-open { display: flex; }

  .huf-nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid var(--huf-border);
  }
  .huf-nav-whatsapp-btn {
    margin: 12px 24px;
    text-align: center;
  }

  .huf-header-burger { display: flex; }
}
