/* =========================================================
   FAST MARKET — DECORACIÓN (estrella, niño y mascota)
   ---------------------------------------------------------
   Se carga DESPUÉS de styles.css y halloween.css. Las figuras
   están en img/deco/ (blancas o negras con fondo transparente):
     estrella.webp       la marca: títulos, portada y sello
     nino.webp           portada del catálogo (catalogo.css)
     mascota.webp        botón de ayuda y estados vacíos
   Para quitar todo: borra la línea de decoracion.css de cada .html.
   ========================================================= */

/* las figuras llevan width/height en el HTML (para reservar el lugar):
   el alto real lo da su proporción */
img[src*="img/deco/"] {
  height: auto;
}

:root {
  --deco-estrella: url("img/deco/estrella.webp");
  --deco-brillo: rgba(246, 255, 210, 0.55);
}

@keyframes decoGira {
  to {
    transform: rotate(360deg);
  }
}
@keyframes decoLate {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(12deg);
  }
}
@keyframes decoFlota {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- la estrella junto a cada "eyebrow" ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--deco-estrella) center / contain no-repeat;
  filter: drop-shadow(0 0 6px var(--deco-brillo));
  animation: decoLate 3.6s ease-in-out infinite;
}

/* ---------- cabecera de las páginas internas: halo de estrella ---------- */
body:not([data-page="inicio"]) .section:first-of-type > .section-head {
  position: relative;
  isolation: isolate;
}
body:not([data-page="inicio"]) .section:first-of-type > .section-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -46px;
  width: 230px;
  height: 230px;
  margin-left: -115px;
  background: var(--deco-estrella) center / contain no-repeat;
  opacity: 0.13;
  animation: decoGira 80s linear infinite;
  pointer-events: none;
}

/* ---------- portada: estrella grande detrás del título ---------- */
.hero2 .hero-text {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.hero-estrella {
  position: absolute;
  z-index: -1;
  left: -150px;
  top: -130px;
  width: 470px;
  max-width: none;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
  animation: decoGira 120s linear infinite;
}
/* chispa junto a "Lo pides hoy, lo tienes hoy." */
.hero2 .hero-title .grad::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.18em;
  vertical-align: 0.42em;
  background: var(--deco-estrella) center / contain no-repeat;
  filter: drop-shadow(0 0 10px var(--deco-brillo));
  animation: decoLate 2.8s ease-in-out infinite;
}

/* ---------- botón de ayuda: la mascota como "avatar" del chat ----------
   Una píldora oscura: la mascota en un círculo claro (es negra: así se ve),
   dos renglones de texto y el logo de Discord. En el celular, solo el
   círculo con un puntito de Discord en la esquina. */
.fs-ayuda {
  gap: 10px;
  height: 56px;
  padding: 0 16px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(21, 23, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(88, 101, 242, 0.15);
}
.fs-ayuda:hover {
  border-color: rgba(88, 101, 242, 0.7);
  box-shadow: 0 18px 36px -14px rgba(88, 101, 242, 0.65);
}
.fs-ayuda-av {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fbffea, #f1ffb0);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12);
}
.fs-ayuda-av img {
  width: 34px;
  height: auto;
  margin-top: 4px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fs-ayuda:hover .fs-ayuda-av img {
  transform: translateY(-2px) rotate(-6deg);
}
/* puntito verde: "estamos en línea" */
.fs-ayuda-av::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3ba55d;
  border: 2px solid #161713;
}
.fs-ayuda-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
  font-size: 0.86rem;
}
.fs-ayuda-txt small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.fs-ayuda > i {
  margin-left: 4px;
  color: #8b95ff;
  font-size: 1.15rem;
}
@media (max-width: 720px), (max-width: 980px) {
  html .fs-ayuda,
  html.ios-modo .fs-ayuda {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .fs-ayuda > i {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 22px;
    height: 22px;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--discord);
    color: #fff;
    font-size: 0.7rem;
    border: 2px solid #161713;
  }
  .fs-ayuda-av::after {
    display: none;
  }
}

/* ---------- mascota en estados vacíos y errores ---------- */
.deco-masc {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 auto 14px;
  animation: decoFlota 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 1px rgba(246, 255, 210, 0.7)) drop-shadow(0 0 14px rgba(246, 255, 210, 0.18));
}
.pdp-404 .deco-masc {
  width: 120px;
}
.acc-empty .deco-masc {
  width: 70px;
  margin-bottom: 10px;
}
.cat-empty {
  text-align: center;
}

