/* APPSUR MEGA MENU v2.0.2 */

.appsur-mm-wrapper { display: inline-block; position: relative; }

/* ── Trigger ── */
.appsur-mm-trigger { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; line-height: 1; -webkit-tap-highlight-color: transparent; outline: none; transition: opacity 0.2s ease; }
.appsur-mm-trigger:hover { opacity: 0.8; }
.appsur-mm-trigger:focus { outline: none; }

/* ── Overlay ── */
.appsur-mm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99998; opacity: 0; transition: opacity 0.3s ease; }
.appsur-mm-overlay.is-visible { display: block; }
.appsur-mm-overlay.is-open { opacity: 1; }

/* ── Panel — usa 100dvh para cubrir tambien la barra del navegador ── */
.appsur-mm-panel {
  position: fixed;
  top: 0;
  z-index: 99999;
  height: 100vh;        /* fallback */
  height: 100dvh;       /* cubre barra del navegador en mobile */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* posicion vertical por defecto */
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-sizing: border-box;
}

/* Posicion vertical via clase */
.appsur-mm-panel.valign-top    { justify-content: flex-start; }
.appsur-mm-panel.valign-center { justify-content: center; }
.appsur-mm-panel.valign-bottom { justify-content: flex-end; }

.appsur-mm-panel--right { right: 0; transform: translateX(110%); }
.appsur-mm-panel--right.is-open { transform: translateX(0); }
.appsur-mm-panel--left { left: 0; transform: translateX(-110%); }
.appsur-mm-panel--left.is-open { transform: translateX(0); }
.appsur-mm-panel--top { top: 0; left: 0; right: 0; width: 100% !important; }
.appsur-mm-panel--top.is-open { transform: translateY(0); }
.appsur-mm-panel--right.is-open,
.appsur-mm-panel--left.is-open { transform: translateX(0); }
.appsur-mm-panel--top { transform: translateY(-110%); }

/* ── Close ── */
.appsur-mm-close { position: absolute; background: transparent; border: none; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; outline: none; transition: opacity 0.2s ease; z-index: 1; }
.appsur-mm-close:hover { opacity: 0.7; }
.appsur-mm-close:focus { outline: none; }

/* ── Nav ── */
.appsur-mm-nav { width: 100%; }

/* ── List: flexbox column, centrado por defecto ── */
.appsur-mm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;       /* horizontal: centra los items */
}

/* Alineacion horizontal via clase en nav */
.appsur-mm-nav.align-left   .appsur-mm-list { align-items: flex-start; }
.appsur-mm-nav.align-center .appsur-mm-list { align-items: center; }
.appsur-mm-nav.align-right  .appsur-mm-list { align-items: flex-end; }

.appsur-mm-item { margin: 0; padding: 0; }

/* ── Links ── */
.appsur-mm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.appsur-mm-link:hover { opacity: 0.8; }

/* ── Item text ── */
.appsur-mm-item-text {
  display: inline-block;
  line-height: 1.2;
  letter-spacing: 0.05em;
  transition: font-size 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

/* ── No outline mobile ── */
.appsur-mm-item, .appsur-mm-item a, .appsur-mm-item span, .appsur-mm-link { -webkit-tap-highlight-color: transparent; outline: none !important; box-shadow: none !important; }
