/* =========================================
   VARIABLES
   ========================================= */
:where(:root) {
  --balinot-header-h: 68px;
  --balinot-header-clearance: 16px;
  --balinot-header-top: 0px;
  --balinot-mega-top: 68px;
  --balinot-mega-overlap: 15px;
  --balinot-pad-x: 35px;
  --balinot-nav-ui-radius: 18px;
  --balinot-nav-radius-2xs: 12px;
  --balinot-nav-radius-xs: 14px;
  --balinot-nav-radius-sm: 16px;
  --balinot-nav-radius-md: 18px;
  --balinot-nav-radius-lg: 22px;
  --balinot-nav-radius-xl: 24px;
  --balinot-nav-radius-2xl: 28px;
  --balinot-nav-radius-pill: 9999px;
}

/* =========================================
   HEADER BASE
   ========================================= */
.balinot-header {
  position: relative;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.balinot-header-static-white .site-header,
body.balinot-header-static-white .site-header-mobile,
.site-header.is-static-white,
.site-header-mobile.is-static-white,
.site-header.is-mega-open,
.site-header-mobile.is-mega-open,
.site-header:has(.balinot-mega.is-open),
.site-header-mobile:has(.balinot-mega.is-open) {
  background: #fff !important;
}

body.balinot-header-static-white .site-header::before,
body.balinot-header-static-white .site-header-mobile::before,
.site-header.is-static-white::before,
.site-header-mobile.is-static-white::before,
.site-header.is-mega-open::before,
.site-header-mobile.is-mega-open::before,
.site-header:has(.balinot-mega.is-open)::before,
.site-header-mobile:has(.balinot-mega.is-open)::before {
  background: #fff !important;
}

body.balinot-header-static-white .site-header::after,
body.balinot-header-static-white .site-header-mobile::after,
.site-header.is-static-white::after,
.site-header-mobile.is-static-white::after,
.site-header.is-mega-open::after,
.site-header-mobile.is-mega-open::after,
.site-header:has(.balinot-mega.is-open)::after,
.site-header-mobile:has(.balinot-mega.is-open)::after {
  display: none !important;
}

.balinot-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  height: var(--balinot-header-h);
  padding: 0 var(--balinot-pad-x);
  gap: 16px;
}

/* LEFT */
.balinot-header__left {
  justify-self: start;
  display: flex;
  align-items: center;
}
.balinot-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111;
}
.balinot-header__logo-img {
  height: 18px;
  width: auto;
  display: block;
}
.balinot-header__logo-text {
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* CENTER (NAV) */
.balinot-header__center {
  justify-self: center;
  display: flex;
  align-items: center;
}

/* Menú nivel 1 */
.balinot-nav-primary__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* RIGHT */
.balinot-header__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.balinot-header__search {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
}
.balinot-header__search input {
  width: 180px;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 13px;
}

.balinot-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  position: relative;
}

.balinot-icon-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.balinot-cart__count {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: var(--balinot-nav-radius-pill);
  background: #000;
  color: #fff;
}

.balinot-lang {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

/* Spacer si el header es fixed (si no lo usas, puedes dejarlo en 0) */
.balinot-header-spacer {
  height: calc(var(--balinot-header-h) + var(--balinot-header-clearance));
}

@media (max-width: 1023px) {
  :root {
    --balinot-header-h: 80px;
    --balinot-header-clearance: 12px;
  }
}

/* =========================================
   MEGA MENU - FULL WIDTH (FIXED)
   ========================================= */

/* Panel mega a pantalla completa */
.balinot-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(
    var(--balinot-header-top, 0px) +
      var(--balinot-mega-top, var(--balinot-header-h)) -
      var(--balinot-mega-overlap, 0px)
  );

  width: 100vw;
  max-width: 100vw;
  background: #fff;

  opacity: 0;
  pointer-events: none;

  transform: none;
  transition: opacity 0.15s ease;

  z-index: 10005;
  border-top: 0;
  box-shadow: none;
}

