/* ── KEYFRAMES ── */
@keyframes pulse-ring {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.55;
  }
  70% {
    transform: translateX(-50%) scale(1.18);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1.18);
    opacity: 0;
  }
}
@keyframes drop-icon {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(2px);
  }
}
@keyframes tick-in {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
  70% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes scan-line {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    top: 100%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ── BOTÓN ── */
.btnDescargarCV {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #fff;

  padding: 13px 30px;
  min-width: 220px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;

  background: linear-gradient(
    160deg,
    rgb(84, 137, 118) 0%,
    rgb(48, 114, 81) 100%
  );
  box-shadow:
    0 10px 28px rgba(63, 142, 122, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* anillo pulse en hover */
.btnDescargarCV::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(163, 189, 166, 0.35);
  left: 50%;
  transform: translateX(-50%) scale(1);
  pointer-events: none;
  opacity: 0;
}
.btnDescargarCV:hover::before {
  animation: pulse-ring 1.2s ease-out infinite;
}

/* línea de scan estilo QA */
.btnDescargarCV .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  top: -2px;
  pointer-events: none;
  opacity: 0;
}
.btnDescargarCV:hover .scan {
  animation: scan-line 1s ease-in-out infinite;
}

/* ícono rebota en hover */
.btnDescargarCV svg {
  flex-shrink: 0;
}
.btnDescargarCV:hover svg {
  animation: drop-icon 0.8s ease infinite;
}

/* badge QA */
.qa-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #3f618e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(63, 97, 142, 0.4);
  pointer-events: none;
}

/* estado: descargado */
.btnDescargarCV.done {
  background: linear-gradient(160deg, #548976 0%, #27500a 100%);
  pointer-events: none;
}
.btnDescargarCV.done .tick {
  animation: tick-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btnDescargarCV:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    0 16px 36px rgba(54, 208, 141, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btnDescargarCV:active {
  transform: translateX(-50%) scale(0.97);
}
