/* =========================================================
   FAST MARKET — PORTADA (index.html)
   ---------------------------------------------------------
   1. Portada: título enorme + la escena (luna, el niño en
      silueta alcanzando la estrella, la mascota, murciélagos)
   2. Cinta "Disponible ahora"
   3. ¿Qué andas buscando? (categorías en mosaico)
   4. El que más se vende
   5. Los números
   6. Opiniones
   7. La comunidad (Discord)
   8. Preguntas frecuentes
   9. Cierre
   Lo arma initInicio/renderInicio en script.js con datos reales.
   ========================================================= */

@keyframes hxLate {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}
@keyframes hxFlota {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(7deg);
  }
}
@keyframes hxVuela {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -8px);
  }
}
@keyframes hxEstela {
  to {
    stroke-dashoffset: -24;
  }
}
@keyframes hxCinta {
  to {
    transform: translateX(-50%);
  }
}

.hx-acento {
  background: linear-gradient(100deg, var(--neon), var(--neon-2) 45%, #b6fa86 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hx-link i {
  transition: transform 0.2s ease;
}
.hx-link:hover i {
  transform: translateX(3px);
}
.hx-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  flex: none;
}
.hx-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: hxLate 2s ease-in-out infinite;
}

/* =========================================================
   1. PORTADA
   ========================================================= */
