/* Navbar extracted from styles.css to isolate navigation styles. */

body.theme-mothers-day {
  background-image:
    radial-gradient(circle at top left, rgba(255, 190, 210, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.14), transparent 28%);
  background-attachment: fixed;
}

body.theme-mothers-day::before,
body.theme-mothers-day::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.6;
}

body.theme-mothers-day::before {
  top: 96px;
  left: -48px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 189, 208, 0.22) 0%, rgba(255, 189, 208, 0) 72%);
}

body.theme-mothers-day::after {
  top: 138px;
  right: -52px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0) 72%);
}

.seasonal-topbar {
  position: relative;
  z-index: 21;
  overflow: hidden;
  background: linear-gradient(90deg, #a855f7 0%, #ec4899 52%, #f59e0b 100%);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.16);
}

.seasonal-topbar::before,
.seasonal-topbar::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  opacity: 0.2;
  pointer-events: none;
}

.seasonal-topbar::before {
  top: -110px;
  left: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
}

.seasonal-topbar::after {
  right: -32px;
  bottom: -128px;
  background: radial-gradient(circle, rgba(255, 240, 182, 0.9) 0%, rgba(255, 240, 182, 0) 70%);
}

.seasonal-topbar__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 16px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.seasonal-topbar__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff7fb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.seasonal-topbar__message {
  margin: 0;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 600;
  text-wrap: balance;
}

.top-nav {
  position: relative;
  z-index: 20;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(85, 120, 184, .12);
}

body.theme-mothers-day .top-nav {
  background: #fff;
  border-bottom-color: rgba(168, 85, 247, 0.18);
}

body.theme-mothers-day .top-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #a855f7 0%, #ec4899 52%, #f59e0b 100%);
}

body.theme-mothers-day .nav-logo img {
  filter: drop-shadow(0 6px 18px rgba(236, 72, 153, 0.16));
}

body.theme-mothers-day .nav-icon,
body.theme-mothers-day .nav-menu-toggle {
  border-color: rgba(168, 85, 247, 0.18);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.08);
}

body.theme-mothers-day .btn.nav-ubicaciones {
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.28),
    0 0 12px rgba(168, 85, 247, 0.18),
    0 8px 18px rgba(236, 72, 153, 0.12);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.nav-left,
.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-social,
.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .06));
}

.nav-icon {
  display: inline-flex;
  color: #333;
  background: #fff;
  border: 1px solid rgba(85, 120, 184, .16);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform .12s ease, filter .2s ease;
  align-items: center;
  justify-content: center;
}

.nav-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-icon:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(85, 120, 184, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(85, 120, 184, .16);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
}

.nav-menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  display: block;
}

.nav-cart-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-cart-toggle img {
  width: 46px;
  height: 46px;
  display: block;
}

.nav-cart-toggle__badge {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e74a3b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
  border: 2px solid #fff;
}

.nav-cta {
  padding: 10px 14px;
  white-space: nowrap;
}

.btn.nav-ubicaciones {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(135, 125, 211, 0.35),
    0 0 10px rgba(135, 125, 211, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.10);
  animation: offersShakeCycle 3s ease-in-out infinite;
  padding-left: 56px;
}

.btn.nav-ubicaciones::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: url('recursos/ubicaciones/ubicaciones.png') center/contain no-repeat;
  filter: none;
}

.btn.nav-ubicaciones::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brand) 100%);
  background-size: 200% 200%;
  filter: blur(10px);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  z-index: -1;
  pointer-events: none;
}

.btn.nav-ubicaciones:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(135, 125, 211, 0.45),
    0 0 12px rgba(135, 125, 211, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.12);
}

.btn.nav-ubicaciones:focus {
  outline: none;
}

.btn.nav-ubicaciones:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 0 0 6px rgba(85, 120, 184, 0.55);
}

.btn.nav-ubicaciones:active {
  outline: none;
  transform: translateY(2px) scale(0.985);
  box-shadow: 0 6px 14px rgba(135, 125, 211, .32), 0 12px 24px rgba(85, 120, 184, .28);
}

.btn.nav-ubicaciones:hover,
.btn.nav-ubicaciones:focus,
.btn.nav-ubicaciones:active {
  animation: none !important;
}

.btn.nav-ubicaciones[aria-current="page"] {
  background: linear-gradient(135deg, rgba(135, 125, 211, 0.10) 0%, rgba(85, 120, 184, 0.10) 100%);
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(135, 125, 211, 0.45),
    0 0 12px rgba(135, 125, 211, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.12);
  animation: none !important;
}

