:root {
  --mvfh-green: #0B5CFF;
  --mvfh-green-dark: #0847C7;
  --mvfh-lime: #8EB8FF;
  --mvfh-white: #ffffff;
  --mvfh-ink: #0B1730;
  --mvfh-muted: #66758c;
  --mvfh-line: rgba(11, 92, 255, 0.16);
  --mvfh-shadow: 0 18px 50px rgba(8, 71, 199, 0.15);
  --mvfh-header-bg: rgba(255,255,255,1);
  --mvfh-top: 18px;
  --mvfh-max-width: 1500px;
  --mvfh-logo-width: 240px;
  --mvfh-vv-offset-top: 0px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

.mvfh-header,
.mvfh-header * {
  box-sizing: border-box;
}

.mvfh-header {
  position: fixed !important;
  top: calc(var(--mvfh-top) + env(safe-area-inset-top, 0px) + var(--mvfh-vv-offset-top));
  left: 0;
  right: 0;
  z-index: 999999;
  width: 100%;
  padding: 0 22px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  pointer-events: none;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, top;
  isolation: isolate;
}


.admin-bar .mvfh-header {
  top: calc(var(--mvfh-top) + 32px + env(safe-area-inset-top, 0px) + var(--mvfh-vv-offset-top));
  z-index: 99998;
}


/* Smart hero offset: no external spacer is created. On tablet/mobile the
   plugin adds internal top padding to the hero itself, so its background
   continues behind the fixed floating menu while the text moves down. */
.mvfh-offset-target,
.mvfh-offset-content,
.mvfh-mobile-hero-target {
  box-sizing: border-box !important;
}

.mvfh-bar {
  width: min(var(--mvfh-max-width), 100%);
  position: relative;
  overflow: visible;
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 15px 10px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  background: var(--mvfh-header-bg);
  border: 1px solid rgba(11, 92, 255, 0.10);
  box-shadow: 0 14px 38px rgba(8, 71, 199, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mvfh-header.mvfh-scrolled .mvfh-bar {
  box-shadow: 0 18px 46px rgba(8, 71, 199, 0.18);
  border-color: rgba(11, 92, 255, 0.14);
}

.mvfh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mvfh-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mvfh-logo-width);
  flex: 0 0 var(--mvfh-logo-width);
  max-width: 27vw;
}

.mvfh-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.mvfh-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
}

.mvfh-brand-name {
  display: block;
  margin: 0;
  color: var(--mvfh-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .1px;
  white-space: nowrap;
}

.mvfh-brand-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--mvfh-green);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1.55px;
  white-space: nowrap;
}

/* Desktop WordPress menu */
.mvfh-nav {
  min-width: 0;
  width: 100%;
  justify-self: end;
}

.mvfh-menu-list,
.mvfh-menu-list ul,
.mvfh-mobile-menu-list,
.mvfh-mobile-menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mvfh-menu-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.mvfh-menu-list > li {
  position: relative;
  margin: 0;
}

.mvfh-menu-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--mvfh-ink) !important;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0 !important;
  box-shadow: none !important;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.mvfh-menu-list > li > a:hover,
.mvfh-menu-list > li > a:focus,
.mvfh-menu-list > .current-menu-item > a,
.mvfh-menu-list > .current-menu-ancestor > a {
  color: var(--mvfh-green) !important;
  background: color-mix(in srgb, var(--mvfh-lime) 14%, transparent);
  transform: translateY(-1px);
}

/* Desktop submenus */
.mvfh-menu-list .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 100;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--mvfh-line);
  box-shadow: 0 20px 55px rgba(23,60,115,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mvfh-menu-list li:hover > .sub-menu,
.mvfh-menu-list li:focus-within > .sub-menu,
.mvfh-menu-list li.mvfh-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Invisible hover bridge between the parent item and dropdown.
   This prevents the submenu from closing while the pointer crosses the gap. */
.mvfh-menu-list > li > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* Same protection for third-level submenus that open sideways. */
.mvfh-menu-list .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 12px;
}

.mvfh-menu-list .sub-menu li {
  position: relative;
}

.mvfh-menu-list .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: normal;
}

.mvfh-menu-list .sub-menu a:hover,
.mvfh-menu-list .sub-menu a:focus {
  background: rgba(142,184,255,.14);
  color: var(--mvfh-green) !important;
}

.mvfh-menu-list .sub-menu .sub-menu {
  left: calc(100% + 8px);
  top: -8px;
}