.balinot-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Overlay SOLO debajo del header */
.balinot-mega-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(
    var(--balinot-header-top, 0px) +
      var(--balinot-mega-top, var(--balinot-header-h)) -
      var(--balinot-mega-overlap, 0px)
  );
  bottom: 0;

  z-index: 10004;
  opacity: 0;
  pointer-events: none;
}

.balinot-mega-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Bridge anti-gap: franja invisible justo debajo del header */
/* .balinot-header::after {
  content: "";
  position: fixed; 
  left: 0;
  right: 0;
  top: var(--balinot-header-h);
  height: 18px;

  background: transparent;
  pointer-events: auto;
  z-index: 2500; 
} */

/* =========================================
   MEGA MENU - Layout editorial
   ========================================= */

.balinot-mega__inner {
  display: grid;
  grid-template-columns: 220px minmax(640px, 1.5fr) 320px;
  gap: 28px;
  padding: 28px var(--balinot-pad-x) 34px;
  min-height: 420px;
}

.balinot-mega__col {
  min-width: 0;
}

.balinot-mega__col--fixed {
  padding-top: 8px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  padding-right: 18px;
}

.balinot-mega__col--content {
  display: flex;
  min-width: 0;
}

.balinot-mega__col--right {
  display: grid;
  gap: 14px;
}

.balinot-mega__content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  width: 100%;
}

.balinot-mega__intro {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--balinot-nav-radius-xl);
  background: #fafafa;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.balinot-mega__intro-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.balinot-mega__headline {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 700;
  color: #0f172a;
}

.balinot-mega__summary {
  margin: 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.72);
}

.balinot-mega__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.balinot-mega__stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--balinot-nav-radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.balinot-mega__stat.is-link {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.balinot-mega__quicklinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.balinot-mega__quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--balinot-nav-radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.balinot-mega__quicklink:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: #fafafa;
}

.balinot-mega__directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
}

.balinot-mega__directory-col {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.balinot-mega__section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.balinot-mega__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.balinot-mega__section-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.balinot-mega__section-link {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.55);
}

/* Eyebrow */
.balinot-mega__eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

/* Listas */
.balinot-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.balinot-mega__list--directory {
  gap: 8px;
}

/* Links */
.balinot-mega__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}
.balinot-mega__link:hover {
  color: rgba(0, 0, 0, 0.85);
}

/* Activo izquierda */
.balinot-mega__link.is-active {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 700;
}

.balinot-mega__link--grand {
  gap: 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.76);
}

/* Promo */
.balinot-mega__promo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 330px;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--balinot-nav-radius-xl);
}
.balinot-mega__promo-img {
  position: absolute;
  inset: 0;
  background: #ddd;
}
.balinot-mega__promo-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}
.balinot-mega__promo-title,
.balinot-mega__promo-sub {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
}

.balinot-mega__rail-stack {
  display: grid;
  gap: 12px;
}

.balinot-mega__mini-promo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 10px;
  border-radius: var(--balinot-nav-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  text-decoration: none;
}

.balinot-mega__mini-promo-media {
  display: block;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: var(--balinot-nav-radius-md);
  background: #e2e8f0;
}

.balinot-mega__mini-promo-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.balinot-mega__mini-promo-meta {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.balinot-mega__mini-promo-title {
  font-size: 16px;
  line-height: 1.2;
  color: #0f172a;
}

/* Ajustes del mega menú editorial actual */
.balinot-mega__inner {
  grid-template-columns: 180px minmax(0, 1.65fr) 320px;
  gap: 24px;
}

.balinot-mega__col--fixed {
  padding-right: 20px;
}

.balinot-mega__content {
  gap: 20px;
}

.balinot-mega__view-rail {
  display: grid;
  gap: 6px;
}

.balinot-mega__view-link {
  display: grid;
  gap: 6px;
  padding: 10px 0 10px 14px;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  background: transparent;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.balinot-mega__view-link:hover {
  border-left-color: rgba(15, 23, 42, 0.28);
}

.balinot-mega__view-link-eyebrow {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.38);
}

.balinot-mega__view-link-label {
  font-size: 17px;
  line-height: 1.05;
  color: #0f172a;
}

.balinot-mega__view-link-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.62);
}