.btn.nav-cta {
  background: linear-gradient(135deg, rgba(135, 125, 211, 0.70) 0%, rgba(85, 120, 184, 0.70) 100%);
  border: 1px solid rgba(85, 120, 184, .18);
  box-shadow: 0 6px 14px rgba(85, 120, 184, .18);
  border-radius: 16px;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  color: #fff;
}

.nav-back {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--brand);
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1189;
  border: 0;
  background: rgba(22, 27, 49, 0.38);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: opacity var(--motion-duration-ui) var(--motion-ease-ui), visibility var(--motion-duration-ui) var(--motion-ease-ui);
}

@media (max-width: 767px) {
  .seasonal-topbar__inner {
    flex-direction: column;
    gap: 6px;
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .seasonal-topbar__kicker {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .seasonal-topbar__message {
    font-size: 0.86rem;
  }

  body.theme-mothers-day::before {
    width: 120px;
    height: 120px;
    top: 120px;
    left: -32px;
  }

  body.theme-mothers-day::after {
    width: 140px;
    height: 140px;
    top: 180px;
    right: -38px;
  }
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1190;
  width: min(86vw, 360px);
  transform: translateX(-100%);
  transition: transform var(--motion-duration-ui) var(--motion-ease-ui);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer-backdrop,
  .nav-drawer {
    transition: none;
  }
}

.nav-drawer[aria-hidden="false"] {
  transform: translateX(0);
  pointer-events: auto;
}

.nav-drawer__shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(135, 125, 211, 0.18), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #edf3ff 56%, #e8efff 100%);
  border-right: 1px solid rgba(85, 120, 184, .16);
  box-shadow: 18px 0 48px rgba(19, 30, 74, 0.18);
}

.nav-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(85, 120, 184, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.nav-drawer__brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-drawer__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.nav-drawer__brand img {
  width: auto;
  height: 38px;
  display: block;
}

.nav-drawer__close {
  border: 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 8px 18px rgba(85, 120, 184, .12);
  cursor: pointer;
}

.nav-drawer__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px 18px 20px;
  overflow-y: auto;
}

.nav-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-drawer__section-title {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(30, 42, 92, 0.62);
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(85, 120, 184, .12);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(85, 120, 184, .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nav-drawer__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(85, 120, 184, .14);
  border-color: rgba(85, 120, 184, .24);
}

.nav-drawer__link.is-current {
  color: #fff;
  background: linear-gradient(135deg, rgba(135, 125, 211, 0.92) 0%, rgba(85, 120, 184, 0.92) 100%);
  border-color: rgba(47, 69, 148, 0.42);
  box-shadow: 0 12px 26px rgba(85, 120, 184, .24);
}

.nav-drawer__footer {
  margin-top: auto;
  padding: 8px 18px 20px;
  border-top: 1px solid rgba(85, 120, 184, .10);
}

.nav-drawer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.nav-drawer__social .nav-icon {
  box-shadow: 0 8px 16px rgba(85, 120, 184, .12);
}

body.nav-drawer-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-icon img {
    width: 34px;
    height: 34px;
  }

  .btn.nav-cta {
    background: linear-gradient(135deg, rgba(135, 125, 211, 0.78) 0%, rgba(85, 120, 184, 0.78) 100%);
    padding: 13px 16px;
    box-shadow: 0 8px 18px rgba(85, 120, 184, .22);
  }
}

@media (max-width: 767px) {
  .top-nav {
    position: sticky;
    top: 0;
  }

  .nav-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-cart-toggle {
    display: inline-flex;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-social {
    display: none;
  }

  .nav-logo {
    justify-self: center;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-right {
    min-width: auto;
    gap: 8px;
  }

  .nav-cart-toggle {
    margin-right: -4px;
  }

  .nav-right .nav-cta-group {
    display: none;
  }

  body.home-index .nav-right .nav-cta-group {
    display: inline-flex !important;
  }

  body.home-index .nav-right .nav-ubicaciones {
    min-width: 48px !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border-radius: 16px;
    font-size: 0;
    color: transparent;
    line-height: 0;
  }

  body.home-index .nav-right .nav-ubicaciones::after {
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left {
    gap: 6px;
  }

  .nav-logo img {
    height: 28px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: .95rem;
  }

  .nav-right .nav-ubicaciones {
    display: none !important;
  }

  body.home-index .nav-right .nav-ubicaciones {
    display: inline-flex !important;
  }
}

@media (min-width: 768px) {
  body.home-index .nav-right .nav-cta-group {
    display: inline-flex !important;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-logo {
    justify-self: center;
  }
}