/* =========================================================
   X SANDÍA — HEADER
   CSS limpio y consolidado
   ========================================================= */

.header {
  position: relative;
  z-index: 100;

  width: 100%;
  min-height: 164px;

  padding: 0;

  background:
    linear-gradient(
      to bottom,
      #141a32 0%,
      #0d142c 58%,
      #091128 100%
    );

  border-bottom: 0;
}


/* =========================================================
   ÚNICA LÍNEA DEL HEADER
   ========================================================= */

.header::after {
  content: "";

  position: absolute;

  top: 112px;
  left: 50%;

  width: min(1200px, calc(100vw - 40px));
  height: 1px;

  transform: translateX(-50%);

  background: rgba(255, 255, 255, 0.10);
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
  position: absolute;

  top: 35px;
  left: max(20px, calc(50% - 600px));

  display: flex;
  align-items: center;

  width: 222px;
  height: 58px;

  color: #fff;
  text-decoration: none;

  overflow: hidden;
}

.logo-imagen {
  display: block;

  width: auto;
  height: auto;

  max-width: 222px;
  max-height: 58px;

  object-fit: contain;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.buscador {
  position: absolute;

  top: 35px;
  left: calc(50% - 390px);

  display: flex;
  align-items: center;

  width: 570px;
  min-width: 570px;
  max-width: 570px;
  height: 50px;

  margin: 0;
  padding: 0;

  box-sizing: border-box;

  background: #080d25;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;

  overflow: hidden;

  box-shadow: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.buscador:focus-within {
  background: #080d25;
  border-color: rgba(255, 255, 255, 0.17);
}

.buscador input {
  flex: 1;

  min-width: 0;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0 18px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #fff;

  font-family: inherit;
  font-size: 14px;
}

.buscador input::placeholder {
  color: #8d93a8;
  opacity: 1;
}


/* =========================================================
   BOTÓN DE BÚSQUEDA
   ========================================================= */

.buscador button {
  position: relative;

  flex: 0 0 48px;

  width: 48px;
  height: 50px;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  color: transparent;
  font-size: 0;

  cursor: pointer;

  transition: background 0.2s ease;
}

.buscador button:hover {
  background: rgba(255, 255, 255, 0.05);
}


/* =========================================================
   ICONO DE BÚSQUEDA
   ========================================================= */

.buscador button::before {
  content: "";

  position: absolute;

  top: 13px;
  left: 12px;

  width: 18px;
  height: 18px;

  box-sizing: border-box;

  border: 2px solid #fff;
  border-radius: 50%;
}

.buscador button::after {
  content: "";

  position: absolute;

  top: 29px;
  left: 28px;

  width: 8px;
  height: 2px;

  background: #fff;
  border-radius: 2px;

  transform: rotate(45deg);
}


/* =========================================================
   PERFIL / MI LISTA
   IMPORTANTE:
   lista.js sigue usando #btn-mi-lista.
   Visualmente queda arriba, junto al buscador.
   ========================================================= */

#btn-mi-lista {
  position: absolute;

  top: 35px;
  right: max(20px, calc(50% - 600px));

  left: auto;

  z-index: 300;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: transparent;
  font-size: 0;

  cursor: pointer;

  overflow: visible;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#btn-mi-lista:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: scale(1.04);
}

#btn-mi-lista .mi-lista-icono {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  flex-shrink: 0;
}

#btn-mi-lista .mi-lista-icono svg {
  display: block;

  width: 40px;
  height: 40px;

  fill: #fff;
}


/* =========================================================
   MENÚ FLOTANTE DE MI LISTA
   ========================================================= */

#btn-mi-lista .mi-lista-texto {
  position: absolute;

  top: 48px;
  right: -6px;

  width: 130px;

  padding: 10px 35px 10px 13px;

  box-sizing: border-box;

  background: #0c0028;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;

  color: #fff;

  font-size: 13px;
  font-weight: 700;

  text-align: left;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-5px);

  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45);

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

#btn-mi-lista:hover .mi-lista-texto {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* Contador: solo aparece dentro del menú */