.balinot-mega__showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.balinot-mega__category-card {
  display: grid;
  gap: 12px;
  align-content: start;
  text-decoration: none;
  color: #0f172a;
}

.balinot-mega__category-media {
  display: block;
  overflow: hidden;
  border-radius: var(--balinot-nav-radius-xl);
  aspect-ratio: 0.86;
  background: #e2e8f0;
}

.balinot-mega__category-copy {
  display: grid;
  gap: 6px;
}

.balinot-mega__category-title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.balinot-mega__category-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.68);
}

.balinot-mega__directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.balinot-mega__promo {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 100%;
  gap: 14px;
  padding: 14px;
  border-radius: var(--balinot-nav-radius-2xl);
  background: #fafafa;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.balinot-mega__promo-media {
  display: block;
  overflow: hidden;
  border-radius: var(--balinot-nav-radius-lg);
  aspect-ratio: 0.82;
  background: #e2e8f0;
}

.balinot-mega__promo-body {
  display: grid;
  gap: 6px;
  color: #0f172a;
}

.balinot-mega__promo-kicker {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.balinot-mega__promo-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.balinot-mega__promo-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.7);
}

.balinot-mega__promo-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.balinot-mega__inner {
  grid-template-columns: 160px minmax(0, 1.9fr) 300px;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 24px;
  min-height: 360px;
}

.balinot-mega__col--fixed {
  padding-top: 0;
  padding-right: 16px;
}

.balinot-mega__content--dense {
  gap: 16px;
}

.balinot-mega__topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.balinot-mega__heading {
  display: grid;
  gap: 6px;
}

.balinot-mega__topmeta {
  display: grid;
  gap: 8px;
  max-width: 360px;
  justify-items: end;
}

.balinot-mega__headline {
  font-size: 26px;
  line-height: 0.98;
}

.balinot-mega__summary {
  max-width: none;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.balinot-mega__toplink {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #18181b;
}

.balinot-mega__description-inline {
  margin: -2px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(39, 39, 42, 0.72);
}

.balinot-mega__body {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(
      220px,
      0.95fr
    );
  gap: 16px;
  align-items: start;
}

.balinot-mega__cluster {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.balinot-mega__cluster--stack {
  min-width: 220px;
}

.balinot-mega__cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.balinot-mega__cluster-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 700;
  color: #18181b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.balinot-mega__cluster-note {
  font-size: 11px;
  line-height: 1;
  color: rgba(39, 39, 42, 0.45);
}

.balinot-mega__cluster-list,
.balinot-mega__product-list,
.balinot-mega__stack {
  display: grid;
  gap: 10px;
}

.balinot-mega__cluster-link {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--balinot-nav-radius-sm);
  background: #fafafa;
  border: 1px solid rgba(39, 39, 42, 0.08);
  text-decoration: none;
  color: #18181b;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.balinot-mega__cluster-link:hover {
  border-color: rgba(39, 39, 42, 0.16);
  background: #fafafa;
}

.balinot-mega__cluster-link-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #18181b;
}

.balinot-mega__cluster-link-meta {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(39, 39, 42, 0.58);
}

.balinot-mega__cluster-link-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(39, 39, 42, 0.62);
}

.balinot-mega__product-item,
.balinot-mega__stack-card,
.balinot-mega__micro-promo {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: var(--balinot-nav-radius-md);
  border: 1px solid rgba(39, 39, 42, 0.08);
  background: #fff;
  text-decoration: none;
  color: #18181b;
}

.balinot-mega__product-media,
.balinot-mega__stack-card-media,
.balinot-mega__micro-promo-media {
  display: block;
  overflow: hidden;
  width: 64px;
  height: 78px;
  border-radius: var(--balinot-nav-radius-xs);
  background: #f4f4f5;
}

.balinot-mega__product-copy,
.balinot-mega__stack-card-copy,
.balinot-mega__micro-promo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}

.balinot-mega__product-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #18181b;
}

.balinot-mega__product-price {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(39, 39, 42, 0.68);
}

.balinot-mega__product-price .amount,
.balinot-mega__product-price bdi,
.balinot-mega__product-price ins,
.balinot-mega__product-price del {
  color: inherit;
  text-decoration: none;
}

