/* =========================================================
   HEADER DESKTOP – ESTRUCTURA GENERAL
   ========================================================= */

@media (min-width: 1024px) {

  
  .nx-header-desktop-wrap {
    background: var(--nx-color-bg);
   color: var(--nx-color-text);
    width: 100%;
  }

  /* ================= BARRA 1 ================= */

  .nx-header-desktop-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 10px 0px;
  }

  .nx-header-desktop-logo img {
    height: 34px;
    display: block;
  }

  .nx-header-desktop-search input {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: none;
    padding: 0 14px;
    font-size: var(--nx-font-m);
  }

  .nx-header-desktop-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
  }

  .nx-header-link {
    font-size: var(--nx-font-m);
   color: var(--nx-color-text);
    text-decoration: none;
    opacity: 0.85;
  }

  .nx-header-link:hover {
    opacity: 1;
  }

  .nx-header-cta {
    background: var(--nx-color-accent);
    color: var(--nx-color-text);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: var(--nx-font-m);
    font-weight: 600;
    text-decoration: none;
  }

  /* ================= BARRA 2 ================= */

  .nx-header-desktop-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .nx-header-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0; /* antes 24px */
  }

  .nx-header-menu a,
  .nx-header-menu button {
    background: none;
    border: none;
   color: var(--nx-color-text);
    font-size: var(--nx-font-m);
    cursor: pointer;
    padding: 10px 0;
    text-decoration: none;
  }

  /* ================= MEGA MENÚ ================= */

  .nx-menu-categories {
    position: relative;
  }

  .nx-mega-menu {
    position: absolute;
    top: 32px;
    left: 0;
    background: var(--nx-color-bg-w);
    color: var(--nx-color-text-dark);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 9999;
  }

  .nx-menu-categories:hover > .nx-mega-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nx-mega-col-left {
    width: 220px;
    background: var(--nx-color-bg-w);
    border-radius: 10px 0 0 10px;
  }

  .nx-mega-col-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nx-mega-col-left li {
    padding: 14px 16px;
    font-size: var(--nx-font-m);
    cursor: pointer;
  }

  .nx-mega-col-left li.active {
    background: var(--nx-color-bg-w);
    font-weight: 700;
  }

  .nx-mega-col-right {
    flex: 1;
    padding: 20px;
  }

  .nx-mega-col-right strong {
    display: block;
    margin-bottom: 10px;
    font-size: var(--nx-font-m)px;
  }

  .nx-mega-col-right a {
    display: block;
    font-size: var(--nx-font-m);
    color: var(--nx-color-text-darks);
    text-decoration: none;
    margin-bottom: 6px;
  }

  .nx-mega-col-right a:hover {
    text-decoration: underline;
  }


  .nx-menu-categories button, .nx-menu-categories li a{
    padding: 10px 0;
  }
}
.nx-container {
  max-width: 1200px; /* o 1280px */
  margin: 0 auto;
}
.nx-header-cart {
  position: relative;
  font-size:  var(--nx-font-m);
  text-decoration: none;
 
}

.nx-header-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--nx-color-background-r);
 color: var(--nx-color-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.nx-header-separator {
  opacity: 0.4;
  font-size: var(--nx-font-m)px;
}
.nx-header-desktop-actions {
  gap: 12px; /* antes 16px */
}

.nx-header-desktop-search {
  position: relative;
}

.nx-header-desktop-search input {
  padding-right: 44px; /* espacio para la lupa */
}

.nx-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nx-header-menu {
  gap: 32px; /* antes 22px */
}
.nx-header-menu > li {
  position: relative;
}

.nx-header-menu > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.25);
}

/* -------- Header -------- */
.nx-header {
  padding: 0px;
  color: var(--nx-color-text);
}
/*** mega menu ***/

/* ===============================
   NIVEL 1 – SIDEBAR OSCURA
================================ */
.nx-mega-level-1 {
  width: 310px;
  background: var(--nx-color-bg);
  color: var(--nx-color-text);
  border-radius: 10px 0 0 10px;
}

.nx-mega-level-1 ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.nx-mega-level-1 li {
  padding: 14px 10px;
  cursor: pointer;
  font-size: var(--nx-font-m);
}

