html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  color: var(--sp-text);
  background-color: var(--sp-fondo);
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  line-height: 1.6;
  overflow-x: hidden;
}
/* ——— Badge glass con halo blanco y texto delineado ——— */
.suc-badge {
  position: absolute;
  border-radius: 9999px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none; /* informativo, no clic */
}
/* Halo/blanco alrededor + sombra suave */
.suc-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 6px 20px rgba(0, 0, 0, 0.1), 0 0 18px rgba(255, 255, 255, 0.45);
}
/* Borde “plumoso” blanco alrededor (edge suave) */
.suc-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 48%,
    rgba(255, 255, 255, 0) 62%
  );
}
/* Texto delineado (azul con trazo blanco) */
.text-outline {
  color: #001c64;
  /* fallback para navegadores sin text-stroke */
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 2px rgba(255, 255, 255, 0.55);
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}
/* Panel de marcas (móvil): scroll suave y sin arrastrar el body */
.nav-panel-scroll {
  -webkit-overflow-scrolling: touch; /* inercia iOS */
  overscroll-behavior: contain; /* evita “jalar” el body */
  touch-action: pan-y; /* sólo scroll vertical */
}

/* Brillo al pasar/pulsar sobre marca (también accesible por teclado) */
.link-marca:hover,
.link-marca:focus-visible,
.link-marca.touch-highlight {
  background-color: var(--sp-azul-soft, rgba(34, 98, 170, 0.12));
}
.splash-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 164, 0, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 80% 15%, rgba(0, 28, 100, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 245, 0.98) 100%);
  backdrop-filter: blur(3px);
  height: 100vh;
}

.splash-loader__panel {
  width: min(520px, calc(100% - 1.25rem));
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(0, 28, 100, 0.12);
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(0, 28, 100, 0.14);
  padding: 1.1rem 1rem 1rem;
}

.splash-loader__mascot {
  width: clamp(88px, 16vw, 140px);
  height: auto;
  object-fit: contain;
  animation: splashAkioFloat 1.6s ease-in-out infinite;
}

.splash-loader__copy {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.splash-loader__copy strong {
  color: var(--sp-azul, #001c64);
  font-size: 0.96rem;
  line-height: 1.3;
}

.splash-loader__copy span {
  color: rgba(0, 28, 100, 0.66);
  font-size: 0.82rem;
  line-height: 1.25;
}

.splash-loader__bar {
  width: min(320px, 92%);
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 28, 100, 0.1);
  overflow: hidden;
}

.splash-loader__bar span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bb0811 0%, #ffa400 100%);
  animation: splashBarRun 1.35s ease-in-out infinite;
}

@keyframes splashBarRun {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes splashAkioFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes chipColor {
  0% {
    background-color: #bdd5f6;
  }

  50% {
    background-color: #ffb5ba;
  }

  100% {
    background-color: #bdd5f6;
  }
}

.animate-chip {
  animation: chipColor 2s infinite;
}

.superexpo-carousel {
  height: clamp(160px, 33vw, 600px);
  /* Altura responsiva */
  border-radius: 0.75rem;
  /* rounded-xl */
  position: relative;
}

.superexpo-carousel .swiper-wrapper {
  height: 100%;
}

.superexpo-carousel .swiper-slide {
  height: 100%;
}

.superexpo-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: 0.75rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  /* Tailwind: px-4 py-2 */
  border-radius: 9999px;
  /* rounded-full */
  font-weight: 600;
  /* font-semibold */
  color: var(--sp-azul);
  /* text-sp-azul */
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.nav-link:hover {
  background-color: var(--sp-azul-soft);
  /* hover:bg-sp-azul-soft */
  color: var(--sp-rojo);
  /* hover:text-sp-rojo */
  padding: 0.5rem 1rem;
}

.nav-link.active {
  background-color: var(--sp-rojo);
  /* bg-sp-rojo */
  color: var(--sp-blanco);
  /* text-white */
}
#marcas-carousel {
  background: var(--sp-fondo) !important;
  background-color: var(--sp-fondo) !important;
}

.marcas-carousel .swiper-wrapper {
  transition-timing-function: linear !important;
  background-color: var(--sp-fondo);
}
.marcas-carousel .swiper-slide {
  display: flex;
  align-items: center; /* centra verticalmente */
  justify-content: center; /* centra horizontalmente */
  height: 150px; /* altura fija del carril */
}

