.cesta .descuento {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--web-marca);
}

.cesta .descuento__pista {
  position: relative;
  height: 12px;
  margin: 11px 17px 26px 0;
  border-radius: var(--web-radio-control);
  background: #ecebe6;
}

.cesta .descuento__carril {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.cesta .descuento__relleno {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--web-marca);
  transition: transform 450ms linear;
}

.cesta .descuento__hito {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #d6d3c8;
  border-radius: 50%;
  background: #fff;
  color: var(--web-tinta-suave);
  font-size: 11px;
  font-weight: 700;
  translate: -50% -50%;
  transition: background-color 300ms ease-out, border-color 300ms ease-out, color 300ms ease-out;
}

.cesta .descuento__hito--logrado {
  border-color: var(--web-marca-oscura);
  background: var(--web-marca);
  color: var(--web-tinta);
}

.cesta .descuento__hito--salto {
  animation: descuento-salto 420ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

@keyframes descuento-salto {
  40% {
    scale: 1.22;
  }

  100% {
    scale: 1;
  }
}

.cesta .descuento__texto {
  margin: 0;
  color: var(--web-tinta-suave);
  font-weight: 600;
}

.cesta .descuento__texto strong {
  color: var(--web-tinta);
}

.cesta .purpurina {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  background: radial-gradient(circle at 35% 35%, #fff8d9 0%, #f1dc8c 35%, #dac26d 65%, #ad9d65 100%);
  filter: drop-shadow(0 0 3px rgb(255 232 150 / 90%));
  opacity: 0;
  pointer-events: none;
}

.cesta .purpurina--estrella {
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.cesta .purpurina--punto {
  border-radius: 50%;
}

.cesta .destello {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #f1dc8c, 0 0 12px 2px rgb(255 232 150 / 80%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cesta .descuento__relleno {
    transition: none;
  }

  .cesta .descuento__hito--salto {
    animation: none;
  }
}

.descuento-aviso {
  margin: 16px 0 0;
  padding: 12px 18px;
  border: 1px solid var(--web-marca-oscura);
  border-radius: var(--web-radio-control);
  font-weight: 600;
}
