/* JD Importaciones: estilo compartido del header y footer; inspirado en la landing. */
.jd-brand-strip { height: 7px; flex: 0 0 7px; background: repeating-linear-gradient(90deg,#080096 0 84px,transparent 84px 96px,#ff8a00 96px 180px,transparent 180px 192px,#58c4bc 192px 276px,transparent 276px 288px,#e5262a 288px 372px,transparent 372px 384px,#6fb712 384px 468px,transparent 468px 480px); }
.jd-layout-container { width: 100%; max-width: 1500px; padding-left: 18px; padding-right: 18px; margin: 0 auto; }
.jd-contact-top { background: #080096; color: #fff; position: relative; z-index: 51; }
.jd-contact-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 700; }
.jd-contact-left { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.jd-contact-left a { overflow-wrap: anywhere; } .jd-contact-left i { margin-right: 6px; color: #58c4bc; }
.jd-contact-tagline { color: #68ddf5; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.jd-site-header { position: relative; z-index: 190; background: white; box-shadow: 0 4px 15px rgba(4,16,60,.08); }
.jd-header-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 95px; }
.jd-logo { display: inline-flex; position: relative; flex: 0 0 auto; width: min(224px,24vw); }
.jd-logo img { width: 100%; height: 68px; object-fit: contain; }
.jd-offer-pill { position: absolute; right: -12px; top: 2px; border: 2px solid white; border-radius: 999px; background: #08a9d4; color: #080096; font-size: 9px; padding: 4px 7px; font-weight: 900; text-transform: uppercase; box-shadow: 0 2px 8px #0002; }
.jd-header-search { display: flex; flex: 1 1 500px; max-width: 560px; min-width: 120px; }
.jd-header-search input, .jd-mobile-search input { min-width: 0; width: 100%; padding: 13px 17px; border: 2px solid #080096; border-right: 0; border-radius: 9px 0 0 9px; font: 700 13px Montserrat,sans-serif; outline-offset: 2px; }
.jd-header-search button, .jd-mobile-search button { background: #080096; color: white; border-radius: 0 9px 9px 0; padding: 0 24px; }
.jd-header-search button:hover, .jd-mobile-search button:hover { background: #157bcb; }
.jd-header-actions { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 20px; }
.jd-header-account, .jd-header-cart { color: #080096; display: flex; flex-direction: column; gap: 3px; align-items: center; font-weight: 900; font-size: 11px; text-transform: uppercase; text-align: center; }
.jd-header-account > i, .jd-header-cart i { font-size: 27px; } .jd-icon-wrap { position: relative; display: inline-flex; padding-right: 5px; }
.jd-cart-count { font: 800 10px/1.2 Montserrat,sans-serif; display: inline-flex; min-width: 19px; min-height: 19px; justify-content: center; align-items: center; padding: 3px 5px; color: #fff; background: #157bcb; border-radius: 99px; }
.jd-icon-wrap .jd-cart-count { position: absolute; top: -9px; right: -10px; border: 2px solid #fff; }
.jd-mobile-search { display: none; }
.jd-menu-toggle { display: none; width: 43px; height: 43px; align-items: center; justify-content: center; border-radius: 9px; background: #080096; color: #fff; font-size: 20px; }
.jd-desktop-bar { position: sticky; top: 0; z-index: 185; width: 100%; background: #080096; box-shadow: 0 5px 12px rgba(8,0,150,.14); }
.jd-nav-inner { display: flex; align-items: center; gap: 0; min-height: 52px; }
.jd-category-trigger-wrap { align-self: stretch; position: relative; display: flex; flex: 0 0 auto; }
.jd-category-trigger { display: inline-flex; align-items: center; gap: 10px; color: white; background: #157bcb; padding: 0 20px; text-transform: uppercase; font-weight: 900; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.jd-category-trigger:hover { background: #198ce0; }
.jd-chevron { font-size: 10px; margin-left: 7px; }
.jd-desktop-links { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: flex-start; padding-left: 22px; gap: clamp(8px,1.5vw,25px); }
.jd-desktop-links a { display: inline-block; padding: 17px 0; color: #fff; font-size: 11px; font-weight: 900; line-height: 1.4; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.jd-desktop-links a:hover, .jd-desktop-links a.jd-current { color: #57dcf5; }
.jd-desktop-categories { display: none; position: absolute; left: 0; top: 100%; width: 295px; max-height: min(70vh,560px); overflow-y: auto; background: white; border-top: 4px solid #157bcb; border-radius: 0 0 12px 12px; box-shadow: 0 16px 45px #0003; padding: 12px; z-index: 200; }
.jd-desktop-categories a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 42px; color: #263152; font-weight: 700; font-size: 12px; border-radius: 8px; }
.jd-desktop-categories a:hover { background: #eff5fb; color: #080096; }
.jd-desktop-categories img { width: 23px; height: 23px; object-fit: contain; }
.jd-category-trigger-wrap:hover .jd-desktop-categories, .jd-desktop-categories.jd-category-open { display: block; }
.jd-compact-logo { display: none; } .jd-nav-cart { display: none; align-items: center; gap: 7px; color: white; font-weight: 800; font-size: 12px; white-space: nowrap; padding: 5px 10px; border: 1px solid #ffffff48; border-radius: 9px; }
.jd-nav-cart:hover { background: #157bcb; }
.jd-scrolled .jd-nav-cart { display: inline-flex; } .jd-nav-cart .jd-cart-count { background: #157bcb; }
.jd-menu-backdrop,.jd-mobile-drawer { display: none; }
.jd-site-footer { color: white; background: #080096; padding-top: 65px; padding-bottom: 28px; border-top: 6px solid #157bcb; margin-top: auto; }
.jd-footer-columns { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 55px; padding-bottom: 50px; }
.jd-footer-company > a > img { display: block; width: 205px; height: auto; max-height: 90px; object-fit: contain; background: white; border-radius: 10px; padding: 10px; }
.jd-footer-company p { max-width: 580px; margin-top: 18px; color: #d7e4fb; font-size: 14px; font-weight: 600; line-height: 1.85; }
.jd-footer-social { display: flex; gap: 12px; margin-top: 22px; }
.jd-footer-social a { width: 44px; height: 44px; background: #157bcb; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 19px; }
.jd-footer-social a:hover { background: white; color: #080096; }
.jd-site-footer h2 { display: inline-block; margin: 0 0 25px; padding-bottom: 10px; border-bottom: 3px solid #157bcb; font-size: 17px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #65ddee; }
.jd-footer-list { display: flex; flex-direction: column; gap: 20px; color: #d5e3ff; font-size: 13px; font-weight: 700; }
.jd-footer-list li { display: flex; gap: 11px; overflow-wrap: anywhere; }
.jd-footer-list i { color: #58c4bc; width: 17px; flex: 0 0 17px; }
.jd-footer-menu a:hover { color: white; text-decoration: underline; }
.jd-footer-strip { height: 6px; margin: 12px 0 24px; }
.jd-footer-bottom { border-top: 1px solid #ffffff22; padding-top: 24px; color: #bcd1f1; text-align: center; font-size: 12px; font-weight: 600; }
.jd-float-wa,.jd-scroll-top { position: fixed; z-index: 70; right: 20px; color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 999px; box-shadow: 0 7px 23px #0003; transition: transform .2s ease; }
.jd-float-wa:hover,.jd-scroll-top:hover { transform: translateY(-3px); }
.jd-float-wa { bottom: 18px; width: 60px; height: 60px; background: #25d366; font-size: 28px; }
.jd-scroll-top { bottom: 84px; width: 44px; height: 44px; background: #080096; font-size: 16px; opacity: 0; pointer-events: none; }
.jd-scroll-top.opacity-100 { opacity: 1; pointer-events: auto; }
@media (max-width: 1199px) and (min-width: 1024px) {
  .jd-header-main { gap: 16px; } .jd-header-search { max-width: 400px; }
  .jd-desktop-links { gap: 11px; padding-left: 14px; }
  .jd-desktop-links a { font-size: 10px; letter-spacing: 0; }
  .jd-category-trigger { padding: 0 13px; font-size: 11px; }
  .jd-nav-cart { padding: 5px; font-size: 10px; gap: 5px; }
}
@media (max-width: 1023.98px) {
  .jd-contact-tagline { display:none; }
  .jd-contact-inner { justify-content: center; }
  .jd-site-header { position: sticky; top: 0; z-index: 185; }
  .jd-header-main { min-height: 65px; gap: 9px; }
  .jd-logo { width: 150px; max-width: calc(100% - 116px); } .jd-logo img { height: 53px; }
  .jd-offer-pill { font-size: 8px; right: -8px; }
  .jd-header-search,.jd-header-account { display: none; }
  .jd-header-actions { gap: 14px; }
  .jd-header-cart i { font-size: 23px; } .jd-cart-label { display:none; }
  .jd-menu-toggle { display: flex; }
  .jd-mobile-search { display: flex; margin: 0 auto; width: calc(100% - 36px); padding-bottom: 12px; }
  .jd-mobile-search input { min-height: 43px; font-size: 12px; padding: 10px 12px; }
  .jd-mobile-search button { padding: 0 17px; }
  .jd-scrolled .jd-mobile-search { display: none; }
  .jd-desktop-bar { display:none; }
  .jd-menu-backdrop { display: block; position: fixed; inset: 0; z-index: 800; background: #07113f99; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .jd-mobile-drawer { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; z-index: 801; width: min(355px,88vw); max-width: 100%; height: 100dvh; background: white; box-shadow: -12px 0 40px #0003; transform: translateX(105%); transition: transform .25s ease; }
  .jd-drawer-open { overflow: hidden !important; } .jd-drawer-open .jd-mobile-drawer { transform: translateX(0); } .jd-drawer-open .jd-menu-backdrop { opacity: 1; pointer-events: auto; }
  .jd-drawer-top { padding: 16px 18px; border-bottom: 1px solid #e5e9f5; display:flex; justify-content:space-between; align-items:center; }
  .jd-drawer-top img { width:130px; max-height:50px; object-fit:contain; }
  .jd-drawer-top button { font-size: 22px; color: #080096; width: 40px; height: 40px; }
  .jd-drawer-links { display: flex; flex-direction:column; overflow-y:auto; padding: 12px 16px 35px; }
  .jd-drawer-links > a, .jd-drawer-links > button { width:100%; display:flex; align-items:center; gap: 13px; text-align:left; min-height:49px; border-bottom: 1px solid #edf1f8; padding:12px 8px; font-size:13px; font-weight:800; color:#080096; text-transform:uppercase; }
  .jd-drawer-links > a > i, .jd-drawer-links > button > i:first-child { color: #157bcb; min-width: 17px; }
  .jd-drawer-links > a.jd-current { background: #f0f7ff; color:#157bcb; border-radius: 8px; }
  .jd-drawer-links .jd-drawer-cart { margin-top:12px; background:#eef5ff; border-radius:10px; padding-left:13px; }
  .jd-drawer-cart .jd-cart-count { margin-left:auto; }
  .jd-drawer-chevron { margin-left:auto; transition:transform .2s; }
  #jd-mobile-categories-button[aria-expanded="true"] .jd-drawer-chevron { transform:rotate(180deg); }
  .jd-drawer-categories { max-height:220px; overflow-y:auto; padding:6px 8px 8px 35px; background:#f5f9ff; border-radius:9px; }
  .jd-drawer-categories[hidden] { display:none !important; }
  .jd-drawer-categories a { display:block; padding:11px 0; font-size:12px; font-weight:700; border-bottom:1px solid #e5eefa; color:#273961; overflow-wrap:anywhere; }
  .jd-footer-columns { grid-template-columns: 1fr 1fr; gap:34px; }
  .jd-footer-columns .jd-footer-company { grid-column:1/-1; }
}
@media (max-width: 640px) {
  .jd-contact-inner { padding:6px 12px; } .jd-contact-left { gap:4px 14px; justify-content:center; font-size:10px; }
  .jd-header-main { min-height:60px; padding-left:14px; padding-right:14px; }
  .jd-logo { width:137px; } .jd-logo img { height:49px; }
  .jd-header-actions { gap:10px; }
  .jd-site-footer { padding-top:44px; }
  .jd-footer-columns { grid-template-columns:1fr; text-align:center; gap:35px; padding-bottom:27px; }
  .jd-footer-columns .jd-footer-company { grid-column:auto; }
  .jd-footer-company > a > img { margin:0 auto; }
  .jd-footer-company p { font-size:13px; line-height:1.7; }
  .jd-footer-social { justify-content:center; }
  .jd-site-footer h2 { font-size:15px; margin-bottom:17px; }
  .jd-footer-list { align-items:center; gap:12px; }
  .jd-footer-list li { text-align:left; width:fit-content; max-width:100%; font-size:12px; }
  .jd-float-wa { width:56px; height:56px; right:14px; bottom:15px; }
  .jd-scroll-top { width:42px; height:42px; right:21px; bottom:77px; }
}

/* Evita que las reglas móviles antiguas del index alteren la franja de marca. */
body > .jd-brand-strip:first-child { padding: 0 !important; height: 7px !important; min-height: 7px; }


/* v2: menú móvil dividido, sin superposición del logo y categorías siempre azules. */
.jd-desktop-categories .jd-category-icon,
.jd-drawer-category-list .jd-category-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px; width: 22px; height: 23px; color: #157bcb !important;
}
.jd-desktop-categories .jd-category-icon i,
.jd-drawer-category-list .jd-category-icon i {
  color: #157bcb !important; -webkit-text-fill-color: #157bcb !important;
  font-size: 15px; line-height: 1;
}
.jd-desktop-categories .jd-category-icon img,
.jd-drawer-category-list .jd-category-icon img {
  /* Las imágenes subidas al CMS pueden incluir un fondo blanco. El filtro
     anterior pintaba tanto el dibujo COMO el fondo y lo volvía un cuadro azul.
     Mostrar la imagen original conserva la forma del icono. */
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  background: transparent;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal;
}
@media (max-width: 1023.98px) {
  /* La etiqueta ofertas no debe cubrir el logotipo en móvil/tablet. */
  .jd-site-header .jd-offer-pill { display: none !important; }
  .jd-mobile-drawer { overflow: hidden; }
  .jd-drawer-top { flex: 0 0 auto; }
  .jd-drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 12px 14px 10px; background: #f5f8fd; border-bottom: 1px solid #e0eafb; flex: 0 0 auto;
  }
  .jd-drawer-tabs button { display: flex; gap: 8px; align-items: center; justify-content: center;
    min-width: 0; min-height: 46px; padding: 11px 5px; border: 1px solid #dce8f8;
    border-radius: 10px; background: #fff; color: #080096; font-size: 12px;
    font-weight: 900; letter-spacing: .015em; text-transform: uppercase;
  }
  .jd-drawer-tabs button[aria-selected="true"] { color: white; background: #080096; border-color: #080096;
    box-shadow: 0 3px 8px rgba(8,0,150,.16);
  }
  .jd-drawer-tabs button:focus-visible { outline: 3px solid #58c4bc; outline-offset: 2px; }
  .jd-mobile-drawer .jd-drawer-panel { display: flex; flex-direction: column; flex: 1 1 auto;
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 15px 18px; -webkit-overflow-scrolling: touch;
  }
  .jd-mobile-drawer .jd-drawer-panel[hidden] { display: none !important; }
  .jd-mobile-drawer .jd-drawer-links > a, .jd-mobile-drawer .jd-drawer-category-list > a {
    display: flex; align-items: center; gap: 12px; min-height: 47px; flex: 0 0 auto;
    width: 100%; padding: 11px 10px; border-bottom: 1px solid #e9eef7;
    color: #122774; text-align: left; text-decoration: none; overflow-wrap: anywhere;
    font-size: 12px; line-height: 1.4; font-weight: 800; text-transform: uppercase;
  }
  .jd-mobile-drawer .jd-drawer-links > a.jd-current,
  .jd-mobile-drawer .jd-drawer-category-list > a:hover {
    color: #080096; background: #ebf4ff; border-radius: 8px;
  }
  .jd-drawer-cart-fixed { display: flex; align-items: center; justify-content: center;
    gap: 11px; flex: 0 0 auto; min-height: 54px; margin: 10px 14px 14px;
    padding: 11px 14px; border-radius: 12px; background: #080096;
    color: white; font-size: 13px; font-weight: 900;
    box-shadow: 0 4px 12px rgba(8,0,150,.18);
  }
  .jd-drawer-cart-fixed .jd-cart-count { background: #157bcb; margin-left: auto; }
}
@media (max-width: 370px) {
  .jd-logo { width: 122px; }
  .jd-drawer-tabs { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .jd-drawer-tabs button { font-size: 11px; }
}

/* Navegación móvil: estilos independientes de Tailwind y del CSS de Inicio.
   Reglas al final para evitar que los estilos antiguos ganen por cascada. */
@media (max-width: 1023.98px) {
  #jd-mobile-drawer.jd-mobile-drawer {
    width: min(370px, 92vw);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
  }
  #jd-mobile-drawer .jd-drawer-top {
    flex-shrink: 0;
    min-height: 74px;
    padding: 13px 18px;
    background: #fff;
  }
  #jd-mobile-drawer .jd-drawer-top img { width: 126px; height: auto; max-height: 48px; object-fit: contain; }
  #jd-mobile-drawer #jd-menu-close {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; width: 42px; border-radius: 11px;
    background: #eef5fc; color: #080096;
  }
  #jd-mobile-drawer .jd-drawer-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    width: 100%; margin: 0; gap: 8px;
    padding: 14px 15px;
    border: 0; border-bottom: 1px solid #dde8f6;
    background: #f3f7fd;
  }
  #jd-mobile-drawer .jd-drawer-tabs > button {
    display: inline-flex !important;
    align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-width: 0; height: 48px;
    border: 1px solid #d5e3f5; border-radius: 11px;
    background: #fff; color: #080096;
    font: 800 12px/1.2 'Montserrat', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
  }
  #jd-mobile-drawer .jd-drawer-tabs > button[aria-selected="true"] {
    color: #fff; background: #080096; border-color: #080096;
    box-shadow: 0 5px 15px rgba(8, 0, 150, .14);
  }
  #jd-mobile-drawer .jd-drawer-tabs > button i { font-size: 15px; }
  #jd-mobile-drawer .jd-drawer-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100%; flex: 1 1 auto; min-height: 0;
    margin: 0; padding: 10px 16px 16px;
    overflow-x: hidden; overflow-y: auto;
    background: #fff;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  #jd-mobile-drawer .jd-drawer-panel[hidden] { display: none !important; }
  #jd-mobile-drawer .jd-drawer-panel > a {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap; align-items: center;
    width: 100%; min-height: 49px; flex: 0 0 auto;
    padding: 11px 13px; margin: 0;
    gap: 12px; border-bottom: 1px solid #e8eef7;
    border-radius: 0;
    font: 800 12px/1.4 'Montserrat', sans-serif;
    text-decoration: none; text-transform: uppercase;
    text-align: left; color: #11287d;
    white-space: normal; overflow-wrap: anywhere;
    background: #fff;
  }
  #jd-mobile-drawer .jd-drawer-panel > a:hover,
  #jd-mobile-drawer .jd-drawer-panel > a.jd-current { background: #eff6ff; border-radius: 8px; }
  #jd-mobile-drawer .jd-drawer-panel > a > i {
    flex: 0 0 20px; width: 20px; font-size: 14px;
    color: #157bcb; text-align: center;
  }
  #jd-mobile-drawer .jd-drawer-panel .jd-category-icon {
    flex: 0 0 24px; display: inline-flex; align-items: center;
    justify-content: center; width: 24px; color: #157bcb !important;
  }
  #jd-mobile-drawer .jd-drawer-panel .jd-category-icon i { color: #157bcb !important; }
  #jd-mobile-drawer .jd-drawer-cart-fixed {
    display: flex !important; flex: 0 0 auto;
    margin: 9px 16px 15px;
    border-radius: 12px; padding: 12px 14px;
    min-height: 51px; align-items: center; gap: 10px;
    color: #fff; background: #080096;
    font: 800 13px/1.3 'Montserrat', sans-serif;
    text-decoration: none;
  }
}

/* Iconos de categorías: mostrar el dibujo azul generado, sin colorear
   el rectángulo de fondo (móvil y escritorio). */
.jd-desktop-categories .jd-category-icon img.jd-icon-blue-ready,
.jd-drawer-category-list .jd-category-icon img.jd-icon-blue-ready {
  background: transparent !important; filter: none !important;
  -webkit-filter: none !important; mix-blend-mode: normal !important;
}

/* Un solo azul corporativo para dibujos de Font Awesome e imágenes recoloreadas. */
.jd-desktop-categories .jd-category-icon i,
.jd-drawer-category-list .jd-category-icon i,
#jd-mobile-drawer .jd-drawer-panel .jd-category-icon i {
  color: #080096 !important;
  -webkit-text-fill-color: #080096 !important;
}
