body.bautizo {
  --tinta: #f2e8d6;
  --papel: #15110d;
  --cobre: #eaa257;
  --sobre-cobre: #1a120c;
  --display: Spectral, "Palatino Linotype", serif;
}

.bautizo .pieza {
  background:
    radial-gradient(80% 45% at 50% 38%, rgba(234, 162, 87, 0.08), transparent 70%),
    var(--papel);
}

.bautizo .pieza::after { mix-blend-mode: overlay; opacity: 0.14; }

.bautizo .apertura > .foto { opacity: 0.55; }

.vela {
  position: relative;
  width: 10rem;
  height: 17rem;
  margin-top: 1rem;
}

.vela::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9.5rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 110, 0.38), rgba(234, 140, 60, 0.12) 35%, transparent 65%);
  transform: translate(-50%, 50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
}

.is-revelada .vela::before {
  opacity: 1;
  transform: translate(-50%, 50%) scale(1);
  animation: respira 3s ease-in-out 1.6s infinite;
}

@keyframes respira {
  50% { opacity: 0.8; transform: translate(-50%, 50%) scale(0.95); }
}

.vela::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8.5rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #d8b47a, #9c7340 55%, #5a3e1e);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}

.cera {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0.6rem;
  width: 3.3rem;
  height: 10rem;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(90deg, #cdbd9f 0%, #efe4cf 28%, #fffaf0 48%, #ebdfc6 70%, #bfae8f 100%);
  transform: translateX(-50%);
}

.cera::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #fff8ea, #e5d6b8);
}

.cera::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.85rem;
  width: 2px;
  height: 0.85rem;
  border-radius: 2px;
  background: #2b2016;
  transform: translateX(-50%);
}

.llama {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 11rem;
  width: 1.5rem;
  height: 2.8rem;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe8 0%, #ffe39a 22%, #ffb347 48%, #f07a24 72%, rgba(240, 122, 36, 0) 100%);
  box-shadow: 0 0 24px 6px rgba(255, 170, 80, 0.55), 0 0 60px 18px rgba(255, 140, 50, 0.25);
  filter: blur(0.3px);
  transform: translateX(-50%) scale(0.1);
  transform-origin: 50% 90%;
  opacity: 0;
  transition: opacity 0.5s, transform 0.9s var(--ease);
}

.is-revelada .llama {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: llama 1.4s ease-in-out 0.9s infinite;
}

@keyframes llama {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); }
  30% { transform: translateX(-50%) scale(0.94, 1.06) rotate(2deg); }
  60% { transform: translateX(-50%) scale(1.04, 0.95) rotate(-2deg); }
}

.vela:not(:disabled):active .cera { filter: brightness(1.08); }

.hora {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--tinta);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s 0.4s var(--ease), transform 0.9s 0.4s var(--ease);
}

.hora small {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cobre);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.is-revelada .hora { opacity: 1; transform: none; }
