/* ============================================================
   MAY · Megamenú premium V7 — prototipo aislado
   Namespace: .may-*  ·  No toca producción
   ============================================================ */

#av-premium-header .may-menu-host,
#av-premium-header .may-menu-host * {
  box-sizing: border-box;
}

#av-premium-header .may-menu-host {
  --may-bg: #070a0f;
  --may-panel: rgba(14, 19, 27, .985);
  --may-panel-2: rgba(9, 13, 19, .99);
  --may-surface: rgba(255, 255, 255, .035);
  --may-surface-2: rgba(255, 255, 255, .055);
  --may-line: rgba(126, 174, 224, .16);
  --may-line-soft: rgba(255, 255, 255, .065);
  --may-text: #eef6ff;
  --may-muted: rgba(226, 238, 250, .62);
  --may-soft: rgba(226, 238, 250, .42);
  --may-blue: #48b9ff;
  --may-cyan: #6fd8ff;
  --may-cyan-soft: #bdeaff;
  --may-cta: #f2054f;
  position: relative !important;
  z-index: 1030;
}

/* ---------- fila de menú: misma geometría que la barra real ---------- */
#av-premium-header .may-menu-host .may-menubar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 8px 2px;
}

#av-premium-header .may-menu-host .may-menubar > .may-spacer {
  flex: 1 1 auto;
}

#av-premium-header .may-menu-host .may-toplink,
#av-premium-header .may-menu-host .may-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .014));
  border-color: rgba(255, 255, 255, .055);
  color: rgba(226, 240, 250, .94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
  font: 500 14.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

#av-premium-header .may-menu-host .may-toplink:hover,
#av-premium-header .may-menu-host .may-toplink:focus-visible,
#av-premium-header .may-menu-host .may-trigger:hover,
#av-premium-header .may-menu-host .may-trigger:focus-visible {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 0%, rgba(72, 174, 255, .16), transparent 38%),
    linear-gradient(180deg, rgba(22, 32, 45, .98), rgba(14, 19, 27, .99));
  border-color: rgba(72, 174, 255, .34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(72, 174, 255, .08) inset, inset 0 -3px 0 #f2054f;
}

#av-premium-header .may-menu-host .may-toplink::after,
#av-premium-header .may-menu-host .may-trigger::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2054f, #ff3f79);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

#av-premium-header .may-menu-host .may-toplink:hover::after,
#av-premium-header .may-menu-host .may-toplink:focus-visible::after,
#av-premium-header .may-menu-host .may-trigger:hover::after,
#av-premium-header .may-menu-host .may-trigger:focus-visible::after,
#av-premium-header .may-menu-host .may-trigger[aria-expanded="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

#av-premium-header .may-menu-host .may-trigger[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(72, 185, 255, .14);
  border-color: rgba(72, 185, 255, .45);
  box-shadow: 0 0 0 1px rgba(72, 185, 255, .12), 0 8px 24px rgba(0, 0, 0, .35);
}

#av-premium-header .may-menu-host .may-trigger .may-chev {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

#av-premium-header .may-menu-host .may-trigger[aria-expanded="true"] .may-chev {
  transform: rotate(225deg) translateY(-1px);
}

/* ---------- panel ---------- */
#av-premium-header .may-panel {
  position: absolute;
  top: calc(100% + 17px);
  left: 0;
  width: min(100%, 1580px);
  max-height: calc(100vh - 172px);
  padding: 0;
  overflow: visible;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, .62));
  opacity: 0;
  transform: translateY(-6px) scale(.995);
  transform-origin: 12% 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .16s ease;
}

#av-premium-header .may-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#av-premium-header .may-panel__backplate {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 174, 224, .22);
  background:
    radial-gradient(1200px 380px at 18% -12%, rgba(72, 185, 255, .10), transparent 62%),
    linear-gradient(160deg, rgba(15, 21, 30, .99) 0%, rgba(7, 10, 15, .995) 62%, rgba(10, 15, 22, .995) 100%);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), inset 0 0 0 1px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* micro-rejilla táctica ~3,5 % */
#av-premium-header .may-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 190, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(85% 85% at 30% 10%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 85% at 30% 10%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* spotlight reactivo */
#av-premium-header .may-spotlight {
  position: absolute;
  inset: 1px;
  background: radial-gradient(340px circle at var(--may-mx, 30%) var(--may-my, 0%), rgba(72, 185, 255, .095), transparent 62%);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

#av-premium-header .may-panel.is-open .may-spotlight {
  opacity: 1;
}

#av-premium-header .may-panel__inner {
  position: relative;
  z-index: 2;
  padding: 18px 24px 24px;
  max-height: calc(100vh - 172px);
  display: flex;
  flex-direction: column;
}

/* ---------- franja de raíces ---------- */
#av-premium-header .may-roots {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--may-line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 185, 255, .35) transparent;
}

#av-premium-header .may-roots::-webkit-scrollbar {
  height: 4px;
}

#av-premium-header .may-roots::-webkit-scrollbar-thumb {
  background: rgba(72, 185, 255, .35);
  border-radius: 4px;
}

#av-premium-header .may-root {
  position: relative;
  flex: 0 0 auto;
  width: 69px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px 5px;
  border-radius: 9px;
  color: var(--may-muted);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

#av-premium-header .may-root:hover,
#av-premium-header .may-root.is-hover {
  color: #ffffff;
  background: rgba(72, 185, 255, .075);
}

#av-premium-header .may-root.is-committed {
  color: #ffffff;
  background: rgba(72, 185, 255, .10);
}

#av-premium-header .may-root__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(126, 174, 224, .22);
  border-radius: 8px;
  background: #0a0e14;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

#av-premium-header .may-root:hover .may-root__frame,
#av-premium-header .may-root.is-hover .may-root__frame {
  border-color: rgba(72, 185, 255, .62);
  background: #0c131c;
  box-shadow: 0 0 0 1px rgba(72, 185, 255, .18), 0 0 18px rgba(72, 185, 255, .22);
}

#av-premium-header .may-root.is-committed .may-root__frame {
  border-color: var(--may-blue);
  box-shadow: 0 0 0 1px rgba(72, 185, 255, .30), 0 0 22px rgba(72, 185, 255, .30);
}

#av-premium-header .may-root__frame img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
}

#av-premium-header .may-root__label {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 72px;
  min-height: 32px;
  font-size: 10.2px;
  line-height: 1.13;
  text-align: center;
  letter-spacing: .01em;
  color: rgba(226, 238, 250, .72);
}

/* ---------- cabecera del panel ---------- */
#av-premium-header .may-head {
  padding: 14px 2px 10px;
}

#av-premium-header .may-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 13px;
  margin-bottom: 5px;
  color: rgba(160, 212, 242, .74);
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#av-premium-header .may-crumb b {
  color: rgba(198, 231, 250, .88);
  font-weight: 600;
}

#av-premium-header .may-crumb i {
  font-style: normal;
  color: rgba(111, 216, 255, .45);
}

#av-premium-header .may-title {
  display: block;
  margin: 0;
  min-height: 36px;
  color: #cdefff;
  font: 600 clamp(22px, 2.05vw, 31px)/1.08 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(72, 185, 255, .22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#av-premium-header .may-rule {
  position: relative;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(72, 185, 255, .80) 0%, rgba(72, 185, 255, .38) 42%, rgba(126, 174, 224, .10) 100%);
  overflow: hidden;
}

#av-premium-header .may-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9f5ff, transparent);
  opacity: 0;
}

#av-premium-header .may-rule.is-pulse::after {
  animation: may-sweep .18s ease-out 1;
}

