/* ==========================================================================
   GVB-SPES — main stylesheet
   0. Base   1. Layout   2. Buttons   3. Header   4. Nav   5. Drawer
   6. Search pill   7. Footer   8. Shared components   9. Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-b);
  background: var(--mint-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--teal-d); }

img { max-width: 100%; height: auto; }

table { border-collapse: collapse; max-width: 100%; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.gvb-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: #fff; padding: 10px 18px; z-index: 100000;
}
.gvb-skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* --------------------------------------------------------------------------
   1. LAYOUT
   -------------------------------------------------------------------------- */
.gvb-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.gvb-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.gvb-content__main { flex: 1 1 auto; min-width: 0; }
.gvb-content__side { flex: 0 0 260px; }

@media (max-width: 921px) {
  .gvb-content { flex-direction: column; }
  .gvb-content__side { flex: 1 1 auto; width: 100%; }
}

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */
.gvb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease),
              box-shadow var(--ease);
}
.gvb-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-m); }
.gvb-btn:active { transform: scale(.98); }

.gvb-btn--primary { background: var(--teal); color: #fff; }
.gvb-btn--primary:hover { background: var(--teal-d); color: #fff; }

.gvb-btn--white { background: var(--white); color: var(--teal-dd); }
.gvb-btn--white:hover { background: var(--teal-ul); color: var(--teal-dd); }

.gvb-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.gvb-btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.gvb-btn--outline-teal { background: transparent; color: var(--teal); border-color: var(--teal); }
.gvb-btn--outline-teal:hover { background: var(--teal); color: #fff; }

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.gvb-topbar {
  background: var(--teal);
  color: #fff;
  font-size: .78rem;
}
.gvb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.gvb-topbar__brand { font-weight: 700; letter-spacing: .05em; opacity: .85; }
.gvb-topbar__contact { display: flex; gap: 14px; align-items: center; }
.gvb-topbar__contact a { color: #fff; font-weight: 600; }
.gvb-topbar__contact a:hover { color: var(--teal-l); }
.gvb-topbar__right { display: flex; align-items: center; gap: 14px; }
.gvb-topbar__social { display: flex; align-items: center; gap: 12px; }
.gvb-topbar__social a { color: #fff; display: inline-flex; line-height: 0; }
.gvb-topbar__social a:hover { color: var(--teal-l); }
.gvb-topbar__social svg { width: 17px; height: 17px; fill: currentColor; }

.gvb-cart {
  position: relative;
  display: inline-flex;
  color: #fff;
  line-height: 0;
  padding: 4px;
}
.gvb-cart:hover { color: var(--teal-l); }
.gvb-cart svg { width: 20px; height: 20px; fill: currentColor; }
.gvb-cart__count {
  position: absolute; top: -6px; right: -8px;
  background: var(--white); color: var(--teal-dd);
  border-radius: 999px; min-width: 16px; height: 16px;
  font-size: .62rem; font-weight: 800; line-height: 16px;
  text-align: center; padding: 0 3px;
}

/* Sticky: the WRAPPER sticks (an inner sticky can't outlive its parent's
   height). top:-40px lets the teal topbar scroll away while the white menu
   bar stays pinned. */
.gvb-site-header {
  position: sticky;
  top: -40px;
  z-index: 900;
}
.gvb-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-s);
}

/* Home: the menu-bar logo stays hidden while the hero (with its big logo)
   is on screen; ui.js toggles .is-hidden via IntersectionObserver. */
.gvb-header__logo { max-width: 200px; transition: opacity .35s ease, transform .35s ease, max-width .35s ease; }
.gvb-header__logo.is-hidden {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  margin-right: -24px; /* cancel the flex gap so the cluster centers true */
}
/* while the logo is away (home, hero on screen) the menu centers itself */
/* logo away: the whole cluster (nav + cart + search) travels together and
   centers as one group */
.gvb-header__inner:has(.gvb-header__logo.is-hidden) { justify-content: center; }
.gvb-header__inner:has(.gvb-header__logo.is-hidden) .gvb-header__nav { margin-left: 0; }
.gvb-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.gvb-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.gvb-header__logo img { max-height: 58px; width: auto; }

.gvb-header__nav { margin-left: auto; }

.gvb-burger {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  padding: 10px; line-height: 0; color: var(--text);
}
.gvb-burger svg { width: 26px; height: 26px; }

@media (max-width: 921px) {
  .gvb-site-header { top: 0; }
  .gvb-topbar { display: none; }
  .gvb-header__inner { min-height: 60px; gap: 12px; }
  .gvb-header__logo img { max-height: 44px; }
  .gvb-header__nav { display: none; }
  .gvb-cart--bar { margin-left: auto; }
  .gvb-burger { display: inline-flex; margin-left: 0; }
}

/* GTranslate floating switcher: hidden — language lives in the menu bar */
.gtranslate_wrapper { display: none !important; }

/* Cart in the menu bar (teal, coherent with nav icons) */
.gvb-cart--bar {
  color: var(--teal);
  padding: 6px;
  flex-shrink: 0;
  margin-left: -14px; /* snug to the language item */
}
.gvb-search.gvb-search--collapsible { margin-left: -16px; } /* snug to the cart */

/* Mobile search button (opens the drawer and focuses its search field) */
.gvb-search-mob {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; line-height: 0; color: var(--teal);
}
.gvb-search-mob svg { width: 21px; height: 21px; }

/* Mobile header: logo left; cart + search + burger clustered right.
   (After the desktop snug-margins above so these win the cascade.) */
@media (max-width: 921px) {
  .gvb-header__logo { margin-right: auto; }
  .gvb-header__logo.is-hidden { margin-right: auto; }
  .gvb-cart--bar { display: none; } /* cart is a drawer menu entry on mobile */
  .gvb-search-mob { display: inline-flex; }
  body.gvb-drawer-open .gvb-search-mob { display: none; } /* lens only when the menu is closed */
}
.gvb-cart--bar:hover { color: var(--teal-d); }
.gvb-cart--bar svg { width: 22px; height: 22px; }
.gvb-cart--bar .gvb-cart__count {
  background: var(--teal);
  color: #fff;
}

/* Collapsible search (menu bar): icon by default, expands on click */
.gvb-search.gvb-search--collapsible {
  width: 40px;
  transition: width .3s ease;
}
.gvb-search--collapsible .gvb-livesearch {
  background: transparent;
  border-color: transparent;
}
.gvb-search--collapsible .gvb-livesearch__input {
  width: 0;
  min-width: 0;
  padding: 0;
  opacity: 0;
  transition: opacity .2s ease;
}
.gvb-search--collapsible .gvb-livesearch__clear { display: none; }
.gvb-search.gvb-search--collapsible.is-open { width: 172px; }
.gvb-search--collapsible.is-open .gvb-livesearch {
  background: var(--mint-bg);
  border-color: var(--border-d);
}
.gvb-search--collapsible.is-open .gvb-livesearch:focus-within {
  border-color: var(--teal);
  background: var(--white);
}
.gvb-search--collapsible.is-open .gvb-livesearch__input {
  width: 100%;
  flex: 1;
  padding: 0 0 0 14px;
  opacity: 1;
}
.gvb-search--collapsible.is-open .gvb-livesearch__clear[hidden] { display: none; }
.gvb-search--collapsible.is-open .gvb-livesearch__clear:not([hidden]) { display: flex; }

/* --------------------------------------------------------------------------
   4. NAV (desktop)
   -------------------------------------------------------------------------- */
.gvb-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gvb-nav__list > li { position: relative; }
.gvb-nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 26px 13px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
}
/* soft highlight behind the item (ported from the gvb-child nav) —
   full height of the menu bar */
.gvb-nav__list > li > a { transition: color var(--ease), background var(--ease), box-shadow var(--ease); }
.gvb-nav__list > li:hover > a,
.gvb-nav__list > li.current-menu-item > a,
.gvb-nav__list > li.current-menu-ancestor > a { background: var(--teal-ul); }
.gvb-nav__list > li > a:hover,
.gvb-nav__list > li.current-menu-item > a,
.gvb-nav__list > li.current-menu-ancestor > a { color: var(--teal); }
.gvb-nav__list > li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--teal); }

