
/* Ocultar el header viejo de Elementor cuando este plugin está activo */
body.soykibai-header-active .elementor-location-header{
  display:none!important;
}

.skh{
  position:relative;
  z-index:99990;
  width:100%;
  font-family:inherit;
  color:#fff;
}
.skh *{box-sizing:border-box}

.skh-utility{
  background:#5d17c7;
  border-bottom:1px solid rgba(255,255,255,.13);
}
.skh-utility-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:48px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.skh-utility-item{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  cursor:pointer;
  padding:5px 0;
  min-width:0;
  font:inherit;
}
.skh-utility-item span:last-child{
  display:grid;
  line-height:1.08;
}
.skh-utility-item small{
  font-size:10px;
  opacity:.78;
}
.skh-utility-item strong{
  margin-top:2px;
  font-size:12px;
  white-space:nowrap;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.skh-u-icon{font-size:18px}

.skh-main{
  background:linear-gradient(135deg,#6113c7,#6818d5 54%,#5714b9);
  box-shadow:0 4px 14px rgba(44,11,96,.12);
}
.skh-main-inner{
  width:min(1180px,calc(100% - 32px));
  min-height:96px;
  margin:0 auto;
  display:grid;
  grid-template-columns:190px minmax(320px,1fr) auto;
  gap:26px;
  align-items:center;
}
.skh-logo{
  display:flex;
  align-items:center;
  min-width:0;
}
.skh-logo .custom-logo-link{
  display:block;
  line-height:0;
}
.skh-logo img{
  display:block;
  width:auto!important;
  max-width:165px!important;
  max-height:78px!important;
  object-fit:contain;
}
.skh-wordmark{
  color:#fff;
  text-decoration:none;
  font-size:28px;
  font-weight:900;
  letter-spacing:.04em;
}

.skh-search{
  width:100%;
  min-width:0;
}
.skh-search .skb-search{
  max-width:100%!important;
  padding:0!important;
}
.skh-search .skb-search-form{
  min-height:48px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
.skh-fallback-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  background:#fff;
  border-radius:14px;
  padding:6px;
}
.skh-fallback-search input{
  border:0!important;
  outline:0!important;
  padding:0 10px!important;
  font-size:16px!important;
}
.skh-fallback-search button{
  border:0;
  border-radius:10px;
  padding:0 16px;
  background:#2f6fed;
  color:#fff;
  font-weight:800;
}

.skh-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.skh-account{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:6px 10px;
  color:#fff;
  text-decoration:none;
  border-radius:13px;
}
.skh-account:hover{background:rgba(255,255,255,.08)}
.skh-account-icon{font-size:23px}
.skh-account-copy{
  display:grid;
  line-height:1.1;
}
.skh-account-copy small{font-size:10px;opacity:.8}
.skh-account-copy strong{font-size:13px;white-space:nowrap}

.skh-cart{
  position:relative;
  display:grid;
  place-items:center;
  width:46px;height:46px;
  color:#fff;
  text-decoration:none;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  font-size:22px;
}
.skh-cart b{
  position:absolute;
  right:-4px;
  top:-5px;
  min-width:19px;height:19px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f1317c;
  color:#fff;
  font-size:10px;
}

.skh-mobile-only{display:none}

.skh-popover{
  position:absolute;
  right:max(20px,calc((100% - 1180px)/2));
  top:45px;
  width:240px;
  display:grid;
  gap:8px;
  padding:14px;
  border-radius:14px;
  background:#fff;
  color:#2a2334;
  box-shadow:0 18px 45px rgba(30,13,56,.22);
  border:1px solid #e8e1ef;
}
.skh-popover[hidden]{display:none}
.skh-popover a{
  color:#5d26c9;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}

@media(max-width:800px){
  .skh-desktop-only{display:none!important}
  .skh-mobile-only{display:flex!important}

  .skh-main-inner{
    width:100%;
    min-height:0;
    padding:9px 12px 8px;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:9px;
  }

  .skh-logo{
    width:72px;
    justify-content:center;
  }
  .skh-logo img{
    max-width:72px!important;
    max-height:44px!important;
  }
  .skh-wordmark{
    font-size:12px;
    line-height:1.1;
    text-align:center;
  }

  .skh-search .skb-search-form{
    min-height:40px!important;
    height:40px!important;
    padding:3px 4px 3px 9px!important;
    border-radius:12px!important;
  }
  .skh-search .skb-search-input{
    height:32px!important;
    font-size:14px!important;
  }
  .skh-search .skb-search-submit{
    height:32px!important;
    min-height:32px!important;
    padding:0 9px!important;
    font-size:11px!important;
  }
  .skh-search .skb-search-icon svg{
    width:17px!important;
    height:17px!important;
  }

  .skh-account{
    width:38px;height:38px;
    min-height:38px;
    padding:0;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.10);
  }
  .skh-account-icon{font-size:20px}
  .skh-account-copy{display:none}
  .skh-cart{
    width:38px;height:38px;
    font-size:19px;
  }
  .skh-actions{gap:6px}

  .skh-mobile-nav{
    min-height:38px;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:4px 8px 6px;
    background:#5b13bf;
    border-top:1px solid rgba(255,255,255,.09);
  }
  .skh-mobile-nav a,
  .skh-mobile-nav button{
    min-height:28px;
    padding:4px 8px;
    border:0;
    border-radius:999px;
    background:rgba(255,255,255,.09);
    color:#fff;
    text-decoration:none;
    font:inherit;
    font-size:11px;
    cursor:pointer;
    white-space:nowrap;
  }

  .skh-popover{
    position:fixed;
    top:94px;
    left:12px;
    right:12px;
    width:auto;
  }
}

@media(max-width:430px){
  .skh-main-inner{
    grid-template-columns:58px minmax(0,1fr) auto;
    gap:6px;
    padding-left:7px;
    padding-right:7px;
  }
  .skh-logo{width:58px}
  .skh-logo img{
    max-width:58px!important;
    max-height:38px!important;
  }
  .skh-search .skb-search-submit{
    padding:0 7px!important;
  }
  .skh-mobile-nav{
    justify-content:flex-start;
    overflow-x:auto;
  }
}


/* v1.0.1 — Logo oficial + botones superiores SoyKibai */
.skh-logo .skh-official-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-decoration:none!important;
  line-height:0!important;
}
.skh-logo .skh-official-logo img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:132px!important;
  max-height:82px!important;
  object-fit:contain!important;
  border:0!important;
  box-shadow:none!important;
}