.balinot-mega__stack-card-meta {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(39, 39, 42, 0.48);
}

.balinot-mega__stack-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(39, 39, 42, 0.62);
}

.balinot-mega__directory {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.balinot-mega__promo {
  gap: 12px;
  padding: 12px;
  border-radius: var(--balinot-nav-radius-xl);
}

.balinot-mega__promo-media {
  aspect-ratio: 0.88;
}

.balinot-mega__promo-title {
  font-size: 20px;
}

.balinot-mega__promo-desc {
  font-size: 12px;
  line-height: 1.5;
}

.balinot-mega__micro-promo {
  grid-template-columns: 78px minmax(0, 1fr);
  padding: 12px;
  border-radius: var(--balinot-nav-radius-lg);
  background: #fafafa;
}

.balinot-mega__micro-promo-media {
  width: 78px;
  height: 94px;
  border-radius: var(--balinot-nav-radius-sm);
}

.balinot-mega__content--blog {
  grid-template-rows: auto auto 1fr;
}

.balinot-mega__blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.balinot-mega__blog-feature {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--balinot-nav-radius-lg);
  border: 1px solid rgba(39, 39, 42, 0.08);
  background: #fff;
  text-decoration: none;
  color: #18181b;
}

.balinot-mega__blog-feature-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 0.92;
  border-radius: var(--balinot-nav-radius-sm);
  background: #f4f4f5;
}

.balinot-mega__blog-feature-copy,
.balinot-mega__blog-post-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.balinot-mega__blog-feature-title,
.balinot-mega__blog-post-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #18181b;
}

.balinot-mega__blog-feature-excerpt,
.balinot-mega__blog-post-excerpt {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(39, 39, 42, 0.68);
}

.balinot-mega__blog-feature-cta {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18181b;
}

.balinot-mega__blog-list {
  display: grid;
  gap: 10px;
}

.balinot-mega__blog-post {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--balinot-nav-radius-md);
  border: 1px solid rgba(39, 39, 42, 0.08);
  background: #fafafa;
  text-decoration: none;
  color: #18181b;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .balinot-mega {
    display: none;
  }
  .balinot-header::after {
    display: none;
  }
}

.balinot-mega__fixedlink {
  display: block;
  text-decoration: none;
  margin: 10px 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}
.balinot-mega__fixedlink.is-strong {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.9);
}

/* =========================================
   MOBILE HEADER / DRAWER (solo <1024)
   ========================================= */
.balinot-header__mobile {
  display: none;
}