.marcas-carousel .swiper-slide img {
  max-height: 80%; /* evita que uno sea más grande que otro */
  max-width: 90%; /* que no sobrepase el ancho */
  object-fit: contain; /* respeta proporciones */
  display: block;
}

@media (min-width: 768px) {
  .marcas-carousel .swiper-slide {
    width: 180px;
  }
}
@keyframes akio-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
.akio-float {
  animation: akio-float 6s ease-in-out infinite;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.toast {
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
  animation: slideIn 0.4s ease, fadeOut 0.4s ease forwards;
  animation-delay: 0s, 3s;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease, fadeOut 0.4s ease forwards;
  animation-delay: 0s, 3s;
}
.toast i {
  font-size: 1.2rem;
}
.toast-success {
  background: linear-gradient(135deg, #059669, #10b981); /* verde */
}
.toast-error {
  background: linear-gradient(135deg, #bb0811, #e63946); /* rojo */
}
.toast-warning {
  background: linear-gradient(135deg, #b45309, #f59e0b); /* amarillo */
}
.toast-info {
  background: linear-gradient(135deg, #0c1f63, #2262aa); /* azul */
}
@keyframes slideIn {
  from {
    transform: translateX(150%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(150%);
  }
}

/* Scrollbar sutil dentro del panel */
.custom-scroll::-webkit-scrollbar {
  width: 8px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}
.custom-scroll:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}
.text-sp-azul {
  color: #0d1f51;
}
.bg-sp-azul {
  background: #0d1f51;
}
.bg-sp-azul-soft {
  background: #eef2ff;
}
.rounded-xl {
  border-radius: 0.75rem;
}

/* Carrusel apaisado: 3:1 aprox, sin recortes */
.swiper-club-akio {
  position: relative;
  aspect-ratio: 3 / 1; /* moderno */
  height: auto; /* deja que la relación mande */
  background: #fff;
}
.swiper-club-akio .swiper-wrapper,
.swiper-club-akio .swiper-slide {
  height: 100%;
}

.swiper-club-akio .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* no deformar banners */
  display: block;
}

/* Flechas y paginación */
.swiper-club-akio .swiper-button-prev,
.swiper-club-akio .swiper-button-next {
  color: var(--sp-rojo-soft, #c62828);
}
.swiper-club-akio .swiper-pagination-bullet {
  background: var(--sp-rojo-soft, #c62828);
  opacity: 0.7;
}
.swiper-club-akio .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--sp-rojo, #b71c1c);
}
/* Contenedor principal del hero */
.club-akio-hero {
  display: grid;
  place-items: center;
  background: #f6f7fb;
  border-radius: 0.75rem; /* rounded-xl */
  overflow: hidden;
  padding: clamp(8px, 2vw, 24px);
}

/* Marco que conserva la relación 1536x1988 */
.akio-frame {
  aspect-ratio: 1536 / 1988; /* relación real del arte */
  max-height: min(95vh, 2188px); /* altura controlada para pantallas grandes */
  display: grid;
  place-items: center;
}

/* Imagen interna sin recortes */
.akio-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.agregar-btn .fa { line-height: 1 !important; }

[data-product-card] {
  min-width: 0;
}

[data-product-card] .product-card-price-row {
  flex-wrap: wrap;
  gap: 0.45rem;
}

[data-product-card] .product-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

[data-product-card] .product-card-actions > * {
  min-width: 0;
}

[data-product-card] .cantidad-input {
  padding: 0 0.25rem;
}

@media (max-width: 430px) {
  [data-product-card] {
    padding: 0.8rem;
  }

  [data-product-card] h3 a {
    display: block;
    word-break: break-word;
  }
}

@media (max-width: 390px) {
  [data-product-card] .minus-btn,
  [data-product-card] .plus-btn {
    width: 2.4rem;
  }

  [data-product-card] .product-card-actions {
    grid-template-columns: 1fr;
  }

  [data-product-card] .product-card-actions .agregar-btn,
  [data-product-card] .product-card-actions a {
    height: 2.5rem;
  }
}

/* ============================================
   FASE 1: MARKETPLACE LAYOUT PUBLICO
   ============================================ */
body.sp-page-bg {
  background: #f8faff;
  color: #001c64;
  line-height: 1.45;
}

.sp-top-strip {
  background: #001c64;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-top-strip__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.42rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  flex-wrap: wrap;
}

.sp-top-strip__inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.95;
}

.sp-header {
  background: #ffffff;
  border-bottom: 1px solid #d9dde8;
  box-shadow: 0 5px 16px rgba(0, 28, 100, 0.08);
  z-index: 280;
}

.sp-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.55rem 1rem 0.75rem;
}

.sp-header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.sp-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sp-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.sp-sucursal-chip {
  display: none;
}

.sp-store-switch {
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d9dde8;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  color: #001c64;
  font-size: 0.78rem;
  background: #ffffff;
}

.sp-store-switch strong {
  color: #001c64;
  font-size: 0.82rem;
}

.sp-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sp-header__icon {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #d9dde8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #001c64;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-header__icon:hover {
  border-color: #001c64;
  background: #f4f4f2;
}

.sp-header__icon--danger {
  color: #bb0811;
}

.sp-header__cart {
  position: relative;
}

.sp-cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  background: #bb0811;
  color: #ffffff;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  font-size: 0.64rem;
  line-height: 1.1rem;
  text-align: center;
  padding: 0 0.22rem;
  box-shadow: 0 3px 10px rgba(187, 8, 17, 0.28);
}

.sp-cart-sidebar {
  min-width: 20rem;
  max-width: 30rem;
  background: #ffffff;
  border-left: 1px solid #d9dde8;
}

.sp-cart-sidebar__header {
  background: #ffffff;
  border-bottom: 1px solid #d9dde8;
  box-shadow: 0 8px 24px rgba(0, 28, 100, 0.08);
}

.sp-cart-sidebar__header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}

.sp-cart-sidebar__header .sp-brand {
  padding-right: 0.25rem;
}

.sp-cart-sidebar__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #001c64;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  opacity: 0.85;
}

