.home-hero h1 em,
.wallpaper-gold {
  background: linear-gradient(105deg, #ffd43a 12%, #ffe777 34%, #fffcec 48%, #fff 54%, #ffe777 68%, #ffd43a 88%);
  background-size: 280% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: home-yellow-drift 36s ease-in-out infinite alternate;
}

.home-hero .home-price {
  display: inline-flex;
  align-items: baseline;
  gap: .12em;
  white-space: nowrap;
}
.home-price-currency { color: #ffd43a; font-size: .4em; }
.home-price-amount { color: #fff; }

.deck-strip > .deck-strip-featured { font-weight: 700; }

.home-hero .hero-ctas { gap: 12px; }
.home-join {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #ffe174;
  border-radius: 999px;
  background: #ffd43a;
  color: #012b6f;
  min-height: 54px;
  text-decoration: none;
  box-shadow: 0 5px 18px #001d431c;
  transition: transform .2s, box-shadow .2s;
}
.home-join-intro,
.home-join-fan { display: inline-flex; align-items: center; justify-content: center; }
.home-join-intro { padding: 13px 18px 13px 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.home-join-fan { gap: 10px; padding: 13px 19px; background: #fff; font: 700 14px/1.3 "Neusharp", sans-serif; text-transform: uppercase; }
.home-join:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #001d4333; }
.home-join:focus-visible,
.home-login:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.home-hero .hero-ctas > .home-login {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #9bb7e15e;
  border-radius: 5px;
  background: #0a3370;
  color: #fff;
  font: 100 18px/1.25 "Neusharp", sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: background .2s, border-color .2s;
}
.home-login::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70% auto -70% 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, #fff2, transparent);
  transform: translateX(450%) skewX(-18deg);
  animation: home-login-glint 10s ease-in-out infinite;
  pointer-events: none;
}
.home-hero .hero-ctas > .home-login:hover { background: #124680; border-color: #d6e5ff99; }

.home-certificate { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-inline: 64px; }
.certificate-explorer { min-width: 0; }
.certificate-explorer-heading { margin-bottom: 17px; }
.certificate-explorer-heading .eyebrow { margin-bottom: 4px; font-size: 18px; }
.certificate-explorer-heading > span:last-child { display: block; font-size: 12px; color: #62748b; }
.certificate-stage { position: relative; border-radius: 3px; box-shadow: 0 18px 38px #012b6f1c; }
.certificate-stage > img { display: block; width: 100%; height: auto; border-radius: inherit; }
.certificate-point[data-certificate-detail="nombre"] { --x: 76%; --y: 39%; }
.certificate-point[data-certificate-detail="qr"] { --x: 24%; --y: 69%; }
.certificate-point[data-certificate-detail="numero"] { --x: 71%; --y: 57%; }
.certificate-point[data-certificate-detail="sellos"] { --x: 61%; --y: 75%; }
.certificate-point[data-certificate-detail="firma"] { --x: 49%; --y: 78%; }
.certificate-point[data-certificate-detail="palmares"] { --x: 85%; --y: 24%; }
.certificate-point[data-certificate-detail="papel"] { --x: 31%; --y: 49%; }
.certificate-point[data-certificate-detail="escudo"] { --x: 19%; --y: 29%; }
.certificate-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  background: #012b6fee;
  box-shadow: 0 0 0 4px #e9bf3760, 0 3px 10px #001f4d3d;
  font: 400 20px/1 "Instrument Sans", sans-serif;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.certificate-point:hover,
.certificate-point[aria-expanded="true"] { color: #012b6f; background: #ffd43a; box-shadow: 0 0 0 5px #012b6f20, 0 3px 10px #001f4d33; }
.certificate-point:focus-visible { outline: 3px solid #012b6f; outline-offset: 5px; }
.certificate-detail { display: flex; gap: 15px; min-height: 138px; margin-top: 21px; padding: 20px; background: #fff; border: 1px solid #dce4ee; border-left: 3px solid #d8b145; border-radius: 4px; }
.certificate-detail-index { padding-top: 5px; white-space: nowrap; color: #8b7746; font-size: 10px; letter-spacing: .05em; }
.certificate-detail h3 { margin: 0 0 8px; font-size: 24px; }
.certificate-detail p { margin: 0; font-size: 13px; line-height: 1.65; color: #536b87; }
.certificate-preview-note { margin-top: 12px; font-size: 11px; line-height: 1.5; color: #748399; }
.certificate-maker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; border-top: 1px solid #dce4ee; padding-top: 20px; margin: 25px 0; }
.certificate-maker p { margin: 0; font-size: 12px; line-height: 1.7; color: #65768d; }
.certificate-maker p strong { color: #284c77; font-weight: 600; }
.certificate-maker img { object-fit: contain; width: 132px; height: 48px; opacity: .7; }

.home-wallpapers .wallpaper-badge {
  position: relative;
  max-width: 440px;
  padding: 18px 22px 18px 25px;
  border: 1px solid #d5b54d66;
  border-left: 3px solid #d6b04c;
  border-radius: 14px;
  background: linear-gradient(125deg, #fffef5, #ffffffc9);
  box-shadow: 0 9px 24px #012b6f08;
  color: #1b416f;
  font-weight: 500;
  line-height: 1.65;
}
.home-wallpapers .teaser-image { min-width: 0; }
.home-wallpapers .teaser-image strong { transform: none; max-width: 100%; background: #ffffffc7; padding: 23px 16px; font-size: clamp(22px, 2.55vw, 40px); line-height: 1.35; }
.wallpaper-gold {
  background-image: linear-gradient(100deg, #88601b 8%, #b88e30 28%, #e4c36b 43%, #fff1bc 51%, #c79f42 62%, #8f681e 85%);
  animation-duration: 30s;
}

@keyframes home-yellow-drift { to { background-position: 100% 50%; } }
@keyframes home-login-glint {
  0%, 18% { transform: translateX(450%) skewX(-18deg); opacity: 0; }
  24% { opacity: 1; }
  64% { transform: translateX(-160%) skewX(-18deg); opacity: 1; }
  70%, 100% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
}

@media (max-width: 900px) {
  .home-certificate { grid-template-columns: 1fr; gap: 32px; padding-inline: 40px; }
  .certificate-detail { padding: 16px; gap: 10px; }
  .certificate-detail h3 { font-size: 23px; }
  .certificate-detail p { font-size: 12px; }
}
@media (max-width: 720px) {
  .home-certificate { grid-template-columns: 1fr; gap: 30px; padding-inline: 22px; }
  .home-hero .hero-ctas { align-items: flex-start; gap: 12px; }
  .home-join { min-height: 51px; }
  .home-join-intro { padding: 13px 13px 13px 17px; font-size: 12px; }
  .home-join-fan { padding: 13px 15px; gap: 7px; font-size: 12px; }
  .home-hero .hero-ctas > .home-login { font-size: 18px; min-height: 45px; padding: 11px 16px; }
  .certificate-point { width: 26px; height: 26px; font-size: 18px; box-shadow: 0 0 0 3px #e9bf3760; }
  .certificate-detail { min-height: 149px; }
  .certificate-maker { margin: 23px 0; }
  .home-wallpapers .teaser-image strong { font-size: clamp(20px, 6.1vw, 33px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero h1 em,
  .wallpaper-gold,
  .home-login::before { animation: none; }
  .home-login::before { opacity: 0; }
  .home-join,
  .home-login,
  .certificate-point { transition: none; }
}