.nx-mega-level-1 li.active,
.nx-mega-level-1 li:hover {
  background: var(--nx-color-background-c);
}

/* ===============================
   NIVEL 2 – SUBCATEGORÍAS
================================ */
.nx-mega-level-2 {
  width: 260px;
  background: var(--nx-color-bg-wn);
  white-space: nowrap;      /* No permite saltos de línea */
  overflow: hidden;         /* Oculta el texto que sobrepasa */
  text-overflow: ellipsis;  /* Pone "…" si el texto es demasiado largo */
}

.nx-subcat {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.nx-subcat.active {
  display: block;
}

.nx-subcat li {
  padding: 14px 18px;
  cursor: pointer;
  font-size: var(--nx-font-m);
}

.nx-subcat li:hover {
  background: var(--nx-color-background-c);
  color: var(--nx-color-text);
}

/* ===============================
   NIVEL 3 – CONTENIDO FINAL
================================ */
.nx-mega-level-3 {
  width: 220px;
  flex: 1;
  padding: 12px;
  display: none; /* oculto por defecto */
}

.nx-mega-panel {
  display: none;
}

.nx-mega-panel.active {
  display: block;
}

.nx-mega-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: var(--nx-font-m)px;
}

.nx-mega-panel a {
  display: block;
  font-size: var(--nx-font-m);
  color: var(--nx-color-text-darks);
  text-decoration: none;
  padding: 14px 18px;
}

.nx-mega-panel a:hover {
  background: var(--nx-color-background-c);
  color: var(--nx-color-text);
}

/* ===============================
   CONTENEDOR MEGA MENU
================================ */
.nx-mega-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.nx-mega-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/***** escritorio **********/

/* ================= Desktop Auth Modal ================= */
.nx-auth-desktop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.nx-auth-desktop-overlay.hidden {
  display: none;
}

.nx-auth-desktop-modal {
  background: var(--nx-color-bg-w);
  padding: 30px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nx-auth-desktop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--nx-text-dark);
}

.nx-auth-desktop-header h2 {
  margin: 0;
  font-size: 24px;
  text-align: center;
  color: var(--nx-text-dark);
}

.nx-auth-desktop-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nx-auth-desktop-form input {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--nx-border-light);
  background: var(--nx-input-bg);
  color: var(--nx-text-dark);
}

.nx-auth-desktop-password-wrapper input{
  width: 100%;
}

.nx-auth-desktop-form input:focus {
  outline: none;
  border-color: var(--nx-color-accent);
}

.nx-auth-desktop-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nx-auth-desktop-toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.nx-auth-desktop-link {
  background: transparent;
  border: none;
  color: var(--nx-color-accent);
  font-size: 13px;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.nx-auth-desktop-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.nx-auth-desktop-social p {
  margin: 0;
  font-size: 13px;
  color: var(--nx-text-dark);
}

.nx-auth-desktop-footer {
  text-align: center;
  font-size: 13px;
}

.nx-auth-desktop-switch {
  background: transparent;
  border: none;
  color: var(--nx-color-accent);
  cursor: pointer;
}
/****/

.nx-auth-overlay {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.nx-auth-overlay.hidden {
  display: none;
}

.nx-auth {
  background: var(--nx-color-bg-w);
  padding: 30px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  position: relative;
}

.nx-auth__close {
  position: absolute;
  top:12px;
  right:12px;
  background: none;
  border:none;
  font-size:28px;
  cursor:pointer;
  color: var(--nx-text-dark);
}
.nx-icon{
  position: absolute;
  left: 2px;
  top: 10px;

}
.nx-mega-level-1 li{
  padding: 14px 36px;
}

/*++++++++*/

.nx-menu-categories a {
  color: var(--nx-color-text-darks);
}

.nx-menu-categories li:hover a {
  color: var(--nx-color-text);
}

.nx-mega-level-1 a {
  color: var(--nx-color-text);
}

.nx-enter-with-gmail p{
  font-size: var(--nx-space-md);
}

#googleBtn {
  transform: scale(1.2);
}