@keyframes may-sweep {
  0% { left: -30%; opacity: .9; }
  100% { left: 105%; opacity: 0; }
}

/* ---------- cuerpo ---------- */
#av-premium-header .may-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, .72fr);
  gap: 0 18px;
  min-height: 0;
  overflow: hidden;
  padding-top: 14px;
}

#av-premium-header .may-body.is-single {
  grid-template-columns: minmax(0, 1fr);
}

#av-premium-header .may-col {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 185, 255, .28) transparent;
}

#av-premium-header .may-col::-webkit-scrollbar {
  width: 4px;
}

#av-premium-header .may-col::-webkit-scrollbar-thumb {
  background: rgba(72, 185, 255, .28);
  border-radius: 4px;
}

#av-premium-header .may-col--second {
  padding-right: 4px;
}

#av-premium-header .may-grid2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
}

#av-premium-header .may-grid2.is-sparse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#av-premium-header .may-grid2.is-sparse .may-card {
  min-height: 62px;
}

#av-premium-header .may-col-foot {
  display: flex;
  justify-content: flex-end;
  padding: 8px 2px 0;
}

#av-premium-header .may-divider {
  align-self: stretch;
  width: 1px;
  background: linear-gradient(180deg, rgba(72, 185, 255, .05), rgba(72, 185, 255, .30) 18%, rgba(126, 174, 224, .22) 80%, rgba(72, 185, 255, .04));
}

/* ---------- tarjeta ---------- */
#av-premium-header .may-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 30px 6px 6px;
  border-radius: 10px;
  overflow: visible;
  transition: background-color .16s ease;
}

#av-premium-header .may-card__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 10px;
  background: var(--may-surface);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  pointer-events: none;
  transition: background-color .16s ease, border-color .16s ease;
}

#av-premium-header .may-card:hover .may-card__surface,
#av-premium-header .may-card.is-hover .may-card__surface {
  border-color: rgba(72, 185, 255, .34);
  background: rgba(72, 185, 255, .085);
}

#av-premium-header .may-card.is-committed .may-card__surface {
  border-color: rgba(72, 185, 255, .55);
  background: linear-gradient(90deg, rgba(72, 185, 255, .17), rgba(72, 185, 255, .075));
}

/* esquinas target-lock: 8 gradientes, no recortadas */
#av-premium-header .may-corners {
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .13s ease, transform .14s ease;
  background:
    linear-gradient(var(--may-cyan), var(--may-cyan)) left top / 7px 1px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) left top / 1px 7px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) right top / 7px 1px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) right top / 1px 7px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) left bottom / 7px 1px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) left bottom / 1px 7px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) right bottom / 7px 1px no-repeat,
    linear-gradient(var(--may-cyan), var(--may-cyan)) right bottom / 1px 7px no-repeat;
  filter: drop-shadow(0 0 4px rgba(111, 216, 255, .55));
}

#av-premium-header .may-card.is-hover .may-corners,
#av-premium-header .may-card.is-committed .may-corners,
#av-premium-header .may-card:focus-within .may-corners {
  opacity: 1;
  transform: scale(1);
}

#av-premium-header .may-card.is-committed .may-corners {
  opacity: .60;
  transform: scale(.985);
}

#av-premium-header .may-card.is-hover,
#av-premium-header .may-card.is-committed {
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
}

#av-premium-header .may-card:focus-within {
  outline: 2px solid rgba(189, 234, 255, .85);
  outline-offset: 3px;
  border-radius: 10px;
}

#av-premium-header .may-card__link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
  border-radius: 7px;
}

#av-premium-header .may-card__link:focus-visible {
  outline: none;
}

#av-premium-header .may-card__media {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(126, 174, 224, .16);
  border-radius: 6px;
  background: #0a0e14;
  overflow: hidden;
}

#av-premium-header .may-card__media img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

#av-premium-header .may-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(238, 246, 255, .92);
  font-size: 12.2px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .005em;
}

#av-premium-header .may-card.is-committed .may-card__name,
#av-premium-header .may-card.is-hover .may-card__name {
  color: #ffffff;
}

#av-premium-header .may-card.is-committed .may-card__name {
  color: var(--may-cyan-soft);
}

#av-premium-header .may-expand {
  position: absolute;
  right: 4px;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(189, 234, 255, .65);
  cursor: pointer;
  opacity: 0;
  transition: opacity .13s ease, background-color .13s ease, border-color .13s ease;
}

#av-premium-header .may-card:hover .may-expand,
#av-premium-header .may-card:focus-within .may-expand,
#av-premium-header .may-card.is-committed .may-expand {
  opacity: 1;
}

#av-premium-header .may-expand:hover,
#av-premium-header .may-expand:focus-visible {
  background: rgba(72, 185, 255, .16);
  border-color: rgba(72, 185, 255, .40);
  color: #ffffff;
}

#av-premium-header .may-expand svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ---------- columna tercer nivel ---------- */
#av-premium-header .may-third-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 2px 8px;
  border-bottom: 1px solid rgba(126, 174, 224, .12);
  margin-bottom: 6px;
}

#av-premium-header .may-third-title {
  color: rgba(189, 234, 255, .92);
  font: 600 10.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#av-premium-header .may-third-all {
  flex: 0 0 auto;
  color: rgba(111, 216, 255, .86);
  font-size: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 216, 255, .26);
  white-space: nowrap;
}

#av-premium-header .may-third-all:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, .55);
}

#av-premium-header .may-third-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#av-premium-header .may-third-list.is-multi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px 10px;
}

@media (max-width: 991px) {
  #av-premium-header .may-third-list.is-multi {
    grid-template-columns: minmax(0, 1fr);
  }
}

#av-premium-header .may-third-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 5px 8px 5px 11px;
  border-radius: 7px;
  color: rgba(232, 243, 253, .88);
  font-size: 12.5px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .13s ease, color .13s ease, padding-left .13s ease;
}

#av-premium-header .may-third-link::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(72, 185, 255, .42);
  transition: background-color .13s ease, box-shadow .13s ease;
}

#av-premium-header .may-third-link:hover,
#av-premium-header .may-third-link:focus-visible,
#av-premium-header .may-third-link.is-hover {
  color: #ffffff;
  background: rgba(72, 185, 255, .09);
  padding-left: 14px;
}

#av-premium-header .may-third-link:hover::before,
#av-premium-header .may-third-link.is-hover::before {
  background: var(--may-cyan);
  box-shadow: 0 0 8px rgba(111, 216, 255, .7);
}

/* ---------- hoja / sin descendientes ---------- */
#av-premium-header .may-leaf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 14px;
  border: 1px solid rgba(126, 174, 224, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

#av-premium-header .may-leaf p {
  margin: 0;
  color: var(--may-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

#av-premium-header .may-leaf a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(72, 185, 255, .38);
  border-radius: 7px;
  background: rgba(72, 185, 255, .10);
  color: #dff4ff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

#av-premium-header .may-leaf a:hover {
  background: rgba(72, 185, 255, .18);
}

#av-premium-header .may-empty {
  padding: 8px 10px;
  color: var(--may-soft);
  font-size: 11px;
  line-height: 1.45;
}

/* ---------- cascada ---------- */
#av-premium-header .may-card,
#av-premium-header .may-third-link {
  animation: may-in .15s ease both;
}