@media (max-width: 1024px) {
  /* Ocultamos SOLO la estructura desktop */
  .balinot-header__inner {
    display: none;
  }

  /* Activamos barra móvil */
  .balinot-header__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--balinot-header-h);
    padding: 0 var(--balinot-pad-x);
    gap: 12px;
  }

  .balinot-header__logo--mobile .balinot-header__logo-img {
    height: 18px;
    width: auto;
  }

  .balinot-header__mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .site-header-mobile__inner {
    height: 100%;
    min-height: 0;
  }

  .site-header-mobile__logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Burger */
  .balinot-burger {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
  }
  .balinot-burger span {
     display: block;
     width: 30px;
     height: 2px;
     background: #fff;
     transition: all 0.3s ease-in-out;
  }

  .balinot-header__mobile-actions {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  /* Drawer base */
  .balinot-mobile {
    position: fixed;
    inset: 0;
    z-index: 100110;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  .site-header-mobile.is-mobile-menu-open {
    z-index: 100100;
  }
  .balinot-mobile.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .balinot-mobile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
  }

  .balinot-mobile__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 360px);
    background: #fff;
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    display: flex;
    flex-direction: column;
  }
  .balinot-mobile.is-open .balinot-mobile__panel {
    transform: translateX(0);
  }

  .balinot-mobile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .balinot-mobile__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .balinot-mobile__close {
    border: 0;
    background: transparent;
    font-size: 18px;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .balinot-mobile__content {
    padding: 14px 16px 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  .balinot-mobile__search {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 6px;
    margin-bottom: 14px;
  }
  .balinot-mobile__search input {
    width: 100%;
    height: 40px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
  }

  /* Menú móvil */
  .balinot-mnav {
    display: grid;
    gap: 10px;
  }

  .balinot-mnav__link {
    display: flex;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.85);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .balinot-mnav__group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 6px;
  }

  .balinot-mnav__trigger {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;

    color: rgba(0, 0, 0, 0.85);
    font-size: 15px;
    font-weight: 700;
  }

  .balinot-mnav__panel {
    display: none;
    padding: 2px 0 10px 0;
  }
  .balinot-mnav__panel.is-open {
    display: block;
  }

  .balinot-mnav__sublink {
    display: flex;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
  }

  .balinot-mobile__footer {
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
@media (max-width: 1024px) {
  .balinot-mcats {
    display: grid;
    gap: 6px;
    margin-top: 6px;
  }

  .balinot-mcat {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .balinot-mcat__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }

  .balinot-mcat__link {
    flex: 1;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
    font-weight: 600;
  }

  .balinot-mcat__toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .balinot-mcat__chev {
    display: block;
    font-size: 22px;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
    line-height: 1;
    color: rgba(0, 0, 0, 0.6);
  }

  .balinot-mcat__panel {
    display: none;
    padding: 0 0 12px 12px; /* indent */
  }
  .balinot-mcat__panel.is-open {
    display: block;
  }

  /* Flecha rota cuando está abierto */
  .balinot-mcat.is-open > .balinot-mcat__row .balinot-mcat__chev {
    transform: rotate(90deg);
  }

  /* sublinks más suaves */
  .balinot-mcat__panel .balinot-mcat__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
  }
}



/* Hitbox grande para evitar pixel-perfect */
.balinot-nav-primary__link {
   font-family: 'Poppins';
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    gap: 10px;
}

.balinot-nav-primary__link .balinot-nav-primary__dropdown-icon svg {
  transition: all 0.3s ease-in-out;
}

.balinot-nav-primary__submenu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: max-content;
    min-width: 215px;
    padding: 15px 25px;
    background-color: #fff;
    position: absolute;
    top: 68px;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.is-megamenu .balinot-nav-primary__submenu{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    flex-direction: column;
    gap: 24px;
    width: 97%;
    max-width: 1370px;
    padding: 30px 30px;
    left: 50%;
    transform: translateX(-50%);
}

.balinot-nav-primary__submenu::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 34px;
    top: -31px;
    background-color: transparent;
    opacity: 0;
    left: 0px;
}

.balinot-nav-primary__item:hover .balinot-nav-primary__submenu {
  opacity: 1;
  visibility: visible;
}

.balinot-nav-primary__submenu .balinot-nav-primary__submenu-item .balinot-nav-primary__submenu-link {
    display: inline-block;
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 500;
    margin-bottom: 5px;
}

.is-megamenu .balinot-nav-primary__submenu .balinot-nav-primary__submenu-item .balinot-nav-primary__submenu-link{
   color: #C1C1C1;
}
.balinot-nav-primary__submenu .balinot-nav-primary__submenu-item .balinot-nav-primary__subsubmenu * {
  font-family: 'Poppins';
    font-size: 14px;
    color: #1A1A1A;
}
.balinot-nav-primary__submenu .balinot-nav-primary__submenu-item .balinot-nav-primary__subsubmenu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}




/* Header animation */

.header-hidden,
.header-hidden-main {
    transform: translateY(-100%);
}

