/* =========================================================
   SM EVENTOS — NAVIGATION
   Usa variables y clases base de sm-global.css
========================================================= */

.sm-nav-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  padding: 0;
  background: rgba(8, 8, 13, .82);
  border-bottom: 1px solid var(--sm-border-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Desktop shell */

.sm-nav-shell {
  width: 100%;
  min-height: 76px;
  padding: 0 64px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;

  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: 0 14px 45px rgba(0, 0, 0, .34);
}

.sm-nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 150px;
}

.sm-nav-logo img {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 45, 149, .22));
}

/* Desktop links */

.sm-nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.sm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 76px;

  color: var(--sm-gray);
  font-family: var(--sm-font-body);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;

  transition:
    color .25s ease,
    text-shadow .25s ease;
}

.sm-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: var(--sm-pink);
  box-shadow: 0 0 18px rgba(255, 45, 149, .85);

  opacity: 0;
  transform: translateX(-50%) scaleX(.35);
  transform-origin: center;
  transition:
    opacity .25s ease,
    transform .25s ease;
}

.sm-nav-link:hover,
.sm-nav-link.is-active {
  color: var(--sm-white);
  text-shadow: 0 0 18px rgba(255, 255, 255, .22);
}

.sm-nav-link:hover::after,
.sm-nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* CTA */

.sm-nav-cta {
  min-height: 42px !important;
  padding: 13px 22px !important;
  border-radius: var(--sm-radius-sm) !important;
  white-space: nowrap;
  font-size: 12px !important;
}

.sm-nav-cta span {
  font-size: 18px;
  line-height: 0;
  transform: translateY(-1px);
}

/* Mobile app nav */

.sm-mobile-app-nav {
  display: none;
}

/* Tablet */

@media (max-width: 1180px) {
  .sm-nav-shell {
    padding: 0 32px;
    gap: 24px;
  }

  .sm-nav-desktop {
    gap: 22px;
  }

  .sm-nav-link {
    font-size: 11px;
    letter-spacing: .1em;
  }

  .sm-nav-logo {
    min-width: 120px;
  }

  .sm-nav-logo img {
    height: 42px;
  }
}

/* Mobile / app-like */

@media (max-width: 900px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .sm-nav-header {
    position: sticky;
    top: 0;
    min-height: 66px;
  }

  .sm-nav-shell {
    min-height: 66px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(8, 8, 13, .78);
    border-bottom: 1px solid var(--sm-border-soft);
  }

  .sm-nav-logo {
    min-width: 0;
  }

  .sm-nav-logo img {
    height: 40px;
  }

  .sm-nav-desktop {
    display: none;
  }

  .sm-nav-cta {
    min-height: 36px !important;
    padding: 11px 15px !important;
    font-size: 10px !important;
    letter-spacing: .06em !important;
  }

  .sm-nav-cta span {
    display: none;
  }

  .sm-mobile-app-nav {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 99999;

    width: min(420px, calc(100% - 24px));
    min-height: 76px;
    padding: 8px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    transform: translateX(-50%);

    background:
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
      rgba(8, 8, 13, .88);

    border: 1px solid var(--sm-border);
    border-radius: 28px;

    box-shadow:
      0 24px 70px rgba(0, 0, 0, .55),
      0 0 34px rgba(255, 45, 149, .24);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .sm-mobile-nav-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-width: 0;
    min-height: 60px;
    padding: 8px 6px;

    color: var(--sm-gray);
    border-radius: 20px;
    background: rgba(255,255,255,.025);

    font-family: var(--sm-font-body);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;

    transition:
      color .25s ease,
      background .25s ease,
      transform .25s ease,
      box-shadow .25s ease;
  }

  .sm-mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sm-mobile-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 45, 149, .18));
  }

  .sm-mobile-nav-item:hover,
  .sm-mobile-nav-item.is-active {
    color: var(--sm-white);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
  }

  .sm-mobile-nav-item.is-active {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  }

  .sm-mobile-nav-main {
    color: var(--sm-white);
    background: var(--sm-gradient);
    box-shadow:
      0 0 26px rgba(255, 45, 149, .42),
      inset 0 0 0 1px rgba(255,255,255,.16);
  }

  .sm-mobile-nav-main:hover,
  .sm-mobile-nav-main.is-active {
    background: var(--sm-gradient);
    box-shadow:
      0 0 34px rgba(255, 45, 149, .58),
      inset 0 0 0 1px rgba(255,255,255,.22);
  }
}

/* Móvil pequeño */

@media (max-width: 390px) {
  .sm-mobile-app-nav {
    width: calc(100% - 16px);
    gap: 6px;
    padding: 7px;
  }

  .sm-mobile-nav-item {
    font-size: 9px;
    border-radius: 18px;
  }

  .sm-mobile-nav-icon,
  .sm-mobile-nav-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Checkout / carrito: quitar nav inferior si molesta */

@media (max-width: 900px) {
  body.woocommerce-cart .sm-mobile-app-nav,
  body.woocommerce-checkout .sm-mobile-app-nav {
    display: none;
  }

  body.woocommerce-cart,
  body.woocommerce-checkout {
    padding-bottom: 0;
  }
}

/* =========================================================
   FIX MOBILE APP NAV POSITION
   ========================================================= */

.elementor-location-header,
.elementor-location-header .elementor,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-container {
  overflow: visible !important;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }

  .sm-nav-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9998 !important;
    width: 100% !important;
  }

  .sm-nav-shell {
    min-height: 64px !important;
  }

  .sm-mobile-app-nav {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;

    transform: translateX(-50%) !important;

    z-index: 999999 !important;

    width: min(420px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    margin: 0 !important;
  }
}

/* =========================================================
   FIX MOBILE APP NAV — ALL BOXES EQUAL
========================================================= */

@media (max-width: 900px) {
  .sm-mobile-nav-item,
  .sm-mobile-nav-main,
  .sm-mobile-nav-main:hover,
  .sm-mobile-nav-main.is-active {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    box-shadow: none !important;
    color: var(--sm-gray) !important;
  }

  .sm-mobile-nav-item:hover,
  .sm-mobile-nav-item.is-active,
  .sm-mobile-nav-main:hover,
  .sm-mobile-nav-main.is-active {
    color: var(--sm-white) !important;
    background: rgba(255,255,255,.075) !important;
    border-color: var(--sm-border-hot) !important;
    box-shadow: 0 0 18px rgba(255,45,149,.22) !important;
  }
}

/* =========================================================
   MOBILE: SOLO APP-LIKE BOTTOM NAV
   Oculta el header superior en móvil
========================================================= */

@media (max-width: 900px) {
  .sm-nav-header {
    display: none !important;
  }

  body {
    padding-top: 0 !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }

  .elementor-location-header {
    min-height: 0 !important;
    height: 0 !important;
    overflow: visible !important;
  }

  .sm-mobile-app-nav {
    display: grid !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
  }
}