#btn-mi-lista .mi-lista-contador {
  position: absolute;

  top: 56px;
  right: 3px;

  z-index: 5;

  display: none;

  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;

  padding: 0 6px;

  box-sizing: border-box;

  background: #ff4f91;

  border: 2px solid #0c0028;
  border-radius: 50px;

  color: #fff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}


/* =========================================================
   NAVEGACIÓN
   MISMA CAJA CENTRAL DE 1200PX
   ========================================================= */

.nav {
  position: static;

  width: min(1200px, calc(100vw - 40px));

  margin: 118px auto 0;
  padding: 0;

  display: flex;

  align-items: center;
  justify-content: flex-start;

  gap: 12px;

  border: 0;

  flex-wrap: nowrap;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.nav > a,
.nav-dropdown-btn {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 38px;

  padding: 0 20px;

  flex: 0 0 auto;

  background: transparent;

  border: 0;
  border-radius: 5px;

  color: #fff;

  text-decoration: none;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  letter-spacing: 0.15px;

  cursor: pointer;

  transition: background 0.2s ease;
}

.nav > a:hover,
.nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   SUBRAYADO HOVER
   ========================================================= */

.nav > a::after,
.nav-dropdown-btn::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  border-radius: 3px;

  background: #fff;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.3s ease;
}

.nav > a:hover::after,
.nav-dropdown-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================================
   FLECHA DE DROPDOWN
   ========================================================= */

.nav-dropdown-btn {
  appearance: none;
}

.nav-dropdown-btn::before {
  content: "";

  width: 0;
  height: 0;

  margin-top: 2px;

  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;

  order: 2;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.nav-dropdown {
  position: relative;
}


/* Zona invisible de unión entre el botón y el menú.
   Evita que el menú se cierre al mover el mouse hacia abajo. */

.nav-dropdown::after {
  content: "";

  position: absolute;

  top: 100%;
  left: 0;

  width: 100%;
  height: 10px;

  background: transparent;

  z-index: 9998;
}


/* Menú */

.nav-dropdown-menu {
  position: absolute;

  top: 100%;
  left: 50%;

  width: 250px;

  padding: 8px;

  box-sizing: border-box;

  background: #0c0028;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 7px;

  box-shadow:
    0 19px 20px -8px rgba(0, 0, 0, 0.75);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transform:
    translateX(-50%)
    translateY(7px);

  transition:
    opacity 0.15s ease,
    visibility 0.15s ease,
    transform 0.15s ease;
}


/* Mantener abierto mientras el mouse esté
   sobre el botón o sobre el dropdown */

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform:
    translateX(-50%)
    translateY(0);
}


/* Mantener también activa la zona invisible */