.sp-cart-sidebar__title {
  margin: 0;
  font-size: 1rem;
  color: #001c64;
  font-weight: 800;
  line-height: 1.2;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-cart-sidebar__content {
  background: #f8fafc;
}

.sp-cart-sidebar__footer {
  background: #ffffff;
}

.sp-admin-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #001c64;
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.sp-admin-shortcut:hover {
  background: #bb0811;
}

.sp-search-desktop {
  margin-top: 0.62rem;
}

.sp-search-mobile {
  margin-top: 0.55rem;
}

.sp-search-form {
  position: relative;
  width: 100%;
}

.sp-search-input {
  width: 100%;
  height: 2.82rem;
  border-radius: 999px;
  border: 2px solid #001c64;
  background: #ffffff;
  color: #001c64;
  padding: 0.45rem 3rem 0.45rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.sp-search-input:focus {
  border-color: #ffa400;
  box-shadow: 0 0 0 3px rgba(255, 164, 0, 0.2);
}

.sp-search-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #ffa400;
  color: #001c64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sp-search-btn:hover {
  background: #e89900;
}

.sp-search-form {
  position: relative;
  z-index: 160;
}

.sp-search-suggest {
  position: absolute;
  z-index: 320;
  min-width: 100%;
}

.sp-nav-secondary {
  background: #f4f4f2;
  border-bottom: 1px solid #d9dde8;
}

.sp-nav-secondary__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.38rem 1rem;
}

.sp-nav-link {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  border-radius: 999px;
  padding: 0 0.85rem;
  color: #001c64;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sp-nav-link:hover,
.sp-nav-link.is-active {
  background: #ffffff;
  color: #001c64;
}

.sp-nav-pill {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  border-radius: 999px;
  padding: 0 0.95rem;
  background: #bb0811;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.sp-nav-pill:hover {
  background: #99060e;
}

.sp-mobile-quick-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.sp-mobile-quick-links a {
  flex: 0 0 auto;
  height: 1.95rem;
  border-radius: 999px;
  padding: 0 0.82rem;
  border: 1px solid #bfc6d8;
  color: #001c64;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.sp-mobile-quick-links a:first-child {
  border-color: #bb0811;
  color: #bb0811;
}

.sp-branch-mobile {
  background: #ffffff;
}

#mobileMenu {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border-right: 1px solid #d9dde8;
}

