body.graduacion {
  --tinta: #1b1b1a;
  --papel: #faf7f0;
  --cobre: #a8842f;
  --sobre-cobre: #fffdf6;
  --display: Gloock, "Palatino Linotype", serif;
  color-scheme: light;
}

.diploma {
  position: relative;
  width: min(100%, 19rem);
  margin-top: 5.5rem;
  padding: 3.4rem 1.4rem 2.2rem;
  border-radius: 4px;
  background:
    radial-gradient(120% 80% at 50% 0%, #fffefa, #f6f0e2);
  box-shadow:
    inset 0 0 0 7px #fffdf8,
    inset 0 0 0 8px rgba(168, 132, 47, 0.55),
    inset 0 0 0 11px #fffdf8,
    inset 0 0 0 12px rgba(168, 132, 47, 0.3),
    0 28px 40px -18px rgba(40, 32, 12, 0.4);
  text-align: center;
}

.diploma::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: -1rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e7c879, #b48d34 60%, #8a6a22);
  box-shadow: 0 6px 12px rgba(80, 60, 15, 0.35), inset 0 0 0 4px rgba(255, 240, 200, 0.25);
}

.diploma::before {
  content: "";
  position: absolute;
  right: 2.15rem;
  bottom: -2.4rem;
  width: 1.3rem;
  height: 2.2rem;
  background: #9c3b26;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 1.6rem 0 0 #9c3b26;
}

.birrete {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8.5rem;
  height: 6rem;
  margin: 0;
  transform: translate(-50%, -58%) rotate(-6deg);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.3));
  animation: invita 2.4s var(--ease) infinite;
}

.birrete svg { width: 100%; height: 100%; overflow: visible; }

@keyframes invita {
  0%, 70%, 100% { transform: translate(-50%, -58%) rotate(-6deg); }
  80% { transform: translate(-50%, -66%) rotate(-10deg); }
  90% { transform: translate(-50%, -58%) rotate(-3deg); }
}

.is-lanzado .birrete {
  animation: lanza 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes lanza {
  0% { transform: translate(-50%, -58%) rotate(-6deg); }
  45% { transform: translate(-30%, -340%) rotate(200deg); }
  100% { transform: translate(-50%, -58%) rotate(354deg); }
}

.diploma p {
  margin: 0;
  color: var(--tinta);
}

.diploma p:not(.fecha-grado) {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.diploma small {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--cobre);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fecha-grado {
  margin-top: 0.9rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(168, 132, 47, 0.35);
  font-family: var(--display);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s 0.8s var(--ease), transform 0.7s 0.8s var(--ease);
}

.is-lanzado .fecha-grado { opacity: 1; transform: none; }