.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after {
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 40px;

  padding: 0 14px;

  color: #fff;

  text-decoration: none;

  font-size: 13px;
  font-weight: 500;

  border-radius: 5px;

  transition: background 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu.menu-grande {
  width: 330px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .logo {
    left: 20px;
  }

  .logo-imagen {
    max-width: 222px;
  }

  .buscador {
    left: 50%;

    transform: translateX(-50%);

    width: 500px;
    min-width: 500px;
    max-width: 500px;
  }

  #btn-mi-lista {
    right: 20px;
  }

  .nav {
    width: calc(100vw - 40px);
  }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

  .header {
    min-height: 154px;
  }

  .header::after {
    top: 110px;
    width: calc(100vw - 32px);
  }


  .logo {
    top: 5px;
    left: 15px;

    width: 190px;
    height: 48px;
  }

  .logo-imagen {
    max-width: 190px;
    max-height: 48px;
  }


  .buscador {
    position: absolute !important;

    top: 14px !important;
    right: 62px !important;
    left: auto !important;

    transform: none !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #ff2377 !important;

    border: 0 !important;
    border-radius: 50% !important;

    overflow: hidden !important;

    z-index: 450;

    transition:
      width .22s ease,
      background .22s ease,
      border-radius .22s ease;
  }


  /* =====================================================
     BUSCADOR ABIERTO
     ===================================================== */

  .buscador.buscador-movil-abierto {
    width:
      min(220px, calc(100vw - 124px)) !important;

    min-width:
      min(220px, calc(100vw - 124px)) !important;

    max-width:
      min(220px, calc(100vw - 124px)) !important;

    background: #080d25 !important;

    border:
      1px solid rgba(255,255,255,.10) !important;

    border-radius: 11px !important;

    justify-content: flex-start !important;
  }


  /* =====================================================
     INPUT
     ===================================================== */

  .buscador input {
    display: none !important;
  }

  .buscador.buscador-movil-abierto input {
    display: block !important;

    flex: 1 !important;

    min-width: 0 !important;

    width: auto !important;
    height: 100% !important;

    padding:
      0 10px 0 14px !important;

    color: #fff !important;

    font-size: 13px !important;
  }


  /* =====================================================
     BOTÓN
     ===================================================== */

  .buscador button {
    position: relative !important;

    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    color: transparent !important;

    font-size: 0 !important;
  }

  .buscador button::before {
    top: 10px !important;
    left: 11px !important;

    width: 16px !important;
    height: 16px !important;

    border:
      2px solid #fff !important;
  }

  .buscador button::after {
    top: 26px !important;
    left: 26px !important;

    width: 8px !important;
  }


  /* =========================================================
     MÓVILES PEQUEÑOS
     ========================================================= */

  @media (max-width: 430px) {

    .logo-imagen {
      max-width: 170px;
    }

    .buscador input {
      font-size: 13px;

      padding-left: 14px;
    }

    .nav > a,
    .nav-dropdown-btn {
      padding-left: 11px;
      padding-right: 11px;
    }
  }

}
/* ↑ ESTA LLAVE CIERRA EL @media (max-width: 700px). ANTES FALTABA. */


/* =========================================================
   X SANDÍA — MEGA MENÚ FINAL
   47 elementos + "Ver todas..." = 48
   ========================================================= */


/* ---------------------------------------------------------
   EL DROPDOWN PADRE NO DEBE LIMITAR EL PANEL
   --------------------------------------------------------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown:has(.mega-menu-real) {
  position: static;
}


/* ---------------------------------------------------------
   PANEL GRANDE
   --------------------------------------------------------- */

.nav-dropdown .mega-menu-real {
  position: absolute !important;

  top: 100% !important;
  left: 50% !important;

  width: min(1200px, calc(100vw - 40px)) !important;
  min-width: min(1200px, calc(100vw - 40px)) !important;
  max-width: min(1200px, calc(100vw - 40px)) !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 22px 24px 24px !important;

  box-sizing: border-box;

  background: #0c0028 !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.55) !important;

  transform:
    translateX(-50%)
    translateY(8px) !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  overflow: hidden !important;

  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease;
}


/* ---------------------------------------------------------
   ABIERTO
   --------------------------------------------------------- */

.nav-dropdown:hover .mega-menu-real,
.nav-dropdown:focus-within .mega-menu-real {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translateX(-50%)
    translateY(0) !important;
}


/* ---------------------------------------------------------
   GRID
   7 FILAS x HASTA 7 COLUMNAS
   --------------------------------------------------------- */

.mega-menu-real .mega-menu-lista {
  display: grid !important;

  grid-auto-flow: column !important;

  grid-template-rows:
    repeat(7, 40px) !important;

  grid-template-columns:
    repeat(7, minmax(0, 1fr)) !important;

  grid-auto-columns: auto !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box;

  list-style: none;
}


/* ---------------------------------------------------------
   ELEMENTOS
   --------------------------------------------------------- */

.mega-menu-real
.mega-menu-lista
li {
  min-width: 0 !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 18px 0 0 !important;

  box-sizing: border-box;

  list-style: none !important;
}


/* ---------------------------------------------------------
   ENLACES
   --------------------------------------------------------- */

.mega-menu-real
.mega-menu-lista
li a {
  display: flex !important;

  align-items: center !important;

  width: 100% !important;
  height: 40px !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  color: #d8d8df !important;

  text-decoration: none !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  line-height: 1.2 !important;

  white-space: nowrap !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;

  transition:
    color .18s ease;
}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

.mega-menu-real
.mega-menu-lista
li a:hover {
  background: transparent !important;

  color: #ffffff !important;
}