@keyframes may-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- móvil / tableta ---------- */
@media (max-width: 991px) {
  #av-premium-header .may-menu-host .may-menubar {
    flex-wrap: wrap;
    gap: 2px;
    min-height: 40px;
  }

  #av-premium-header .may-menu-host .may-toplink,
  #av-premium-header .may-menu-host .may-trigger {
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  #av-premium-header .may-panel {
    position: fixed;
    top: var(--may-top, 120px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--may-top, 120px));
    filter: none;
  }

  #av-premium-header .may-panel__backplate {
    border-radius: 0;
    clip-path: none;
    border-left: 0;
    border-right: 0;
  }

  #av-premium-header .may-panel__inner {
    max-height: calc(100vh - var(--may-top, 120px));
    padding: 14px 14px 24px;
    overflow-y: auto;
  }

  #av-premium-header .may-roots {
    padding-bottom: 10px;
  }

  #av-premium-header .may-title {
    font-size: 22px;
    white-space: normal;
  }

  #av-premium-header .may-body {
    display: block;
    overflow: visible;
  }

  #av-premium-header .may-col {
    overflow: visible;
  }

  #av-premium-header .may-divider {
    display: none;
  }

  #av-premium-header .may-grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #av-premium-header .may-card {
    min-height: 46px;
  }

  #av-premium-header .may-third-wrap {
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(126, 174, 224, .12);
  }

  #av-premium-header .may-third-wrap.is-inline {
    grid-column: 1 / -1;
    margin: 4px 0 8px;
    padding: 10px 10px 12px;
    border: 1px solid rgba(72, 185, 255, .18);
    border-radius: 10px;
    background: rgba(72, 185, 255, .045);
  }

  #av-premium-header .may-third-link {
    min-height: 36px;
    font-size: 12.5px;
  }

  /* en móvil el expander siempre visible */
  #av-premium-header .may-expand {
    opacity: 1;
  }
}

@media (max-width: 540px) {
  #av-premium-header .may-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }

  #av-premium-header .may-root {
    width: 62px;
  }

  #av-premium-header .may-root__frame {
    width: 42px;
    height: 42px;
  }

  #av-premium-header .may-root__frame img {
    width: 36px;
    height: 36px;
  }
}

/* ---------- reducción de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  #av-premium-header .may-panel,
  #av-premium-header .may-panel.is-open,
  #av-premium-header .may-card,
  #av-premium-header .may-third-link,
  #av-premium-header .may-corners,
  #av-premium-header .may-spotlight {
    animation: none !important;
    transition: none !important;
  }

  #av-premium-header .may-rule.is-pulse::after {
    animation: none !important;
  }

  #av-premium-header .may-spotlight {
    display: none !important;
  }
}


/* ---------- cabecera de columna ---------- */
#av-premium-header .may-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 8px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(126, 174, 224, .12);
}

#av-premium-header .may-col-head__label {
  color: rgba(189, 234, 255, .72);
  font: 600 9.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#av-premium-header .may-col-head__all {
  flex: 0 0 auto;
  color: rgba(111, 216, 255, .78);
  font-size: 9.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 216, 255, .22);
  white-space: nowrap;
}

#av-premium-header .may-col-head__all:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .55);
}

/* V8.6 · hueco neutro: superficie limpia, sin letras ni glifos. */
#av-premium-header .may-ico__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(72, 185, 255, .075), rgba(255, 255, 255, .012));
}

/* ============================================================
   V8.1 — 17 raíces en dos filas, iconos reales en L3,
   tratamiento cromático selectivo y conmutador de QA
   ============================================================ */

/* panel flexible: la franja de dos filas no debe empujar el cuerpo fuera del viewport */
#av-premium-header .may-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
}

#av-premium-header .may-panel__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

#av-premium-header .may-roots,
#av-premium-header .may-head {
  flex: 0 0 auto;
}

#av-premium-header .may-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* franja: 9 + 8, sin scroll horizontal en escritorio */
#av-premium-header .may-roots {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px 5px;
  padding: 2px 2px 12px;
  overflow: visible;
}

#av-premium-header .may-root {
  width: auto;
  min-height: 87px;
  padding: 4px 2px 6px;
  gap: 4px;
}

#av-premium-header .may-root__frame {
  width: 42px;
  height: 42px;
}

#av-premium-header .may-root__frame img {
  width: 38px;
  height: 38px;
}

#av-premium-header .may-root__label {
  max-width: none;
  min-height: 29px;
  font-size: clamp(12.5px, .86vw, 13px);
  line-height: 1.14;
  -webkit-line-clamp: 3;
  letter-spacing: 0;
}

/* icono: contenedor común */
#av-premium-header .may-ico {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
}

#av-premium-header .may-ico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* tinte azul solo en pictogramas monocromáticos; alfa intacto */
#av-premium-header .may-ico--mono img {
  transition: filter .16s ease;
}

#av-premium-header .may-root:hover .may-ico--mono img,
#av-premium-header .may-root.is-hover .may-ico--mono img,
#av-premium-header .may-root.is-committed .may-ico--mono img,
#av-premium-header .may-card:hover .may-ico--mono img,
#av-premium-header .may-card.is-hover .may-ico--mono img,
#av-premium-header .may-card.is-committed .may-ico--mono img,
#av-premium-header .may-third-link:hover .may-ico--mono img,
#av-premium-header .may-third-link.is-hover .may-ico--mono img {
  filter: var(--may-tint);
}

/* logotipos de marca y pictogramas con color real: identidad intacta */
#av-premium-header .may-ico--brand img,
#av-premium-header .may-ico--color img {
  filter: none;
}

#av-premium-header .may-root:hover .may-ico--brand img,
#av-premium-header .may-root.is-committed .may-ico--brand img,
#av-premium-header .may-card:hover .may-ico--brand img,
#av-premium-header .may-card.is-committed .may-ico--brand img {
  filter: brightness(1.22) contrast(1.04);
}

/* modo QA: holograma oscuro */
html[data-may-icons="holo"] #av-premium-header .may-root:hover .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-root.is-hover .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-root.is-committed .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-card:hover .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-card.is-hover .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-card.is-committed .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-third-link:hover .may-ico--mono img,
html[data-may-icons="holo"] #av-premium-header .may-third-link.is-hover .may-ico--mono img {
  filter: var(--may-tint-holo);
}

/* nivel 3 con icono real */
#av-premium-header .may-third-link {
  gap: 8px;
  min-height: 37px;
  padding: 4px 8px 4px 6px;
}

#av-premium-header .may-third-link::before {
  display: none;
}

#av-premium-header .may-third-link:hover,
#av-premium-header .may-third-link:focus-visible,
#av-premium-header .may-third-link.is-hover {
  padding-left: 6px;
}

#av-premium-header .may-ico--l3 {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(126, 174, 224, .16);
  border-radius: 5px;
  background: #090d13;
  overflow: hidden;
}

#av-premium-header .may-ico--l3 img {
  width: 23px;
  height: 23px;
}

#av-premium-header .may-third-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#av-premium-header .may-third-list.is-multi .may-third-name {
  white-space: normal;
}

/* tarjeta L2: icono algo mayor */
#av-premium-header .may-card__media {
  width: 38px;
  height: 38px;
}

#av-premium-header .may-card__media .may-ico img {
  width: 34px;
  height: 34px;
}

/* hoja directa */
#av-premium-header .may-leaf__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 174, 224, .18);
  border-radius: 12px;
  background: #090d13;
}

#av-premium-header .may-leaf__icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

#av-premium-header .may-leaf__name {
  color: #eaf7ff;
  font-size: 17px;
  font-weight: 600;
}

/* conmutador QA, fuera de la navegación comercial */
.may-qa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(126, 174, 224, .30);
  border-radius: 9px;
  background: rgba(8, 12, 18, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(206, 236, 255, .72);
}