#mobileMenu .glass-card {
  background: #ffffff !important;
  backdrop-filter: none !important;
}

main.container {
  width: min(1320px, 100% - 1.25rem);
}

.sp-footer-wrap .sp-footer {
  background: #ffffff;
  border-top: 1px solid #d9dde8;
  backdrop-filter: none;
}

@media (min-width: 1024px) {
  .sp-header__row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .sp-store-switch {
    justify-self: start;
  }

  .sp-header__actions {
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .sp-top-strip__inner {
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 0.7rem;
  }

  .sp-header__inner {
    padding: 0.48rem 0.75rem 0.65rem;
  }

  .sp-header__icon {
    width: 2.32rem;
    height: 2.32rem;
  }

  .sp-search-input {
    height: 2.7rem;
    font-size: 0.9rem;
  }

  .sp-search-btn {
    width: 2rem;
    height: 2rem;
  }
}

/* ===== HOTFIX FASE 1: HEADER MARKETPLACE PUBLICO ===== */

.sp-top-strip {
  background: var(--sp-azul);
  color: var(--sp-blanco);
  font-size: 13px;
  line-height: 1.2;
}

.sp-top-strip__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.sp-top-strip__inner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sp-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--sp-azul-hielo);
  box-shadow: 0 8px 24px rgba(0, 28, 100, 0.08);
  backdrop-filter: blur(10px);
}

.sp-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: auto minmax(360px, 560px) auto;
  align-items: center;
  gap: 24px;
}

.sp-header__row {
  display: contents;
}

.sp-brand-wrap {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sp-azul);
  font-weight: 800;
  line-height: 1;
}

.sp-brand img {
  display: block;
  width: auto;
  max-height: 42px;
}

.sp-sucursal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sp-gris-papel);
  color: var(--sp-azul);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px var(--sp-azul-hielo);
}

.sp-header__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: max-content;
}

.sp-header__icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-azul);
  background: var(--sp-blanco);
  border: 1px solid var(--sp-azul-hielo);
  text-decoration: none;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sp-header__icon:hover {
  transform: translateY(-1px);
  background: var(--sp-gris-papel);
  box-shadow: 0 8px 18px rgba(0, 28, 100, 0.12);
}

.sp-header__icon--danger {
  color: var(--sp-rojo);
}

.sp-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sp-rojo);
  color: var(--sp-blanco);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sp-admin-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--sp-azul);
  color: var(--sp-blanco);
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 28, 100, 0.18);
}

.sp-search-desktop {
  grid-column: 2;
  width: 100%;
  margin-top: 0;
}

.sp-search-mobile {
  display: none;
  margin-top: 0;
}

.sp-search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--sp-blanco);
  border: 1px solid var(--sp-azul-hielo);
  border-radius: 999px;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(0, 28, 100, 0.08);
}

.sp-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sp-azul);
  padding: 13px 16px 13px 18px;
  font-size: 15px;
  line-height: 1.2;
}

.sp-search-input::placeholder {
  color: #8b94ad;
}

.sp-search-btn {
  position: static;
  transform: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--sp-azul);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
}

.sp-search-btn:hover {
  color: var(--sp-rojo);
  background: var(--sp-gris-papel);
}

.sp-search-suggest {
  z-index: 90;
  line-height: 1.35;
}

.sp-nav-secondary {
  background: var(--sp-blanco);
  border-bottom: 1px solid var(--sp-azul-hielo);
  box-shadow: 0 4px 14px rgba(0, 28, 100, 0.04);
}

.sp-nav-secondary__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-nav-secondary__nav {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.2rem;
}

.sp-nav-item {
  position: relative;
}

.sp-nav-link,
.sp-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--sp-azul);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.sp-nav-link:hover {
  background: var(--sp-gris-papel);
  color: var(--sp-rojo);
}