/* CTA */
.mvfh-buy,
.mvfh-mobile-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  color: var(--mvfh-white) !important;
  background: linear-gradient(135deg, var(--mvfh-green) 0%, var(--mvfh-green-dark) 100%);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(11, 92, 255, 0.24) !important;
  border: 0 !important;
  transform-origin: center;
  animation: mvfh-heartbeat 4.2s ease-in-out infinite;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

/* Evita brillos o destellos añadidos por el tema u otros estilos. */
.mvfh-buy::before,
.mvfh-buy::after,
.mvfh-mobile-buy::before,
.mvfh-mobile-buy::after {
  content: none !important;
  display: none !important;
}

@keyframes mvfh-heartbeat {
  0%, 68%, 100% { transform: scale(1); }
  72% { transform: scale(1.035); }
  76% { transform: scale(1); }
  80% { transform: scale(1.024); }
  84% { transform: scale(1); }
}

.mvfh-buy:hover,
.mvfh-buy:focus,
.mvfh-mobile-buy:hover,
.mvfh-mobile-buy:focus {
  animation-play-state: paused;
  transform: translateY(-2px);
  background: var(--mvfh-green-dark);
  color: var(--mvfh-white) !important;
}

@media (prefers-reduced-motion: reduce) {
  .mvfh-buy,
  .mvfh-mobile-buy {
    animation: none !important;
  }
}

/* Language switch ES / EN */
.mvfh-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mvfh-language-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px;
  background: #07182f !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none !important;
  box-shadow: none !important;
  touch-action: manipulation;
  transition: background-color .18s ease, transform .18s ease;
}

.mvfh-language-switch:hover,
.mvfh-language-switch:focus-visible {
  background: var(--mvfh-green-dark) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.mvfh-language-switch:focus-visible {
  outline: 3px solid #ffbf00;
  outline-offset: 3px;
}

.mvfh-language-flag {
  display: block;
  width: 30px;
  height: 20px;
  max-width: none;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28);
  pointer-events: none;
}

/* Mobile button */
.mvfh-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(11, 92, 255, 0.08);
  color: var(--mvfh-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mvfh-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.mvfh-toggle-icon span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}

.mvfh-toggle-icon span:first-child { top: 3px; }
.mvfh-toggle-icon span:last-child { top: 10px; }
.mvfh-open .mvfh-toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
.mvfh-open .mvfh-toggle-icon span:last-child { top: 6px; transform: rotate(-45deg); }

.mvfh-mobile {
  width: min(680px, calc(100% - 44px));
  margin: 10px auto 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--mvfh-line);
  box-shadow: 0 20px 55px rgba(23,60,115,.17);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mvfh-open .mvfh-mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mvfh-mobile-menu-list > li > a,
.mvfh-mobile-menu-list .sub-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--mvfh-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 750;
}

.mvfh-mobile-menu-list > li > a:hover,
.mvfh-mobile-menu-list .sub-menu a:hover,
.mvfh-mobile-menu-list .current-menu-item > a {
  background: rgba(142,184,255,.14);
  color: var(--mvfh-green) !important;
}

.mvfh-mobile-menu-list li {
  position: relative;
}

.mvfh-mobile-menu-list .menu-item-has-children > a {
  padding-right: 54px;
}