.may-qa[data-qa]::before {
  content: "QA";
  color: #6fd8ff;
  margin-right: 2px;
}

.may-qa button {
  appearance: none;
  border: 1px solid rgba(126, 174, 224, .22);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: rgba(226, 240, 250, .78);
  padding: 5px 8px;
  font: inherit;
  letter-spacing: .04em;
  cursor: pointer;
}

.may-qa button.is-on {
  border-color: rgba(72, 185, 255, .72);
  background: rgba(72, 185, 255, .16);
  color: #ecfaff;
}

.may-qa button:focus-visible {
  outline: 2px solid #8fe3ff;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  #av-premium-header .may-roots {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
  }

  #av-premium-header .may-root {
    min-height: 78px;
  }

  #av-premium-header .may-root__label {
    font-size: 10.5px;
    -webkit-line-clamp: 2;
    min-height: 24px;
  }

  #av-premium-header .may-root__frame {
    width: 38px;
    height: 38px;
  }

  #av-premium-header .may-root__frame img {
    width: 34px;
    height: 34px;
  }

  #av-premium-header .may-qa {
    right: 8px;
    bottom: 8px;
  }
}

@media (max-width: 540px) {
  #av-premium-header .may-root {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #av-premium-header .may-ico img {
    transition: none !important;
  }
}

/* ---------- V8.1 correcciones de equilibrio y responsive ---------- */

/* 9 + 8 con la segunda fila centrada: evita el hueco seco a la derecha */
#av-premium-header .may-roots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 5px;
  overflow: visible;
}

#av-premium-header .may-root {
  flex: 0 0 calc((100% - 44px) / 9);
  width: auto;
}

/* enlaces de columna más legibles */
#av-premium-header .may-col-head__all,
#av-premium-header .may-third-all {
  font-size: 11px;
  color: rgba(139, 226, 255, .92);
  border-bottom-color: rgba(111, 216, 255, .38);
}

/* tableta: 6 columnas, 3 filas; sin micro-etiquetas de 10 px */
@media (max-width: 991px) {
  #av-premium-header .may-panel {
    max-height: calc(100vh - var(--may-top, 120px) - 8px);
  }

  #av-premium-header .may-panel__inner {
    max-height: calc(100vh - var(--may-top, 120px) - 8px);
    overflow-y: auto;
  }

  #av-premium-header .may-roots {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  #av-premium-header .may-root {
    flex: 0 0 calc((100% - 29px) / 6);
    min-height: 82px;
  }

  #av-premium-header .may-root__label {
    font-size: 11.5px;
    line-height: 1.15;
    -webkit-line-clamp: 3;
    min-height: 26px;
  }
}

/* móvil: dos filas con scroll horizontal, sin aplastar a 35 px */
@media (max-width: 540px) {
  #av-premium-header .may-roots {
    display: grid;
    grid-template-columns: repeat(9, 74px);
    grid-template-rows: repeat(2, auto);
    gap: 3px 4px;
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 9px;
    scrollbar-width: thin;
  }

  #av-premium-header .may-root {
    width: 74px;
    min-height: 80px;
  }

  #av-premium-header .may-root__label {
    font-size: 10.5px;
    -webkit-line-clamp: 2;
  }
}

/* ---------- V8.1 ajustes finales de responsive ---------- */
@media (max-width: 991px) {
  /* la franja y el título quedan fijos; solo desplaza el cuerpo */
  #av-premium-header .may-panel__inner {
    overflow: hidden;
  }

  #av-premium-header .may-body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: 10px;
  }
}

@media (max-width: 540px) {
  #av-premium-header .may-root__label {
    -webkit-line-clamp: 3;
    min-height: 33px;
    line-height: 1.12;
  }

  /* pista visual de que la franja sigue a la derecha */
  #av-premium-header .may-roots {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  }

  .may-qa {
    right: 6px;
    bottom: 6px;
    gap: 4px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .may-qa button {
    padding: 4px 6px;
    font-size: 9px;
  }
}

@media (max-width: 540px) {
  #av-premium-header .may-root__label {
    font-size: 11px;
    color: rgba(226, 238, 250, .82);
  }
  #av-premium-header .may-roots {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
  }
}

/* ---------- V8.1 jerarquía de estados y pista de scroll ---------- */
#av-premium-header .may-body {
  position: relative;
}

#av-premium-header .may-card:hover:not(.is-committed) .may-card__surface,
#av-premium-header .may-card.is-hover:not(.is-committed) .may-card__surface {
  border-color: rgba(72, 185, 255, .34);
  background: rgba(72, 185, 255, .065);
}

#av-premium-header .may-card.is-committed .may-card__surface {
  border-color: rgba(72, 185, 255, .58);
  background: linear-gradient(90deg, rgba(72, 185, 255, .19), rgba(72, 185, 255, .055));
  box-shadow: inset 3px 0 0 rgba(72, 185, 255, .55);
}

#av-premium-header .may-body.has-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 16, .92));
  pointer-events: none;
  z-index: 4;
}

/* rejilla más densa para ramas muy pobladas */
#av-premium-header .may-grid2.is-dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#av-premium-header .may-grid2.is-dense .may-card {
  min-height: 54px;
  padding-right: 24px;
}

#av-premium-header .may-grid2.is-dense .may-card__name {
  font-size: 11.5px;
  line-height: 1.15;
}

/* ---------- V8.1 legibilidad de iconos ---------- */
#av-premium-header .may-ico--mono img {
  filter: brightness(1.12);
}

#av-premium-header .may-ico--brand img,
#av-premium-header .may-ico--color img {
  filter: brightness(1.18) saturate(1.04);
}

#av-premium-header .may-root:hover .may-ico--brand img,
#av-premium-header .may-root.is-committed .may-ico--brand img,
#av-premium-header .may-card:hover .may-ico--brand img,
#av-premium-header .may-card.is-committed .may-ico--brand img,
#av-premium-header .may-root:hover .may-ico--color img,
#av-premium-header .may-card:hover .may-ico--color img,
#av-premium-header .may-third-link:hover .may-ico--color img {
  filter: brightness(1.34) saturate(1.10);
}

@media (min-width: 992px) {
  #av-premium-header .may-root__frame {
    width: 44px;
    height: 44px;
    background: #0d1219;
  }

  #av-premium-header .may-root__frame img {
    width: 40px;
    height: 40px;
  }

  #av-premium-header .may-card__media {
    width: 40px;
    height: 40px;
  }

  #av-premium-header .may-card__media .may-ico img {
    width: 36px;
    height: 36px;
  }

  #av-premium-header .may-ico--l3 {
    width: 28px;
    height: 28px;
    background: #0d1219;
  }

  #av-premium-header .may-ico--l3 img {
    width: 24px;
    height: 24px;
  }
}

html[data-may-icons="holo"] {
  --may-tint-holo: brightness(0) invert(58%) sepia(100%) saturate(3200%) hue-rotate(158deg) brightness(.72) drop-shadow(0 0 7px rgba(64, 255, 229, .55));
}

/* ============================================================
   V8.2 · integración en la tienda real
   El panel se ancla a la barra real con posición fija calculada.
   La barra NO se clona: se usa la de tmmegamenu.
   ============================================================ */
#av-premium-header .may-menu-host {
  position: static !important;
  z-index: auto !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}

#av-premium-header .may-panel {
  position: fixed !important;
  top: var(--avmm-top, 120px) !important;
  left: var(--avmm-left, 20px) !important;
  width: var(--avmm-width, 1200px) !important;
  max-width: calc(100vw - 16px) !important;
  z-index: 100000 !important;
}