/* caret for items with children */
.gvb-nav__list li.menu-item-has-children > a::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

/* dropdown */
.gvb-nav__list .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-l) var(--r-l);
  box-shadow: var(--sh-m);
  list-style: none;
  margin: 0; padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 950;
}
.gvb-nav__list li:hover > .sub-menu,
.gvb-nav__list li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.gvb-nav__list .sub-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.gvb-nav__list .sub-menu li:last-child > a { border-bottom: none; }
.gvb-nav__list .sub-menu a:hover { background: var(--teal-ul); color: var(--teal); }

/* GTranslate item (plugin renders li.menu-item-gtranslate + sub-menu) */
.gvb-nav__list .menu-item-gtranslate img { height: 15px; width: auto; }
.gvb-nav__list .menu-item-gtranslate .sub-menu { min-width: 130px; }

.gvb-drawer .gvb-mega { display: none; } /* drawer uses the normal submenu */

/* --------------------------------------------------------------------------
   5. MOBILE DRAWER
   -------------------------------------------------------------------------- */
.gvb-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.gvb-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 40, 35, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.gvb-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(330px, 88vw);
  background: var(--white);
  box-shadow: var(--sh-m);
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.gvb-drawer.is-open { visibility: visible; pointer-events: auto; }
.gvb-drawer.is-open .gvb-drawer__scrim { opacity: 1; }
.gvb-drawer.is-open .gvb-drawer__panel { transform: translateX(0); }