/* mascota sobre la cabecera (FAQ) */
.deco-masc-head {
  display: block;
  width: 78px;
  margin: 0 auto 10px;
  animation: decoFlota 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 1px rgba(246, 255, 210, 0.7)) drop-shadow(0 0 14px rgba(246, 255, 210, 0.18));
}

/* mascota asomando por las tarjetas de Nosotros */
.about-cards {
  position: relative;
}
.deco-masc-asoma {
  position: absolute;
  right: 22px;
  top: -52px;
  width: 74px;
  z-index: 2;
  pointer-events: none;
  animation: decoFlota 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 1px rgba(246, 255, 210, 0.7)) drop-shadow(0 0 14px rgba(246, 255, 210, 0.18));
}

/* ---------- movimiento reducido y modo ligero: todo quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before,
  .hero-estrella,
  .hero2 .hero-title .grad::after,
  .deco-masc,
  .deco-masc-head,
  .deco-masc-asoma,
  body:not([data-page="inicio"]) .section:first-of-type > .section-head::before {
    animation: none !important;
  }
}
html.fs-ligero .eyebrow::before,
html.fs-ligero .hero-estrella,
html.fs-ligero .hero2 .hero-title .grad::after,
html.fs-ligero .deco-masc,
html.fs-ligero .deco-masc-head,
html.fs-ligero .deco-masc-asoma,
html.fs-ligero body:not([data-page="inicio"]) .section:first-of-type > .section-head::before {
  animation: none !important;
}

/* =========================================================
   GARANTÍA Y TÉRMINOS (garantia.html)
   Portada con sello, "lo esencial", índice fijo y secciones
   numeradas.
   ========================================================= */
