/* ===========================================================================
   GENZ — Navidad 2026
   Se carga solo con la piel de Navidad activa (layout/theme.liquid, class
   "theme-navidad" en <html>; fechas en config.json → store.campaigns.navidad).
   El markup navideño lo emite sections/header.liquid (class "header--navidad").
   Efectos (cielo de partículas, aviso de la cámara, menú de cuenta):
   assets/theme-navidad.js. Sin JS el header sigue completo y usable.

   Fase 1 — header:
     1. Fondo: azul marino con luz desde abajo (como la referencia "Stars") y
        partículas que caen dibujadas en un <canvas> (.xmas-sky). El bloque
        nocturno de la home (.xmas-night) usa este mismo cielo.
     2. Fila de cotización: tipografía regular; solo «Trabaja con nosotros»
        («Servicio especializado» lleva "hideDuringCampaign": "navidad").
     3. Fila del logo: más baja; cámara + cuenta (solo ícono) + carrito;
        buscador con brillo dorado al enfocarlo.
     4. Fila de categorías: «Categorías» (sin fondo ni borde) + las categorías
        destacadas fijas, repartidas a lo ancho (sin carrusel).
     5. Borde inferior: caramelo (rayas rojas y blancas) del que cuelga una
        guirnalda de luces (.xmas-lights).
     6. Fila del logo fija al hacer scroll, con el caramelo y la guirnalda.
   ======================================================================== */

/* Cielo nocturno: el mismo en el header y en el bloque nocturno de la home
   (.xmas-night, templates/home.liquid → assets/theme-navidad-night.css).
   Azul marino con luz desde abajo; las partículas son el <canvas> .xmas-sky. */
.theme-navidad .header--navidad,
.theme-navidad .xmas-night {
  --xn-sky-0: #040a1e;
  --xn-sky-1: #0a1a3d;
  --xn-sky-glow: #17336f;

  background-color: var(--xn-sky-0);
  background-image:
    radial-gradient(ellipse 85% 140% at 50% 100%, var(--xn-sky-glow) 0%, var(--xn-sky-1) 48%, var(--xn-sky-0) 100%);
  isolation: isolate;
}

.theme-navidad .header--navidad {
  /* Textos y vidrios sobre la noche; ámbar (complementario) para el subtono del brillo. */
  --xn-text: #eef2ff;
  --xn-text-soft: rgba(226, 233, 255, 0.74);
  --xn-line: rgba(255, 255, 255, 0.09);
  --xn-glass: rgba(255, 255, 255, 0.07);
  --xn-glass-hover: rgba(255, 255, 255, 0.13);
  --xn-glass-line: rgba(255, 255, 255, 0.18);
  --xn-warm: rgba(255, 214, 160, 0.55);
  --xn-focus: #ffd27a;
  --xn-live: #ff3b4a;
  --xn-catbar-h: 48px;
}

/* Cielo de partículas: debajo de todo el contenido (z-index negativo dentro del
   contexto de apilamiento del header o del bloque nocturno) y sin capturar el puntero. */
.theme-navidad .header--navidad .xmas-sky,
.theme-navidad .xmas-night > .xmas-sky {
  display: block;
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: -1;
}

/* Bloque nocturno (alto): el lienzo mide como mucho una pantalla y queda fijo
   arriba mientras se recorre el bloque; el alto y el margen inferior que lo
   compensa los pone assets/theme-navidad.js. Sube sobre el relleno superior
   para cubrir también la zona de la nieve derretida. */
.theme-navidad .xmas-night > .xmas-sky {
  inset: auto;
  margin-top: calc(-1 * (var(--xd-h, 0px) + var(--xd-air, 0px)));
  position: sticky;
  top: 0;
}

/* Al final del bloque el lienzo fijo sobresaldría: se recorta al bloque (sin
   "overflow", que anularía el sticky). Arriba deja 2 px para la unión de la
   nieve con la sección informativa. */
.theme-navidad .xmas-night {
  clip-path: inset(-2px 0 0);
}

/* Las filas dejan ver el cielo. */
.theme-navidad .header--navidad .navbar,
.theme-navidad .header--navidad .header-content,
.theme-navidad .header--navidad .header-top-bar {
  background: transparent;
}

/* Filas por encima de la fila de categorías: el menú de cuenta y el aviso de
   la cámara se le superponen. */
.theme-navidad .header--navidad .header-top-bar {
  position: relative;
  z-index: 3;
}

.theme-navidad .header--navidad .header-content {
  position: relative;
  z-index: 4;
}