.gvb-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.gvb-drawer__head img { max-height: 40px; width: auto; }
.gvb-drawer__close {
  background: none; border: none; cursor: pointer;
  padding: 8px; line-height: 0; color: var(--text);
}
.gvb-drawer__close svg { width: 22px; height: 22px; }

.gvb-drawer__search { padding: 14px 18px; border-bottom: 1px solid var(--border); }

.gvb-drawer nav > ul {
  list-style: none; margin: 0; padding: 0;
}
.gvb-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
/* Dividers only between TOP-level items; submenu rows are separated by spacing. */
.gvb-drawer nav > ul > li > a { border-bottom: 1px solid var(--border); }

/* Current page: teal left-bar indicator (works at every nesting level). */
.gvb-drawer nav li.current-menu-item > a {
  color: var(--teal);
  background: var(--teal-l);
  box-shadow: inset 3px 0 0 var(--teal);
}

/* Expanded parent: its own link reads as the open path. */
.gvb-drawer nav li.is-expanded > a { color: var(--teal-d); font-weight: 700; }

/* --- Collapsible submenus: animated reveal, all levels --- */
.gvb-drawer nav .sub-menu {
  list-style: none; margin: 0; padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}
.gvb-drawer nav li.is-expanded > .sub-menu { max-height: 1600px; }

/* Level-1 branch = soft teal block. Rows span the FULL drawer width (indent is
   padding, not margin — so nothing drifts right or overflows). */
.gvb-drawer nav > ul > li.is-expanded > .sub-menu {
  background: var(--teal-ul);
  border-radius: 8px;
  margin: 2px 0 8px;
  padding: 4px 0;
}
.gvb-drawer nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  line-height: 1.35;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .82rem;
  color: var(--text-b);
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Submenu parents keep the heavier weight so branch structure reads. */
.gvb-drawer nav .sub-menu li.menu-item-has-children > a { font-weight: 600; }

/* Level-2 nested = no fill, deeper indent + a thin teal left guide. */
.gvb-drawer nav .sub-menu .sub-menu {
  margin-left: 20px;
  border-left: 2px solid var(--teal-l);
}
.gvb-drawer nav .sub-menu .sub-menu a {
  padding-left: 14px;
  font-size: .8rem;
  color: var(--text-m);
}

/* Expand/collapse arrow (only this toggles; the link always navigates). */
.gvb-drawer nav li.menu-item-has-children { position: relative; }
.gvb-drawer nav li.menu-item-has-children > a { padding-right: 56px; }
.gvb-drawer__sub-toggle {
  position: absolute;
  top: 0; right: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-m);
  z-index: 1;
}
/* Submenu toggles overlay their (shorter) row, keeping a comfortable tap area. */
.gvb-drawer nav .sub-menu li.menu-item-has-children > .gvb-drawer__sub-toggle {
  height: 40px;
}
.gvb-drawer__sub-toggle:hover,
.gvb-drawer__sub-toggle:focus-visible { color: var(--teal); }
.gvb-drawer__sub-chev {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ease);
  pointer-events: none;
}
.gvb-drawer nav li.is-expanded > .gvb-drawer__sub-toggle { color: var(--teal); }
.gvb-drawer nav li.is-expanded > .gvb-drawer__sub-toggle .gvb-drawer__sub-chev {
  transform: rotate(-135deg);
}

