/* IGr Ecommerce — retail tech MX (estilo azul profundo) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --fenix-black: #041226;
  --fenix-white: #ffffff;
  --fenix-orange: #0b7ebd;
  --fenix-orange-dark: #0963a0;
  --fenix-gray-bg: #f0f4f8;
  --fenix-muted: #6b7a8f;
  --fenix-surface: #062c5d;
  --fenix-surface-2: #041226;
  --fenix-border: #dce2eb;
  --fenix-glow: rgba(11, 126, 189, 0.25);
  --fenix-deal: #e53935;
  --fenix-accent-glow: rgba(11, 126, 189, 0.15);
  --fenix-nav-bg: #041226;
  --fenix-card-bg: #ffffff;
  --fenix-hero-from: #041226;
  --fenix-hero-to: #062c5d;
}

.fenix-store,
.fenix-store body {
  margin: 0;
}

body.fenix-store {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--fenix-gray-bg);
  color: #333;
  letter-spacing: 0;
}

body.fenix-store a {
  color: inherit;
  text-decoration: none;
}

body.fenix-store a:hover {
  color: var(--fenix-orange);
}

/* ---------- Barras promo ---------- */

.fenix-promo-stack {
  background: var(--fenix-black);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fenix-promo-stack .fenix-promo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.42rem 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

@media (max-width: 575.98px) {
  .fenix-promo-stack .fenix-promo-line {
    padding-left: 2.85rem;
    padding-right: 2.85rem;
    text-align: center;
  }

  .fenix-promo-stack .fenix-promo-line span:first-of-type {
    line-height: 1.35;
    font-size: 0.68rem;
  }
}

.fenix-promo-stack .fenix-promo-dismiss {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fenix-orange);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.85;
}

.fenix-promo-stack .fenix-promo-dismiss:hover {
  opacity: 1;
  color: var(--fenix-white);
}

.fenix-promo-line[data-fenix-dismissed="true"],
.fenix-promo-stack[data-all-dismissed="true"] {
  display: none !important;
}

/* ---------- Cabecera principal ---------- */

.fenix-main-header {
  background: #fff;
  border-bottom: none;
}

.fenix-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fila 1: logo + busqueda centrada + iconos (las categorías van aparte). */
.fenix-header-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  min-height: 64px;
  padding: 0.35rem 0;
}

@media (min-width: 992px) {
  .fenix-header-bar {
    min-height: 74px;
  }
}

.fenix-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.fenix-script-logo {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--fenix-black) !important;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Logotipo alineado a la izquierda en la barra superior (antes quedaba hacinado contra las categorías). */
.fenix-script-logo--header-bar {
  text-align: left;
}

.fenix-script-logo:hover {
  color: var(--fenix-orange) !important;
}

.fenix-brand-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.fenix-brand-logo-img {
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.fenix-footer-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.fenix-footer-brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Búsqueda expandida en el centro solo en escritorio */
.fenix-header-search {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0 0.5rem;
  min-width: 0;
}

.fenix-header-search input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px 0 0 999px;
}

.fenix-search-submit {
  border: 1px solid var(--fenix-orange);
  background: var(--fenix-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0 999px 999px 0;
  margin-left: -1px;
}

.fenix-search-submit:hover {
  filter: brightness(1.06);
}

.fenix-search-submit:focus-visible {
  outline: 2px solid var(--fenix-orange);
  outline-offset: 2px;
}

/* Autocompletado búsqueda productos */

.fenix-search-autocomplete {
  position: relative;
  z-index: 65;
}

.fenix-search-ac-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fenix-header-search.fenix-search-autocomplete .fenix-search-ac-shell input[type="search"],
.fenix-header-search.fenix-search-autocomplete .fenix-search-ac-shell input[name="search"] {
  width: 100%;
}

.fenix-drawer-mobile .fenix-drawer-search-shell {
  width: 100%;
}

.fenix-catalog-search-shell {
  position: relative;
  flex: 1 1 220px;
  min-width: 160px;
}

.fenix-catalog-search-shell input[name="search"] {
  width: 100%;
}

.fenix-search-ac-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border-radius: 6px;
  max-height: min(360px, 52vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 32px rgba(4, 18, 38, 0.14);
  z-index: 200;
}

.fenix-search-autocomplete--dark .fenix-search-ac-panel,
.fenix-search-autocomplete--light .fenix-search-ac-panel {
  background: #fff;
  border: 1px solid var(--fenix-border);
  color: #1e2a3a;
}

.fenix-search-ac-status,
.fenix-search-ac-empty {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fenix-muted);
}