.sp-nav-link {
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sp-nav-link:hover,
.sp-nav-link:focus-visible {
  transform: translateY(-1px);
}

.sp-nav-pill {
  background: var(--sp-naranja-pastel);
  color: var(--sp-azul);
}

.nav-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,248,252,1) 100%);
  border: 1px solid rgba(0, 28, 100, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 24px 70px rgba(0, 28, 100, 0.12);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.nav-panel__header {
  border-bottom: 1px solid rgba(0, 28, 100, 0.08);
}

.nav-panel__header .text-xs {
  letter-spacing: 0.24em;
}

.nav-panel__body {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-panel__mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--sp-gris-papel);
  color: var(--sp-azul);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel__mini-link:hover {
  background: var(--sp-azul);
  color: var(--sp-blanco);
}

.nav-panel__item {
  display: block;
  padding: 0.9rem 1.1rem;
  border-radius: 1.05rem;
  background: rgba(255,255,255,0.94);
  border: 1px solid transparent;
  color: var(--sp-azul);
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.nav-panel__item:hover {
  background: rgba(12, 31, 99, 0.08);
  border-color: rgba(0, 28, 100, 0.14);
  transform: translateY(-1px);
}

.nav-panel--brands {
  max-height: 72vh;
}

.nav-panel--service {
  min-width: 18rem;
}

.sp-nav-pill:hover {
  background: var(--sp-naranja);
  color: var(--sp-azul);
}

#navMarcasPanel {
  z-index: 100;
  line-height: 1.35;
}

#navMarcasAnchor {
  will-change: transform;
}

.sp-mobile-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.sp-mobile-quick-links::-webkit-scrollbar {
  display: none;
}

.sp-mobile-quick-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--sp-gris-papel);
  color: var(--sp-azul);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.sp-branch-mobile {
  background: var(--sp-blanco);
  border-bottom: 1px solid var(--sp-azul-hielo);
  line-height: 1.2;
}

@media (max-width: 1023px) {
  .sp-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .sp-brand-wrap {
    min-width: auto;
  }

  .sp-admin-shortcut {
    padding: 10px 13px;
  }
}

@media (max-width: 767px) {
  .sp-top-strip__inner {
    justify-content: flex-start;
    gap: 14px;
    padding: 7px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .sp-top-strip__inner::-webkit-scrollbar {
    display: none;
  }

  .sp-header__inner {
    display: block;
    padding: 10px 14px 12px;
  }

  .sp-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .sp-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .sp-brand img {
    max-height: 38px;
  }

  .sp-sucursal-chip {
    font-size: 10px;
    padding: 4px 9px;
  }

  .sp-header__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: max-content;
  }

  .sp-header__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .sp-search-desktop {
    display: none !important;
  }

  .sp-search-mobile {
    display: block;
    width: 100%;
  }

  .sp-search-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .sp-search-btn {
    width: 42px;
    height: 42px;
  }

  .sp-nav-secondary__inner {
    padding: 0 14px;
    min-height: 44px;
    justify-content: flex-start;
  }
}

/* ===== HOTFIX FONDO GLOBAL PUBLICO ===== */
body {
  background-color: var(--sp-fondo, #f7f9fc);
}

body.sp-page-bg {
  background: #f8faff;
  color: var(--sp-azul, #001c64);
}

body.sp-page-bg main,
body.sp-page-bg main.container,
body.sp-page-bg .container,
body.sp-page-bg .sp-container {
  background: transparent;
}

/* ===== HOTFIX PRODUCT CARD ACTIONS PUBLICO ===== */

[data-product-card] .product-card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-items: stretch !important;
}

[data-product-card] .product-card-actions > * {
  width: 100% !important;
}

[data-product-card] .agregar-btn {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  background: var(--sp-naranja, #ffa400) !important;
  color: var(--sp-azul, #001c64) !important;
  border: 1px solid var(--sp-naranja, #ffa400) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

[data-product-card] .agregar-btn:hover {
  background: color-mix(in srgb, var(--sp-naranja, #ffa400) 88%, #ffffff) !important;
  color: var(--sp-azul, #001c64) !important;
}

[data-product-card] .agregar-btn i,
[data-product-card] .agregar-btn svg {
  flex: 0 0 auto !important;
  line-height: 1 !important;
}

[data-product-card] .product-card-actions a:not(.agregar-btn) {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  background: var(--sp-blanco, #ffffff) !important;
  color: var(--sp-azul, #001c64) !important;
  border: 1px solid var(--sp-azul-hielo, #d9dde8) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

[data-product-card] .product-card-actions a:not(.agregar-btn):hover {
  background: var(--sp-gris-papel, #f4f4f2) !important;
  color: var(--sp-azul, #001c64) !important;
}