/* Cierre visible en móvil y tableta */
#av-premium-header .may-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 174, 224, .28);
  border-radius: 999px;
  background: rgba(10, 16, 24, .86);
  color: #eaf6ff;
  font: 400 24px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
}
#av-premium-header .may-close:hover,
#av-premium-header .may-close:focus-visible {
  border-color: rgba(111, 216, 255, .65);
  color: #fff;
}
@media (max-width: 991px) {
  #av-premium-header .may-close { display: inline-flex; }
}

/* ============================================================
   V8.3 · ancho real, L3 en minitarjetas, canario sin fantasma
   y navegación textual en ≤1024 px.
   ============================================================ */

/* El panel se coloca por JS con medidas reales de la barra. */
#av-premium-header .may-panel {
  right: auto;
  max-width: none;
  overflow: visible;
}

#av-premium-header .may-panel__inner {
  padding: 16px 20px 20px;
  max-height: none;
}

/* Reparto L2 / L3: el segundo nivel manda, el tercero respira. */
#av-premium-header .may-body {
  grid-template-columns: minmax(0, 1.34fr) 1px minmax(0, 1fr);
  gap: 0 18px;
}

#av-premium-header .may-grid2 {
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: 8px;
}

#av-premium-header .may-grid2.is-sparse {
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
}

#av-premium-header .may-card {
  min-height: 64px;
}

#av-premium-header .may-card__media {
  width: 44px;
  height: 44px;
}

#av-premium-header .may-card__media img {
  width: 40px;
  height: 40px;
}

#av-premium-header .may-card__name {
  color: #e6f1ff;
  font-size: 13px;
  line-height: 1.22;
}

/* Tercer nivel: minitarjetas, no lista de texto pequeño. */
#av-premium-header .may-third-list {
  gap: 6px;
}

#av-premium-header .may-third-list.is-multi {
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 6px;
}

#av-premium-header .may-third-link {
  min-height: 48px;
  padding: 7px 10px;
  gap: 10px;
  border: 1px solid rgba(90, 150, 210, .17);
  border-radius: 8px;
  background: rgba(13, 24, 37, .72);
  color: #e6f1ff;
  font-size: 13px;
  line-height: 1.2;
}

#av-premium-header .may-third-link::before {
  display: none;
}

#av-premium-header .may-third-link:hover,
#av-premium-header .may-third-link:focus-visible,
#av-premium-header .may-third-link.is-hover {
  color: #48aeff;
  background: rgba(72, 174, 255, .10);
  border-color: rgba(72, 174, 255, .45);
  padding-left: 10px;
}

#av-premium-header .may-third-name {
  color: inherit;
}

#av-premium-header .may-ico--l3 {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

#av-premium-header .may-ico--l3 img {
  width: 32px;
  height: 32px;
}

/* Columna L3: scroll solo cuando de verdad hay exceso. */
#av-premium-header .may-col {
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 174, 255, .34) transparent;
}

#av-premium-header .may-col::-webkit-scrollbar {
  width: 5px;
}

#av-premium-header .may-col::-webkit-scrollbar-track {
  background: transparent;
}

#av-premium-header .may-col::-webkit-scrollbar-thumb {
  background: rgba(72, 174, 255, .30);
  border-radius: 5px;
}

/* El desplegable antiguo no puede asomar ni capturar foco en canario. */
html.may-canary #av-premium-header .is-megamenu,
html.may-canary #av-premium-header .sf-mega,
html.may-canary #av-premium-header .sf-mega-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- navegación textual ≤1024 px ---------- */
#av-premium-header .may-mobile {
  display: none;
}

#av-premium-header .may-panel.is-mobile {
  background: transparent;
}

#av-premium-header .may-panel.is-mobile .may-roots,
#av-premium-header .may-panel.is-mobile .may-head,
#av-premium-header .may-panel.is-mobile .may-body {
  display: none !important;
}

#av-premium-header .may-panel.is-mobile .may-panel__inner {
  padding: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

#av-premium-header .may-panel.is-mobile .may-close {
  display: inline-flex;
  top: 10px;
  right: 10px;
  z-index: 8;
}

#av-premium-header .may-panel.is-mobile .may-mobile {
  display: block;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 174, 255, .32) transparent;
}

#av-premium-header .may-m-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 44px 14px 2px;
  border-bottom: 1px solid rgba(111, 216, 255, .22);
  margin-bottom: 8px;
}

#av-premium-header .may-m-kicker {
  color: #48aeff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#av-premium-header .may-m-title {
  color: #ffffff;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
}

#av-premium-header .may-m-hint {
  color: rgba(198, 218, 236, .62);
  font-size: 12px;
  line-height: 1.35;
}

#av-premium-header .may-m-list,
#av-premium-header .may-m-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

#av-premium-header .may-m-row {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid rgba(72, 174, 255, .13);
}

#av-premium-header .may-m-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 6px;
  color: #e6f1ff;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
}

#av-premium-header .may-m-link:hover,
#av-premium-header .may-m-link:focus-visible {
  color: #48aeff;
}

#av-premium-header .may-m-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #48aeff;
  cursor: pointer;
  border-radius: 8px;
}

#av-premium-header .may-m-toggle:hover,
#av-premium-header .may-m-toggle:focus-visible {
  background: rgba(72, 174, 255, .10);
  outline: none;
}

#av-premium-header .may-m-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}

#av-premium-header .may-m-item.is-open > .may-m-row .may-m-toggle svg {
  transform: rotate(180deg);
}

#av-premium-header .may-m-sub {
  margin-left: 9px;
  padding-left: 11px;
  border-left: 1px solid rgba(72, 174, 255, .22);
}

#av-premium-header .may-m-sub[hidden] {
  display: none;
}

#av-premium-header .may-m-item--l2 > .may-m-row .may-m-link {
  font-size: 14.5px;
  color: #d8e8f6;
}

#av-premium-header .may-m-item--l3 > .may-m-row .may-m-link {
  font-size: 14px;
  color: #b9cfe2;
}

#av-premium-header .may-m-item--l3 > .may-m-row {
  min-height: 44px;
}

#av-premium-header .may-m-item--l3 > .may-m-row .may-m-link {
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
}

#av-premium-header .may-m-foot {
  padding: 16px 2px 0;
}

#av-premium-header .may-m-foot a {
  color: #48aeff;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 174, 255, .38);
}

@media (prefers-reduced-motion: reduce) {
  #av-premium-header .may-m-toggle svg {
    transition: none;
  }
}

/* V8.3 · contraste explícito del nombre en minitarjetas L3 */
#av-premium-header .may-third-link .may-third-name {
  color: #e6f1ff;
}
#av-premium-header .may-third-link:hover .may-third-name,
#av-premium-header .may-third-link:focus-visible .may-third-name,
#av-premium-header .may-third-link.is-hover .may-third-name {
  color: #48aeff;
}

/* ==========================================================================
   V8.4 · iconos sin parpadeo, tarjetas compactas, HUD en portátiles
   ========================================================================== */

/* --- icono: placeholder estable, imagen solo cuando está decodificada --- */
#av-premium-header .may-ico {
  position: relative;
  overflow: visible;
}

#av-premium-header .may-ico .may-ico__ph {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .16s ease;
}

#av-premium-header .may-ico .may-ico__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .18s ease;
}

#av-premium-header .may-ico.is-ready .may-ico__img { opacity: 1; }
#av-premium-header .may-ico.is-ready .may-ico__ph { opacity: 0; }

/* --- atlas: una sola textura, sin peticiones por rama --- */
#av-premium-header .may-ico--atlas {
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0;
  transition: opacity .18s ease, filter .16s ease;
}

