/* =========================================================
   FAST MARKET — CATÁLOGO (catalogo.html)
   ---------------------------------------------------------
   Portada de la categoría, una sola barra (categorías +
   buscador + orden), fila de resultados con filtros rápidos
   y tarjetas cuadradas con el precio y el botón abajo.
   Se carga después de styles.css, halloween.css y
   decoracion.css: lo de aquí gana dentro de .cx.
   ========================================================= */

.cx {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 70px;
}

/* ---------- portada de la categoría ---------- */
.cx-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: end;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px) 0 26px;
}
.cx-migas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.cx-migas a {
  color: var(--muted);
  text-decoration: none;
}
.cx-migas a:hover {
  color: var(--text);
}
.cx-migas span {
  opacity: 0.45;
}
.cx-migas b {
  color: var(--text);
  font-weight: 600;
}
.cx-titulo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.cx-num {
  margin-top: 0.3em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(221, 255, 40, 0.55);
  background: rgba(221, 255, 40, 0.1);
  color: var(--neon);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.cx-num:empty {
  display: none;
}
.cx-desc {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.cx-datos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.cx-datos b {
  color: var(--text);
}
.cx-datos i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon);
}

/* el niño alcanza la estrella (a la derecha de la portada).
   Lienzo fijo de 300 × 290: en pantallas chicas se achica entero con
   transform, así las piezas nunca se desacomodan entre sí. */
@keyframes cxFlota {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(6deg);
  }
}
@keyframes cxChispa {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cxEstela {
  to {
    stroke-dashoffset: -24;
  }
}
.cx-arte {
  position: relative;
  width: 300px;
  height: 290px;
  justify-self: end;
  pointer-events: none;
  user-select: none;
  transform-origin: right bottom;
}
/* resplandor redondo detrás de la estrella (se apaga antes del borde: sin cortes) */
.cx-arte-halo {
  position: absolute;
  left: 105px;
  top: -55px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(237, 255, 160, 0.22), rgba(221, 255, 40, 0.08) 55%, transparent);
}
.cx-arte-estrella {
  position: absolute;
  left: 145px;
  top: -16px;
  width: 120px;
  animation: cxFlota 6s ease-in-out infinite;
}
.cx-arte-estela {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cx-arte-estela path {
  stroke: rgba(246, 255, 210, 0.45);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  animation: cxEstela 2.4s linear infinite;
}
.cx-chispa {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--deco-estrella) center / contain no-repeat;
  animation: cxChispa 2.4s ease-in-out var(--d) infinite;
}
.cx-chispa.chica {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
}
.cx-arte .cx-arte-nino {
  position: absolute;
  left: 36px;
  bottom: 0;
  height: 220px;
  width: auto !important;
  opacity: 0.95;
}
/* sombra suave bajo los pies */
.cx-arte-suelo {
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 140px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228, 255, 90, 0.28), transparent);
}

