/* ==========================================================================
   HUERTO URBANO GROW – HEADER PREMIUM (2026 GLASSMORPHISM)
   Archivo: /wp-content/uploads/css/blocks/header/hug-header.css
   Selectores basados en Kadence Theme (estructura real del DOM)
   ========================================================================== */

/* -------------------------------------------------
   1. Header principal (#masthead / .site-header)
   ------------------------------------------------- */
#masthead,
.site-header {
  background: rgba(11, 13, 10, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: none !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Línea luminosa sutil al pie del header */
#masthead::after,
.site-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(163,209,51,0.4) 30%, rgba(163,209,51,0.6) 50%, rgba(163,209,51,0.4) 70%, transparent 100%);
}

/* Eliminar cualquier fondo que Kadence ponga en los wraps internos */
.site-header-inner-wrap,
.site-main-header-inner-wrap,
.site-header-upper-inner-wrap,
.site-header-row-container-inner {
  background: transparent !important;
}

/* Efecto al hacer scroll */
.item-is-fixed .site-header,
.item-is-fixed #masthead {
  background: rgba(11, 13, 10, 0.96) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* -------------------------------------------------
   2. Logo (.site-branding / .brand)
   ------------------------------------------------- */
.site-branding img,
.site-branding .brand img,
.custom-logo {
  max-height: 65px !important;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(163, 209, 51, 0.25));
}
.site-branding:hover img,
.site-branding:hover .brand img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(163, 209, 51, 0.5));
}

/* -------------------------------------------------
   3. Navegación principal (.main-navigation)
   ------------------------------------------------- */
#site-navigation,
.main-navigation,
.header-navigation {
  font-family: 'Inter', sans-serif !important;
}

/* Enlaces de nivel superior */
.main-navigation .menu > li > a,
.header-navigation .menu > li > a,
#site-navigation .menu > li > a,
.primary-menu > li > a,
.menu-item > a {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0.3px;
  padding: 10px 16px !important;
  border-radius: 6px;
  position: relative;
  transition: color 0.25s ease !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Subrayado animado al hacer hover */
.main-navigation .menu > li > a::after,
.header-navigation .menu > li > a::after,
#site-navigation .menu > li > a::after,
.primary-menu > li > a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: #a3d133;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation .menu > li > a:hover::after,
.header-navigation .menu > li > a:hover::after,
#site-navigation .menu > li > a:hover::after,
.primary-menu > li > a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after,
.main-navigation .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Hover y activo – color */
.main-navigation .menu > li > a:hover,
.header-navigation .menu > li > a:hover,
#site-navigation .menu > li > a:hover,
.primary-menu > li > a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
  color: #a3d133 !important;
  background: transparent !important;
}

/* -------------------------------------------------
   4. Sub-menús (dropdown)
   ------------------------------------------------- */
.main-navigation ul ul,
.header-navigation ul ul,
.sub-menu,
.main-navigation .sub-menu {
  background: rgba(11, 13, 10, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  padding: 8px 0 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-navigation ul ul li a,
.header-navigation ul ul li a,
.sub-menu li a {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
}

.main-navigation ul ul li a:hover,
.header-navigation ul ul li a:hover,
.sub-menu li a:hover {
  color: #a3d133 !important;
  background: rgba(163, 209, 51, 0.1) !important;
}

/* -------------------------------------------------
   5. Iconos del header (carrito, búsqueda, cuenta)
   ------------------------------------------------- */
.header-cart-wrap a,
.header-search-wrap a,
.header-account-wrap a,
.header-cart-button,
.header-search-button,
.header-account-button,
.header-mobile-cart a,
.header-mobile-search a {
  color: #cbd5e1 !important;
  transition: color 0.25s ease, transform 0.25s ease !important;
}

.header-cart-wrap a:hover,
.header-search-wrap a:hover,
.header-account-wrap a:hover,
.header-cart-button:hover,
.header-search-button:hover,
.header-account-button:hover {
  color: #a3d133 !important;
  transform: translateY(-2px);
}

/* Badge del carrito */
.header-cart-wrap .header-cart-button .header-cart-total,
.header-cart-wrap .cart-count,
.shopping-cart-count,
.header-cart-total {
  background: #a3d133 !important;
  color: #0b0d0a !important;
  font-weight: 800 !important;
  font-size: 0.7rem !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  border-radius: 50% !important;
}

/* SVG de iconos */
.header-cart-wrap svg,
.header-search-wrap svg,
.header-account-wrap svg {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

/* -------------------------------------------------
   6. Barra de búsqueda (si se despliega)
   ------------------------------------------------- */
.header-search-bar,
.search-toggle-open .header-search-bar {
  background: rgba(11, 13, 10, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.header-search-bar input[type="search"],
.header-search-bar .search-field {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
}

/* -------------------------------------------------
   7. Botón CTA en header (si existe)
   ------------------------------------------------- */
.header-button,
.header-button a,
.wp-block-button__link {
  background: #a3d133 !important;
  color: #0b0d0a !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px;
  border: none !important;
  transition: all 0.3s ease !important;
}
.header-button:hover,
.header-button a:hover {
  background: #7ba823 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 209, 51, 0.3) !important;
}

/* -------------------------------------------------
   8. Responsive – Menú hamburguesa móvil
   ------------------------------------------------- */
/* Botón toggle */
.menu-toggle-open,
.menu-toggle,
.mobile-toggle-open {
  color: #cbd5e1 !important;
}
.menu-toggle-open:hover,
.menu-toggle:hover {
  color: #a3d133 !important;
}
.menu-toggle-open svg,
.menu-toggle svg {
  fill: currentColor !important;
}

/* Panel lateral del menú móvil */
.mobile-navigation,
.mobile-header-navigation,
.popup-drawer,
.mobile-navigation-content,
#mobile-drawer {
  background: rgba(11, 13, 10, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Enlaces en menú móvil */
.mobile-navigation a,
.mobile-header-navigation a,
.popup-drawer a,
#mobile-drawer a {
  color: #cbd5e1 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: color 0.2s, background 0.2s !important;
}
.mobile-navigation a:hover,
.mobile-header-navigation a:hover,
.popup-drawer a:hover,
#mobile-drawer a:hover {
  color: #a3d133 !important;
  background: rgba(163, 209, 51, 0.08) !important;
}

/* Botón de cerrar */
.drawer-overlay .drawer-inner .drawer-header .drawer-toggle,
.mobile-navigation .close-drawer {
  color: #cbd5e1 !important;
}
.drawer-overlay .drawer-inner .drawer-header .drawer-toggle:hover {
  color: #a3d133 !important;
}

/* -------------------------------------------------
   9. Barra de anuncios superior (hug-announcement-bar)
   ------------------------------------------------- */
.hug-announcement-bar {
  background: linear-gradient(90deg, #0b0d0a 0%, #1e293b 50%, #0b0d0a 100%) !important;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(163, 209, 51, 0.15);
}
.hug-announcement-bar a {
  color: #a3d133 !important;
  font-weight: 700;
}