/* Neutraliza estilos rojos heredados del tema/otros plugins */
.skh .skh-utility-item,
.skh button.skh-utility-item,
.skh .skh-help-trigger,
.skh .skh-notification-trigger{
  color:#fff!important;
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.skh .skh-utility-item:hover,
.skh .skh-utility-item:focus,
.skh button.skh-utility-item:hover,
.skh button.skh-utility-item:focus{
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
  border:0!important;
  box-shadow:none!important;
}
.skh .skh-utility-item small{
  color:rgba(255,255,255,.72)!important;
}
.skh .skh-utility-item strong{
  color:#fff!important;
}
.skh .skh-u-icon{
  color:#fff!important;
  filter:none!important;
}

/* Las dos acciones se ven como bloques suaves, no botones rojos */
.skh-utility-item.skh-notification-trigger,
.skh-utility-item.skh-help-trigger{
  border-radius:12px!important;
  padding:7px 12px!important;
  transition:background .18s ease, transform .18s ease!important;
}
.skh-utility-item.skh-notification-trigger:hover,
.skh-utility-item.skh-help-trigger:hover{
  background:rgba(255,255,255,.12)!important;
  transform:translateY(-1px);
}

@media(max-width:800px){
  .skh-logo .skh-official-logo{
    justify-content:center!important;
  }
  .skh-logo .skh-official-logo img{
    max-width:64px!important;
    max-height:48px!important;
  }

  .skh-mobile-nav .skh-help-trigger,
  .skh-mobile-nav .skh-notification-trigger{
    color:#fff!important;
    background:rgba(255,255,255,.10)!important;
    border:1px solid rgba(255,255,255,.10)!important;
    box-shadow:none!important;
  }
}


/* v1.0.2 — Logo recortado + notificaciones siempre visibles */
.skh-logo{
  overflow:visible!important;
}
.skh-logo .skh-official-logo img{
  max-width:148px!important;
  max-height:88px!important;
  background:transparent!important;
}
.skh-popover-note{
  font-size:12px;
  line-height:1.4;
  color:#71677d;
  padding:3px 0 5px;
}

@media(max-width:800px){
  .skh-logo .skh-official-logo img{
    max-width:70px!important;
    max-height:50px!important;
  }
}

/* v1.0.3 — logo transparente integrado al fondo del header */
.skh-logo,
.skh-logo .skh-official-logo,
.skh-logo .skh-official-logo img{
    background:transparent!important;
    background-color:transparent!important;
}
.skh-logo .skh-official-logo img{
    max-width:142px!important;
    max-height:84px!important;
    object-fit:contain!important;
}
@media(max-width:800px){
    .skh-logo .skh-official-logo img{
        max-width:68px!important;
        max-height:48px!important;
    }
}

/* v1.0.4 — usa exactamente logo png(1).png enviado el 15/08 */
.skh-logo,
.skh-logo .skh-official-logo,
.skh-logo .skh-official-logo img{
    background:none!important;
    background-color:transparent!important;
}
.skh-logo .skh-official-logo img{
    width:auto!important;
    height:86px!important;
    max-width:150px!important;
    object-fit:contain!important;
}
@media(max-width:800px){
    .skh-logo .skh-official-logo img{
        height:48px!important;
        max-width:76px!important;
    }
}

/* v1.0.5 logo transparente real, archivo nuevo anti-cache */
.skh-logo,.skh-logo .skh-official-logo,.skh-logo .skh-official-logo img{
 background:transparent!important;background-color:transparent!important;box-shadow:none!important;border:0!important;
}
.skh-logo .skh-official-logo img{display:block!important;width:auto!important;height:88px!important;max-width:154px!important;max-height:88px!important;object-fit:contain!important}
@media(max-width:800px){.skh-logo .skh-official-logo img{height:50px!important;max-width:80px!important;max-height:50px!important}}

/* v1.0.7 — notificaciones reales de ventas */
.skh-notification-icon{position:relative;display:inline-flex;align-items:center;justify-content:center}
.skh-notification-badge{position:absolute;top:-8px;right:-10px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff315f;color:#fff;font-size:11px;line-height:18px;text-align:center;font-weight:900;box-shadow:0 0 0 2px #fff}
.skh-notification-list{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto;margin:8px 0}
.skh-notification-row{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:3px;padding:10px 11px!important;border-radius:12px!important;text-decoration:none!important}
.skh-notification-row.is-unread{background:#f4edff!important;border:1px solid #ddc8ff}
.skh-notification-row b{font-size:13px;color:#33104f}
.skh-notification-row span{font-size:12px;color:#5f5570;line-height:1.35}
.skh-notification-row small{font-size:10px;color:#8b8198}