/* ---------------------------------------------------------
   VER TODAS
   --------------------------------------------------------- */

.mega-menu-real
.mega-menu-lista
li.menu-ver-todas {
  padding-right: 0 !important;
}

.mega-menu-real
.mega-menu-lista
li.menu-ver-todas a {
  color: #ff5b9e !important;

  font-weight: 800 !important;
}

.mega-menu-real
.mega-menu-lista
li.menu-ver-todas a:hover {
  color: #ffffff !important;
}


/* =========================================================
   PUENTE REAL ENTRE BOTÓN Y MEGA MENÚ
   ========================================================= */

.nav-dropdown:has(.mega-menu-real)::after {
  content: "";

  position: absolute;

  /*
    El mega menú comienza inmediatamente debajo
    de la navegación. Esta zona invisible elimina
    cualquier hueco donde se pueda perder el mouse.
  */

  top: 154px;
  left: 0;

  width: 100%;
  height: 18px;

  background: transparent;

  z-index: 9999;

  pointer-events: none;
}

.nav-dropdown:hover:has(.mega-menu-real)::after {
  pointer-events: auto;
}


/* =========================================================
   PANEL SIEMPRE PEGADO AL MENÚ
   ========================================================= */

.nav-dropdown .mega-menu-real {
  top: 154px !important;
}


/* =========================================================
   EL PANEL TAMBIÉN ES PARTE DE LA ZONA ACTIVA
   ========================================================= */

.nav-dropdown:hover .mega-menu-real,
.nav-dropdown:focus-within .mega-menu-real {
  opacity: 1 !important;

  visibility: visible !important;

  pointer-events: auto !important;
}