/* GTranslate inside the drawer → single collapsible dropdown (flag + text) */
.gvb-drawer nav li.menu-item-gtranslate a img {
  height: 14px; width: auto;
  margin-right: 10px;
  vertical-align: -1px;
}
.gvb-drawer nav li.menu-item-gtranslate > a { justify-content: flex-start; }

body.gvb-drawer-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. SEARCH PILL — native live search (searchform.php + inc/search.php +
   ui.js initLiveSearch). The suggestion panel is a child of the form, so it
   anchors with plain CSS in every placement (header, drawer, sidebar).
   -------------------------------------------------------------------------- */
.gvb-search { width: 210px; flex-shrink: 0; }

.gvb-livesearch {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  background: var(--mint-bg);
  border: 1.5px solid var(--border-d);
  border-radius: 20px;
  transition: border-color var(--ease), background var(--ease);
}
.gvb-livesearch:focus-within {
  border-color: var(--teal);
  background: var(--white);
}
.gvb-livesearch__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0 0 0 14px;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text);
}
.gvb-livesearch__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.gvb-livesearch__clear,
.gvb-livesearch__submit {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  color: var(--text-b);
}
.gvb-livesearch__clear[hidden] { display: none; }
.gvb-livesearch__clear svg { width: 12px; height: 12px; }
.gvb-livesearch__clear:hover { color: var(--teal); }
.gvb-livesearch__submit { padding: 0 12px 0 4px; color: var(--teal); }
.gvb-livesearch__submit svg { width: 15px; height: 15px; display: block; }
.gvb-livesearch__submit:hover { color: var(--teal-d); }

/* Suggestion panel — matches the search-field width. Fixed: shows exactly
   the configured number of items (Customizer → GVB-SPES → Buscador) plus
   the "see all" row; no internal scrolling. */