.fenix-search-ac-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none !important;
  color: #1e2a3a !important;
  border-bottom: 1px solid #f0f4f8;
}

.fenix-search-ac-item:last-of-type {
  border-bottom: none;
}

.fenix-search-ac-item:hover {
  background: #e8f4fd;
}

.fenix-search-ac-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--fenix-border);
  background: #f8fafc;
}

.fenix-search-ac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 2px;
}

.fenix-search-ac-thumb--ph {
  background: linear-gradient(145deg, #e8f4fd, #f0f4f8);
}

.fenix-search-ac-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.fenix-search-ac-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fenix-search-ac-brand {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fenix-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fenix-search-ac-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fenix-orange);
}

.fenix-search-ac-footer {
  display: block;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-top: 1px solid #f0f4f8;
  color: var(--fenix-orange) !important;
  background: #f8fafc;
}

.fenix-search-ac-footer:hover {
  background: #e8f4fd;
}

.fenix-header-search.fenix-search-autocomplete {
  position: relative;
  z-index: 110;
}

/* ---------- Navegación escritorio / categorías ---------- */

.fenix-shop-nav-rail {
  background: var(--fenix-surface);
  padding: 0.2rem 0;
  overflow: hidden;
}

.fenix-desktop-shop-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  min-height: 38px;
}

.fenix-shop-nav-strip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fenix-shop-nav-strip::-webkit-scrollbar {
  display: none;
}

.fenix-shop-nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem !important;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fenix-shop-nav-link:hover {
  color: #fff !important;
  background: rgba(11, 126, 189, 0.12);
  border-bottom-color: var(--fenix-orange);
}

.fenix-shop-nav-catalog {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fenix-shop-nav-catalog--active {
  background: rgba(11, 126, 189, 0.18) !important;
  color: var(--fenix-orange) !important;
  border-bottom-color: var(--fenix-orange) !important;
}

.fenix-megamenu-toggle {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.fenix-megamenu-toggle:hover {
  background: rgba(11, 126, 189, 0.12) !important;
  color: #fff !important;
}

.fenix-megamenu-toggle::after {
  display: none !important;
}

.fenix-megamenu.dropdown-menu {
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--fenix-border);
  box-shadow: 0 12px 32px rgba(4, 18, 38, 0.15);
  padding: 0.75rem;
  margin-top: 0 !important;
}

.fenix-megamenu-intro-kicker {
  color: var(--fenix-orange) !important;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fenix-megamenu-intro-title {
  color: var(--fenix-black) !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
}

/* ---------- Móvil / Drawer ---------- */

.fenix-drawer-mobile {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fenix-drawer-mobile .fenix-search-form input {
  border: 2px solid var(--fenix-border);
  background: #fff;
  color: #333;
  border-radius: 6px;
}

.fenix-drawer-mobile-nav .fenix-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fenix-drawer-mobile-nav .fenix-nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #333 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f0f0;
}

.fenix-drawer-mobile-nav .fenix-nav-list a:hover {
  color: var(--fenix-orange) !important;
  background: #f5f9ff;
}

/* ---------- Footer ---------- */

.fenix-site-footer {
  background: #041226;
  border-top: 3px solid var(--fenix-orange);
  color: rgba(255, 255, 255, 0.85);
}

.fenix-footer-inline-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.fenix-footer-inline-link:hover {
  color: #fff !important;
}

.fenix-footer-band {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.fenix-footer-band-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fenix-footer-social-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.fenix-footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7) !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.fenix-footer-social-btn:hover {
  background: var(--fenix-orange);
  color: #fff !important;
}

.fenix-footer-social-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.fenix-footer-phone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.fenix-footer-phone-pill {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.78rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}

.fenix-footer-phone-pill:hover {
  border-color: var(--fenix-orange);
  color: #fff !important;
}

.fenix-footer-muted {
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Scroll top & reviews chip ---------- */

.fenix-scroll-top-btn,
.fenix-reviews-chip {
  background: var(--fenix-orange);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 90;
}

.fenix-scroll-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fenix-reviews-chip {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Alertas TempData ---------- */

.fenix-alert-wrap .alert {
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
}

.fenix-alert-wrap .alert-success {
  background: #d4edda;
  color: #155724;
}

.fenix-alert-wrap .alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.fenix-alert-wrap .alert-warning {
  background: #fff3cd;
  color: #856404;
}