.nav-dropdown:hover:has(.mega-menu-real)::after {
  pointer-events: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .nav-dropdown .mega-menu-real {
    width:
      calc(100vw - 24px) !important;

    min-width:
      calc(100vw - 24px) !important;

    max-width:
      calc(100vw - 24px) !important;

    padding:
      18px !important;
  }

  .mega-menu-real
  .mega-menu-lista {
    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;

    grid-template-rows:
      repeat(12, 38px) !important;
  }

  .mega-menu-real
  .mega-menu-lista
  li a {
    height: 38px !important;

    font-size: 13px !important;
  }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

  .nav-dropdown .mega-menu-real {
    position: fixed !important;

    top: 110px !important;
    left: 0 !important;

    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;

    max-height:
      calc(100vh - 110px) !important;

    padding:
      18px 16px 22px !important;

    transform:
      translateY(8px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .nav-dropdown:hover .mega-menu-real,
  .nav-dropdown:focus-within .mega-menu-real {
    transform:
      translateY(0) !important;
  }

  .mega-menu-real
  .mega-menu-lista {
    display: grid !important;

    grid-auto-flow: row !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    grid-template-rows:
      none !important;

    grid-auto-columns:
      auto !important;

    gap: 0 14px !important;
  }

  .mega-menu-real
  .mega-menu-lista
  li a {
    height: 38px !important;

    font-size: 13px !important;
  }
}


/* =========================================================
   XSANDÍA — HEADER MÓVIL ESTILO BLOGGER
   ========================================================= */

@media (max-width: 700px) {

  /* -------------------------------------------------------
     HEADER COMPACTO
     ------------------------------------------------------- */

  .header {
    position: relative !important;

    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;

    padding: 0 !important;

    background:
      #0b1025 !important;

    border-bottom:
      1px solid rgba(255,255,255,0.08) !important;
  }


  /* -------------------------------------------------------
     QUITAR LA RAYA ANTIGUA
     ------------------------------------------------------- */

  .header::after {
    display: none !important;
  }


  /* -------------------------------------------------------
     LOGO
     CENTRADO
     ------------------------------------------------------- */

  .logo {
    position: absolute !important;

    top: 11px !important;
    left: 50% !important;

    transform:
      translateX(-50%) !important;

    width: 150px !important;
    height: 50px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    z-index: 110;
  }

  .logo-imagen {
    max-width: 150px !important;
    max-height: 50px !important;

    width: auto !important;
    height: auto !important;
  }


  /* -------------------------------------------------------
     HAMBURGUESA
     ------------------------------------------------------- */

  .menu-movil-toggle {
    position: absolute !important;

    top: 15px !important;
    left: 16px !important;

    z-index: 500;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    background:
      #08001e !important;

    border:
      1px solid #ff2380 !important;

    border-radius: 9px !important;

    cursor: pointer !important;

    box-shadow:
      0 0 0 1px rgba(255,35,128,0.08);
  }

  .menu-movil-toggle span {
    display: block !important;

    width: 21px !important;
    height: 2px !important;

    background: #fff !important;

    border-radius: 3px !important;

    transition:
      transform .2s ease,
      opacity .2s ease;
  }


  /* X al abrir */

  .header.menu-movil-abierto
  .menu-movil-toggle span:nth-child(1) {
    transform:
      translateY(7px)
      rotate(45deg);
  }

  .header.menu-movil-abierto
  .menu-movil-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header.menu-movil-abierto
  .menu-movil-toggle span:nth-child(3) {
    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  /* -------------------------------------------------------
     BUSCADOR MÓVIL
     SOLO ICONO
     ------------------------------------------------------- */

  .buscador {
    position: absolute !important;

    top: 14px !important;
    right: 62px !important;
    left: auto !important;

    transform: none !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;

    border-radius: 50% !important;

    background:
      #ff2377 !important;

    overflow: hidden !important;

    z-index: 450;

    transition:
      width .22s ease,
      border-radius .22s ease,
      background .22s ease;
  }


  /* Ocultar input */

  .buscador input {
    display: none !important;
  }


  /* Botón */

  .buscador button {
    position: relative !important;

    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    color: transparent !important;

    font-size: 0 !important;
  }


  /* Lupa blanca */

  .buscador button::before {
    top: 10px !important;
    left: 11px !important;

    width: 16px !important;
    height: 16px !important;

    border:
      2px solid #fff !important;
  }

  .buscador button::after {
    top: 26px !important;
    left: 26px !important;

    width: 8px !important;
  }


  /* -------------------------------------------------------
     PERFIL
     ------------------------------------------------------- */

  #btn-mi-lista {
    position: absolute !important;

    top: 14px !important;
    right: 12px !important;
    left: auto !important;

    z-index: 450;

    width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border:
      1px solid rgba(255,255,255,0.18) !important;

    border-radius: 50% !important;

    background:
      #08001e !important;

    transform: none !important;
  }

  #btn-mi-lista:hover {
    transform: none !important;

    background:
      #11052e !important;
  }

  #btn-mi-lista .mi-lista-icono {
    width: 34px !important;
    height: 34px !important;
  }

  #btn-mi-lista .mi-lista-icono svg {
    width: 32px !important;
    height: 32px !important;
  }


  /* -------------------------------------------------------
     OCULTAR EL TEXTO DE MI LISTA EN MÓVIL
     ------------------------------------------------------- */

  #btn-mi-lista .mi-lista-texto,
  #btn-mi-lista .mi-lista-contador {
    display: none !important;
  }


  /* -------------------------------------------------------
     PANEL DEL MENÚ
     ------------------------------------------------------- */

  .nav {
    position: fixed !important;

    top: 70px !important;
    left: 6px !important;

    width:
      calc(100vw - 12px) !important;

    height:
      calc(100vh - 76px) !important;

    min-height: 0 !important;

    margin: 0 !important;
    padding: 8px !important;

    display: block !important;

    background:
      #0c0028 !important;

    border:
      1px solid #ff2380 !important;

    border-radius: 12px !important;

    box-shadow:
      0 18px 35px rgba(0,0,0,.55) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform:
      translateY(-8px)
      scaleY(.98) !important;

    transform-origin:
      top center !important;

    transition:
      opacity .18s ease,
      visibility .18s ease,
      transform .18s ease !important;

    z-index: 400 !important;
  }


  /* ABIERTO */

  .header.menu-movil-abierto .nav {
    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform:
      translateY(0)
      scaleY(1) !important;
  }


  /* -------------------------------------------------------
     ITEMS PRINCIPALES
     ------------------------------------------------------- */

  .nav > a,
  .nav-dropdown-btn {
    width: 100% !important;

    min-height: 48px !important;
    height: 48px !important;

    margin: 0 0 7px 0 !important;
    padding: 0 15px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    box-sizing: border-box !important;

    background:
      #170b32 !important;

    border:
      1px solid rgba(255,255,255,0.07) !important;

    border-radius: 8px !important;

    color: #fff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    text-align: left !important;

    flex: none !important;
  }


  .nav > a:hover,
  .nav-dropdown-btn:hover {
    background:
      #1b0e3c !important;
  }


  /* -------------------------------------------------------
     DESACTIVAR SUBRAYADO DESKTOP
     ------------------------------------------------------- */

  .nav > a::after,
  .nav-dropdown-btn::after {
    display: none !important;
  }


  /* -------------------------------------------------------
     FLECHA
     ------------------------------------------------------- */

  .nav-dropdown-btn::before {
    margin-left: auto !important;

    flex-shrink: 0 !important;

    border-left:
      5px solid transparent !important;

    border-right:
      5px solid transparent !important;

    border-top:
      6px solid #fff !important;

    order: 2 !important;
  }


  /* -------------------------------------------------------
     DROPDOWNS EN MÓVIL
     ------------------------------------------------------- */

  .nav-dropdown {
    position: relative !important;

    width: 100% !important;
  }


  .nav-dropdown-menu,
  .nav-dropdown .mega-menu-real {
    position: static !important;

    top: auto !important;
    left: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    max-height: none !important;

    margin: -1px 0 8px 0 !important;
    padding: 8px !important;

    box-sizing: border-box !important;

    background:
      #0b061a !important;

    border:
      1px solid rgba(255,255,255,0.06) !important;

    border-radius: 8px !important;

    box-shadow: none !important;

    transform: none !important;

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    display: none !important;

    overflow: visible !important;
  }


  /* Mostrar solo cuando se toca */

  .nav-dropdown.mobile-abierto
  > .nav-dropdown-menu,
  .nav-dropdown.mobile-abierto
  > .mega-menu-real {
    display: block !important;
  }


  /* -------------------------------------------------------
     LISTAS INTERNAS
     ------------------------------------------------------- */

  .nav-dropdown-menu ul,
  .mega-menu-real .mega-menu-lista {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }


  .nav-dropdown-menu li,
  .mega-menu-real .mega-menu-lista li {
    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  .nav-dropdown-menu a,
  .mega-menu-real .mega-menu-lista li a {
    width: 100% !important;

    min-height: 38px !important;
    height: 38px !important;

    padding: 0 10px !important;

    box-sizing: border-box !important;

    background: transparent !important;

    border: 0 !important;

    color: #d8d8df !important;

    font-size: 13px !important;

    white-space: normal !important;

    overflow: visible !important;

    text-overflow: clip !important;
  }


  .nav-dropdown-menu a:hover,
  .mega-menu-real .mega-menu-lista li a:hover {
    background:
      rgba(255,255,255,.05) !important;

    color: #fff !important;
  }


  /* Mega menú de categorías y estrellas:
     en móvil se convierte en 2 columnas */

  .mega-menu-real .mega-menu-lista {
    display: grid !important;

    grid-template-columns:
      repeat(2, minmax(0,1fr)) !important;

    grid-template-rows: none !important;

    grid-auto-flow: row !important;

    gap: 0 8px !important;
  }


  /* Ver todas */

  .mega-menu-real
  .mega-menu-lista
  li.menu-ver-todas {
    grid-column:
      1 / -1 !important;

    margin-top: 6px !important;

    border-top:
      1px solid rgba(255,255,255,0.08) !important;
  }

  .mega-menu-real
  .mega-menu-lista
  li.menu-ver-todas a {
    color: #ff5b9e !important;

    justify-content: center !important;
  }


  /* -------------------------------------------------------
     QUITAR ELEMENTOS VISUALES DEL DESKTOP
     ------------------------------------------------------- */

  .nav-dropdown::after {
    display: none !important;
  }
}
/* ↑ AQUÍ ANTES HABÍA "}}". AHORA ES SOLO UNA "}". */