.gvb-livesearch__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--sh-drop);
  overflow: hidden;
}
.gvb-livesearch__panel[hidden] { display: none; }
/* Customizer display options */
.gvb-livesearch--no-thumb .gvb-livesearch__thumb { display: none; }
.gvb-livesearch--no-meta .gvb-livesearch__meta { display: none; }
.gvb-livesearch__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease;
}
.gvb-livesearch__item:hover,
.gvb-livesearch__item.is-active { background: var(--teal-ul); }
.gvb-livesearch__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mint-bg);
}
.gvb-livesearch__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gvb-livesearch__body { flex: 1; min-width: 0; }
.gvb-livesearch__title {
  display: block;
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gvb-livesearch__meta {
  display: block;
  font-size: .71rem;
  color: var(--text-m);
  line-height: 1.4;
}
.gvb-livesearch__empty {
  padding: 24px 16px;
  text-align: center;
  font-size: .85rem;
  color: var(--text-m);
}
.gvb-livesearch__all {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  background: var(--teal-ul);
  transition: background .15s ease;
}
.gvb-livesearch__all:hover,
.gvb-livesearch__all.is-active { background: var(--teal-l); }

/* Sidebar widget owns the panel's stacking context */
.gvb-widget--search { position: relative; overflow: visible; z-index: 60; }

/* --- Brands marquee ------------------------------------------------------ */
.gvb-brands { padding: 40px 0 44px; background: var(--white); border-bottom: 1px solid var(--border); }
.gvb-brands__label {
  text-align: center;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 24px;
}
.gvb-brands__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gvb-brands__track {
  display: flex;
  align-items: center;
  gap: 84px;
  width: max-content;
  /* duration + logo height come from Customizer → GVB-SPES →
     "Carrusel de marcas" (inline vars on the section) */
  animation: gvb-marquee var(--gvb-marquee-dur, 36s) linear infinite;
}
.gvb-brands__viewport:hover .gvb-brands__track { animation-play-state: paused; }
@keyframes gvb-marquee { to { transform: translateX(-50%); } }
.gvb-brands__item { flex: 0 0 auto; display: inline-flex; align-items: center; }

/* "Marcas visibles a la vez": with a custom count, each item takes an equal
   share of the viewport width (container-query units); Auto keeps natural
   logo widths. Browsers without cqu support simply stay in Auto. */
.gvb-brands--count .gvb-brands__viewport { container-type: inline-size; }
.gvb-brands--count .gvb-brands__track { gap: 0; }
.gvb-brands--count .gvb-brands__item {
  width: calc(100cqw / var(--gvb-brands-visible, 5));
  justify-content: center;
}
/* inside a fixed-width slot the logo must scale to FIT the slot (fixed
   height alone overflows narrow slots on mobile → overlap) */
.gvb-brands--count .gvb-brands__item img {
  width: auto;
  height: auto;
  max-height: var(--gvb-logo-h, 44px);
  max-width: calc(100% - 18px);
}
.gvb-brands__item img {
  height: var(--gvb-logo-h, 44px); width: auto; max-width: 180px; object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter var(--ease);
}
.gvb-brands__item img:hover { filter: none; }
.gvb-brands--color .gvb-brands__item img { filter: none; }
@media (max-width: 480px) {
  .gvb-brands__track { gap: 44px; }
  .gvb-brands__item img { height: min(var(--gvb-logo-h, 44px), 40px); }
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.gvb-footer {
  background: var(--white);
  border-top: 3px solid var(--teal);
  margin-top: 56px;
}
.gvb-footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
  gap: 36px;
  padding: 48px 0 36px;
}
.gvb-footer__col p { font-size: .85rem; line-height: 1.7; color: var(--text-b); }
.gvb-footer__title {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-m);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.gvb-footer__col ul { list-style: none; margin: 0; padding: 0; }
.gvb-footer__col li { margin-bottom: 9px; }
.gvb-footer__col li a { color: var(--text-b); font-size: .85rem; }
.gvb-footer__col li a:hover { color: var(--teal); }
.gvb-footer__logo { max-height: 60px; width: auto; margin-bottom: 12px; }
.gvb-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.gvb-footer__social a { display: inline-flex; line-height: 0; }
.gvb-footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.gvb-social--wa { color: #25d366; }
.gvb-social--li { color: #1c86c6; }
.gvb-social--ig { color: #8a3ab9; }
.gvb-social--fb { color: #557dbc; }
.gvb-social--yt { color: #ff0000; }
.gvb-footer__legal { font-size: .76rem; color: var(--text-m); line-height: 1.7; margin-top: 14px; }

.gvb-footer__copy {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: .76rem;
  color: var(--text-m);
}

@media (max-width: 921px) {
  .gvb-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 0 24px; }
  .gvb-footer__copy { padding-bottom: 76px; } /* clearance for chat button */
}
@media (max-width: 540px) {
  .gvb-footer__cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. SHARED COMPONENTS
   -------------------------------------------------------------------------- */
/* Card */
.gvb-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--sh-s);
  transition: box-shadow var(--ease), transform var(--ease);
}
.gvb-card--hover:hover { box-shadow: var(--sh-m); transform: translateY(-2px); }

/* Page hero band (inner pages: legal, contact, search, archives) */
.gvb-page-hero {
  background: var(--teal-ul);
  border-bottom: 3px solid var(--teal);
  padding: 46px var(--container-pad) 40px;
  text-align: center;
}
.gvb-page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}
.gvb-page-hero p {
  color: var(--text-b);
  margin: 10px auto 0;
  max-width: 640px;
}

/* ==========================================================================
   Secondary hero (v3) — .gvb-hero-sec. One teal band for every non-front,
   non-equipment page: centered kicker / H1 / description, breadcrumbs
   bottom-left, a soft diagonal shine on every hero, an optional top-right
   ghost word, and an optional right-side fx band hosting a reused family
   trace. Lives in main.css because the hero appears on shop, blog, pages,
   checkout and archive views — main.css is the only site-wide stylesheet.
   ========================================================================== */
.gvb-hero-sec {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #00655c 0%, var(--teal-d) 45%, var(--teal) 100%);
  color: #fff;
  min-height: 160px;
  display: flex;
  align-items: stretch;
}
.gvb-hero-sec__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 16px;
  display: flex;
  flex-direction: column;
}
.gvb-hero-sec__textblock {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.gvb-hero-sec__kicker {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--teal-l);
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 4px;
}
.gvb-hero-sec h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.gvb-hero-sec__sub {
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  max-width: 70ch;
  margin: 7px auto 0;
}
.gvb-hero-sec__crumbs {
  margin: 0;
  padding-top: 12px;
  align-self: flex-start;
  text-align: left;
  font-size: .72rem;
  color: rgba(255, 255, 255, .62);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.gvb-hero-sec__crumbs a { color: rgba(255, 255, 255, .62); text-decoration: none; }
.gvb-hero-sec__crumbs a:hover { color: #fff; }
.gvb-hero-sec__crumbs .sep { opacity: .5; }
.gvb-hero-sec__crumbs .cur { color: rgba(255, 255, 255, .85); }
/* Ghost word (category / subcategory pages) — top-right */
.gvb-hero-sec__ghost {
  position: absolute;
  top: 2px;
  right: 26px;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, .07);
  letter-spacing: -.02em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
/* Long ghost words (wider than the hero) get a slow marquee so the whole word
   passes through; ui.js measures overflow and sets --gvb-ghost-travel. It
   starts with the word's beginning visible (shifted right) and eases to the end
   (its right-anchored rest position), alternating both ways. */
@keyframes gvbHeroGhostSlide {
  from { transform: translateX(var(--gvb-ghost-travel, 0px)); }
  to   { transform: translateX(0); }
}
.gvb-hero-sec__ghost.is-slide {
  animation: gvbHeroGhostSlide 22s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .gvb-hero-sec__ghost.is-slide { animation: none; transform: translateX(0); }
}
/* Shine — soft diagonal gloss sweeping across the gradient (every hero) */
.gvb-hero-sec__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .09) 50%, transparent 58%);
  transform: translateX(-80%);
  animation: gvbHeroSecShine 9s ease-in-out infinite;
}
@keyframes gvbHeroSecShine {
  0%   { transform: translateX(-80%); }
  100% { transform: translateX(180%); }
}
/* Reserved fx zone — right ~60%, masked fade to the left, dimmed */
.gvb-hero-sec__fx {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 38%, #000 100%);
}
/* Reused theme trace parts fill the fx zone; the fx wrapper owns mask + opacity. */
.gvb-hero-sec__fx .gvb-eq-hero__traces {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transform: none;
  opacity: 1;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}
.gvb-hero-sec__fx svg { width: 100%; height: 100%; display: block; }
.gvb-hero-sec__fx--trace path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1650;
  stroke-dashoffset: 1650;
  animation: gvbHeroSecTrace 7s ease-in-out .2s infinite;
}
.gvb-hero-sec__fx--trace .trace { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.gvb-hero-sec__fx--trace .glow { stroke: rgba(255, 255, 255, .16); stroke-width: 5; filter: blur(3px); }
.gvb-hero-sec__fx--trace .resp,
.gvb-hero-sec__fx--trace .resp-glow { animation-delay: -2.4s; }
.gvb-hero-sec__fx--trace .row2 { animation-delay: -2.4s; }
.gvb-hero-sec__fx--trace .row3 { animation-delay: -4s; }
@keyframes gvbHeroSecTrace {
  0%   { stroke-dashoffset: 1650; opacity: .10; }
  20%  { opacity: .9; }
  65%  { stroke-dashoffset: 0; opacity: .7; }
  100% { stroke-dashoffset: -1650; opacity: .12; }
}
.gvb-hero-sec--plain .gvb-hero-sec__fx { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gvb-hero-sec__shine { animation: none; transform: translateX(60%); }
  .gvb-hero-sec__fx--trace path { animation: none; stroke-dashoffset: 0; opacity: .5; }
}
@media (max-width: 560px) {
  .gvb-hero-sec { min-height: 112px; }
  .gvb-hero-sec__inner { padding: 14px 20px 12px; }
  .gvb-hero-sec__sub.hide-mobile { display: none; }
  .gvb-hero-sec__ghost { font-size: 2.6rem; right: 14px; }
  .gvb-hero-sec__fx { width: 72%; }
}

/* Section title */
.gvb-section-title {
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.gvb-section-sub {
  text-align: center;
  color: var(--text-m);
  margin: 0 auto 34px;
  max-width: 620px;
}

/* Sidebar widget card */
.gvb-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh-xs);
}
.gvb-widget__title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-m);
  margin: 0 0 12px;
}