/* Foco visible y consistente sobre fondo oscuro. */
.theme-navidad .header--navidad .header-top-quote:focus-visible,
.theme-navidad .header--navidad .top-pages_link:focus-visible,
.theme-navidad .header--navidad .header-content a:focus-visible,
.theme-navidad .header--navidad .header-content button:focus-visible,
.theme-navidad .header--navidad .xmas-catbar a:focus-visible,
.theme-navidad .header--navidad .xmas-catbar button:focus-visible {
  outline: 2px solid var(--xn-focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   2. Fila de cotización — ligera, sin negritas
   ------------------------------------------------------------------------ */
.theme-navidad .header--navidad .header-top-bar .header-top-bar_nav {
  border-bottom-color: var(--xn-line);
  min-height: 30px;
  padding-bottom: 1px;
  padding-top: 1px;
}

.theme-navidad .header--navidad .header-top-quote,
.theme-navidad .header--navidad .header-top-quote_values,
.theme-navidad .header--navidad .header-top-quote_value {
  color: var(--xn-text);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.theme-navidad .header--navidad .header-top-quote_label {
  color: var(--xn-text-soft);
  font-weight: 400;
}

.theme-navidad .header--navidad .header-top-quote_sep {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 300;
}

.theme-navidad .header--navidad .header-top-quote_clickable:hover .header-top-quote_value {
  color: #fff;
}

/* «Trabaja con nosotros»: mismo color, tamaño y peso que «Cotización». */
.theme-navidad .header--navidad .header-top-bar .top-pages_item {
  padding: 0;
}

.theme-navidad .header--navidad .header-top-bar .top-pages_item::before {
  display: none;
}

.theme-navidad .header--navidad .header-top-bar .top-pages_link {
  color: var(--xn-text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
}

.theme-navidad .header--navidad .header-top-bar .top-pages_link:hover {
  color: var(--xn-text);
  text-decoration: none;
}

@media (max-width: 991px) {
  /* Igual que «Cotización» en móvil (11px) y sin recortar el texto. */
  .theme-navidad .header--navidad .header-top-bar .top-pages_link {
    font-size: 11px;
    max-width: none;
  }

  .theme-navidad .header--navidad .header-top-bar .header-top-bar_right {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .theme-navidad .header--navidad .header-top-bar .header-top-bar_nav {
    min-height: 28px;
    padding: 4px 0;
  }
}

/* ---------------------------------------------------------------------------
   3. Fila del logo y accesos — más compacta
   ------------------------------------------------------------------------ */
@media (min-width: 992px) {
  .theme-navidad .header--navidad .header-content .navbar {
    height: 72px;
  }

  .theme-navidad .header--navidad .header-content .logo img,
  .theme-navidad .header--navidad .header-content .logo svg {
    max-height: 46px;
  }

  .theme-navidad .header--navidad .header-content .navbar-center {
    padding-left: 28px;
    padding-right: 24px;
  }

  .theme-navidad .header--navidad .search-desktop .form-input {
    height: 46px;
  }

  .theme-navidad .header--navidad .header-content .navbar-section:last-child {
    gap: 6px;
    padding-right: 4px;
  }
}

/* Buscador: al enfocarlo, borde dorado sutil (el tono cálido de las estrellas)
   con un brillo apenas perceptible. */
.theme-navidad .header--navidad .search-desktop .form-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-navidad .header--navidad .search-desktop .form-input:focus {
  border-color: var(--xn-focus);
  box-shadow: 0 0 6px rgba(255, 214, 160, 0.14);
  outline: none;
}

/* Íconos de la derecha: mismo tamaño de área táctil (40×40) y el mismo hover. */
.theme-navidad .header--navidad .xmas-cam,
.theme-navidad .header--navidad .xmas-account .header-link_icon,
.theme-navidad .header--navidad .header-link.header-link_cart {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  line-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  transition: background-color 0.2s ease;
  width: 40px;
}

.theme-navidad .header--navidad .xmas-cam:hover,
.theme-navidad .header--navidad .xmas-account .header-link_icon:hover,
.theme-navidad .header--navidad .xmas-account.is-open .header-link_icon,
.theme-navidad .header--navidad .header-link.header-link_cart:hover {
  background-color: var(--xn-glass-hover);
}

.theme-navidad .header--navidad .xmas-account .header-link_icon svg {
  height: 21px;
  width: 19px;
}

.theme-navidad .header--navidad .header-link.header-link_cart svg {
  height: 23px;
  max-width: none;
  width: 19px;
}

.theme-navidad .header--navidad .header-link_cart .cart_quantity {
  right: 1px;
  top: 2px;
}

/* Cámara del Puente de la Amistad: ícono de cámara de vigilancia + punto "en vivo".
   Sin la opacidad 0.7 que el tema da a todo a:hover: el aviso va dentro del
   enlace y se vería translúcido. */
.theme-navidad .header--navidad .xmas-cam,
.theme-navidad .header--navidad .xmas-cam:hover,
.theme-navidad .header--navidad .xmas-cam:focus {
  opacity: 1;
  text-decoration: none;
}

.theme-navidad .header--navidad .xmas-cam_icon {
  display: inline-flex;
  position: relative;
}

.theme-navidad .header--navidad .xmas-cam_icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

.theme-navidad .header--navidad .xmas-cam_live {
  background: var(--xn-live);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--xn-sky-1);
  height: 7px;
  position: absolute;
  right: -2px;
  top: -1px;
  width: 7px;
}

/* Pulso «en vivo»: un círculo del color del punto que crece de 7 a 21 px y se
   apaga (lo mismo que un box-shadow de 0 a 7 px). Solo transform y opacity:
   corre en la placa de video; con box-shadow obligaba a redibujar toda la
   página en cada cuadro (60 veces por segundo, también en celulares). Mismo
   color que el punto (--xn-live), así encima de él no se nota. El círculo se
   dibuja ya en su tamaño final (21 px) y arranca achicado a 1/3: así el borde
   sale nítido (agrandar uno de 7 px lo dejaría borroso). */
.theme-navidad .header--navidad .xmas-cam_live::after {
  animation: xmas-live-pulse 2.4s ease-out infinite;
  background: rgba(255, 59, 74, 0.55);
  border-radius: 50%;
  content: '';
  inset: -7px;
  opacity: 0;
  position: absolute;
  transform: scale(0.3333);
}

@keyframes xmas-live-pulse {
  0% { opacity: 1; transform: scale(0.3333); }
  70%, 100% { opacity: 0; transform: scale(1); }
}

/* Aviso de la cámara: aparece al pasar el cursor/enfocar y, de vez en cuando,
   solo (class "is-tip", ver theme-navidad.js). Fondo sólido, sin
   transparencias ni fundidos de opacidad: entra con un leve desplazamiento. */
.theme-navidad .header--navidad .xmas-cam_tip {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2, 8, 28, 0.35);
  color: #0d1f4c;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  line-height: 1.3;
  max-width: calc(100vw - 24px);
  padding: 9px 12px;
  pointer-events: none;
  position: absolute;
  /* Alineado a la derecha (la cámara está cerca del borde): nunca desborda. */
  right: -60px;
  top: calc(100% + 10px);
  transform: translateY(4px);
  transition: visibility 0s;
  visibility: hidden;
  white-space: nowrap;
  z-index: 20;
}

/* Flecha apuntando al centro del ícono (40px de ancho → 20px desde su borde). */
.theme-navidad .header--navidad .xmas-cam_tip::before {
  background: #fff;
  border-radius: 2px;
  content: '';
  height: 10px;
  position: absolute;
  right: 75px;
  top: -4px;
  transform: rotate(45deg);
  width: 10px;
}

.theme-navidad .header--navidad .xmas-cam_tip-badge {
  align-items: center;
  background: #ffe7ea;
  border-radius: 999px;
  color: #c41230;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  letter-spacing: 0.02em;
  padding: 3px 8px 3px 7px;
  text-transform: uppercase;
}

.theme-navidad .header--navidad .xmas-cam_tip-badge::before {
  background: var(--xn-live);
  border-radius: 50%;
  content: '';
  height: 6px;
  width: 6px;
}

.theme-navidad .header--navidad .xmas-cam.is-tip .xmas-cam_tip,
.theme-navidad .header--navidad .xmas-cam:focus-visible .xmas-cam_tip {
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.2s ease, visibility 0s;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .theme-navidad .header--navidad .xmas-cam:hover:not(.is-tip-dismissed) .xmas-cam_tip {
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 0.2s ease, visibility 0s;
    visibility: visible;
  }
}

.theme-navidad .header--navidad .xmas-cam.is-tip-dismissed .xmas-cam_tip {
  visibility: hidden;
}

/* Cuenta: solo ícono; las opciones aparecen en un menú al pasar el cursor o
   al enfocar con teclado. El clic en el ícono sigue abriendo el panel. */
.theme-navidad .header--navidad .xmas-account {
  position: relative;
}

.theme-navidad .header--navidad .xmas-account .header-link_account {
  position: relative;
}

.theme-navidad .header--navidad .xmas-account_menu {
  opacity: 0;
  padding-top: 10px;
  position: absolute;
  right: -10px;
  top: 100%;
  transform: translateY(4px);
  /* Al salir, un respiro antes de cerrar para poder llegar al menú. */
  transition: opacity 0.15s ease 0.12s, transform 0.15s ease 0.12s, visibility 0s linear 0.27s;
  visibility: hidden;
  z-index: 20;
}

.theme-navidad .header--navidad .xmas-account_list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(2, 8, 28, 0.38);
  display: flex;
  flex-direction: column;
  min-width: 184px;
  padding: 6px;
  position: relative;
}

.theme-navidad .header--navidad .xmas-account_list::before {
  background: #fff;
  border-radius: 2px;
  content: '';
  height: 10px;
  position: absolute;
  right: 25px;
  top: -4px;
  transform: rotate(45deg);
  width: 10px;
}

.theme-navidad .header--navidad .xmas-account_link {
  border-radius: 8px;
  color: #0d1f4c;
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 240px;
  overflow: hidden;
  padding: 10px 12px;
  position: relative;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-navidad .header--navidad .xmas-account_link:hover,
.theme-navidad .header--navidad .xmas-account_link:focus-visible {
  background: #eef3fc;
  color: #002161;
  text-decoration: none;
}

.theme-navidad .header--navidad .xmas-account_link:focus-visible {
  outline: 2px solid #3189ca;
  outline-offset: -2px;
}

.theme-navidad .header--navidad .xmas-account_link + .xmas-account_link {
  margin-top: 2px;
}

.theme-navidad .header--navidad .xmas-account.is-open .xmas-account_menu {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .theme-navidad .header--navidad .xmas-account:hover:not(.is-dismissed) .xmas-account_menu {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
    visibility: visible;
  }
}

/* Móvil / tablet: logo a la izquierda; cámara, cuenta y carrito a la derecha;
   el buscador debajo. La cuenta se abre tocando el ícono (sin menú flotante). */
@media (max-width: 991px) {
  .theme-navidad .header--navidad .header-content .navbar-section:first-child {
    display: none;
  }

  .theme-navidad .header--navidad .header-content--with-shop .navbar {
    grid-template-areas:
      "logo actions"
      "search search";
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 10px;
    padding-top: 6px;
    row-gap: 8px;
  }

  .theme-navidad .header--navidad .header-content--with-shop .navbar-center .logo.show-lg {
    justify-self: start;
  }

  .theme-navidad .header--navidad .header-content .navbar-section:last-child {
    gap: 2px;
  }

  .theme-navidad .header--navidad .header-content--with-shop .header-link.header-link_cart {
    border-left: 0;
    padding: 0;
  }

  .theme-navidad .header--navidad .header-content--with-shop .header-box_account .header-link_icon {
    padding: 0;
  }

  .theme-navidad .header--navidad .xmas-account_menu {
    display: none;
  }

  .theme-navidad .header--navidad .header-search-mobile .form-input,
  .theme-navidad .header--navidad .navbar-center .search-desktop .form-input {
    height: 44px;
  }

  /* Íconos más juntos en móvil: misma cuenta que en escritorio con 2px de separación. */
  .theme-navidad .header--navidad .xmas-cam_tip {
    right: -52px;
  }

  .theme-navidad .header--navidad .xmas-cam_tip::before {
    right: 67px;
  }
}

@media (max-width: 400px) {
  .theme-navidad .header--navidad .xmas-cam_tip {
    font-size: 12px;
    padding: 8px 10px;
    white-space: normal;
  }
}

/* ---------------------------------------------------------------------------
   4. Fila de categorías — «Categorías» + categorías fijas, centradas
   ------------------------------------------------------------------------ */
.theme-navidad .header--navidad .xmas-catbar {
  border-top: 1px solid var(--xn-line);
  position: relative;
  z-index: 2;
}

.theme-navidad .header--navidad .xmas-catbar_inner {
  /* Separación entre categorías (la usa .xmas-catnav_list). Entre «Categorías»
     y la primera categoría va un poco más (× 1,5), para distinguir el botón sin
     separarlo del grupo. */
  --xn-catnav-gap: 28px;
  align-items: center;
  display: flex;
  gap: calc(var(--xn-catnav-gap) * 1.5);
  /* Escritorio: «Categorías» y las categorías, un solo grupo centrado. */
  justify-content: center;
  min-height: var(--xn-catbar-h);
}

/* Botón «Categorías»: escritorio = disparador del megamenú; móvil = menú lateral. */
.theme-navidad .header--navidad .xmas-catbar .nav-main {
  flex: 0 0 auto;
  height: var(--xn-catbar-h);
  margin: 0;
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_item__all {
  align-items: center;
  display: flex;
  height: 100%;
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_link__first {
  align-items: center;
  display: flex;
  height: 100%;
  padding: 0;
  text-decoration: none;
}

/* Sin depender de su posición estática (flex), el megamenú arranca justo
   debajo de la fila. */
.theme-navidad .header--navidad .xmas-catbar .nav-main_item__all > .nav-main_content {
  top: 100%;
}

/* Sin fondo ni borde: se integra con las categorías; al pasar el
   cursor, el mismo subrayado cálido que las categorías. */
.theme-navidad .header--navidad .xmas-catbar .nav-main-box_link,
.theme-navidad .header--navidad .xmas-catbar_btn {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--xn-text);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  gap: 9px;
  height: 34px;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_item__all:hover .nav-main-box_link,
.theme-navidad .header--navidad .xmas-catbar .nav-main_link__first:focus-visible .nav-main-box_link,
.theme-navidad .header--navidad .xmas-catbar_btn:hover,
.theme-navidad .header--navidad .xmas-catbar_btn:focus-visible {
  color: #fff;
}

.theme-navidad .header--navidad .xmas-catbar_label {
  position: relative;
}

.theme-navidad .header--navidad .xmas-catbar_label::after {
  background: linear-gradient(90deg, transparent, var(--xn-warm), transparent);
  bottom: -5px;
  content: '';
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_item__all:hover .xmas-catbar_label::after,
.theme-navidad .header--navidad .xmas-catbar .nav-main_link__first:focus-visible .xmas-catbar_label::after,
.theme-navidad .header--navidad .xmas-catbar_btn:hover .xmas-catbar_label::after,
.theme-navidad .header--navidad .xmas-catbar_btn:focus-visible .xmas-catbar_label::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_link__first:focus-visible {
  outline: none;
}

.theme-navidad .header--navidad .xmas-catbar .nav-main_link__first:focus-visible .nav-main-box_link,
.theme-navidad .header--navidad .xmas-catbar_btn:focus-visible {
  outline: 2px solid var(--xn-focus);
  outline-offset: 4px;
}

.theme-navidad .header--navidad .xmas-catbar .icon-nav-first,
.theme-navidad .header--navidad .xmas-catbar_icon {
  background: none;
  border-radius: 0;
  display: inline-flex;
  height: auto;
  margin: 0;
  width: auto;
}

.theme-navidad .header--navidad .xmas-catbar .icon-nav-first svg,
.theme-navidad .header--navidad .xmas-catbar_icon svg {
  display: block;
  height: 11px;
  width: 17px;
}

.theme-navidad .header--navidad .xmas-catbar_btn {
  flex: 0 0 auto;
}

/* Categorías destacadas, fijas (sin carrusel). Escritorio: juntas, a
   continuación de «Categorías» y centradas con él en la fila (la lista ocupa
   solo lo que mide; ver «Desktop» más abajo). Tablet y celular: una sola fila
   que se desliza en horizontal, sin barra visible (ver «Tablet y móvil»). */
.theme-navidad .header--navidad .xmas-catnav {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-navidad .header--navidad .xmas-catnav_list {
  align-items: center;
  column-gap: var(--xn-catnav-gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Escritorio angosto: un poco menos de aire para que entren en una fila (con los
   íconos de categoría ocupan más). Entre 992 y 1199 px, si aun así no entran, la
   fila se desliza como en tablet en vez de partirse en dos líneas. */
@media (min-width: 1200px) and (max-width: 1399px) {
  .theme-navidad .header--navidad .xmas-catbar_inner {
    --xn-catnav-gap: 16px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .theme-navidad .header--navidad .xmas-catbar_inner {
    --xn-catnav-gap: 14px;
  }

  .theme-navidad .header--navidad .xmas-catnav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .theme-navidad .header--navidad .xmas-catnav::-webkit-scrollbar {
    display: none;
  }

  .theme-navidad .header--navidad .xmas-catnav_list {
    flex-wrap: nowrap;
    padding-right: 28px;
    width: max-content;
  }
}

.theme-navidad .header--navidad .xmas-catnav_item {
  flex: 0 0 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mismo texto, subrayado cálido y transiciones que tenían en el carrusel. */
.theme-navidad .header--navidad .xmas-catnav_link {
  color: var(--xn-text);
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 8px 2px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

/* Íconos de categoría (los de todo el año: misma máscara y color #dc4181 de
   theme-custom.css, «.header-shortcut-menu_group__links .header-shortcut-menu_icon»):
   en Navidad van delante del texto; solo cambia el entorno, no el ícono. */
.theme-navidad .header--navidad .xmas-catnav_link {
  align-items: center;
  column-gap: 7px;
  display: inline-flex;
}

.theme-navidad .header--navidad .xmas-catnav_icon {
  color: #dc4181;
  height: 20px;
  width: 20px;
}

.theme-navidad .header--navidad .xmas-catnav_icon.header-shortcut-menu_icon--mask {
  background-color: #dc4181;
  -webkit-mask-image: var(--shortcut-icon);
  mask-image: var(--shortcut-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter:
    drop-shadow(0.55px 0 0 #dc4181) drop-shadow(-0.55px 0 0 #dc4181) drop-shadow(0 0.55px 0 #dc4181) drop-shadow(0 -0.55px 0 #dc4181);
}

.theme-navidad .header--navidad .xmas-catnav_icon svg,
.theme-navidad .header--navidad .xmas-catnav_icon svg path,
.theme-navidad .header--navidad .xmas-catnav_icon svg circle,
.theme-navidad .header--navidad .xmas-catnav_icon svg rect,
.theme-navidad .header--navidad .xmas-catnav_icon svg line,
.theme-navidad .header--navidad .xmas-catnav_icon svg polyline,
.theme-navidad .header--navidad .xmas-catnav_icon svg polygon {
  stroke: currentColor;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.theme-navidad .header--navidad .xmas-catnav_link::after {
  background: linear-gradient(90deg, transparent, var(--xn-warm), transparent);
  bottom: 3px;
  content: '';
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-navidad .header--navidad .xmas-catnav_link:hover,
.theme-navidad .header--navidad .xmas-catnav_link:focus-visible {
  color: #fff;
  text-decoration: none;
}

.theme-navidad .header--navidad .xmas-catnav_link:hover::after,
.theme-navidad .header--navidad .xmas-catnav_link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-navidad .header--navidad .xmas-catnav_link:focus-visible {
  outline-offset: -2px;
}

/* Desktop: el megamenú abierto queda por encima de las categorías. La lista
   mide lo que ocupan sus categorías (sin estirarse), así el grupo «Categorías» +
   categorías se centra; si no entra, se achica y se desliza (992–1199 px) o se
   parte en dos líneas centradas. El megamenú se ubica respecto de toda la fila
   (.xmas-catbar), no del botón, así que no se mueve. */
@media (min-width: 992px) {
  .theme-navidad .header--navidad .xmas-catbar .nav-main {
    display: flex;
  }

  .theme-navidad .header--navidad .xmas-catnav {
    flex: 0 1 auto;
  }
}

/* Tablet y móvil */
@media (max-width: 991px) {
  .theme-navidad .header--navidad {
    --xn-catbar-h: 46px;
  }

  .theme-navidad .header--navidad .xmas-catbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .theme-navidad .header--navidad .xmas-catbar_inner {
    gap: 6px;
  }

  /* .show-lg fuerza display: block; el botón necesita flex para centrar el ícono. */
  .theme-navidad .header--navidad .xmas-catbar_btn.show-lg {
    display: inline-flex !important;
  }

  /* Solo la hamburguesa (40 × 40, cómodo para el dedo). La palabra
     «Categorías» sigue en el HTML para lectores de pantalla: es el nombre del
     botón. */
  .theme-navidad .header--navidad .xmas-catbar_btn {
    font-size: 13px;
    height: 40px;
    justify-content: center;
    /* El ícono queda alineado con el logo de la fila de arriba. */
    margin-left: -6px;
    width: 40px;
  }

  .theme-navidad .header--navidad .xmas-catbar_btn .xmas-catbar_label {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .theme-navidad .header--navidad .xmas-catbar_btn .xmas-catbar_icon svg {
    height: 13px;
    width: 20px;
  }

  /* Una sola fila que se desliza en horizontal con el dedo, sin barra
     visible. El borde derecho se funde para que se note que hay más; al
     final de la fila sobra aire, así la última categoría no queda fundida. */
  .theme-navidad .header--navidad .xmas-catnav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .theme-navidad .header--navidad .xmas-catnav::-webkit-scrollbar {
    display: none;
  }

  .theme-navidad .header--navidad .xmas-catnav_list {
    column-gap: 22px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 28px 0 4px;
    width: max-content;
  }

  .theme-navidad .header--navidad .xmas-catnav_link {
    font-size: 13px;
    padding: 8px 2px;
  }
}

/* ---------------------------------------------------------------------------
   5. Borde inferior — caramelo navideño + guirnalda de luces
   ------------------------------------------------------------------------ */
/* La línea de colores de la marca (.div-content) pasa a ser un bastón de
   caramelo: franjas diagonales rojas y blancas con un leve volumen. */
.theme-navidad .header--navidad .div-content {
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 45%, rgba(10, 18, 46, 0.16) 100%),
    repeating-linear-gradient(-45deg, #d7192d 0, #d7192d 4.4px, #fff 5px, #fff 8.4px, #d7192d 9px);
  height: 6px;
}

.theme-navidad .header--navidad .div-content_item {
  display: none;
}

/* Guirnalda: cuelga del caramelo sobre el comienzo de la página (≤16px, sin
   capturar el puntero) y queda por debajo del megamenú y de los menús del
   header. El cable es un fondo que se repite cada --xl-gap; cada <i> es una
   lamparita centrada en la curva del cable. */
.theme-navidad .header--navidad .xmas-lights,
.theme-navidad .xmas-lights-host .xmas-lights {
  --xl-gap: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='8' viewBox='0 0 32 8'%3E%3Cpath d='M0 .6Q16 9.4 32 .6' fill='none' stroke='%23264434' stroke-opacity='.7' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / var(--xl-gap) 8px;
  display: flex;
  height: 20px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1;
}

.theme-navidad .header--navidad .xmas-lights i,
.theme-navidad .xmas-lights-host .xmas-lights i {
  animation: xmas-light-sway 3.6s ease-in-out infinite alternate;
  flex: 0 0 var(--xl-gap);
  height: 100%;
  position: relative;
  /* Gira desde el punto del cable (centro de la curva, 5px). */
  transform-origin: 50% 5px;
}

/* Lamparita: casquillo oscuro + vidrio de color con reflejo y un halo suave
   que titila (solo opacidad y transform: animaciones baratas). */
.theme-navidad .header--navidad .xmas-lights b,
.theme-navidad .xmas-lights-host .xmas-lights b {
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 38%), var(--xl-c, #f5b82e);
  border-radius: 45% 45% 50% 50% / 38% 38% 62% 62%;
  height: 8px;
  left: 50%;
  margin-left: -2.5px;
  position: absolute;
  top: 7px;
  width: 5px;
}

.theme-navidad .header--navidad .xmas-lights b::before,
.theme-navidad .xmas-lights-host .xmas-lights b::before {
  background: #2b3a33;
  border-radius: 1px;
  content: '';
  height: 3px;
  left: 1px;
  position: absolute;
  top: -2px;
  width: 3px;
}

.theme-navidad .header--navidad .xmas-lights b::after,
.theme-navidad .xmas-lights-host .xmas-lights b::after {
  animation: xmas-light-twinkle 2.8s ease-in-out infinite;
  background: radial-gradient(closest-side, var(--xl-c, #f5b82e), transparent);
  border-radius: 50%;
  content: '';
  inset: -4px -5px -3px;
  opacity: 0.45;
  position: absolute;
  z-index: -1;
}

/* Colores (rojo, dorado, verde, azul y magenta) y ritmos distintos para que
   no se muevan ni titilen todas a la vez. */
.theme-navidad .header--navidad .xmas-lights i:nth-child(5n + 1),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(5n + 1) { --xl-c: #e8333f; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(5n + 2),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(5n + 2) { --xl-c: #f5b82e; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(5n + 3),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(5n + 3) { --xl-c: #1fae5b; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(5n + 4),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(5n + 4) { --xl-c: #2b8ce6; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(5n + 5),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(5n + 5) { --xl-c: #dd2c7b; }

.theme-navidad .header--navidad .xmas-lights i:nth-child(3n + 2),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(3n + 2) { animation-delay: -1.2s; animation-duration: 4.2s; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(3n + 3),
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(3n + 3) { animation-delay: -2.5s; animation-duration: 3.1s; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(4n + 2) b::after,
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(4n + 2) b::after { animation-delay: -0.9s; animation-duration: 3.4s; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(4n + 3) b::after,
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(4n + 3) b::after { animation-delay: -1.8s; animation-duration: 2.3s; }
.theme-navidad .header--navidad .xmas-lights i:nth-child(4n + 4) b::after,
.theme-navidad .xmas-lights-host .xmas-lights i:nth-child(4n + 4) b::after { animation-delay: -2.6s; animation-duration: 3.9s; }

@keyframes xmas-light-sway {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

@keyframes xmas-light-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Solo las lamparitas que entran en pantalla (32px cada una). */
@media (max-width: 1920px) {
  .theme-navidad .header--navidad .xmas-lights i:nth-child(n + 62),
  .theme-navidad .xmas-lights-host .xmas-lights i:nth-child(n + 62) { display: none; }
}

@media (max-width: 1440px) {
  .theme-navidad .header--navidad .xmas-lights i:nth-child(n + 47),
  .theme-navidad .xmas-lights-host .xmas-lights i:nth-child(n + 47) { display: none; }
}

@media (max-width: 1024px) {
  .theme-navidad .header--navidad .xmas-lights i:nth-child(n + 34),
  .theme-navidad .xmas-lights-host .xmas-lights i:nth-child(n + 34) { display: none; }
}

@media (max-width: 767px) {
  .theme-navidad .header--navidad .xmas-lights i:nth-child(n + 26),
  .theme-navidad .xmas-lights-host .xmas-lights i:nth-child(n + 26) { display: none; }
}

@media (max-width: 480px) {
  .theme-navidad .header--navidad .xmas-lights i:nth-child(n + 17),
  .theme-navidad .xmas-lights-host .xmas-lights i:nth-child(n + 17) { display: none; }
}

/* ---------------------------------------------------------------------------
   6. Fila del logo fija (assets/theme-custom.css, «Header: fila del logo fija»)
   Al hacer scroll quedan arriba la fila del logo, el caramelo y la guirnalda; en
   escritorio (≥ 992 px) también la fila de categorías con el megamenú (el script
   del header la deja dentro de la parte fija). En el celular la fila de
   categorías pasa por debajo de la fila del logo y desaparece.
   La fila es transparente (deja ver el cielo y las partículas), así que lo que
   tapa a las categorías es .xmas-row-sky: una copia del fondo del header, del
   alto de la fila, que la acompaña (sticky) sin ocupar lugar. El script del
   header mueve su degradado para que coincida siempre con el del header.
   Capas dentro del header: guirnalda (0) < categorías (1) < cielo de la fila
   (2) < partículas (3) < cotización (3, después en el DOM) < fila del logo (4).
   El megamenú (dentro de las categorías) sigue por encima de la guirnalda.
   ------------------------------------------------------------------------ */
.theme-navidad .header--navidad .xmas-row-sky {
  display: none;
}

.theme-navidad.hdr-sticky-on .header--navidad .xmas-row-sky {
  background: inherit;
  background-repeat: no-repeat;
  background-size: 100% var(--hdr-h, 100%);
  display: block;
  height: var(--hdr-row-h, 0px);
  margin-bottom: calc(-1 * var(--hdr-row-h, 0px));
  pointer-events: none;
  position: -webkit-sticky;
  position: sticky;
  top: var(--gz-cd-h, 0px);
  z-index: 2;
}

.theme-navidad.hdr-sticky-on .header--navidad .xmas-catbar {
  z-index: 1;
}

.theme-navidad.hdr-sticky-on .header--navidad .xmas-lights {
  z-index: 0;
}

/* Partículas por encima del cielo de la fila (se siguen viendo detrás del
   logo y el buscador), pero no sobre el caramelo. */
.theme-navidad.hdr-sticky-on .header--navidad > .xmas-sky {
  clip-path: inset(0 0 var(--hdr-line-h, 6px) 0);
  z-index: 3;
}

/* ---------------------------------------------------------------------------
   Movimiento reducido: sin pulso ni transiciones de desplazamiento (el cielo
   queda quieto, ver theme-navidad.js).
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .theme-navidad .header--navidad .xmas-cam_live::after {
    animation: none;
  }

  /* Luces quietas, con un brillo intermedio fijo. */
  .theme-navidad .header--navidad .xmas-lights i,
  .theme-navidad .xmas-lights-host .xmas-lights i,
  .theme-navidad .header--navidad .xmas-lights b::after,
  .theme-navidad .xmas-lights-host .xmas-lights b::after {
    animation: none;
  }

  .theme-navidad .header--navidad .xmas-lights b::after,
  .theme-navidad .xmas-lights-host .xmas-lights b::after {
    opacity: 0.55;
  }

  .theme-navidad .header--navidad .xmas-cam_tip,
  .theme-navidad .header--navidad .xmas-account_menu {
    transform: none !important;
  }
}
