/* ===================== NAVBAR ===================== */
    

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      flex-shrink: 0;
    }

    .nav-logo img {
      height: 50px;
      width: auto;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.2rem;
      list-style: none;
      margin-left: 1rem;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding: 0.5rem 0.9rem;
      border-radius: 6px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .nav-links a:hover { color: var(--azul-acento); background: rgba(77,179,255,0.08); }

    .nav-links .has-dropdown { position: relative; }
    .nav-links .has-dropdown::after { content: '▾'; font-size: 10px; margin-left: 2px; }

    .nav-search {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .search-box {
      display: flex;
      align-items: center;
      background: rgba(0, 0, 0, 0.288);
      border: 1px solid rgba(255, 255, 255, 0.664);
      border-radius: 50px;
      padding: 0.4rem 1rem;
      gap: 8px;
    }

    .search-box input {
      background: none;
      border: none;
      outline: none;
      color: white;
      font-family: var(--font-body);
      font-size: 13px;
      width: 180px;
    }

    .search-box input::placeholder { color: rgba(255,255,255,0.4); }

    .search-box svg { color: rgba(255,255,255,0.5); flex-shrink: 0; }

    .btn-contacto {
      background: #005be4;
      border: 1px solid #005be4 !important;
      color: white;
      border-radius: 8px;
      padding: 0.5rem 1.4rem;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
      white-space: nowrap;
      text-decoration: none;
    }

    .btn-contacto:hover { background: #023b91; color: white; border: 1px solid #007bff !important; box-shadow: 0 0 12px rgba(0, 153, 255, 0.6); }

 .search-category{
  background: transparent;
    }
    #opcion {
      background: #005be4;
      border: none;
      padding: 4px;
      padding-right: 10px;
      padding-left: 10px;
      font-weight: bold;
      border-radius: 50px;
      color: white;
      font-family: var(--font-body);
      font-size: 13px;
      cursor: pointer;
      outline: none;
      transition: background 0.3s ease;
    }
    #opcion:hover {
      background: #023b91;
    }

.nav-inner {
max-width: 1280px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      align-items: center;
      gap: 2rem;
}

.nav-logo img {
  height: 50px;
}

.nav-links {
  display: flex;
      align-items: center;
      gap: 0.2rem;
      list-style: none;
      margin-left: 1rem;
}

.nav-links a {
color: white;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding: 0.5rem 0.9rem;
      border-radius: 6px;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 4px;
}



.search-box input {
  background: none;
  border: none;
  color: white;
  outline: none;
}

/* CARRITO */
.cart-info a {
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}
#magnifier-icon{
    color: white;
    transition: color 0.3s ease;
}
#magnifier-icon:hover{
    color: #6dc5ff;
}
.calculator-icon{
    color: white !important;
}

.cti-navbar .icon-user,
.cti-navbar .cart-info a,
.cti-navbar #magnifier-icon {
  color: white;
}


/* ===== ESTADO SCROLL ===== */

.cti-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;

  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2rem;

  /* clave */
  position: fixed;
  overflow: visible;
}

/* CAPA DE FONDO */
.cti-navbar::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
  to bottom,
  rgba(248,249,251,0.95) 0%,
  rgba(255,255,255,0.98) 100%
);

  opacity: 0;
  transition: opacity 0.4s ease;

  z-index: -1;
}

/* ESTADO SCROLL */
.cti-navbar.scrolled::before {
  opacity: 1;
}
.cti-navbar.scrolled::before {
  backdrop-filter: blur(10px);
}

/* sombra suave */
.cti-navbar.scrolled {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: box-shadow 0.4s ease;
}

/* LINKS OSCUROS */
.cti-navbar.scrolled .nav-links a {
  color: #1a1a1a;
}

.cti-navbar.scrolled .nav-links a:hover {
  color: #005be4;
  background: rgba(77, 124, 255, 0.08);
}

/* ICONOS OSCUROS */
.cti-navbar.scrolled .icon-user,
.cti-navbar.scrolled .mobile-menu-btn,
.cti-navbar.scrolled .cart-info a,
.cti-navbar.scrolled #magnifier-icon {
  color: #1a1a1a;
}

/* BUSCADOR */
.cti-navbar.scrolled .search-box {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
}

.cti-navbar.scrolled .search-box input {
  color: #1a1a1a;
}

.cti-navbar.scrolled .search-box input::placeholder {
  color: rgba(0,0,0,0.4);
}

.cti-navbar.scrolled .cart-info a:hover{
    color: #005be4;
}


/* MOBILE MENU BUTTON */

.mobile-menu-only{
  display:none;
}

.mobile-menu-btn{
  color:white;
  font-size:30px;
  text-decoration:none;
}

/* MOBILE */

@media(max-width:1100px){

  .nav-links,
  .search-box,
  .btn-contacto{
    display:none;
  }

  .mobile-menu-only{
    display:flex;
    align-items:center;
    margin-left:1rem;
  }

  .header-tools{
    margin-left:auto;
  }

}