.mvfh-mobile-submenu-toggle {
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(34,85,162,.08);
  color: var(--mvfh-green-dark);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.mvfh-mobile-submenu-toggle:hover,
.mvfh-mobile-submenu-toggle:focus {
  background: rgba(142,184,255,.18);
  color: var(--mvfh-green);
  outline: none;
}

.mvfh-mobile-submenu-toggle::before,
.mvfh-mobile-submenu-toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.mvfh-mobile-submenu-toggle::after {
  transform: rotate(90deg);
}

.mvfh-mobile-menu-list .mvfh-mobile-submenu-open > .mvfh-mobile-submenu-toggle::after {
  transform: rotate(0);
  opacity: 0;
}

.mvfh-mobile-menu-list .sub-menu {
  max-height: 0;
  margin: 0 0 0 14px;
  padding: 0 0 0 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  border-left: 2px solid rgba(34,85,162,.12);
  transform: translateY(-4px);
  transition: max-height .34s ease, opacity .22s ease, transform .22s ease, margin .22s ease, visibility .22s ease;
}

.mvfh-mobile-menu-list .mvfh-mobile-submenu-open > .sub-menu {
  max-height: 1400px;
  margin: 4px 0 7px 14px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mvfh-mobile-menu-list .sub-menu .sub-menu {
  margin-left: 10px;
}

.mvfh-mobile {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mvfh-mobile-buy {
  width: 100%;
  margin-top: 10px;
}

.mvfh-language--mobile-top {
  display: none;
}

/* iPhone/iPad Safari: keep the fixed layer promoted while the browser
   chrome expands/collapses during vertical scrolling. */
@supports (-webkit-touch-callout: none) {
  .mvfh-header {
    position: fixed !important;
    -webkit-transform: translate3d(0,0,0) !important;
    transform: translate3d(0,0,0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .mvfh-bar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

@media (max-width: 1180px) {
  .mvfh-header { padding: 0 14px; }
  .mvfh-logo { width: min(var(--mvfh-logo-width), 190px); flex-basis: min(var(--mvfh-logo-width), 190px); }
  .mvfh-brand { gap: 10px; }
  .mvfh-brand-name { font-size: 17px; }
  .mvfh-brand-subtitle { font-size: 7.5px; letter-spacing: 1.2px; }
  .mvfh-menu-list a { padding: 0 9px; font-size: 12px; }
  .mvfh-bar { gap: 10px; }
}

@media (max-width: 980px) {
  .mvfh-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 70px;
    padding: 9px 10px 9px 14px;
  }

  /* Tablet: logo left, language switch and menu controls aligned right. */
  .mvfh-brand {
    grid-column: 1;
    justify-self: start;
  }

  .mvfh-language--mobile-top {
    grid-column: 2;
    justify-self: end;
    margin-left: auto;
  }

  .mvfh-toggle {
    grid-column: 3;
    justify-self: end;
  }

  .mvfh-logo { width: min(var(--mvfh-logo-width), 180px); flex-basis: min(var(--mvfh-logo-width), 180px); max-width: none; }
  .mvfh-brand { max-width: 64vw; }
  .mvfh-brand-name { font-size: 16px; }
  .mvfh-brand-subtitle { font-size: 7px; letter-spacing: 1px; }
  .mvfh-toggle-text { display: none; }
  .mvfh-toggle { width: 44px; min-width: 44px; min-height: 44px; padding: 0; }
  .mvfh-nav,
  .mvfh-language--desktop,
  .mvfh-buy { display: none; }
  .mvfh-language--mobile-top,
  .mvfh-toggle { display: inline-flex; }
}

@media (max-width: 782px) {
  .admin-bar .mvfh-header { top: calc(var(--mvfh-top) + 46px + env(safe-area-inset-top, 0px) + var(--mvfh-vv-offset-top)); }
}

@media (max-width: 560px) {
  .mvfh-header { padding: 0 10px; }
  .mvfh-bar {
    grid-template-columns: minmax(0,1fr) auto auto;
    border-radius: 13px;
  }
  .mvfh-logo { width: min(var(--mvfh-logo-width), 150px); flex-basis: min(var(--mvfh-logo-width), 150px); max-width: none; }
  .mvfh-brand { gap: 8px; max-width: 72vw; }
  .mvfh-brand-name { font-size: 14px; }
  .mvfh-brand-subtitle { margin-top: 4px; font-size: 6.2px; letter-spacing: .8px; }
  .mvfh-language--mobile-top { display: inline-flex; }
  .mvfh-toggle-text { display: none; }
  .mvfh-toggle { width: 44px; padding: 0; }
  .mvfh-mobile { width: calc(100% - 20px); border-radius: 13px; }
}


/* Phone-only correction for the white band that can be introduced by a
   mobile theme/page wrapper before the first hero. The JS applies the exact
   negative margin dynamically; these rules make the visual hero itself own
   the top area and prevent a white flash while its image loads. */
@media (max-width: 560px) {
  .mvfh-mobile-hero-target,
  .mvfh-mobile-top-gap-fixed {
    position: relative;
  }

  .nd-hero.mvfh-mobile-hero-target,
  .nd-hero.mvfh-mobile-top-gap-fixed {
    background: #14233b !important;
  }

  .nd-hero.mvfh-mobile-hero-target > img,
  .nd-hero.mvfh-mobile-top-gap-fixed > img {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
  }
}



/* Mariachi Vigo premium black + gold skin */
:root{
  --mvfh-green:#D7AC55;
  --mvfh-green-dark:#A77B2E;
  --mvfh-lime:#F0D38A;
  --mvfh-white:#ffffff;
  --mvfh-ink:#F7F2E7;
  --mvfh-muted:#BEB7AA;
  --mvfh-line:rgba(215,172,85,.28);
  --mvfh-shadow:0 18px 50px rgba(0,0,0,.38);
  --mvfh-header-bg:rgba(8,8,8,.94);
}
.mvfh-header a,.mvfh-header a:hover,.mvfh-header a:focus,.mvfh-mobile a,.mvfh-mobile a:hover,.mvfh-mobile a:focus{text-decoration:none!important}
.mvfh-bar{min-height:86px;padding:7px 16px 7px 12px;border-radius:18px;background:var(--mvfh-header-bg)!important;border:1px solid rgba(215,172,85,.32)!important;box-shadow:0 18px 46px rgba(0,0,0,.42)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.mvfh-header.mvfh-scrolled .mvfh-bar{background:rgba(6,6,6,.98)!important;border-color:rgba(215,172,85,.42)!important;box-shadow:0 20px 52px rgba(0,0,0,.52)!important}
.mvfh-logo{width:var(--mvfh-logo-width,82px);flex:0 0 var(--mvfh-logo-width,82px);max-width:none!important}
.mvfh-logo img{width:76px!important;height:76px!important;max-height:76px!important;object-fit:contain!important;filter:drop-shadow(0 7px 12px rgba(0,0,0,.45))}
.mvfh-brand-name{color:#F5D98B!important}.mvfh-brand-subtitle{color:#D7AC55!important}
.mvfh-menu-list a{color:#F3EEE3!important;font-family:Arial,Helvetica,sans-serif;font-weight:700;letter-spacing:.015em;border-radius:8px}
.mvfh-menu-list>li>a:hover,.mvfh-menu-list>li>a:focus,.mvfh-menu-list>.current-menu-item>a,.mvfh-menu-list>.current-menu-ancestor>a{color:#F0D38A!important;background:rgba(215,172,85,.10)!important;transform:translateY(-1px)}
.mvfh-menu-list .sub-menu{background:rgba(9,9,9,.99)!important;border:1px solid rgba(215,172,85,.28)!important;box-shadow:0 24px 55px rgba(0,0,0,.5)!important}
.mvfh-menu-list .sub-menu a{color:#EAE3D6!important}.mvfh-menu-list .sub-menu a:hover,.mvfh-menu-list .sub-menu a:focus{background:rgba(215,172,85,.11)!important;color:#F0D38A!important}
.mvfh-buy,.mvfh-mobile-buy{min-height:48px;padding:0 22px;border-radius:6px!important;background:linear-gradient(135deg,#F2D88E 0%,#D7AC55 52%,#A77B2E 100%)!important;color:#080808!important;border:1px solid #F5DEA0!important;box-shadow:0 12px 30px rgba(215,172,85,.18)!important;font-weight:900!important;animation:none!important}
.mvfh-buy:hover,.mvfh-buy:focus,.mvfh-mobile-buy:hover,.mvfh-mobile-buy:focus{background:linear-gradient(135deg,#FFE9A9 0%,#E0B75F 55%,#B38634 100%)!important;color:#080808!important;transform:translateY(-2px)}
.mvfh-toggle{background:rgba(215,172,85,.10)!important;color:#F0D38A!important;border:1px solid rgba(215,172,85,.22)!important}.mvfh-toggle-icon span{background:currentColor!important}
.mvfh-mobile{background:rgba(7,7,7,.985)!important;border:1px solid rgba(215,172,85,.28)!important;box-shadow:0 24px 55px rgba(0,0,0,.54)!important}
.mvfh-mobile-menu-list>li>a,.mvfh-mobile-menu-list .sub-menu a{color:#F3EEE3!important}.mvfh-mobile-menu-list>li>a:hover,.mvfh-mobile-menu-list .sub-menu a:hover,.mvfh-mobile-menu-list .current-menu-item>a{background:rgba(215,172,85,.10)!important;color:#F0D38A!important}
.mvfh-mobile-submenu-toggle{background:rgba(215,172,85,.08)!important;color:#D7AC55!important}.mvfh-mobile-menu-list .sub-menu{border-left-color:rgba(215,172,85,.22)!important}
@media(max-width:980px){.mvfh-bar{min-height:78px;padding:5px 9px 5px 8px}.mvfh-logo{width:70px!important;flex-basis:70px!important}.mvfh-logo img{width:68px!important;height:68px!important;max-height:68px!important}.mvfh-brand{max-width:45vw}.mvfh-toggle{width:46px;min-width:46px;min-height:46px}}
@media(max-width:520px){.mvfh-header{padding:0 9px}.mvfh-bar{border-radius:14px}.mvfh-logo{width:62px!important;flex-basis:62px!important}.mvfh-logo img{width:60px!important;height:60px!important;max-height:60px!important}}