#av-premium-header .may-ico--atlas.is-ready { opacity: 1; }

#av-premium-header .may-root:hover .may-ico--atlas.may-ico--mono,
#av-premium-header .may-root.is-hover .may-ico--atlas.may-ico--mono,
#av-premium-header .may-root.is-committed .may-ico--atlas.may-ico--mono,
#av-premium-header .may-card:hover .may-ico--atlas.may-ico--mono,
#av-premium-header .may-card.is-hover .may-ico--atlas.may-ico--mono,
#av-premium-header .may-card.is-committed .may-ico--atlas.may-ico--mono,
#av-premium-header .may-third-link:hover .may-ico--atlas.may-ico--mono,
#av-premium-header .may-third-link.is-hover .may-ico--atlas.may-ico--mono {
  filter: var(--may-tint);
}

#av-premium-header .may-root:hover .may-ico--atlas.may-ico--brand,
#av-premium-header .may-card:hover .may-ico--atlas.may-ico--brand,
#av-premium-header .may-card.is-committed .may-ico--atlas.may-ico--brand {
  filter: brightness(1.22) contrast(1.04);
}

/* --- tarjetas compactas: nunca una sola tarjeta estirada --- */
#av-premium-header .may-grid2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 272px));
  justify-content: start;
  column-gap: 12px;
  row-gap: 10px;
}

#av-premium-header .may-grid2.is-sparse {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 292px));
}

#av-premium-header .may-grid2.is-dense {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 186px), 236px));
}

#av-premium-header .may-third-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 252px));
  justify-content: start;
  column-gap: 10px;
  row-gap: 8px;
}

#av-premium-header .may-card,
#av-premium-header .may-third-link {
  max-width: 100%;
}

/* --- hoja: bloque compacto con CTA, sin texto técnico --- */
#av-premium-header .may-leaf {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(72, 174, 255, .22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 38, 58, .72), rgba(10, 22, 36, .72));
  max-width: 460px;
}

#av-premium-header .may-leaf__icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  position: relative;
}

#av-premium-header .may-leaf__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#av-premium-header .may-leaf__name {
  font-size: 17px;
  font-weight: 600;
  color: #e6f1ff;
}

#av-premium-header .may-leaf__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(72, 174, 255, .45);
  background: rgba(72, 174, 255, .10);
  color: #8fd4ff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#av-premium-header .may-leaf__cta:hover,
#av-premium-header .may-leaf__cta:focus-visible {
  background: rgba(72, 174, 255, .20);
  border-color: rgba(72, 174, 255, .75);
  color: #d6efff;
}

#av-premium-header .may-leaf__cta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- scroll solo cuando de verdad hay contenido oculto --- */
#av-premium-header .may-col:not(.has-more) { scrollbar-width: none; }
#av-premium-header .may-col:not(.has-more)::-webkit-scrollbar { width: 0; height: 0; }
#av-premium-header .may-body.has-more::after { display: none; }

/* --- portátiles con ratón: HUD visual por debajo de 1024, sin llegar a texto --- */
@media (min-width: 821px) and (max-width: 1180px) and (hover: hover) and (pointer: fine) {
  #av-premium-header .may-panel__inner { padding-left: 16px; padding-right: 16px; }
  #av-premium-header .may-body {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, .92fr);
    gap: 12px;
  }
  #av-premium-header .may-grid2 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 240px));
  }
  #av-premium-header .may-third-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 220px));
  }
  #av-premium-header .may-title { font-size: clamp(24px, 2.6vw, 34px); }
  #av-premium-header .may-roots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ============================================================
   V8.5 · poda comercial, franja L1 equilibrada e iconos legibles
   ============================================================ */

/* Tinte azul corporativo (estaba referenciado pero sin definir). */
#av-premium-header .may-menu-host {
  --may-tint: brightness(0) saturate(100%) invert(63%) sepia(56%) saturate(2100%) hue-rotate(179deg) brightness(103%) contrast(101%);
  --may-ice: #cfe3f5;
}

/* Franja de raíces: rejilla equilibrada; JS fija --may-cols con el nº real. */
#av-premium-header .may-roots {
  display: grid;
  grid-template-columns: repeat(var(--may-cols, 7), minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 3px 6px;
  overflow: visible;
  padding: 3px 2px 12px;
  scrollbar-width: none;
}
#av-premium-header .may-roots::-webkit-scrollbar { height: 0; }
#av-premium-header .may-root {
  width: auto;
  min-width: 60px;
  max-width: 100%;
}
#av-premium-header .may-root__label {
  max-width: 104px;
  color: rgba(226, 238, 250, .80);
}
#av-premium-header .may-root.is-committed .may-root__label,
#av-premium-header .may-root:hover .may-root__label {
  color: #ffffff;
}

/* Iconos monocromos: gris hielo legible en reposo (153 -> ~205). */
#av-premium-header .may-ico--mono img {
  filter: brightness(1.5) contrast(1.04);
}
#av-premium-header .may-ico--mono.may-ico--atlas {
  filter: brightness(1.5) contrast(1.04);
}

/* Hover y rama fijada: azul, también en modo atlas. */
#av-premium-header .may-root:hover .may-ico--mono.may-ico--atlas,
#av-premium-header .may-root.is-hover .may-ico--mono.may-ico--atlas,
#av-premium-header .may-root.is-committed .may-ico--mono.may-ico--atlas,
#av-premium-header .may-card:hover .may-ico--mono.may-ico--atlas,
#av-premium-header .may-card.is-hover .may-ico--mono.may-ico--atlas,
#av-premium-header .may-card.is-committed .may-ico--mono.may-ico--atlas,
#av-premium-header .may-third-link:hover .may-ico--mono.may-ico--atlas,
#av-premium-header .may-third-link.is-hover .may-ico--mono.may-ico--atlas {
  filter: var(--may-tint);
}

/* Marcas y pictogramas a color: identidad intacta. */
#av-premium-header .may-ico--brand img,
#av-premium-header .may-ico--color img {
  filter: none;
}

/* Reparto L2 / L3: columnas alineadas arriba, sin estirar tarjetas. */
#av-premium-header .may-body {
  grid-template-columns: minmax(0, 1.18fr) 1px minmax(0, 1fr);
  gap: 0 20px;
}
#av-premium-header .may-body.is-single { grid-template-columns: minmax(0, 1fr); }
#av-premium-header .may-body.is-single .may-col--second { max-width: 100%; }

/* Sin tercer nivel: el divisor no dibuja una raya vacía. */
#av-premium-header .may-divider[style*="display: none"] { background: none; }

/* L3 en rejilla de minitarjetas, compacta y alineada con L2. */
#av-premium-header .may-third-list.is-multi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 188px), 252px));
  gap: 6px;
}

@media (max-width: 1100px) {
  #av-premium-header .may-root__label { max-width: 88px; font-size: 9.8px; }
}

/* Columnas L2 explícitas: evita que auto-fill deje huecos y estire tarjetas. */
#av-premium-header .may-grid2,
#av-premium-header .may-grid2.is-dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#av-premium-header .may-grid2.is-sparse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1560px) {
  #av-premium-header .may-grid2.is-dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  #av-premium-header .may-grid2,
  #av-premium-header .may-grid2.is-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tercer nivel corto (<=4): tira compacta bajo L2, sin columna medio vacía. */
