.medalla {
  width: 280px;
  height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
  margin: 2rem;
  justify-self: center;
}
.medalla.is-flipped {
  transform: rotateY(180deg) scale(1.05);
}
.cara {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  box-sizing: border-box;
}
.front {
  background: radial-gradient(
    circle at 30% 30%,
    #ffd700,
    #ffa500 40%,
    #b8860b 70%,
    #8b6914 100%
  );
  color: #333;
  text-align: center;
  transform: rotateY(0deg);
  box-shadow: 0 0 0 8px #b8860b, 0 0 0 12px #ffd700,
    0 15px 40px rgba(0, 0, 0, 0.5), inset 0 5px 15px rgba(255, 255, 255, 0.5),
    inset 0 -5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}
.front::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
}
.front::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
  pointer-events: none;
  animation: shine 8s linear infinite;
}
@keyframes shine {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.medal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}
.front h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  color: #4a2c0f;
  text-shadow: 1px 1px 0 #ffd700, 2px 2px 3px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 1px;
}
.front p {
  margin: 20px 0 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c1810;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.8),
    0 0 5px rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.back {
  background: radial-gradient(
    circle at 30% 30%,
    #c0c0c0,
    #a8a8a8 40%,
    #808080 70%,
    #606060 100%
  );
  transform: rotateY(180deg);
  box-shadow: 0 0 0 8px #808080, 0 0 0 12px #a8a8a8,
    0 15px 40px rgba(0, 0, 0, 0.5), inset 0 5px 15px rgba(255, 255, 255, 0.5),
    inset 0 -5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  top: -274px;
}
.back::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 50%;
  border: 3px solid rgba(192, 192, 192, 0.6);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
}
.back img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #666;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  display: block;
}