/* =========================================================
   MÓVIL — CATEGORÍAS Y ESTRELLAS COMO LISTA VERTICAL
   ========================================================= */

@media (max-width: 700px) {

  /* El mega menú móvil será una lista de una sola columna */
  .mega-menu-real .mega-menu-lista {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    grid-auto-columns: none !important;
  }


  /* Cada elemento ocupa todo el ancho */
  .mega-menu-real .mega-menu-lista li {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* Cada opción es una fila */
  .mega-menu-real .mega-menu-lista li a {
    display: flex !important;

    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    align-items: center !important;
    justify-content: flex-start !important;

    box-sizing: border-box !important;

    color: #d8d8df !important;

    background: transparent !important;

    border: 0 !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }


  /* Hover / toque */
  .mega-menu-real .mega-menu-lista li a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
  }


  /* Ver todas SIEMPRE como última fila */
  .mega-menu-real
  .mega-menu-lista
  li.menu-ver-todas {
    display: block !important;

    width: 100% !important;

    margin-top: 6px !important;
    padding: 6px 0 0 !important;

    border-top:
      1px solid rgba(255,255,255,0.08) !important;
  }


  .mega-menu-real
  .mega-menu-lista
  li.menu-ver-todas a {
    display: flex !important;

    width: 100% !important;
    height: 42px !important;

    align-items: center !important;
    justify-content: center !important;

    color: #ff5b9e !important;

    font-weight: 800 !important;
  }


  .mega-menu-real
  .mega-menu-lista
  li.menu-ver-todas a:hover {
    color: #fff !important;
  }
}