#av-premium-header .may-body.is-inline-third {
  grid-template-columns: minmax(0, 1fr);
}
#av-premium-header .may-body.is-inline-third .may-divider { display: none; }
#av-premium-header .may-body.is-inline-third .may-col--third {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 174, 224, .16);
  overflow: visible;
  display: block;
}
#av-premium-header .may-body.is-inline-third .may-grid2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 198px), 1fr));
}
#av-premium-header .may-body.is-inline-third .may-third-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 252px));
  gap: 6px;
}
#av-premium-header .may-body.is-inline-third .may-third-head { margin-bottom: 2px; }

/* Barra de scroll visible cuando la columna realmente desborda. */
#av-premium-header .may-col::-webkit-scrollbar { width: 6px; }
#av-premium-header .may-col::-webkit-scrollbar-track { background: rgba(255,255,255,.035); border-radius: 6px; }
#av-premium-header .may-col::-webkit-scrollbar-thumb { background: rgba(72,185,255,.40); border-radius: 6px; }
#av-premium-header .may-col { scrollbar-color: rgba(72,185,255,.40) rgba(255,255,255,.035); }

/* ============================================================
   V8.6 · escala de diseño +20 % por tokens (sin transform:scale),
   hueco neutro sin iniciales y composición sparse / medium / dense.
   ============================================================ */
:root { --avmm-ui-scale: 1.2; }

/* --- L1: icono ~50 px, etiqueta ~15 px, hitbox proporcional --- */
#av-premium-header .may-roots {
  gap: calc(3px * var(--avmm-ui-scale)) calc(6px * var(--avmm-ui-scale));
  padding: calc(3px * var(--avmm-ui-scale)) 2px calc(12px * var(--avmm-ui-scale));
}
#av-premium-header .may-root {
  min-width: calc(60px * var(--avmm-ui-scale));
  gap: calc(5px * var(--avmm-ui-scale));
  padding: calc(4px * var(--avmm-ui-scale)) 2px calc(5px * var(--avmm-ui-scale));
}
#av-premium-header .may-root__frame {
  width: calc(46px * var(--avmm-ui-scale));
  height: calc(46px * var(--avmm-ui-scale));
  border-radius: calc(8px * var(--avmm-ui-scale));
}
#av-premium-header .may-root__frame img {
  width: calc(40px * var(--avmm-ui-scale));
  height: calc(40px * var(--avmm-ui-scale));
}
#av-premium-header .may-root__label {
  max-width: calc(104px * var(--avmm-ui-scale));
  min-height: calc(32px * var(--avmm-ui-scale));
  font-size: calc(12.5px * var(--avmm-ui-scale));
  line-height: 1.16;
}

/* --- panel, cabecera y cuerpo --- */
#av-premium-header .may-panel__inner {
  padding: calc(16px * var(--avmm-ui-scale)) calc(20px * var(--avmm-ui-scale))
           calc(20px * var(--avmm-ui-scale));
}
#av-premium-header .may-head { padding: calc(14px * var(--avmm-ui-scale)) 2px calc(10px * var(--avmm-ui-scale)); }
#av-premium-header .may-title {
  min-height: calc(36px * var(--avmm-ui-scale));
  font-size: clamp(calc(22px * var(--avmm-ui-scale)), 2.05vw, calc(31px * var(--avmm-ui-scale)));
}
#av-premium-header .may-crumb { font-size: calc(10px * var(--avmm-ui-scale)); min-height: calc(13px * var(--avmm-ui-scale)); }
#av-premium-header .may-rule { margin-top: calc(10px * var(--avmm-ui-scale)); }
#av-premium-header .may-body { gap: 0 calc(20px * var(--avmm-ui-scale)); padding-top: calc(14px * var(--avmm-ui-scale)); }
#av-premium-header .may-col-head__all,
#av-premium-header .may-third-all { font-size: calc(11px * var(--avmm-ui-scale)); }

/* --- L2: tarjeta, icono 48 px y texto 15.6 px --- */
#av-premium-header .may-grid2 { gap: calc(8px * var(--avmm-ui-scale)); }
#av-premium-header .may-card {
  min-height: calc(64px * var(--avmm-ui-scale));
  gap: calc(9px * var(--avmm-ui-scale));
  padding: calc(6px * var(--avmm-ui-scale)) calc(30px * var(--avmm-ui-scale))
           calc(6px * var(--avmm-ui-scale)) calc(6px * var(--avmm-ui-scale));
}
#av-premium-header .may-card__link { gap: calc(9px * var(--avmm-ui-scale)); }
#av-premium-header .may-card__media {
  width: calc(44px * var(--avmm-ui-scale));
  height: calc(44px * var(--avmm-ui-scale));
  border-radius: calc(6px * var(--avmm-ui-scale));
}
#av-premium-header .may-card__media img {
  width: calc(40px * var(--avmm-ui-scale));
  height: calc(40px * var(--avmm-ui-scale));
}
#av-premium-header .may-card__name { font-size: calc(13px * var(--avmm-ui-scale)); line-height: 1.2; }

/* --- L3: minitarjeta 58 px, icono 38 px y texto 15.6 px --- */
#av-premium-header .may-third-list { gap: calc(6px * var(--avmm-ui-scale)); }
#av-premium-header .may-third-link {
  min-height: calc(48px * var(--avmm-ui-scale));
  padding: calc(7px * var(--avmm-ui-scale)) calc(10px * var(--avmm-ui-scale));
  gap: calc(10px * var(--avmm-ui-scale));
  font-size: calc(13px * var(--avmm-ui-scale));
  border-radius: calc(8px * var(--avmm-ui-scale));
}
#av-premium-header .may-third-link:hover,
#av-premium-header .may-third-link:focus-visible,
#av-premium-header .may-third-link.is-hover {
  padding-left: calc(10px * var(--avmm-ui-scale));
}
#av-premium-header .may-ico--l3 {
  width: calc(32px * var(--avmm-ui-scale));
  height: calc(32px * var(--avmm-ui-scale));
  flex: 0 0 calc(32px * var(--avmm-ui-scale));
  border-radius: calc(5px * var(--avmm-ui-scale));
}
#av-premium-header .may-ico--l3 img {
  width: calc(32px * var(--avmm-ui-scale));
  height: calc(32px * var(--avmm-ui-scale));
}
#av-premium-header .may-third-list.is-multi,
#av-premium-header .may-body.is-inline-third .may-third-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(188px * var(--avmm-ui-scale))), calc(252px * var(--avmm-ui-scale))));
}
#av-premium-header .may-leaf__icon { width: calc(64px * var(--avmm-ui-scale)); height: calc(64px * var(--avmm-ui-scale)); }

/* --- cierre --- */
#av-premium-header .may-close {
  width: calc(38px * var(--avmm-ui-scale));
  height: calc(38px * var(--avmm-ui-scale));
  font-size: calc(24px * var(--avmm-ui-scale));
}

/* --- composición sparse: una sola L2 no se estira ni apila zonas vacías --- */
#av-premium-header .may-body[data-density="sparse"] {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 calc(22px * var(--avmm-ui-scale));
  align-items: start;
}
#av-premium-header .may-body[data-density="sparse"] .may-col { overflow: visible; }
#av-premium-header .may-body[data-density="sparse"] .may-grid2,
#av-premium-header .may-body[data-density="sparse"] .may-grid2.is-sparse {
  grid-template-columns: minmax(0, calc(300px * var(--avmm-ui-scale)));
}
#av-premium-header .may-body[data-density="sparse"] .may-card { max-width: calc(300px * var(--avmm-ui-scale)); }
#av-premium-header .may-body[data-density="sparse"] .may-third-list,
#av-premium-header .may-body[data-density="sparse"] .may-third-list.is-multi {
  display: grid;
  grid-template-columns: minmax(0, calc(340px * var(--avmm-ui-scale)));
}
#av-premium-header .may-body[data-density="sparse"] .may-col--third { max-width: calc(360px * var(--avmm-ui-scale)); }