.hx {
  position: relative;
  overflow: hidden;
  min-height: min(860px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(ellipse 50% 60% at 72% 50%, rgba(225, 255, 60, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(152, 247, 85, 0.12), transparent 70%);
}
.hx .hero-canvas {
  opacity: 0.45;
}
.hx-in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 30px;
}
.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}
.hx-chip b {
  color: var(--text);
}
.hx-tit {
  margin: 22px 0 0;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hx-tit span {
  display: block;
}
/* la palabra que brilla (como "oscuro" en las tiendas de referencia) */
.hx-brilla {
  font-size: 1.12em;
  background: linear-gradient(100deg, #e6ff66, var(--neon) 40%, #b6fa86 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(221, 255, 40, 0.45));
}
.hx-fin {
  margin-top: 6px;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e7f0e1;
}
.hx-sub {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hx-cta .btn i {
  transition: transform 0.2s ease;
}
.hx-cta .btn:hover .fa-arrow-right {
  transform: translateX(3px);
}
.hx-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 520px;
}
.hx-datos dt {
  color: var(--muted);
  font-size: 0.75rem;
}
.hx-datos dd {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================
   SECCIONES
   ========================================================= */
.hx-sec {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 20px 0;
}
.hx-sec[hidden] {
  display: none;
}
.hx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 30px;
  margin-bottom: 30px;
}
.hx-h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hx-head-dato {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- 3. categorías en mosaico ---------- */
.hx-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}
.hx-tile {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1e2119, #12140f);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hx-tile.hx-g {
  grid-column: span 2;
  grid-row: span 2;
}
.hx-tile.hx-a {
  grid-column: span 2;
}
.hx-tile:hover {
  border-color: rgba(221, 255, 40, 0.55);
  transform: translateY(-3px);
}
.hx-tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.72);
  transition: transform 0.6s ease;
}
.hx-tile:hover .hx-tile-img {
  transform: scale(1.06);
}
.hx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 14, 10, 0.92));
}
.hx-tile-ico {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: -1;
  font-size: 4.2rem;
  line-height: 1;
  color: #ddff61;
  opacity: 0.9;
  filter: drop-shadow(0 0 22px rgba(221, 255, 97, 0.35));
}
.hx-tile-ico .pix {
  width: 84px;
  height: 84px;
  vertical-align: 0;
}
.hx-tile[href="/boost"] {
  background: linear-gradient(160deg, #20231b, #10110d);
}
.hx-tile[href="/robux"] {
  background: linear-gradient(160deg, #1d1f18, #0e0f0c);
}
.hx-tile-txt {
  position: absolute;
  left: 20px;
  right: 64px;
  bottom: 18px;
  display: grid;
  gap: 3px;
}
.hx-tile-txt small {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 700;
}
.hx-tile-txt b {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hx-g .hx-tile-txt b {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.hx-tile-txt span {
  color: #c3cdbc;
  font-size: 0.82rem;
  line-height: 1.4;
}
.hx-tile-ir {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 14, 10, 0.6);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hx-tile:hover .hx-tile-ir {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--brand-ink);
}

/* ---------- 4. el que más se vende ---------- */
.hx-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}
.hx-top-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #181915, #121310);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.25s ease;
}
.hx-top-card:hover {
  border-color: rgba(221, 255, 40, 0.55);
}
.hx-top-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hx-top-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hx-top-card:hover .hx-top-media img {
  transform: scale(1.04);
}
.hx-top-media .cx-rank {
  left: 12px;
  right: auto;
}
.hx-top-cuerpo {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}
.hx-top-cuerpo small {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hx-top-cuerpo > b {
  font-size: 1.15rem;
}
.hx-top-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.hx-top-precio {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
}
.hx-top-precio s,
.hx-top-grande s {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.hx-top-info {
  display: grid;
  gap: 12px;
  align-content: start;
}
.hx-top-panel {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.hx-n {
  flex: none;
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.hx-top-panel b {
  font-size: 1.05rem;
}
.hx-top-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.hx-top-panel .hx-top-grande {
  margin-top: 8px;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
}
.hx-barra {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.hx-barra i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}
.hx-top-panel ul {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: grid;
  gap: 7px;
}
.hx-top-panel li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d3dccc;
  font-size: 0.9rem;
}
.hx-top-panel li .pix {
  margin-top: 1px;
}

/* ---------- 5. los números ---------- */
.hx-numeros {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px 40px;
  align-items: center;
}
.hx-num-txt p {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.hx-num-grande {
  text-align: right;
}
.hx-num-grande b {
  display: block;
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #f9ffdf, var(--neon) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(221, 255, 40, 0.45));
}
.hx-num-grande small {
  font-size: 0.45em;
  vertical-align: super;
}
.hx-num-grande span {
  color: var(--muted);
  font-size: 0.9rem;
}
.hx-num-grande strong {
  color: #fff;
}
.hx-num-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.hx-dato {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.hx-dato b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hx-dato span {
  color: var(--muted);
  font-size: 0.84rem;
}
.hx-ofertas {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hx-ofertas:empty {
  display: none;
}
.hx-oferta {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #181915, #121310);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hx-oferta:hover {
  border-color: rgba(221, 255, 40, 0.55);
  transform: translateY(-3px);
}
.hx-oferta-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hx-oferta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hx-oferta-img .cx-tag {
  position: absolute;
  top: 10px;
  left: 10px;
}
.hx-oferta > b {
  display: block;
  padding: 12px 16px 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-oferta-pr {
  display: block;
  padding: 4px 16px 16px;
  color: var(--neon);
  font-weight: 800;
}
.hx-oferta-pr s {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
  margin-right: 6px;
}

/* ---------- 6. opiniones ---------- */
.hx-nota {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hx-nota b {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hx-nota > span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.hx-estrellas {
  color: #dcff66;
  letter-spacing: 2px;
}
.hx-resenas {
  overflow: hidden;
  margin: 0 -20px; /* hasta el borde de la sección (14 px en el celular: abajo) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.hx-resenas-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 4px 20px;
  animation: hxCinta 60s linear infinite;
}
.hx-resenas:hover .hx-resenas-track {
  animation-play-state: paused;
}
.hx-resena {
  width: 320px;
  margin: 0;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.hx-resena blockquote {
  margin: 10px 0 14px;
  color: #e3ecdd;
  font-size: 0.92rem;
  line-height: 1.55;
}
.hx-resena figcaption {
  color: var(--muted);
  font-size: 0.78rem;
}
#hx-opiniones #proofs {
  margin-top: 26px;
}

/* ---------- 7. la comunidad ---------- */
.hx-club {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 34px 40px;
  border-radius: 26px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(228, 255, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(88, 101, 242, 0.22), transparent 70%),
    #131510;
}
.hx-club-masc {
  width: 130px;
  padding: 18px 14px 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #faffea, #efffb0 55%, #dcf36a);
  box-shadow: 0 0 50px rgba(228, 255, 100, 0.3);
  animation: decoFlota 3.6s ease-in-out infinite;
}
.hx-club-txt .hx-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}
.hx-club-txt .hx-acento {
  display: block;
}
.hx-club-txt p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.hx-club-cta {
  display: grid;
  gap: 10px;
}
.hx-club-cta .btn {
  justify-content: center;
}

/* ---------- 8. preguntas frecuentes ---------- */
.hx-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}
.hx-faq-izq p {
  margin: 14px 0 18px;
  color: var(--muted);
}
.hx-faq-lista {
  margin: 0;
  max-width: none;
}
.hx-faq .faq-chev {
  transition: transform 0.25s ease;
}
.hx-faq .faq-item[data-open="true"] .faq-chev {
  transform: rotate(45deg);
}

/* =========================================================
   TABLET Y CELULAR
   ========================================================= */
@media (max-width: 980px) {
  .hx {
    min-height: 0;
  }
  .hx-in {
    grid-template-columns: 1fr;
    padding: 30px 18px 40px;
  }
  .hx-escena {
    width: min(420px, 92%);
    justify-self: center;
    order: -1;
    margin-bottom: -40px;
  }
  .hx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
  .hx-tile.hx-g {
    grid-row: span 2;
  }
  .hx-top,
  .hx-numeros,
  .hx-faq {
    grid-template-columns: 1fr;
  }
  .hx-num-grande {
    text-align: left;
  }
  .hx-ofertas {
    grid-template-columns: 1fr;
  }
  .hx-club {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 28px 24px;
  }
  .hx-club-masc {
    width: 100px;
  }
  .hx-sec {
    padding-top: 70px;
  }
}
@media (max-width: 620px) {
  .hx-sec {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hx-tit {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }
  .hx-datos {
    gap: 12px 26px;
  }
  .hx-datos dd {
    font-size: 1.35rem;
  }
  .hx-cinta-tag {
    padding: 0 14px;
    height: 56px;
  }
  .hx-cinta-tag {
    font-size: 0;
    gap: 0;
  }
  .hx-cinta-it {
    height: 56px;
  }
  .hx-tile-txt b {
    font-size: 1.15rem;
  }
  .hx-tile-txt span {
    display: none;
  }
  .hx-tile-ico {
    font-size: 2.8rem;
  }
  .hx-tile-ico .pix {
    width: 56px;
    height: 56px;
  }
  .hx-resena {
    width: 260px;
  }
}

/* =========================================================
   AJUSTES
   ========================================================= */
/* en la portada ya hay una luna grande: el fondo de Halloween va sin la suya */
body[data-page="inicio"] {
  background:
    radial-gradient(ellipse 70% 45% at 50% -6%, rgba(152, 247, 85, 0.2), transparent 62%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(224, 255, 30, 0.08), transparent 65%),
    linear-gradient(180deg, #151712 0%, #10120d 45%, #0d0e0a 100%);
  background-attachment: fixed;
}
/* la colina se desvanece hacia los lados y hacia abajo (sin bordes rectos) */
.hx-colina {
  -webkit-mask-image: radial-gradient(ellipse 52% 100% at 50% 0%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 100% at 50% 0%, #000 62%, transparent 100%);
}

/* =========================================================
   ESCENAS ANIMADAS (portada y cierre)
   ---------------------------------------------------------
   La escena es un lienzo cuadrado: todo va en % de 520 px.
   Cada capa (.hx-capa) tiene una profundidad --prof: con el
   mouse (--mx, --my) y al bajar (--sy) se mueve más la de
   adelante, como en una ventana. Lo calcula initEscenas.
   ========================================================= */
@keyframes hxTitila {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@keyframes hxFugaz {
  0% {
    opacity: 0;
    transform: rotate(18deg) translateX(0);
  }
  2% {
    opacity: 1;
  }
  9% {
    opacity: 0;
    transform: rotate(18deg) translateX(380px);
  }
  100% {
    opacity: 0;
    transform: rotate(18deg) translateX(380px);
  }
}
@keyframes hxLatido {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes hxNube {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}
@keyframes hxGira {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hxAla {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.2);
  }
}
@keyframes hxRonda1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  25% {
    transform: translate(70%, -45%) rotate(6deg);
  }
  50% {
    transform: translate(150%, 5%) rotate(-2deg);
  }
  75% {
    transform: translate(70%, 55%) rotate(4deg);
  }
}
@keyframes hxRonda2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(5deg);
  }
  33% {
    transform: translate(-90%, 40%) rotate(-6deg);
  }
  66% {
    transform: translate(-40%, -50%) rotate(3deg);
  }
}
@keyframes hxBalanceo {
  0%,
  100% {
    transform: rotate(-1.2deg);
  }
  50% {
    transform: rotate(1deg);
  }
}
@keyframes hxRebote {
  0%,
  44%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  50% {
    transform: translateY(0) scale(1.1, 0.88);
  }
  60% {
    transform: translateY(-16%) scale(0.95, 1.06);
  }
  70% {
    transform: translateY(0) scale(1.05, 0.95);
  }
  76% {
    transform: translateY(0) scale(1, 1);
  }
}
@keyframes hxParpadea {
  0%,
  90%,
  94%,
  96%,
  100% {
    transform: scaleY(0);
  }
  92%,
  95% {
    transform: scaleY(1);
  }
}
@keyframes hxLuz {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.95;
  }
  50% {
    transform: translate(16px, -38px) scale(1);
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -80px) scale(0.5);
  }
}
/* entradas al cargar */
@keyframes hxAparece {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hxSubeLuna {
  from {
    opacity: 0;
    transform: translateY(16%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hxSubeFrente {
  from {
    opacity: 0;
    transform: translateY(7%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hxPop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-50deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hxSubeTxt {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hxBarrido {
  to {
    background-position: -220% 0;
  }
}

/* ---------- el lienzo y sus capas ---------- */
.hx-escena {
  --mx: 0;
  --my: 0;
  --sy: 0;
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  pointer-events: none;
  user-select: none;
}
.hx-capa {
  position: absolute;
  inset: 0;
  translate: calc(var(--mx) * var(--prof) * -16px)
    calc(var(--my) * var(--prof) * -12px + var(--sy) * (1 - var(--prof)) * 140px);
}
.hx-c-cielo {
  animation: hxAparece 1.6s ease both;
}
.hx-c-luna {
  animation: hxSubeLuna 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hx-c-murcis {
  animation: hxAparece 1.2s ease 1s both;
}
.hx-c-estrella {
  transform-origin: 77% 20%;
  animation: hxPop 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s both;
}
.hx-c-frente {
  animation: hxSubeFrente 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

/* estrellas que titilan (portada y cierre) */
.hx-titilan {
  position: absolute;
  inset: 0;
}
.hx-titilan 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: hxTitila 3.4s ease-in-out var(--d) infinite;
}
/* estrella fugaz (cada 10 s) */
.hx-fugaz {
  position: absolute;
  left: 2%;
  top: 6%;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95));
  transform-origin: left center;
  opacity: 0;
  animation: hxFugaz 10s ease-in 2.5s infinite;
}
.hx-fugaz::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

/* ---------- la luna: textura, cráteres que giran despacio y nubes que pasan ---------- */
.hx-luna-brillo {
  position: absolute;
  left: -2%;
  top: 0;
  width: 96.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 255, 140, 0.4), rgba(221, 255, 40, 0.14) 55%, transparent);
  animation: hxLatido 6s ease-in-out infinite;
}
.hx-luna {
  position: absolute;
  left: 13.5%;
  top: 15.4%;
  width: 65.4%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 22% at 62% 30%, rgba(202, 222, 100, 0.22), transparent 70%),
    radial-gradient(ellipse 26% 18% at 34% 68%, rgba(202, 222, 100, 0.18), transparent 70%),
    radial-gradient(circle at 38% 34%, #faffea 0, #f2ffbf 40%, #e1f87a 80%, #d5ee55 100%);
  box-shadow:
    0 0 70px 10px rgba(232, 255, 120, 0.3),
    inset -26px -30px 60px rgba(177, 201, 50, 0.38),
    inset 10px 10px 30px rgba(255, 255, 255, 0.35);
}
.hx-luna::before,
.hx-luna::after {
  display: none;
}
.hx-craters {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 26%, rgba(185, 205, 80, 0.32) 0 6%, transparent 6.6%),
    radial-gradient(circle at 26% 34%, rgba(185, 205, 80, 0.26) 0 4%, transparent 4.5%),
    radial-gradient(circle at 56% 72%, rgba(185, 205, 80, 0.24) 0 5%, transparent 5.6%),
    radial-gradient(circle at 80% 58%, rgba(185, 205, 80, 0.2) 0 2.6%, transparent 3%),
    radial-gradient(circle at 40% 52%, rgba(185, 205, 80, 0.18) 0 2.2%, transparent 2.6%),
    radial-gradient(circle at 18% 64%, rgba(185, 205, 80, 0.2) 0 3%, transparent 3.4%);
  animation: hxGira 240s linear infinite;
}
.hx-nube {
  position: absolute;
  left: 0;
  width: 55%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(53, 80, 34, 0.75), rgba(53, 80, 34, 0) 70%);
  filter: blur(3px);
  animation: hxNube 34s linear infinite;
}
.hx-nube.n1 {
  top: 34%;
}
.hx-nube.n2 {
  top: 60%;
  width: 40%;
  height: 9%;
  opacity: 0.7;
  animation-duration: 46s;
  animation-delay: -20s;
}
.hx-nube.n3 {
  top: 18%;
  width: 45%;
  height: 10%;
  animation-duration: 40s;
  animation-delay: -8s;
}

/* ---------- murciélagos: vuelan en ronda y aletean ---------- */
.hx-murci {
  position: absolute;
  display: block;
}
.hx-murci svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: #12130f;
  stroke: rgba(182, 250, 134, 0.55);
  stroke-width: 0.8;
}
.hx-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: hxAla var(--v, 0.28s) ease-in-out infinite alternate;
}
.hx-murci .ala-i {
  transform-origin: 46.7% 48%; /* la unión del ala con el cuerpo */
}
.hx-murci .ala-d {
  transform-origin: 53.3% 48%; /* la unión del ala con el cuerpo */
}
.hx-murci .murci-cuerpo {
  position: relative; /* el cuerpo, encima de las alas */
}
.hx-murci.m1 {
  left: 4%;
  top: 22%;
  width: 11%;
  animation: hxRonda1 15s ease-in-out infinite;
}
.hx-murci.m2 {
  left: 80%;
  top: 34%;
  width: 8%;
  --v: 0.24s;
  animation: hxRonda2 12s ease-in-out infinite;
}
.hx-murci.m3 {
  left: 24%;
  top: 6%;
  width: 6.5%;
  --v: 0.22s;
  animation: hxRonda2 17s ease-in-out -5s infinite;
}
.hx-murci.m4 {
  left: 88%;
  top: 66%;
  width: 6%;
  --v: 0.2s;
  animation: hxRonda1 13s ease-in-out -7s infinite;
}

/* ---------- la estrella de la marca: halo, rayos que giran y flota ---------- */
.hx-halo {
  position: absolute;
  left: 57.7%;
  top: -0.6%;
  width: 38.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 255, 215, 0.42), rgba(225, 255, 60, 0.12) 55%, transparent);
  animation: hxLatido 3.2s ease-in-out infinite;
}
.hx-rayos {
  position: absolute;
  left: 60%;
  top: 2.2%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(248, 255, 220, 0.38) 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%);
  animation: hxGira 40s linear infinite;
}
.hx-estrella {
  position: absolute;
  left: 66.5%;
  top: 9%;
  width: 21%;
  filter: drop-shadow(0 0 14px rgba(246, 255, 210, 0.55));
  animation: hxFlota 6s ease-in-out infinite;
}

/* ---------- la estela: puntitos que avanzan + chispas que viajan a la estrella ---------- */
.hx-estela {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hx-estela path {
  stroke: rgba(250, 255, 230, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  /* unas vueltas y queda quieta: animar el trazo de un SVG usa el procesador
     en cada cuadro */
  animation: hxEstela 2.4s linear 5;
}

/* ---------- la colina con luz de luna en el borde ---------- */
.hx-colina {
  position: absolute;
  left: -6%;
  bottom: 0;
  width: 112%;
  height: 30.8%;
}
.hx-colina-cuerpo {
  fill: #0d0e0a;
}
.hx-colina-borde {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* ---------- el niño: silueta con borde de luz, se balancea ---------- */
.hx-escena .hx-nino {
  position: absolute;
  left: 28.8%;
  top: 33.6%;
  height: 46.2%;
  width: auto !important;
  transform-origin: 50% 100%;
  filter: brightness(0) drop-shadow(0 0 1.5px rgba(237, 255, 160, 0.9));
  animation: hxBalanceo 5s ease-in-out infinite;
}

/* ---------- la mascota: rebota y parpadea ---------- */
.hx-masc-caja {
  position: absolute;
  left: 49%;
  top: 66.5%;
  width: 15.4%;
  transform-origin: 50% 100%;
  animation: hxRebote 3.6s ease-in-out 2s infinite;
}
.hx-masc-caja .hx-masc {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1.5px rgba(242, 255, 180, 0.75));
}
.hx-parpado {
  position: absolute;
  border-radius: 50%;
  background: #000;
  transform: scaleY(0);
  transform-origin: 50% 0%;
  animation: hxParpadea 4.6s ease-in-out 1s infinite;
}
.hx-parpado.izq {
  left: 35%;
  top: 55%;
  width: 17%;
  height: 28%;
}
.hx-parpado.der {
  left: 65%;
  top: 57.5%;
  width: 11.5%;
  height: 23%;
}

/* ---------- luciérnagas que suben ---------- */
.hx-luciernagas {
  position: absolute;
  inset: 0;
}
.hx-luciernagas 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: hxLuz var(--r) ease-in-out var(--d) infinite;
}

/* ---------- el texto de la portada entra de a poco ---------- */
.hx-txt > *,
.hx-tit > span {
  animation: hxSubeTxt 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hx-txt > .hx-chip {
  animation-delay: 0.05s;
}
.hx-txt > .hx-tit {
  animation-delay: 0.12s;
}
.hx-tit > .hx-fin {
  animation-delay: 0.4s;
}
.hx-txt > .hx-sub {
  animation-delay: 0.5s;
}
.hx-txt > .hx-cta {
  animation-delay: 0.6s;
}
.hx-txt > .hx-datos {
  animation-delay: 0.72s;
}
/* "lo tienes": entra y un brillo la recorre */
.hx-tit > .hx-brilla {
  background: linear-gradient(100deg, #e6ff66 0%, var(--neon) 30%, #f7ffd8 45%, #b6fa86 60%, var(--neon) 80%, #e6ff66 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    hxSubeTxt 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s both,
    hxBarrido 7s linear 1.5s infinite;
}

/* =========================================================
   2. CINTA "PAGA DESDE TU PAÍS"
   ========================================================= */
.hx-cinta {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(221, 255, 40, 0.06), rgba(11, 12, 9, 0.75) 30%, rgba(11, 12, 9, 0.75) 70%, rgba(152, 247, 85, 0.07));
}
.hx-cinta[hidden] {
  display: none;
}
.hx-cinta-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 62px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.hx-cinta-tag i {
  color: var(--neon);
}
.hx-cinta-ventana {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.hx-cinta-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 22px;
  padding: 0 11px;
  animation: hxCinta calc(var(--n, 12) * 3.2s) linear infinite;
}
.hx-cinta:hover .hx-cinta-track {
  animation-play-state: paused;
}
.hx-cinta-it {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 62px;
  color: #c8d4c0;
  font-size: 0.84rem;
  white-space: nowrap;
}
.hx-cinta-it b {
  color: #fff;
  font-weight: 700;
}
.hx-bandera {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.hx-cripto {
  color: #cdf748;
}
.hx-ventaja b {
  color: var(--neon);
}
.hx-ventaja .pix {
  width: 22px;
  height: 22px;
}
.hx-sep {
  color: rgba(221, 255, 40, 0.5);
  font-style: normal;
  font-size: 0.7rem;
}

/* =========================================================
   9. CIERRE: la luna sale con el scroll
   ========================================================= */
.hx-cierre {
  --p: 0;
  position: relative;
  overflow: hidden;
  margin-top: 110px;
  padding: 110px 20px 320px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.hx-cierre-cielo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hx-cierre-sube {
  position: absolute;
  left: 50%;
  bottom: -400px;
  width: 720px;
  height: 720px;
  margin-left: -360px;
  transform: translateY(calc((1 - var(--p)) * 200px));
}
.hx-cierre-brillo {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 255, 100, 0.38), rgba(221, 255, 40, 0.12) 52%, transparent);
  animation: hxLatido 6s ease-in-out infinite;
}
.hx-cierre-luna {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 18% at 60% 22%, rgba(202, 222, 100, 0.22), transparent 70%),
    radial-gradient(circle at 50% 28%, #faffea 0, #efffb0 35%, #dcf36a 70%, #c6e03c 100%);
  box-shadow: inset 0 18px 50px rgba(255, 255, 255, 0.35), inset 0 -40px 80px rgba(169, 190, 40, 0.35);
}
.hx-horizonte {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 200px;
}
.hx-cierre .hx-cierre-nino {
  position: absolute;
  left: calc(50% - 190px);
  bottom: 118px;
  height: 160px;
  width: auto !important;
  transform-origin: 50% 100%;
  filter: brightness(0) drop-shadow(0 0 1.5px rgba(237, 255, 160, 0.9));
  animation: hxBalanceo 5s ease-in-out infinite;
}
.hx-cierre-masc {
  position: absolute;
  left: calc(50% - 112px);
  bottom: 112px;
  width: 62px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 1.5px rgba(242, 255, 180, 0.75));
  animation: hxRebote 3.6s ease-in-out 1s infinite;
}
.hx-cierre-estrella-caja {
  position: absolute;
  left: calc(50% + 330px);
  top: 30px;
  width: 120px;
  aspect-ratio: 1;
}
.hx-cierre-estrella-caja .hx-rayos {
  left: -40%;
  top: -40%;
  width: 180%;
}
.hx-cierre-estrella {
  position: absolute;
  inset: 0;
  width: 100%;
  filter: drop-shadow(0 0 14px rgba(246, 255, 210, 0.55));
  animation: hxFlota 6s ease-in-out infinite;
}
.hx-murci.c1 {
  left: 12%;
  top: 22%;
  width: 54px;
  animation: hxRonda1 16s ease-in-out infinite;
}
.hx-murci.c2 {
  left: 78%;
  top: 46%;
  width: 40px;
  --v: 0.22s;
  animation: hxRonda2 13s ease-in-out -4s infinite;
}
.hx-cierre .hx-fugaz.f2 {
  left: 18%;
  top: 10%;
  animation-delay: 5s;
}
.hx-cierre .hx-luciernagas i {
  --y: 84%;
}
.hx-cierre-txt {
  position: relative;
  z-index: 2;
}
.hx-cierre::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(180deg, transparent, #0d0e0a 90%);
  pointer-events: none;
}
.hx-cierre-txt h2 {
  margin: 16px auto 0;
  max-width: 860px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hx-cierre .hx-cta {
  justify-content: center;
}
/* las palabras suben una por una cuando el cierre aparece (initEscenas) */
.hx-palabra {
  display: inline-block;
}
.hx-cierre.anima .hx-palabra,
.hx-cierre.anima .hx-cierre-txt .eyebrow,
.hx-cierre.anima .hx-cta {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hx-cierre.anima.visto .hx-palabra,
.hx-cierre.anima.visto .hx-cierre-txt .eyebrow,
.hx-cierre.anima.visto .hx-cta {
  opacity: 1;
  transform: none;
}
.hx-cierre-txt h2 > .hx-palabra:nth-child(2) {
  transition-delay: 0.08s;
}
.hx-cierre-txt h2 > .hx-palabra:nth-child(3) {
  transition-delay: 0.16s;
}
.hx-brillo-pasa .hx-palabra:nth-child(1) {
  transition-delay: 0.3s;
}
.hx-brillo-pasa .hx-palabra:nth-child(2) {
  transition-delay: 0.4s;
}
.hx-cierre.anima .hx-cta {
  transition-delay: 0.55s;
}
/* "empieza aquí": un brillo que pasa */
.hx-brillo-pasa {
  background: linear-gradient(100deg, var(--neon) 0%, var(--neon-2) 25%, #f7ffd8 40%, #b6fa86 55%, var(--neon) 80%, var(--neon-2) 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 2 pasadas: mover un fondo no lo hace la tarjeta gráfica */
  animation: hxBarrido 6s linear 2;
}
.hx-brillo-pasa .hx-palabra {
  -webkit-text-fill-color: transparent;
}

/* ---------- tamaños chicos ---------- */
@media (max-width: 980px) {
  .hx-escena {
    width: min(440px, 94%);
  }
}
@media (max-width: 620px) {
  .hx-cinta-tag {
    font-size: 0;
    gap: 0;
    padding: 0 16px;
  }
  .hx-cinta-tag i {
    font-size: 1rem;
  }
  .hx-cierre {
    padding-bottom: 230px;
  }
  .hx-cierre-sube {
    width: 460px;
    height: 460px;
    margin-left: -230px;
    bottom: -260px;
  }
  .hx-horizonte {
    height: 130px;
  }
  .hx-cierre .hx-cierre-nino {
    left: calc(50% - 120px);
    bottom: 74px;
    height: 104px;
  }
  .hx-cierre-masc {
    left: calc(50% - 70px);
    bottom: 70px;
    width: 42px;
  }
  .hx-cierre-estrella-caja {
    left: calc(50% + 90px);
    top: 16px;
    width: 70px;
  }
}

/* ---------- movimiento reducido y modo ligero: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx-dot::after,
  .hx-c-cielo,
  .hx-c-luna,
  .hx-c-murcis,
  .hx-c-estrella,
  .hx-c-frente,
  .hx-titilan i,
  .hx-fugaz,
  .hx-luna-brillo,
  .hx-craters,
  .hx-nube,
  .hx-murci,
  .hx-murci .ala,
  .hx-halo,
  .hx-rayos,
  .hx-estrella,
  .hx-estela path,
  .hx-escena .hx-nino,
  .hx-masc-caja,
  .hx-parpado,
  .hx-luciernagas i,
  .hx-txt > *,
  .hx-tit > span,
  .hx-brillo-pasa,
  .hx-club-masc,
  .hx-cierre-brillo,
  .hx-cierre-nino,
  .hx-cierre-masc,
  .hx-cierre-estrella,
  .hx-cinta-track,
  .hx-resenas-track {
    animation: none !important;
  }
  .hx-estela circle {
    display: none;
  }
  .hx-cinta-ventana,
  .hx-resenas {
    overflow-x: auto;
  }
}
html.fs-ligero .hx-titilan i,
html.fs-ligero .hx-fugaz,
html.fs-ligero .hx-luna-brillo,
html.fs-ligero .hx-craters,
html.fs-ligero .hx-nube,
html.fs-ligero .hx-murci,
html.fs-ligero .hx-murci .ala,
html.fs-ligero .hx-halo,
html.fs-ligero .hx-rayos,
html.fs-ligero .hx-estrella,
html.fs-ligero .hx-estela path,
html.fs-ligero .hx-escena .hx-nino,
html.fs-ligero .hx-masc-caja,
html.fs-ligero .hx-luciernagas i,
html.fs-ligero .hx-brillo-pasa,
html.fs-ligero .hx-club-masc,
html.fs-ligero .hx-cierre-brillo,
html.fs-ligero .hx-cierre-nino,
html.fs-ligero .hx-cierre-masc,
html.fs-ligero .hx-cierre-estrella {
  animation: none !important;
}
html.fs-ligero .hx-estela circle {
  display: none;
}

/* "¿Por qué tan barato?": precio oficial de Minecraft vs. el de la tienda */
.hx-oficial {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 28px;
  margin-top: 10px;
}
.hx-oficial > span {
  display: grid;
  gap: 2px;
}
.hx-oficial small {
  color: var(--muted);
  font-size: 0.74rem;
}
.hx-oficial s {
  color: #9aa692;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration-color: rgba(229, 72, 77, 0.85);
  text-decoration-thickness: 2px;
}
.hx-oficial b {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
}
.hx-ahorro {
  color: #3ee07f;
}

/* =========================================================
   SELLO PROPIO: cada título de sección lleva su etiqueta
   encima (con la estrella de la marca) y el cierre termina
   con el rayo de Fast Market.
   ========================================================= */
.hx-tit-sec {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.hx-num-txt > .eyebrow,
.hx-club-txt > .eyebrow,
.hx-faq-izq > .eyebrow {
  margin-bottom: 12px;
}
.hx-rayito {
  margin-left: 0.08em;
  font-size: 0.8em;
  vertical-align: 0.06em;
  filter: drop-shadow(0 0 14px rgba(216, 255, 80, 0.6));
}

/* ---------- 5b. compras recientes (en vivo) ---------- */
#hx-recientes .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hx-rec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.hx-rec-it {
  min-width: 0;
}
.hx-rec-it > a,
.hx-rec-it > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.hx-rec-it > a:hover {
  border-color: rgba(221, 255, 40, 0.55);
  background: rgba(221, 255, 40, 0.05);
  transform: translateY(-2px);
}
.hx-rec-foto {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(221, 255, 40, 0.12);
  color: var(--neon);
  font-size: 1.2rem;
}
.hx-rec-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hx-rec-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hx-rec-prod {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-rec-quien {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-rec-quien b {
  color: var(--text, #fff);
  font-weight: 700;
}
.fs-bandera {
  display: inline-block;
  width: 18px;
  height: 13px;
  margin-right: 5px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: -1px;
}
.hx-rec-t {
  flex: none;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
/* la más nueva, con el acento */
.hx-rec-it:first-child .hx-rec-t {
  color: var(--neon);
  font-weight: 700;
}
/* una compra que llega con la página abierta: baja y brilla un momento */
.hx-rec-it.entra > a,
.hx-rec-it.entra > div {
  animation: hxRecEntra 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, hxRecBrilla 2.4s ease-out 0.2s;
}
@keyframes hxRecEntra {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
}
@keyframes hxRecBrilla {
  0% {
    border-color: rgba(221, 255, 40, 0.9);
    box-shadow: 0 0 0 4px rgba(221, 255, 40, 0.18), 0 0 30px rgba(221, 255, 40, 0.35);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0 rgba(221, 255, 40, 0);
  }
}
@media (max-width: 980px) {
  .hx-rec {
    /* minmax(0, …): un nombre largo no puede estirar la columna más que la pantalla */
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .hx-rec-it:nth-child(n + 6) {
    display: none; /* en el celular, las 5 más nuevas */
  }
  .hx-rec-it > a,
  .hx-rec-it > div {
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }
  .hx-rec-foto {
    width: 44px;
    height: 44px;
  }
  /* el nombre puede ocupar 2 líneas antes de cortarse */
  .hx-rec-prod {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .hx-rec-t {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hx-rec-it.entra > a,
  .hx-rec-it.entra > div {
    animation: none;
  }
}

/* ---------- 6b. reseñas reales en la cinta (script.js: initResenasWeb) ---------- */
.hx-resena-real {
  border-color: rgba(59, 165, 93, 0.3);
}
.hx-resena-real figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
}
.hx-resena-real figcaption b {
  color: var(--text, #fff);
}
.hx-resena-real figcaption small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* la cinta de reseñas llega al borde de la pantalla y no más allá: en el
   celular la sección tiene 14 px a cada lado (con -20 px se salía 6 px y la
   página se podía mover de costado) */
@media (max-width: 620px) {
  .hx-resenas {
    margin: 0 -14px;
  }
}
