/* Badge 20% DTO — entrada esquina superior derecha */
.gf-home-promo-banner-stage {
  padding: 20px 18px 56px 8px;
}

.gf-dto-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 7;
  display: block;
  text-decoration: none;
  transform: translate3d(calc(100% + 48px), calc(-100% - 40px), 0);
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 12px 28px rgba(14, 165, 233, 0.5));
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s ease;
}

.gf-dto-badge.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.18s;
}

.gf-dto-badge:hover,
.gf-dto-badge:focus {
  text-decoration: none;
  filter: drop-shadow(0 16px 36px rgba(14, 165, 233, 0.65));
  transform: translate3d(0, -3px, 0);
}

.gf-dto-badge__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(90px, 10.5vw, 142px);
  padding: clamp(0.5rem, 1.1vw, 0.8rem) clamp(0.4rem, 0.95vw, 0.6rem) clamp(0.48rem, 1vw, 0.72rem);
  background: radial-gradient(ellipse at 50% 30%, #0f172a 0%, #050a14 45%, #020617 100%);
  border: 1.5px solid #38bdf8;
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.35),
    0 0 22px rgba(56, 189, 248, 0.55),
    0 0 40px rgba(37, 99, 235, 0.25),
    inset 0 0 28px rgba(56, 189, 248, 0.12);
}

/* Brillo en bordes superior e inferior del marco */
.gf-dto-badge__inner::before,
.gf-dto-badge__inner::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.2) 20%,
    #fff 50%,
    rgba(56, 189, 248, 0.2) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85), 0 0 20px rgba(56, 189, 248, 0.8);
  pointer-events: none;
}

.gf-dto-badge__inner::before {
  top: 0;
}

.gf-dto-badge__inner::after {
  display: none;
}

.gf-dto-badge__hasta {
  position: relative;
  z-index: 1;
  font-family: "Audiowide", "Segoe UI", sans-serif;
  font-size: clamp(0.45rem, 0.9vw, 0.62rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.gf-dto-badge__value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.gf-dto-badge__num {
  font-family: "Audiowide", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 400;
  color: #fde047;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 20px rgba(250, 204, 21, 0.55),
    0 2px 0 rgba(180, 120, 0, 0.35);
}

.gf-dto-badge__suffix {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-top: 0.15em;
}

.gf-dto-badge__pct {
  font-family: "Audiowide", "Segoe UI", sans-serif;
  font-size: clamp(0.75rem, 1.65vw, 1.15rem);
  color: #fde047;
  line-height: 1;
  margin-left: 0.05em;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

.gf-dto-badge__dto {
  font-family: "Audiowide", "Segoe UI", sans-serif;
  font-size: clamp(0.5rem, 1.05vw, 0.74rem);
  color: #fde047;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -0.05em;
}

.gf-dto-badge__line {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: 2px;
  margin: 0.1rem 0 0.4rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.4) 12%,
    #e0f2fe 50%,
    rgba(56, 189, 248, 0.4) 88%,
    transparent
  );
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.9),
    0 0 16px rgba(255, 255, 255, 0.5);
}

.gf-dto-badge__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.gf-dto-badge__foot span {
  font-family: "Audiowide", "Segoe UI", sans-serif;
  font-size: clamp(0.36rem, 0.75vw, 0.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.gf-dto-badge__foot span:last-child {
  font-size: clamp(0.4rem, 0.85vw, 0.56rem);
  letter-spacing: 0.12em;
}

@media (max-width: 767.98px) {
  .gf-home-promo-banner-stage {
    padding-bottom: 0;
    padding-right: 10px;
  }

  .gf-dto-badge__inner {
    width: clamp(76px, 20vw, 108px);
  }

  .gf-dto-badge__num {
    font-size: clamp(1.3rem, 6.5vw, 1.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-dto-badge {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gf-dto-badge.is-inview {
    transition-delay: 0s;
  }
}