/* =========================================================
   OCULTAR HAMBURGUESA EN ESCRITORIO
   ========================================================= */

.menu-movil-toggle {
  display: none !important;
}


/* En móvil sí se muestra */
@media (max-width: 700px) {

  .menu-movil-toggle {
    display: flex !important;
  }

}


/* =========================================================
   TABLETS — iPad Mini / iPad / iPad Pro
   Logo a la izquierda + buscador al centro/derecha
   sin solaparse
   ========================================================= */

@media (min-width: 701px) and (max-width: 1199px) {

  .header {
    min-height: 164px !important;
  }


  /* -------------------------------------------------------
     LOGO
     ------------------------------------------------------- */

  .logo {
    top: 35px !important;
    left: 20px !important;

    width: 190px !important;
    height: 58px !important;
  }

  .logo-imagen {
    max-width: 190px !important;
    max-height: 58px !important;
  }


  /* -------------------------------------------------------
     BUSCADOR
     Ocupa el espacio disponible sin tocar el logo
     ------------------------------------------------------- */

  .buscador {
    top: 35px !important;

    left: max(220px, 24vw) !important;
    right: max(80px, 7vw) !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 50px !important;

    transform: none !important;

    margin: 0 !important;
  }


  /* -------------------------------------------------------
     PERFIL
     ------------------------------------------------------- */

  #btn-mi-lista {
    top: 35px !important;

    right: 20px !important;
    left: auto !important;

    width: 50px !important;
    height: 50px !important;
  }


  /* -------------------------------------------------------
     NAVEGACIÓN
     ------------------------------------------------------- */

  .nav {
    width:
      calc(100vw - 40px) !important;

    margin:
      118px 20px 0 !important;

    padding: 0 !important;

    gap: 8px !important;

    justify-content: flex-start !important;

    flex-wrap: nowrap !important;
  }


  .nav > a,
  .nav-dropdown-btn {
    padding:
      0 17px !important;

    flex: 0 0 auto !important;

    white-space: nowrap !important;
  }


  /* -------------------------------------------------------
     MEGA MENÚ EN TABLET
     ------------------------------------------------------- */

  .nav-dropdown:has(.mega-menu-real) {
    position: static !important;
  }

  .nav-dropdown .mega-menu-real {
    width:
      calc(100vw - 40px) !important;

    min-width:
      calc(100vw - 40px) !important;

    max-width:
      calc(100vw - 40px) !important;

    left: 50% !important;
  }
}