/* --- móvil/tableta textual: también +20 % --- */
@media (max-width: 1024px) {
  #av-premium-header .may-m-row,
  #av-premium-header .may-m-link { min-height: calc(48px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-link { font-size: calc(15px * var(--avmm-ui-scale)); padding: calc(11px * var(--avmm-ui-scale)) 6px; }
  #av-premium-header .may-m-toggle {
    flex-basis: calc(48px * var(--avmm-ui-scale));
    width: calc(48px * var(--avmm-ui-scale));
    min-height: calc(48px * var(--avmm-ui-scale));
  }
  #av-premium-header .may-m-toggle svg { width: calc(14px * var(--avmm-ui-scale)); height: calc(14px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-item--l2 > .may-m-row .may-m-link { font-size: calc(14.5px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-item--l3 > .may-m-row,
  #av-premium-header .may-m-item--l3 > .may-m-row .may-m-link { min-height: calc(44px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-item--l3 > .may-m-row .may-m-link { font-size: calc(14px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-sub { margin-left: calc(9px * var(--avmm-ui-scale)); padding-left: calc(11px * var(--avmm-ui-scale)); }
  #av-premium-header .may-m-foot a { font-size: calc(13px * var(--avmm-ui-scale)); }
}

@media (max-width: 1100px) {
  #av-premium-header .may-root__label { max-width: calc(88px * var(--avmm-ui-scale)); font-size: calc(11.5px * var(--avmm-ui-scale)); }
}

/* V8.6 · el texto L2 también escala en rejilla densa (la regla .is-dense
   tiene más especificidad y debe recibir el mismo token). */
#av-premium-header .may-grid2.is-dense .may-card__name,
#av-premium-header .may-grid2.is-medium .may-card__name,
#av-premium-header .may-grid2.is-sparse .may-card__name {
  font-size: calc(13px * var(--avmm-ui-scale));
}

/* Sparse real: dos bloques compactos alineados a la izquierda, sin 1fr/1fr
   que estiren el contenido ni llenen la mitad derecha del panel. */
#av-premium-header .may-body[data-density="sparse"] {
  grid-template-columns: minmax(0, calc(300px * var(--avmm-ui-scale))) 1px
                         minmax(0, calc(360px * var(--avmm-ui-scale)));
  justify-content: center;
}

/* V8.6 · altura limitada: el panel completo scrollea; el cuerpo conserva
   su altura natural en lugar de quedar comprimido a 30-40 px. */
#av-premium-header .may-panel.is-constrained .may-panel__inner {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 185, 255, .40) rgba(255, 255, 255, .035);
}
#av-premium-header .may-panel.is-constrained .may-body { overflow: visible; }
#av-premium-header .may-panel.is-constrained .may-col { overflow: visible; }

/* V8.6 · en modo constrained, el cuerpo conserva su altura natural;
   el scroll lo aporta el panel completo, no un cuerpo de 37 px. */
#av-premium-header .may-panel.is-constrained .may-roots,
#av-premium-header .may-panel.is-constrained .may-head,
#av-premium-header .may-panel.is-constrained .may-body { flex: 0 0 auto; }

/* ============================================================
   V8.7 · tope real de tarjeta L2 (KIT 6.6)
   La rejilla anterior quedaba anulada por reglas posteriores y, con
   cinco L2 sin L3, cada tarjeta se estiraba a ~376 px. Aquí el tope
   se aplica con especificidad de densidad y al final de la hoja:
   ninguna tarjeta supera 272 px × escala (326 px con UI=1.2).
   ============================================================ */
#av-premium-header .may-body[data-density] .may-grid2,
#av-premium-header .may-body[data-density] .may-grid2.is-medium {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(208px * var(--avmm-ui-scale))), calc(272px * var(--avmm-ui-scale))));
  justify-content: start;
}
#av-premium-header .may-body[data-density] .may-grid2.is-sparse {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(224px * var(--avmm-ui-scale))), calc(292px * var(--avmm-ui-scale))));
  justify-content: start;
}
#av-premium-header .may-body[data-density] .may-grid2.is-dense {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(186px * var(--avmm-ui-scale))), calc(236px * var(--avmm-ui-scale))));
  justify-content: start;
}


/* ============================================================
   V8.13 - L3 inline contenido: la tira vive dentro del panel,
   L2 scrollea y el hitbox es continuo (sin solape ni desborde).
   ============================================================ */
#av-premium-header .may-body.is-inline-third {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
#av-premium-header .may-body.is-inline-third .may-col--second {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
#av-premium-header .may-body.is-inline-third .may-col--third {
  flex: 0 0 auto;
  grid-column: auto;
  max-height: 42%;
  overflow-y: auto;
  margin-top: calc(10px * var(--avmm-ui-scale));
  padding-top: calc(10px * var(--avmm-ui-scale));
}

/* ============================================================
   V8.16 · contexto de página y estado neutro
   ============================================================ */
#av-premium-header .may-menu-host .may-context{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  margin:0 0 7px;
  font:600 10px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--may-cyan-soft);
}
#av-premium-header .may-menu-host .may-context[hidden]{display:none}
#av-premium-header .may-menu-host .may-context__k{color:var(--may-cyan);opacity:.9}
#av-premium-header .may-menu-host .may-context__n{
  font-size:12.5px; letter-spacing:.02em; text-transform:none; color:#fff;
}
#av-premium-header .may-menu-host .may-panel.is-neutral .may-body{display:none}
#av-premium-header .may-menu-host .may-panel.is-neutral .may-panel__inner{padding-bottom:16px}
#av-premium-header .may-menu-host .may-panel.is-neutral .may-head{margin-bottom:2px}

#av-premium-header .may-menu-host .may-root{position:relative}
#av-premium-header .may-menu-host .may-root.is-current-page .may-root__frame{
  border-color:rgba(111,216,255,.85);
  box-shadow:0 0 0 1px rgba(111,216,255,.35),0 0 24px rgba(72,185,255,.22);
}
#av-premium-header .may-menu-host .may-root.is-current-page .may-root__label{color:#fff}
#av-premium-header .may-menu-host .may-root.is-current-page::after{
  content:""; position:absolute; left:16%; right:16%; bottom:-6px; height:2px;
  background:linear-gradient(90deg,transparent,var(--may-cyan),transparent);
}
#av-premium-header .may-menu-host .may-card__link.is-current-page,
#av-premium-header .may-menu-host .may-card.is-current-page .may-card__link{
  border-color:rgba(111,216,255,.55);
  background:rgba(72,185,255,.08);
}
#av-premium-header .may-menu-host .may-card__link.is-current-page .may-card__name{color:#fff}
#av-premium-header .may-menu-host .may-third-link.is-current-page{
  color:#fff; background:rgba(72,185,255,.10);
  box-shadow:inset 2px 0 0 var(--may-cyan);
}
#av-premium-header .may-menu-host .may-root.is-current-ancestor .may-root__frame{
  border-color:rgba(111,216,255,.38);
}
#av-premium-header .may-menu-host .may-card__link.is-current-ancestor,
#av-premium-header .may-menu-host .may-card__link.is-context-anchor{
  box-shadow:inset 2px 0 0 rgba(111,216,255,.55);
}
#av-premium-header .may-menu-host .may-third-link.is-current-ancestor,
#av-premium-header .may-menu-host .may-third-link.is-context-anchor{
  box-shadow:inset 2px 0 0 rgba(111,216,255,.45);
}