/* Mobile overflow guards */
@media (max-width: 921px) {
  .entry-content table,
  .woocommerce-Tabs-panel table {
    display: block; max-width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .entry-content, .woocommerce-Tabs-panel { overflow-wrap: anywhere; }

  /* GTranslate floating flags overlap content on phones; the drawer
     carries the language switcher instead. */
  body > .gtranslate_wrapper { display: none !important; }

  /* Chaty hover-label renders permanently on touch — keep the round button */
  .chaty-channel .on-hover-text,
  .chaty-i-trigger .on-hover-text { display: none !important; }
}

/* --------------------------------------------------------------------------
   9. UTILITIES
   -------------------------------------------------------------------------- */
.gvb-hide-mobile { }
@media (max-width: 921px) { .gvb-hide-mobile { display: none; } }
.gvb-only-mobile { display: none; }
@media (max-width: 921px) { .gvb-only-mobile { display: block; } }

/* --------------------------------------------------------------------------
   THIRD-PARTY FLOATERS — the chat keeps its native bottom-right corner.
   The reCAPTCHA v3 floating badge is hidden site-wide because it overlaps
   content in the bottom corner. Google permits hiding the badge as long as
   the required attribution text is shown near the protected form — see the
   .gvb-recaptcha-note appended to every CF7 form (inc/cf7-antispam.php).
   -------------------------------------------------------------------------- */
.grecaptcha-badge { visibility: hidden; }

/* reCAPTCHA attribution line shown inside the contact form area. */
.gvb-recaptcha-note {
  margin: 12px 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted, #6b7280);
}
.gvb-recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   MEGA-MENU (Equipamiento): categories + their devices
   -------------------------------------------------------------------------- */
.gvb-nav__list > li.gvb-has-mega { position: static; }
.gvb-nav__list > li.gvb-has-mega > .sub-menu { display: none; } /* mega replaces it on desktop */
.gvb-mega {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(var(--gvb-mega-maxw, 1160px), calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--sh-drop);
  margin-top: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 950;
}
.gvb-nav__list > li.gvb-has-mega:hover > .gvb-mega,
.gvb-nav__list > li.gvb-has-mega:focus-within > .gvb-mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.gvb-mega__inner {
  padding: 26px 30px 28px;
  display: grid;
  grid-template-columns: repeat(var(--gvb-mega-cols, 6), minmax(0, 1fr));
  gap: 8px 26px;
}
.gvb-mega__cat {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--teal-ul);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
}
.gvb-mega__cat:hover { color: var(--teal); border-bottom-color: var(--teal-l); }
.gvb-mega__list { list-style: none; margin: 0; padding: 0; }
.gvb-mega__list li { margin: 0; }
.gvb-mega__list a {
  display: block;
  padding: 5px 0;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-m);
  text-decoration: none;
  border: none;
  transition: color var(--ease), padding var(--ease);
}
.gvb-mega__list a:hover { color: var(--teal); padding-left: 4px; background: none; }
/* current branch highlight (shop mega on product / category pages) */
.gvb-mega__cat.cur { color: var(--teal-d); border-bottom-color: var(--teal-l); }
.gvb-mega__list a.cur { color: var(--teal-d); font-weight: 700; }
/* «Tienda» mega: 8 accessory categories laid out as a 4×2 grid (approved demo) */
.gvb-mega--shop .gvb-mega__inner { grid-template-columns: repeat(var(--gvb-mega-cols, 4), minmax(0, 1fr)); }
@media (max-width: 720px) {
  .gvb-mega__inner { grid-template-columns: repeat(2, 1fr); }
}

/* Chaty: teal launcher bubble only — channel buttons keep native colors */
.chaty .chaty-cta-button,
.chaty .chaty-cta-button button.open-chaty { background-color: var(--teal-d) !important; }
.chaty .chaty-cta-button .chaty-svg { background-color: var(--teal-d) !important; }
.chaty .chaty-cta-button .chaty-svg svg circle,
.chaty .chaty-cta-button .chaty-svg svg ellipse { fill: var(--teal-d) !important; }
.chaty .chaty-cta-button .chaty-svg svg path { fill: #fff !important; }

/* Complianz cookie banner — prevent horizontal overflow on small screens.
   The plugin default `.cmplz-body { min-width: 300px }` can exceed a narrow
   viewport once the banner's 20px side padding is added, causing horizontal
   scroll. Constrain the banner to the viewport and relax that min-width at
   small breakpoints. Layout/appearance otherwise untouched. */
@media (max-width: 460px) {
  .cmplz-cookiebanner {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .cmplz-cookiebanner .cmplz-body {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