/* ---------- la barra: categorías + buscador + orden ---------- */
.cx .cx-barra {
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(17, 18, 14, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.cx .cx-barra .cat-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow-x: auto;
  scrollbar-width: none;
  /* se desvanece a la derecha si hay más categorías */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.cx .cx-barra .cat-nav::-webkit-scrollbar {
  display: none;
}
.cx .cat-pill {
  flex: none;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
}
/* Followers y Robux (páginas aparte): sin la flechita, más compactos.
   Sin íconos en la barra (como en las tiendas grandes): entra todo en una
   fila. Los íconos siguen en el HTML: la barra fina de arriba los usa. */
.cx .cat-pill-ext,
.cx .cat-pill-ico {
  display: none;
}
.cx .cat-pill:hover {
  transform: none;
}
.cx .cat-pill-star {
  display: none;
}
.cx .cx-ctrl {
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.cx .cx-ctrl {
  flex-wrap: nowrap;
}
.cx .cat-search {
  width: 230px;
  display: flex;
}
.cx .cat-search input {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 42px;
  border-radius: 12px;
}
.cx-orden {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.cx-orden i {
  color: var(--neon);
}
.cx-orden select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 4px 0 0;
  cursor: pointer;
  outline: none;
}
.cx-orden select option {
  background: #191b15;
  color: #fff;
}
.cx-orden:focus-within {
  border-color: var(--neon);
}

/* ---------- resultados + filtros rápidos ---------- */
.cx-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 18px;
}
.cx .cat-results {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.cx .cat-results b {
  color: var(--text);
}
.cx-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cx .cat-sub-wrap {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.cx .cat-sub-wrap[hidden] {
  display: none;
}
.cx .cat-sub-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.cx .cat-sub-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  font-size: 0.78rem;
}
.cx-chip,
.cx .cat-filter-btn.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cx-chip i {
  color: var(--neon);
}
.cx-chip:hover {
  border-color: rgba(221, 255, 40, 0.5);
}
.cx-chip.active,
.cx .cat-filter-btn.cx-chip.active {
  border-color: var(--neon);
  background: rgba(221, 255, 40, 0.14);
  color: #fff;
}

/* ---------- tarjetas ---------- */
.cx .cx-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.cx .cx-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #181915, #121310);
}
.cx .cx-card.available:hover {
  transform: translateY(-4px);
  border-color: rgba(221, 255, 40, 0.6);
  box-shadow: 0 22px 44px -22px rgba(221, 255, 40, 0.55);
}
.cx .cx-media {
  height: auto;
  aspect-ratio: 1 / 1;
  clip-path: none;
  background: #0e0f0c;
}
.cx .cx-media::after {
  /* la foto se funde con el cuerpo de la tarjeta */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(18, 19, 16, 0.75));
  pointer-events: none;
}
.cx .cx-card.available:hover .pc-img-1.no-swap,
.cx .cx-card.available:hover .pc-img-2 {
  transform: scale(1.05);
}
.cx-tags {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  right: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cx-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(11, 12, 10, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cx-tag.off {
  background: #e5484d;
}
.cx-tag.sold {
  background: #b1111b;
}
.cx-tag.few {
  color: #dcff66;
}
.cx-tag.few .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dcff66;
  box-shadow: 0 0 8px #dcff66;
}
.cx-tag.tk {
  color: #aab3ff;
}
.cx-tag.cfg {
  color: var(--neon-2);
}
.cx-rank {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(11, 12, 10, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(220, 255, 102, 0.45);
  color: #dcff66;
  font-size: 0.7rem;
  font-weight: 800;
}
.cx-rank.r1 {
  background: linear-gradient(135deg, #dcff66, #ccf42b);
  border-color: transparent;
  color: #161812;
}
.cx-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}
.cx-cat {
  color: var(--neon);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-nombre {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  margin: 5px 0 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}
.cx-pie {
  display: flex;
  flex-wrap: wrap; /* si el precio es largo (ARS 114.240,00), el botón baja */
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
/* el precio nunca se achica por debajo de su texto (antes quedaba debajo
   del botón). Con "999" se queda con el espacio libre de la fila; si el
   botón baja solo a la línea de abajo, el botón ocupa todo el ancho. */
.cx-precio {
  flex: 999 1 auto;
  display: flex;
  flex-direction: column;
  min-width: max-content;
}
.cx-precio b {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.cx-precio s {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.cx-desde {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.cx-cta {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 0;
  background: var(--neon);
  color: var(--brand-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px var(--neon);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cx-card.available:hover .cx-cta {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cx-cta.off {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.cx .cx-card.sold .cx-media > img {
  filter: grayscale(0.85) brightness(0.6);
}

/* accesos rápidos (packs de Fortnite) */
.cx #catExtra:not(:empty) {
  margin-top: 30px;
}

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .cx-hero {
    grid-template-columns: 1fr 190px;
  }
  .cx-arte {
    transform: scale(0.62);
    margin: -110px 0 0 -114px;
  }
  .cx .cx-barra {
    flex-direction: column;
  }
  .cx .cx-ctrl {
    width: 100%;
  }
  .cx .cat-search {
    flex: 1;
    width: auto;
  }
  .cx-orden {
    flex: none;
  }
}

/* ---------- celular ---------- */
@media (max-width: 620px) {
  .cx {
    padding: 0 14px 50px;
  }
  .cx-hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .cx-arte {
    position: absolute;
    right: 0;
    top: 34px;
    margin: 0;
    transform: scale(0.4);
    transform-origin: right top;
    opacity: 0.85;
  }
  /* en el celular solo flota la estrella: el niño taparía la descripción */
  .cx-arte .cx-arte-nino,
  .cx-arte-estela,
  .cx-chispa,
  .cx-arte-suelo {
    display: none;
  }
  .cx-titulo {
    padding-right: 70px;
  }
  .cx .cx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cx-body {
    padding: 10px 10px 12px;
  }
  .cx-nombre {
    font-size: 0.86rem;
  }
  .cx-pie {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cx-precio b {
    font-size: 1.05rem;
  }
  .cx-cta {
    justify-content: center;
    padding: 9px 10px;
  }
  .cx-tags {
    right: 44px;
  }
  .cx-fila {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-arte-estrella,
  .cx-arte-estela path,
  .cx-chispa {
    animation: none;
  }
}
html.fs-ligero .cx-arte-estrella,
html.fs-ligero .cx-arte-estela path,
html.fs-ligero .cx-chispa {
  animation: none;
}

/* =========================================================
   PORTADA DEL CATÁLOGO: el dibujo animado
   ---------------------------------------------------------
   Estrellas que titilan, estrella fugaz, murciélagos que
   aletean, rayos detrás de la estrella, chispas que viajan
   de la mano del niño (SVG), aura que late, luciérnagas.
   Con el mouse (--mx, --my, los pone initAnimaciones) cada
   pieza se mueve según su distancia.
   ========================================================= */
@keyframes cxTitila {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes cxFugaz {
  0% {
    opacity: 0;
    transform: rotate(16deg) translateX(0);
  }
  2% {
    opacity: 1;
  }
  10%,
  100% {
    opacity: 0;
    transform: rotate(16deg) translateX(340px);
  }
}
@keyframes cxAla {
  to {
    transform: scaleY(0.2);
  }
}
@keyframes cxVuela1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(-5deg);
  }
  25% {
    transform: translate(140%, -50%) rotate(6deg);
  }
  50% {
    transform: translate(280%, 20%) rotate(-3deg);
  }
  75% {
    transform: translate(140%, 80%) rotate(4deg);
  }
}
@keyframes cxVuela2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(5deg);
  }
  33% {
    transform: translate(-160%, 70%) rotate(-6deg);
  }
  66% {
    transform: translate(-70%, -60%) rotate(3deg);
  }
}
@keyframes cxGiraRayos {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cxLatido {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes cxBalanceo {
  0%,
  100% {
    transform: rotate(-1.4deg);
  }
  50% {
    transform: rotate(1.1deg);
  }
}
@keyframes cxLuz {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.95;
  }
  50% {
    transform: translate(12px, -34px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-8px, -70px) scale(0.5);
  }
}
@keyframes cxSubeNino {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 0.95;
    transform: none;
  }
}
@keyframes cxPopEstrella {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-60deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.12) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cx-arte {
  --mx: 0;
  --my: 0;
}
/* estrellas del fondo (algunas caen fuera del lienzo, sobre el cielo) */
.cx-cielo {
  position: absolute;
  inset: 0;
  translate: calc(var(--mx) * 4px) calc(var(--my) * 3px);
}
.cx-cielo i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--t);
  height: var(--t);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: cxTitila 3.4s ease-in-out var(--d) infinite;
}
.cx-fugaz {
  position: absolute;
  left: -50%;
  top: -6%;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform-origin: left center;
  opacity: 0;
  animation: cxFugaz 10s ease-in 3s infinite;
}
.cx-murci {
  position: absolute;
  display: block;
}
.cx-murci svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: #12130f;
  stroke: rgba(182, 250, 134, 0.6);
  stroke-width: 0.8;
}
.cx-murci .ala {
  /* cada ala es un <span> del tamaño del murciélago: la anima la tarjeta
     gráfica (las piezas de un SVG se animan en el procesador) */
  position: absolute;
  inset: 0;
  display: block;
  animation: cxAla var(--v, 0.26s) ease-in-out infinite alternate;
}
.cx-murci .ala-i {
  transform-origin: 46.7% 48%; /* la unión del ala con el cuerpo */
}
.cx-murci .ala-d {
  transform-origin: 53.3% 48%; /* la unión del ala con el cuerpo */
}
.cx-murci .murci-cuerpo {
  position: relative; /* el cuerpo, encima de las alas */
}
.cx-murci.b1 {
  left: -34%;
  top: 6%;
  width: 42px;
  translate: calc(var(--mx) * -8px) calc(var(--my) * -6px);
  animation: cxVuela1 15s ease-in-out infinite;
}
.cx-murci.b2 {
  left: 90%;
  top: 46%;
  width: 30px;
  --v: 0.22s;
  translate: calc(var(--mx) * -10px) calc(var(--my) * -8px);
  animation: cxVuela2 12s ease-in-out infinite;
}

/* la estrella: halo que late, rayos que giran, entra girando */
.cx-arte-halo {
  translate: calc(var(--mx) * -12px) calc(var(--my) * -10px);
  animation: cxLatido 3.4s ease-in-out infinite;
}
.cx-rayos {
  position: absolute;
  left: 118px;
  top: -43px;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(248, 255, 220, 0.42) 0deg 1.6deg, transparent 1.6deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
  translate: calc(var(--mx) * -12px) calc(var(--my) * -10px);
  animation: cxGiraRayos 36s linear infinite;
}
.cx-arte-estrella {
  translate: calc(var(--mx) * -12px) calc(var(--my) * -10px);
  filter: drop-shadow(0 0 14px rgba(246, 255, 210, 0.55));
  animation:
    cxPopEstrella 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s backwards,
    cxFlota 6s ease-in-out 1.8s infinite;
}
.cx-arte-estela {
  translate: calc(var(--mx) * -9px) calc(var(--my) * -7px);
}
.cx-chispa {
  translate: calc(var(--mx) * -9px) calc(var(--my) * -7px);
}

/* el niño: aura que late detrás, se balancea y entra subiendo */
.cx-aura-nino {
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 170px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 255, 210, 0.16), rgba(225, 255, 60, 0.06) 60%, transparent);
  translate: calc(var(--mx) * -5px) calc(var(--my) * -4px);
  animation: cxLatido 4.2s ease-in-out infinite;
}
.cx-arte .cx-arte-nino {
  transform-origin: 50% 100%;
  translate: calc(var(--mx) * -5px) calc(var(--my) * -4px);
  filter: drop-shadow(0 0 10px rgba(246, 255, 210, 0.25));
  animation:
    cxSubeNino 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards,
    cxBalanceo 5s ease-in-out 1.2s infinite;
}
.cx-arte-suelo {
  animation: cxLatido 4.2s ease-in-out infinite;
}

/* luciérnagas al pie */
.cx-luces {
  position: absolute;
  inset: 0;
}
.cx-luces i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e7ff8a;
  box-shadow: 0 0 10px 3px rgba(222, 255, 80, 0.7);
  opacity: 0;
  animation: cxLuz var(--r) ease-in-out var(--d) infinite;
}

/* celular: solo la estrella con sus rayos y unas estrellitas */
@media (max-width: 620px) {
  .cx-murci,
  .cx-fugaz,
  .cx-luces,
  .cx-aura-nino {
    display: none;
  }
}

/* Modo ligero / movimiento reducido: quieto */
@media (prefers-reduced-motion: reduce) {
  .cx-cielo i,
  .cx-fugaz,
  .cx-murci,
  .cx-murci .ala,
  .cx-arte-halo,
  .cx-rayos,
  .cx-arte-estrella,
  .cx-aura-nino,
  .cx-arte .cx-arte-nino,
  .cx-arte-suelo,
  .cx-luces i {
    animation: none !important;
  }
  .cx-arte-estela circle {
    display: none;
  }
}
html.fs-ligero .cx-cielo i,
html.fs-ligero .cx-fugaz,
html.fs-ligero .cx-murci,
html.fs-ligero .cx-murci .ala,
html.fs-ligero .cx-arte-halo,
html.fs-ligero .cx-rayos,
html.fs-ligero .cx-arte-estrella,
html.fs-ligero .cx-aura-nino,
html.fs-ligero .cx-arte .cx-arte-nino,
html.fs-ligero .cx-arte-suelo,
html.fs-ligero .cx-luces i {
  animation: none !important;
}
html.fs-ligero .cx-arte-estela circle {
  display: none;
}