.legal-hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 80px) 20px 30px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 30px;
}
.legal-hero .eyebrow {
  font-size: 0.74rem;
}
.legal-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.legal-hero .legal-intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}
.legal-meta span {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}
.legal-meta b {
  color: var(--text);
}
.legal-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* el sello: la estrella con un anillo que gira */
.legal-sello {
  position: relative;
  justify-self: center;
  width: min(330px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.legal-sello::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(246, 255, 210, 0.22);
  animation: decoGira 60s linear infinite;
}
.legal-sello::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 255, 40, 0.22), transparent 70%);
  filter: blur(8px);
}
.legal-sello img {
  position: relative;
  z-index: 1;
  width: 92%;
  filter: drop-shadow(0 0 24px rgba(246, 255, 210, 0.35));
}
.legal-aviso {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.legal-aviso p {
  max-width: 760px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-aviso b {
  color: var(--text);
}

/* --- lo esencial: una fila por tema --- */
.legal-esencial {
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding: 0 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-esencial-in {
  border-radius: 20px;
  border: 1px solid rgba(221, 255, 40, 0.28);
  background:
    linear-gradient(180deg, rgba(221, 255, 40, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.legal-esencial h2 {
  margin: 0;
  padding: 18px 22px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.legal-fila {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 8px 20px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.legal-fila:first-of-type {
  border-top: 0;
}
.legal-fila b {
  font-size: 0.9rem;
}
.legal-fila span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.legal-fila a {
  color: var(--neon);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.legal-fila a:hover {
  text-decoration: underline;
}

/* --- índice fijo + secciones numeradas --- */
.legal-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 50px 20px 10px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.legal-toc h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
  border-left: 1px solid var(--border);
}
.legal-toc a {
  display: flex;
  gap: 12px;
  margin-left: -1px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.legal-toc a span {
  min-width: 20px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover {
  color: var(--text);
}
.legal-toc a.on {
  color: var(--text);
  border-left-color: var(--neon);
  background: rgba(255, 255, 255, 0.05);
}
.legal-toc a.on span {
  color: var(--neon);
  opacity: 1;
}
.legal-doc {
  min-width: 0;
}
.legal-sec {
  scroll-margin-top: calc(var(--header-h) + 18px);
  padding-bottom: 46px;
}
.legal-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.legal-n {
  color: var(--neon);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.legal-sec p,
.legal-sec li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.legal-sec b {
  color: var(--text);
}
.legal-sec ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.legal-sec li + li {
  margin-top: 6px;
}
.legal-sec p a,
.legal-sec li a {
  color: var(--neon);
}
/* tarjetas con borde de color a la izquierda */
.legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.legal-card2 {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon);
  background: rgba(255, 255, 255, 0.03);
}
.legal-card2.ok {
  border-left-color: var(--ok);
}
.legal-card2 > b {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.legal-card2 p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}
.legal-card2 .legal-paso {
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.legal-fecha {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
/* índice en chips (celular) */
.legal-chips {
  display: none;
}

@media (max-width: 900px) {
  .legal-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .legal-sello {
    order: -1;
    width: 150px;
    justify-self: start;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px;
  }
  .legal-toc {
    display: none;
  }
  .legal-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 20px 6px;
    margin: 26px auto 0;
    scrollbar-width: none;
  }
  .legal-chips::-webkit-scrollbar {
    display: none;
  }
  .legal-chips a {
    flex: none;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
  }
  .legal-fila {
    grid-template-columns: 1fr auto;
  }
  .legal-fila span {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-sello::before {
    animation: none;
  }
}

/* --- imprimir o guardar en PDF: solo el texto --- */
@media print {
  #site-header,
  #site-footer,
  .fs-ayuda,
  .fs-cielo,
  .scroll-bar,
  .to-top,
  .legal-toc,
  .legal-chips,
  .legal-botones,
  .legal-sello,
  .legal-cta,
  .ios-bar,
  #fsToasts,
  .fs-social {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111 !important;
    padding: 0 !important;
  }
  .legal-hero,
  .legal-layout {
    display: block;
    padding: 0;
  }
  .legal-hero h1,
  .legal-sec h2,
  .legal-sec b,
  .legal-fila b,
  .legal-card2 b {
    color: #111 !important;
    text-shadow: none !important;
  }
  .legal-sec p,
  .legal-sec li,
  .legal-intro,
  .legal-fila span,
  .legal-card2 p,
  .legal-meta span,
  .legal-aviso p {
    color: #333 !important;
  }
  .legal-esencial-in,
  .legal-card2,
  .legal-aviso p,
  .legal-meta span {
    background: none !important;
    border-color: #ccc !important;
  }
  .legal-sec {
    break-inside: avoid-page;
    padding-bottom: 18px;
  }
  .eyebrow::before {
    display: none;
  }
}

/* =========================================================
   ÍCONOS PIXEL (img/pix/): carrito, sí, no, caja, llave,
   mando y corazones. Van al lado del texto, del tamaño de
   la letra; "grande" en la ficha, "titulo" junto a un
   título y "claro" les pone un contorno claro (el mando, la
   llave y el carrito son grises y se pierden en lo oscuro).
   ========================================================= */
.pix {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -0.3em;
  flex: none;
}
.pix.claro {
  filter: drop-shadow(0 0 1px rgba(250, 255, 230, 0.75));
}
.pix.grande {
  width: 26px;
  height: 26px;
}
.pix.titulo {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.05em;
  margin-left: 0.1em;
  animation: decoFlota 3.4s ease-in-out infinite;
}
/* pasos de "Cómo comprar": el ícono grande arriba */
.step .pix.s-ico {
  width: 44px;
  height: 44px;
  margin-top: 6px;
}
/* botones: el ícono un poco más chico que el texto */
.cx-cta .pix,
.pdp-buy .pix {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.35em;
}
.cx-cta .pix {
  margin: -4px 0;
}
/* etiquetas y estados */
.cx-tag .pix,
.pdp-tag .pix,
.acc-status .pix {
  width: 1.25em;
  height: 1.25em;
  margin-right: 1px;
}
.acc-status .pix {
  margin-right: 5px;
}
.faq-q .pix {
  width: 1.4em;
  height: 1.4em;
  margin-right: 8px;
}
.legal-card2 > b .pix {
  margin-right: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .pix.titulo {
    animation: none;
  }
}
html.fs-ligero .pix.titulo {
  animation: none;
}

/* =========================================================
   GARANTÍA: el sello animado y la entrada del texto
   ---------------------------------------------------------
   La estrella entra girando y flota; detrás, rayos que giran,
   dos anillos en sentidos opuestos, luces en órbita, destellos
   y un brillo que late. Con el mouse (--mx, --my, los pone
   initAnimaciones) cada capa se mueve a su distancia.
   ========================================================= */
@keyframes lgPop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lgFlota {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}
@keyframes lgLatido {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes lgTitila {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }
}
@keyframes lgSube {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lgChip {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.legal-sello {
  --mx: 0;
  --my: 0;
}
.legal-sello::before {
  translate: calc(var(--mx) * -4px) calc(var(--my) * -4px);
}
.legal-sello-brillo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 255, 170, 0.28), rgba(221, 255, 40, 0.1) 55%, transparent);
  translate: calc(var(--mx) * -6px) calc(var(--my) * -6px);
  animation: lgLatido 4.5s ease-in-out infinite;
}
.legal-sello-anillo.dos {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  border: 1px dotted rgba(232, 255, 120, 0.45);
  translate: calc(var(--mx) * -8px) calc(var(--my) * -8px);
  animation: decoGira 38s linear infinite reverse;
}
/* luces que giran alrededor, cada una en su órbita */
.legal-sello-orbita {
  position: absolute;
  inset: 0;
  translate: calc(var(--mx) * -10px) calc(var(--my) * -10px);
}
.legal-sello-orbita i {
  position: absolute;
  inset: 6%;
  animation: decoGira 14s linear infinite;
}
.legal-sello-orbita i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #f0ffb3;
  box-shadow: 0 0 12px 3px rgba(228, 255, 90, 0.75);
}
.legal-sello-orbita i:nth-child(2) {
  inset: 17%;
  animation-duration: 9s;
  animation-direction: reverse;
}
.legal-sello-orbita i:nth-child(2)::after {
  width: 6px;
  height: 6px;
  background: #ddfdc6;
  box-shadow: 0 0 10px 3px rgba(182, 250, 134, 0.7);
}
.legal-sello-orbita i:nth-child(3) {
  inset: 6%;
  animation-duration: 22s;
  animation-delay: -11s;
}
.legal-sello-orbita i:nth-child(3)::after {
  width: 5px;
  height: 5px;
}
.legal-sello-rayos {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(248, 255, 220, 0.32) 0deg 1.4deg, transparent 1.4deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, transparent 92%);
  mask-image: radial-gradient(closest-side, #000 12%, transparent 92%);
  translate: calc(var(--mx) * -12px) calc(var(--my) * -12px);
  animation: decoGira 46s linear infinite;
}
.legal-sello-destellos {
  position: absolute;
  inset: 0;
  translate: calc(var(--mx) * 6px) calc(var(--my) * 6px);
}
.legal-sello-destellos i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--t) * 4);
  height: calc(var(--t) * 4);
  background: var(--deco-estrella) center / contain no-repeat;
  animation: lgTitila 3.2s ease-in-out var(--d) infinite;
}
.legal-sello img {
  translate: calc(var(--mx) * -16px) calc(var(--my) * -14px);
  animation:
    lgPop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards,
    lgFlota 6s ease-in-out 1.4s infinite;
}

/* ---------- el texto de la portada entra en cascada ---------- */
.legal-hero > div:first-child > * {
  animation: lgSube 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.legal-hero > div:first-child > :nth-child(1) {
  animation-delay: 0.05s;
}
.legal-hero > div:first-child > :nth-child(3) {
  animation-delay: 0.35s;
}
.legal-hero > div:first-child > :nth-child(4) {
  animation: none;
}
.legal-hero > div:first-child > :nth-child(5) {
  animation-delay: 0.75s;
}
.legal-meta span {
  animation: lgChip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.legal-meta span:nth-child(1) {
  animation-delay: 0.5s;
}
.legal-meta span:nth-child(2) {
  animation-delay: 0.58s;
}
.legal-meta span:nth-child(3) {
  animation-delay: 0.66s;
}
.legal-hero h1 .fx-letra {
  display: inline-block;
  animation: fxCae 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.12s + var(--i, 0) * 32ms) backwards;
}
.legal-aviso p {
  animation: lgSube 0.8s ease 0.85s backwards;
}
/* el botón principal: brillo que pasa solo de vez en cuando */
.legal-botones .btn-primary::after {
  animation: accBrilloLg 5s ease-in-out 2.4s infinite;
}
@keyframes accBrilloLg {
  0% {
    left: -120%;
  }
  20%,
  100% {
    left: 170%;
  }
}
/* filas de "Lo esencial": la flecha avanza al pasar el mouse */
.legal-fila {
  transition: background-color 0.25s ease;
}
.legal-fila:hover {
  background: rgba(221, 255, 40, 0.06);
}
.legal-fila a {
  transition: transform 0.25s ease;
}
.legal-fila:hover a {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .legal-sello-brillo,
  .legal-sello-anillo.dos,
  .legal-sello-orbita i,
  .legal-sello-rayos,
  .legal-sello-destellos i,
  .legal-sello img,
  .legal-hero > div:first-child > *,
  .legal-meta span,
  .legal-hero h1 .fx-letra,
  .legal-aviso p,
  .legal-botones .btn-primary::after {
    animation: none !important;
  }
}
html.fs-ligero .legal-sello-brillo,
html.fs-ligero .legal-sello-anillo.dos,
html.fs-ligero .legal-sello-orbita i,
html.fs-ligero .legal-sello-rayos,
html.fs-ligero .legal-sello-destellos i,
html.fs-ligero .legal-botones .btn-primary::after {
  animation: none !important;
}
@media print {
  .legal-sello {
    display: none !important;
  }
}
/* el título cae letra por letra (no sube entero) */
.legal-hero > div:first-child > h1 {
  animation: none;
}
