/* Shared CTA — 5 letter tiles + Entrar (desktop collage + mobile landing) */

@keyframes ctaPieceIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ctaLabelFade {
  to { opacity: 1; }
}

.piece-cta-group,
#cta-amori.cta-amori--mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
}

.piece-cta-group {
  cursor: default;
  z-index: 30;
  padding: 0;
}

.cta-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.letter-slot {
  flex: 1 1 0;
  max-width: 18%;
  aspect-ratio: 1;
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

.piece-cta-group.revealed .letter-slot,
#cta-amori.cta-amori--mobile.revealed .letter-slot {
  animation: ctaPieceIn 0.55s ease forwards;
}

.piece-cta-group.revealed .letter-slot:nth-child(1),
#cta-amori.cta-amori--mobile.revealed .letter-slot:nth-child(1) { animation-delay: 0.05s; }
.piece-cta-group.revealed .letter-slot:nth-child(2),
#cta-amori.cta-amori--mobile.revealed .letter-slot:nth-child(2) { animation-delay: 0.15s; }
.piece-cta-group.revealed .letter-slot:nth-child(3),
#cta-amori.cta-amori--mobile.revealed .letter-slot:nth-child(3) { animation-delay: 0.25s; }
.piece-cta-group.revealed .letter-slot:nth-child(4),
#cta-amori.cta-amori--mobile.revealed .letter-slot:nth-child(4) { animation-delay: 0.35s; }
.piece-cta-group.revealed .letter-slot:nth-child(5),
#cta-amori.cta-amori--mobile.revealed .letter-slot:nth-child(5) { animation-delay: 0.45s; }

.slot-base {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

img.slot-base,
img.slot-letter {
  object-fit: contain;
  display: block;
}

img.slot-letter {
  position: absolute;
  inset: 0;
}

.slot-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #130e06;
}

.letter-slot:hover .slot-letter,
.letter-slot:focus-visible .slot-letter,
.letter-slot.letter-shown .slot-letter {
  opacity: 1;
  transform: scale(1);
}

.letter-slot:hover .slot-base,
.letter-slot:focus-visible .slot-base,
.letter-slot.letter-shown .slot-base {
  filter: brightness(1.1);
}

.cta-enter {
  flex: 0 0 auto;
  opacity: 0;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f5efe0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 2px 16px rgba(0, 0, 0, 0.9);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.piece-cta-group.revealed .cta-enter,
#cta-amori.cta-amori--mobile.revealed .cta-enter {
  animation: ctaLabelFade 0.9s ease 0.65s forwards;
}

.cta-enter:hover,
.cta-enter:focus-visible {
  color: #c9a84c;
}