/* =========================================
   MOBILE PREMIUM NAVBAR
========================================= */

.mobile-right{
  display:none;
}

/* OFFCANVAS */

/* ═══════════════════════════════════════
   OFFCANVAS REDISEÑADO
═══════════════════════════════════════ */
 
.offcanvas-mobile-menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  z-index: 9999;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -16px 0 60px rgba(0,0,0,0.5);
 
  /* Fondo degradado CTI */
  background:
    linear-gradient(
      160deg,
      #040d1e 0%,
      #071530 45%,
      #040d1e 100%
    );
 
  /* Borde izquierdo sutil */
  border-left: 1px solid rgba(77,179,255,0.12);
 
  /* Estructura: cabecera fija + scroll + footer fijo */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
 
.offcanvas-mobile-menu.offcanvas-open {
  right: 0;
  padding: 0;
  padding-top: 20px;
}
 
/* ── Glow decorativo de fondo ── */
.offcanvas-mobile-menu::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,89,255,0.15) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
}
/* ══════════════════
   CABECERA FIJA
══════════════════ */
.mmenu-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
 
.mmenu-logo img {
  margin-left: 1rem;
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}
 
.mmenu-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
 
.mmenu-close:hover {
  background: rgba(0,89,255,0.25);
  color: #fff;
}
 
/* ══════════════════
   ZONA SCROLLABLE
══════════════════ */
.mmenu-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.2rem 0.5rem;
 
  /* Scrollbar discreta */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,89,255,0.4) transparent;
}
 
.mmenu-scroll::-webkit-scrollbar { width: 3px; }
.mmenu-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,89,255,0.45);
  border-radius: 3px;
}
 
/* ── Link normal ── */
.mmenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin-bottom: 2px;
}
 
.mmenu-link:hover,
.mmenu-link.active {
  background: rgba(0,89,255,0.12);
  color: #ffffff;
  transform: translateX(3px);
}
 
.mmenu-link .mmenu-link-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0059ff;
  box-shadow: 0 0 6px rgba(0,89,255,0.7);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
 
.mmenu-link:hover .mmenu-link-dot,
.mmenu-link.active .mmenu-link-dot {
  opacity: 1;
}
 
/* ── Separador de sección ── */
.mmenu-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.75rem 0;
}
 
/* ── Categorías accordion ── */
.mmenu-category-toggle {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body, 'Inter', sans-serif);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
}
 
.mmenu-category-toggle:hover {
  background: rgba(0,89,255,0.12);
  color: #ffffff;
}
 
.mmenu-cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
 
/* Chevron animado */
.mmenu-chevron {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
 
.mmenu-category-toggle.open .mmenu-chevron {
  transform: rotate(180deg);
}
 
/* Panel de categorías (colapsable) */
.mmenu-category-panel {
  display: none;
  padding: 0.4rem 0 0.4rem 0.8rem;
  border-left: 2px solid rgba(0,89,255,0.35);
  margin: 0 0 0.4rem 1.3rem;
}
 
.mmenu-category-panel.open {
  display: block;
}
 
.mmenu-cat-group {
  margin-bottom: 1rem;
}
 
.mmenu-cat-group h5 {
  color: #4db3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding: 0 0.6rem;
}
 
.mmenu-cat-group a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
 
.mmenu-cat-group a:hover {
  background: rgba(0,89,255,0.1);
  color: rgba(255,255,255,0.9);
}
 
/* ══════════════════
   FOOTER FIJO
══════════════════ */
.mmenu-footer {
  position: relative;
  z-index: 2;
  padding: 1rem 1.2rem 1.4rem;
  padding-bottom: 7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background:
    linear-gradient(
      to top,
      rgba(4,13,30,0.98) 0%,
      rgba(4,13,30,0.90) 100%
    );
  
}
 
.mmenu-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 14px;
  background: #0059ff;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body, 'Inter', sans-serif);
  border: 1px solid #0059ff;
  transition: background 0.2s, box-shadow 0.2s;
}
 
.mmenu-contact-btn:hover {
  background: #003fcc;
  box-shadow: 0 0 20px rgba(0,89,255,0.45);
  color: #fff;
}

.mobile-menu-content{
  padding:2rem;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}

.mobile-menu-content a{
  color:white;
  text-decoration:none;
  font-size:17px;
  font-weight:600;
  padding:0.9rem 1rem;
  border-radius:12px;
  transition:0.3s ease;
}

.mobile-menu-content a:hover{
  background:rgba(255,255,255,0.06);
}

.offcanvas-close{
  background:none;
  border:none;
  color:white;
  font-size:38px;
  align-self:flex-end;
  cursor:pointer;
}

.mobile-contact-btn{
  background:#005be4;
  text-align:center;
  margin-top:1rem;
}

