/* =========================================================
   Vinademy — Cabecera editorial (v1.0)
   Navegación principal + zona utilitaria (Mi perfil · Carrito)
   Se carga en todo el sitio. Selectores con body:not(#vnd)
   para ganar a Astra sin tocar sus ajustes.
   ========================================================= */
:root {
  --vh-ink: #0B0A0B;
  --vh-ink2: #4B4145;
  --vh-soft: #7D7276;
  --vh-line: rgba(11,10,11,.12);
  --vh-accent: #B80872;
  --vh-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
  --vh-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 7h14l-1.2 12.2a1 1 0 0 1-1 .8H7.2a1 1 0 0 1-1-.8L5 7z'/%3E%3Cpath d='M9 7V5.5a3 3 0 0 1 6 0V7'/%3E%3C/svg%3E");
}

/* ---------- 1. Cabecera sólida (también en la home, que usa cabecera transparente) ---------- */
body:not(#vnd).ast-theme-transparent-header #masthead {
  position: relative;
}
body:not(#vnd) #masthead .main-header-bar,
body:not(#vnd) #ast-fixed-header .main-header-bar,
body:not(#vnd) #masthead .ast-mobile-header-content {
  background: #fff !important;
  border-bottom: 1px solid var(--vh-line) !important;
  box-shadow: none !important;
}
body:not(#vnd).ast-theme-transparent-header #masthead .transparent-custom-logo img {
  filter: invert(1) !important;
}

/* La home ya no tiene la cabecera encima: menos aire arriba en el hero */
body:not(#vnd).ast-theme-transparent-header .vnd-hero .vnd-hero-text {
  padding-top: 56px !important;
}

@media (min-width: 1024px) {
  body:not(#vnd).ast-theme-transparent-header .vnd-hero .vnd-hero-text {
    padding-top: 72px !important;
  }
  body:not(#vnd).ast-theme-transparent-header .vnd-hero .vnd-hero-grid {
    min-height: calc(100vh - 85px);
  }
}

/* ---------- 2. Escritorio ---------- */

@media (min-width: 1141px) {
  body:not(#vnd) #ast-desktop-header .site-primary-header-wrap,
  body:not(#vnd) #ast-fixed-header .site-primary-header-wrap {
    min-height: 84px;
  }
  body:not(#vnd) #masthead .site-header-primary-section-right,
  body:not(#vnd) #ast-fixed-header .site-header-primary-section-right {
    align-items: center;
    gap: 0;
  }

  /* Ítems de primer nivel */
  body:not(#vnd) #ast-hf-menu-1 {
    gap: 30px;
  }
  body:not(#vnd) #ast-hf-menu-1 > li > .menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 84px;
    padding: 0 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1 !important;
    color: var(--vh-ink) !important;
    background: none !important;
  }
  body:not(#vnd) #ast-hf-menu-1 > li > .menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    height: 2px;
    background: var(--vh-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.6,.1,.2,1);
  }
  body:not(#vnd) #ast-hf-menu-1 > li:hover > .menu-link::after,
  body:not(#vnd) #ast-hf-menu-1 > li:focus-within > .menu-link::after {
    transform: scaleX(1);
  }
  body:not(#vnd) #ast-hf-menu-1 > li > .menu-link .dropdown-menu-toggle {
    padding: 0 !important;
    margin: 0 !important;
    opacity: .5;
  }
  body:not(#vnd) #ast-hf-menu-1 > li > .menu-link .dropdown-menu-toggle svg {
    width: 9px;
    height: 9px;
    fill: currentColor;
  }

  /* Para organizaciones */
  body:not(#vnd) #ast-hf-menu-1 > li.vnd-org > .menu-link {
    color: var(--vh-accent) !important;
  }
  body:not(#vnd) #ast-hf-menu-1 > li.vnd-org > .menu-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vh-accent);
    margin-right: 2px;
  }

  /* Ítems solo para móvil */
  body:not(#vnd) #ast-desktop-header .vnd-solo-movil,
  body:not(#vnd) #ast-fixed-header .vnd-solo-movil {
    display: none !important;
  }

  /* Desplegables editoriales */
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu {
    top: 100%;
    left: -26px;
    width: auto;
    min-width: 290px;
    padding: 24px 26px 16px;
    margin: 0;
    background: #fff !important;
    border: 0 !important;
    border-top: 2px solid var(--vh-ink) !important;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(11,10,11,.08);
    counter-reset: vh;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu::before,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu::before {
    display: block;
    position: static !important;
    width: auto !important;
    height: auto !important;
    font: 600 10.5px/1.4 "Poppins", sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--vh-soft);
    margin: 0 0 4px !important;
  }
  body:not(#vnd) .menu-item-6117 > .sub-menu::before {
    content: "Formación";
  }
  body:not(#vnd) .menu-item-6121 > .sub-menu::before {
    content: "Vivir el vino";
  }
  body:not(#vnd) .menu-item-6124 > .sub-menu::before {
    content: "Signature projects";
  }
  body:not(#vnd) .menu-item-6129 > .sub-menu::before {
    content: "Quiénes somos";
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu li,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu li {
    border: 0 !important;
    counter-increment: vh;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .menu-link,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .menu-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vh-line) !important;
    font: 500 14.5px/1.35 "Poppins", sans-serif !important;
    letter-spacing: 0;
    text-transform: none;
    color: var(--vh-ink) !important;
    background: none !important;
    white-space: nowrap;
    transition: color .2s;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu li:last-child > .menu-link,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu li:last-child > .menu-link {
    border-bottom: 0 !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .menu-link .ast-icon,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .menu-link .ast-icon {
    display: none !important;
  }
  body:not(#vnd) #ast-hf-menu-1 .sub-menu .menu-link::before {
    content: counter(vh, decimal-leading-zero);
    min-width: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--vh-accent);
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .menu-link:hover,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .menu-link:hover {
    color: var(--vh-accent) !important;
  }

  /* ---- Zona utilitaria: Mi perfil + Carrito, separada por una línea ---- */
  body:not(#vnd) #masthead .ast-builder-menu-2,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu-2 {
    position: relative;
    margin-left: 28px;
    padding-left: 24px;
    display: flex;
    align-items: center;
  }
  body:not(#vnd) #masthead .ast-builder-menu-2::before,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu-2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 32px;
    margin-top: -16px;
    background: var(--vh-line);
  }
  body:not(#vnd) #ast-hf-menu-2 > li > .menu-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 84px;
    padding: 0 4px !important;
    font-size: 0 !important;
    color: var(--vh-ink2) !important;
    background: none !important;
  }
  body:not(#vnd) #ast-hf-menu-2 > li > .menu-link::before {
    content: "";
    width: 21px;
    height: 21px;
    background: currentColor;
    -webkit-mask: var(--vh-user) center / contain no-repeat;
    mask: var(--vh-user) center / contain no-repeat;
  }
  body:not(#vnd) #ast-hf-menu-2 > li > .menu-link .dropdown-menu-toggle {
    display: none !important;
  }
  body:not(#vnd) #ast-hf-menu-2 > li > .menu-link:hover {
    color: var(--vh-accent) !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu-2 .sub-menu,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu-2 .sub-menu {
    left: auto;
    right: -22px;
    min-width: 210px;
  }
  body:not(#vnd) #masthead .ast-header-woo-cart,
  body:not(#vnd) #ast-fixed-header .ast-header-woo-cart {
    margin-left: 14px;
  }
}

/* Portátiles: algo más compacto para que todo quepa en una línea */

@media (min-width: 1141px) and (max-width: 1279px) {
  body:not(#vnd) #ast-hf-menu-1 {
    gap: 20px;
  }
  body:not(#vnd) #ast-hf-menu-1 > li > .menu-link {
    font-size: 11px !important;
    letter-spacing: .1em;
  }
  body:not(#vnd) #masthead .ast-builder-menu-2,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu-2 {
    margin-left: 20px;
    padding-left: 16px;
  }
  body:not(#vnd) #masthead .ast-header-woo-cart,
  body:not(#vnd) #ast-fixed-header .ast-header-woo-cart {
    margin-left: 10px;
  }
}

/* ---------- 3. Carrito (escritorio y móvil): icono de bolsa + contador ---------- */
body:not(#vnd) #masthead .ast-site-header-cart .ast-cart-menu-wrap,
body:not(#vnd) #ast-fixed-header .ast-site-header-cart .ast-cart-menu-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  border: 0 !important;
  background: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
body:not(#vnd) #masthead .ast-site-header-cart .ast-cart-menu-wrap::before,
body:not(#vnd) #ast-fixed-header .ast-site-header-cart .ast-cart-menu-wrap::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--vh-ink2);
  -webkit-mask: var(--vh-bag) center / contain no-repeat;
  mask: var(--vh-bag) center / contain no-repeat;
  transition: background-color .2s;
}
body:not(#vnd) #masthead .ast-site-header-cart a:hover .ast-cart-menu-wrap::before {
  background: var(--vh-accent);
}
body:not(#vnd) #masthead .ast-site-header-cart .ast-cart-menu-wrap .count,
body:not(#vnd) #ast-fixed-header .ast-site-header-cart .ast-cart-menu-wrap .count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 0 !important;
  border-radius: 9px;
  background: var(--vh-accent) !important;
  color: #fff !important;
  font: 600 10px/17px "Poppins", sans-serif !important;
  text-align: center;
}
body:not(#vnd) #masthead .ast-site-header-cart .ast-cart-menu-wrap .count::after,
body:not(#vnd) #ast-fixed-header .ast-site-header-cart .ast-cart-menu-wrap .count::after {
  display: none !important;
}
body:not(#vnd) #masthead .ast-site-header-cart .ast-count-text,
body:not(#vnd) #ast-fixed-header .ast-site-header-cart .ast-count-text {
  color: #fff !important;
  font-size: 10px !important;
}

/* ---------- 4. Móvil y tablet (por debajo de 1141px, ver functions.php) ---------- */

@media all {
  body:not(#vnd) #ast-mobile-header .main-header-bar {
    min-height: 68px;
  }
  body:not(#vnd) #ast-mobile-header .site-header-primary-section-right {
    gap: 8px;
    align-items: center;
  }
  body:not(#vnd) #ast-mobile-header .menu-toggle {
    color: var(--vh-ink) !important;
    background: none !important;
  }
  body:not(#vnd) #ast-mobile-header .menu-toggle svg {
    fill: var(--vh-ink) !important;
  }
  body:not(#vnd) #ast-mobile-header .ast-mobile-header-content .main-navigation,
  body:not(#vnd) #ast-hf-mobile-menu,
  body:not(#vnd) #ast-hf-mobile-menu .sub-menu {
    background: #fff !important;
  }
  body:not(#vnd) #ast-mobile-header .ast-mobile-header-content {
    padding: 6px 20px 32px;
    border-bottom: 1px solid var(--vh-line) !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li {
    border-bottom: 1px solid var(--vh-line) !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li > .menu-link {
    padding: 17px 0 !important;
    border: 0 !important;
    background: none !important;
    font: 700 24px/1.15 "Poppins", sans-serif !important;
    letter-spacing: -.03em;
    text-transform: none;
    color: var(--vh-ink) !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu .ast-menu-toggle {
    top: 8px;
    right: -10px;
    width: 44px;
    height: 44px;
    color: var(--vh-accent) !important;
    background: none !important;
    border: 0 !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu .sub-menu {
    padding: 0 0 14px !important;
    background: none !important;
    border: 0 !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu .sub-menu li {
    border: 0 !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu .sub-menu .menu-link {
    padding: 8px 0 !important;
    border: 0 !important;
    background: none !important;
    font: 400 15px/1.4 "Poppins", sans-serif !important;
    color: var(--vh-ink2) !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu .sub-menu .menu-link .ast-icon {
    display: none !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-org > .menu-link {
    color: var(--vh-accent) !important;
  }

  /* Mi perfil: bloque utilitario al final, pequeño y siempre abierto */
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil {
    margin-top: 26px;
    border-bottom: 0 !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil > .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 6px !important;
    font: 600 11.5px/1.4 "Poppins", sans-serif !important;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--vh-soft) !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil > .menu-link::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--vh-user) center / contain no-repeat;
    mask: var(--vh-user) center / contain no-repeat;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil > .ast-menu-toggle,
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil .dropdown-menu-toggle {
    display: none !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil > .sub-menu {
    display: block !important;
  }
  body:not(#vnd) #ast-hf-mobile-menu > li.vnd-solo-movil > .sub-menu .menu-link {
    font: 600 12px/1.4 "Poppins", sans-serif !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--vh-ink2) !important;
    padding: 9px 0 9px 28px !important;
  }
}

/* ---------- 5. Descripción bajo los subelementos ---------- */

@media (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-1 .sub-menu .menu-link {
    display: grid !important;
    grid-template-columns: 30px 1fr;
    align-items: baseline;
    column-gap: 0;
  }
  body:not(#vnd) #ast-hf-menu-1 .sub-menu .menu-link::before {
    grid-column: 1;
  }
  body:not(#vnd) .vnd-menu-desc {
    grid-column: 2;
    display: block;
    margin-top: 3px;
    white-space: nowrap;
    font: 400 12.5px/1.4 "Poppins", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    color: var(--vh-soft);
  }
}

@media (max-width: 1140px) {
  body:not(#vnd) .vnd-menu-desc {
    display: none;
  }
}

/* ---------- 6. Instagram en la cabecera (inc/instagram.php) ---------- */
body:not(#vnd) .vnd-ig-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: #B80872;
  stroke-width: 1.6;
}
body:not(#vnd) .vnd-ig-icon .dot {
  fill: #B80872;
  stroke: none;
}

@media (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig {
    margin-right: 22px;
  }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig > .menu-link {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 84px;
    padding: 0 !important;
    font: 600 13px/1 "Poppins", sans-serif !important;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--vh-ink) !important;
  }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig > .menu-link::before {
    display: none !important;
    content: none !important;
  }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig .vnd-ig-handle {
    padding-bottom: 3px;
    background: linear-gradient(#B80872, #B80872) 0 100% / 0 2px no-repeat;
    transition: background-size .35s ease, color .25s ease;
  }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig > .menu-link:hover .vnd-ig-handle {
    background-size: 100% 2px;
    color: #B80872;
  }
}

@media (max-width: 1280px) and (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig .vnd-ig-handle {
    display: none;
  }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-ig {
    margin-right: 16px;
  }
}

/* Móvil: al final del panel, separado */
body:not(#vnd) #ast-hf-mobile-menu > li.vnd-ig {
  margin-top: 18px;
  border-bottom: 0 !important;
}
body:not(#vnd) #ast-hf-mobile-menu > li.vnd-ig > .menu-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 0 !important;
  font: 600 13px/1.4 "Poppins", sans-serif !important;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--vh-ink) !important;
}

/* ---------- 7. Selector de idioma ES | EN (inc/i18n.php; solo aparece con WPML y 2+ idiomas) ---------- */
body:not(#vnd) li.vnd-lang .vnd-lang-in {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 "Poppins", sans-serif;
  letter-spacing: .12em;
}
body:not(#vnd) li.vnd-lang i {
  font-style: normal;
  color: var(--vh-line);
  color: rgba(11,10,11,.25);
}
body:not(#vnd) li.vnd-lang .vnd-lang-cur {
  color: var(--vh-ink);
  border-bottom: 2px solid var(--vh-accent);
  padding-bottom: 3px;
}
body:not(#vnd) li.vnd-lang a {
  color: var(--vh-soft) !important;
  text-decoration: none;
  padding: 4px 0 6px;
  transition: color .25s ease;
}
body:not(#vnd) li.vnd-lang a:hover,
body:not(#vnd) li.vnd-lang a:focus-visible {
  color: var(--vh-accent) !important;
}

@media (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-lang {
    display: flex;
    align-items: center;
    height: 84px;
    margin-right: 22px;
  }
}

@media (max-width: 1280px) and (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-lang {
    margin-right: 16px;
  }
}
body:not(#vnd) #ast-hf-mobile-menu > li.vnd-lang {
  margin-top: 14px;
  padding: 6px 0;
  border-bottom: 0 !important;
}
body:not(#vnd) #ast-hf-mobile-menu > li.vnd-lang .vnd-lang-in {
  font-size: 13px;
  gap: 12px;
}

/* Escritorio: dentro del mismo panel, sangrado bajo su padre, sin numeración propia */

@media (min-width: 1141px) {
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .sub-menu {
    position: static !important;
    display: block !important;
    visibility: inherit !important;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
    pointer-events: auto !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 0 10px 30px !important;
    padding: 2px 0 2px 14px !important;
    background: none !important;
    border: 0 !important;
    border-left: 1px solid var(--vh-line) !important;
    box-shadow: none !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu::before,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .sub-menu::before {
    content: none !important;
    display: none !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu li,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .sub-menu li {
    counter-increment: none;
  }
  body:not(#vnd) #ast-hf-menu-1 .sub-menu .sub-menu .menu-link {
    display: block !important;
  }
  body:not(#vnd) #ast-hf-menu-1 .sub-menu .sub-menu .menu-link::before {
    content: none !important;
    display: none !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu .menu-link,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .sub-menu .menu-link {
    padding: 6px 0 !important;
    border-bottom: 0 !important;
    font: 400 13.5px/1.35 "Poppins", sans-serif !important;
    color: var(--vh-ink2) !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu .menu-link:hover,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu .sub-menu .menu-link:hover,
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu .sub-menu .current-menu-item > .menu-link {
    color: var(--vh-accent) !important;
  }

  /* El padre (Vinademy Labs) pierde su línea inferior: la línea vertical ya agrupa */
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu li.menu-item-has-children > .menu-link,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu li.menu-item-has-children > .menu-link {
    border-bottom: 0 !important;
    padding-bottom: 6px !important;
  }
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu li.menu-item-has-children > .ast-menu-toggle,
  body:not(#vnd) #masthead .ast-builder-menu .sub-menu li.menu-item-has-children > .menu-link .dropdown-menu-toggle,
  body:not(#vnd) #ast-fixed-header .ast-builder-menu .sub-menu li.menu-item-has-children > .menu-link .dropdown-menu-toggle {
    display: none !important;
  }
}

/* Móvil: siempre abierto, sangrado con línea vertical */
body:not(#vnd) #ast-hf-mobile-menu .sub-menu .sub-menu {
  display: block !important;
  margin: 0 0 8px 2px !important;
  padding: 0 0 0 14px !important;
  border-left: 1px solid var(--vh-line) !important;
}
body:not(#vnd) #ast-hf-mobile-menu .sub-menu .sub-menu .menu-link {
  padding: 6px 0 !important;
  font-size: 14px !important;
  color: var(--vh-soft) !important;
}
body:not(#vnd) #ast-hf-mobile-menu .sub-menu li.menu-item-has-children > .ast-menu-toggle {
  display: none !important;
}

/* Con el selector de idioma la cabecera tiene un elemento más: nada se parte en dos líneas */
@media (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-1,
  body:not(#vnd) #ast-hf-menu-2,
  body:not(#vnd) #masthead .site-header-primary-section-right,
  body:not(#vnd) #ast-fixed-header .site-header-primary-section-right,
  body:not(#vnd) #masthead .site-header-primary-section-left,
  body:not(#vnd) #ast-fixed-header .site-header-primary-section-left {
    flex-wrap: nowrap !important;
  }
  body:not(#vnd) #ast-hf-menu-1 > li,
  body:not(#vnd) #ast-hf-menu-2 > li { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 1640px) and (min-width: 1141px) {
  body:not(#vnd) #ast-hf-menu-2:has(> li.vnd-lang) > li.vnd-ig .vnd-ig-handle { display: none; }
  body:not(#vnd) #ast-hf-menu-2:has(> li.vnd-lang) > li.vnd-ig { margin-right: 16px; }
  body:not(#vnd) #ast-hf-menu-2 > li.vnd-lang { margin-right: 16px; }
}
@media (max-width: 1400px) and (min-width: 1141px) {
  body:not(#vnd) #masthead:has(li.vnd-lang) #ast-hf-menu-1 { gap: 22px; }
  body:not(#vnd) #masthead:has(li.vnd-lang) #ast-hf-menu-1 > li > .menu-link { letter-spacing: .12em; }
}