.header-language-switcher a.active{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header scroll css */

.scroll-header{
  background-color: rgb(255 255 255 / 85%);
  backdrop-filter: blur(12px);
  box-shadow: 0px 0px 15px 0px #C1C1C126;
}

@media (max-width: 1024px) {
  .scroll-header{
    backdrop-filter: unset;
  }
}
/* Home menu css */

.home .balinot-nav-primary__link,
.home .balinot-nav-primary__link .balinot-nav-primary__dropdown-icon svg,
.home .header-language-switcher *,
.home .btn-custom-links,
.home .header-language-switcher a.active,
.home .header-language-switcher a.active:hover{
  color: #fff;
}

.home .language-switcher-wrap span.line{
  background-color: #FFFFFF33;
}

.home .balinot-nav-primary__link:hover,
.home .balinot-nav-primary__link:hover .balinot-nav-primary__dropdown-icon svg,
.home .btn-custom-links:hover,
.home .header-language-switcher a:hover {
  color: #C1C1C1;
}

/* Scroll header effects in home */

.home .scroll-header .balinot-nav-primary__link,
.home .scroll-header .balinot-nav-primary__link .balinot-nav-primary__dropdown-icon svg,
.home .scroll-header .header-language-switcher *,
.home .scroll-header .btn-custom-links,
.home .scroll-header .header-language-switcher a.active,
.home .scroll-header .header-language-switcher a.active:hover{
  color: #646661;
}

.home .scroll-header .language-switcher-wrap span.line{
  background-color: #1A1A1A33;
}

.home .scroll-header .balinot-nav-primary__link:hover,
.home .scroll-header .balinot-nav-primary__link:hover .balinot-nav-primary__dropdown-icon svg,
.home .scroll-header .header-language-switcher a:hover,
.home .scroll-header .btn-custom-links:hover{
  color: #F15B1E;
}

/* Other pages menu */

.balinot-nav-primary__link,
.balinot-nav-primary__link .balinot-nav-primary__dropdown-icon svg,
.header-language-switcher *,
.btn-custom-links,
.header-language-switcher a.active,
.header-language-switcher a.active:hover{
  color: #646661;
}

.language-switcher-wrap span.line{
  background-color: #1A1A1A33;
}

.balinot-nav-primary__link:hover,
.balinot-nav-primary__link:hover .balinot-nav-primary__dropdown-icon svg,
.header-language-switcher a:hover,
.btn-custom-links:hover{
  color: #F15B1E;
}



/* Submenu css */

.balinot-nav-primary__submenu a:hover,
.balinot-nav-primary__submenu .balinot-nav-primary__submenu-item.active > a,
.balinot-nav-primary__submenu .balinot-nav-primary__submenu-item.active > .balinot-nav-primary__subsubmenu .balinot-nav-primary__subsubmenu-item.active > a{
  color: #F15B1E !important;
}


.balinot-nav-primary__item.active > a,
.balinot-nav-primary__item.active > a .balinot-nav-primary__dropdown-icon svg{
  color: #F15B1E;
}




/* mobile header animtion for home */

.home .header-language-switcher *,
.home .btn-custom-links,
.home .header-language-switcher a.active{
  color: #fff;
}
.home .balinot-burger span{
  background-color: #fff;
}
.home .site-header-mobile__logo-image{
  filter: unset;
}


.home .scroll-header .header-language-switcher *,
.home .scroll-header .btn-custom-links,
.home .scroll-header .header-language-switcher a.active{
  color: #646661;
}
.home .scroll-header .balinot-burger span{
  background-color: #646661;
}
.home .scroll-header  .site-header-mobile__logo-image{
  filter: brightness(0) saturate(100%) invert(40%) sepia(5%) saturate(341%) hue-rotate(42deg) brightness(95%) contrast(89%);
}


/* mobile header animtion for other pages */

.header-language-switcher *,
.btn-custom-links,
.header-language-switcher a.active{
  color: #646661;
}
.balinot-burger span{
  background-color: #646661;
}
.site-header-mobile__logo-image{
  filter: brightness(0) saturate(100%) invert(40%) sepia(5%) saturate(341%) hue-rotate(42deg) brightness(95%) contrast(89%);
}






.balinot-mobile .nav-mobile .nav-mobile_link a span,
.balinot-mobile .nav-mobile .nav-mobile_link button svg{
   transition: all 0.3s ease-in-out;
}

.balinot-mobile .nav-mobile .nav-mobile_link:hover a span,
.balinot-mobile .nav-mobile .nav-mobile_link:hover button svg,
.balinot-mobile .nav-mobile .nav-mobile_link  a.active span,
.balinot-mobile .nav-mobile .nav-mobile_link .active a span,
.balinot-mobile .nav-mobile .nav-mobile_link .active button svg{
  color: #F15B1E;
}