/* MOBILE */
@media(max-width:1100px){

  .cti-navbar{
    padding:0 1rem;
    height:74px;
  }

  .nav-inner{
    width:100%;
    gap:0.7rem;
  }

  /* LOGO */

  .nav-logo img{
    height:40px;
  }

  /* OCULTAR DESKTOP */

  .nav-links,
  .btn-contacto,
  .dropdown{
    display:none;
  }

  /* ====================================
     SEARCH BOX MOBILE
  ==================================== */

  .search-box{
    display:flex !important;
    align-items:center;
    flex:0.9;
    min-width:0;

    gap:0.5rem;

    padding:0.25rem 0.7rem;
    margin-left:0.4rem;
    border-radius:50px;

    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.15);
  }

  /* SELECT AZUL */

  #opcion{
    display:block !important;

    padding:5px 10px;

    font-size:11px;

    flex-shrink:0;
  }

  /* INPUT */

  .search-box input{
    width:100%;
    min-width:0;

    font-size:12px;
  }

  /* BOTON SEARCH */

  .search-box button{
    flex-shrink:0;
  }

  #magnifier-icon{
    font-size:14px;
  }

  /* ====================================
     RIGHT SIDE
  ==================================== */

  .mobile-right{
    display:flex;
    align-items:center;
    gap:0.8rem;
    margin-left:auto;
  }

  /* ESCONDER DESKTOP TOOLS */

  .header-tools{
    display:none !important;
  }

  /* ====================================
     CARRITO
  ==================================== */

  .mobile-cart-wrap .bag{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;

    font-size:20px;
  }

  /* OCULTAR PRECIO */

  .mobile-cart-wrap .bag span{
    display:none;
  }

  /* BADGE */

  .mobile-cart-wrap .bag::after{

    content: attr(data-number);

    position:absolute;

    top:-7px;
    right:-9px;

    width:18px;
    height:18px;

    border-radius:50%;

    background:#007bff;

    color:white;

    font-size:10px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 0 10px rgba(0,123,255,0.5);
  }

  .mobile-cart-wrap iconify-icon{
    font-size:21px;
  }

  /* ====================================
     MENU BUTTON
  ==================================== */

  .mobile-menu-btn{
    color:white;
    text-decoration:none;

    font-size:24px;

    display:flex;
    align-items:center;
    justify-content:center;

    line-height:1;
  }
  

}

/* =========================================
   DROPDOWN PREMIUM
========================================= */

.nav-dropdown{
  position:relative;
}

/* PANEL */

.mega-dropdown{

  position:absolute;

  top:120%;
  left:0;

  width:400px;

  padding:2rem;

  border-radius:24px;

  background:
  rgba(8, 16, 30, 0.596);

  backdrop-filter:blur(20px);

  border:
  1px solid rgba(255,255,255,0.08);

  box-shadow:
  0 30px 40px rgba(0,0,0,0.35);

  display:grid;

  grid-template-columns:
  repeat(3,1fr);

  gap:2rem;

  opacity:0;
  visibility:hidden;

  transform:
  translateY(10px);

  transition:
  .28s ease;

  z-index:999;
}

/* SHOW */

.nav-dropdown:hover .mega-dropdown{

  opacity:1;
  visibility:visible;

  transform:
  translateY(0);
}

.cti-navbar.scrolled .mega-dropdown{
  background:
  rgba(255,255,255,0.95);

  border:
  1px solid rgba(0,0,0,0.1);

  box-shadow:
  0 30px 40px rgba(0,0,0,0.15);
}
/* COLUMN */

.mega-column h4{

  color:white;

  font-size:14px;

  font-family: var(--font-body);

  font-weight:800;

  margin-bottom:1rem;

  letter-spacing:1px;

  text-transform:uppercase;
}
.cti-navbar.scrolled .mega-column h4{
  color:#1a1a1a;
}
.mega-column{

  display:flex;
  flex-direction:column;
  gap:.4rem;
}

/* LINKS */

.mega-column a{

  color:
  rgba(255,255,255,.7);

  text-decoration:none;

  font-size:14px;

  padding:.55rem .7rem;

  border-radius:10px;

  transition:.25s ease;
}

.mega-column a:hover{

  background:
  rgba(0,102,255,.15);

  color:#6ec1ff;

  transform:
  translateX(4px);
}

.cti-navbar.scrolled .mega-column a{
  color: rgba(0, 0, 0, 0.5);
}

/* =========================================
   MOBILE CATEGORIES
========================================= */

.mobile-category-toggle{

  width:100%;

  background:none;

  border:none;

  color:white;

  font-size:17px;

  font-weight:600;

  display:flex;

  align-items:center;
  justify-content:space-between;

  padding:1rem;

  border-radius:12px;

  cursor:pointer;
}

.mobile-category-dropdown{

  display:none;

  padding-left:1rem;

  margin-top:.5rem;
}

.mobile-category-group{

  margin-bottom:1.2rem;
}

.mobile-category-group h5{

  color:#6ec1ff;

  font-size:13px;

  margin-bottom:.7rem;

  text-transform:uppercase;

  letter-spacing:1px;
}

.mobile-category-group a{

  display:block;

  padding:.55rem 0;

  color:
  rgba(255,255,255,.75);

  text-decoration:none;

  font-size:14px;
}