/* Modal 28 Aniversario */
body.aniversario-modal-open {
  overflow: hidden !important;
}

.aniversario-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 14, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.25s ease;
  animation: aniversarioFadeIn 0.35s ease;
}

.aniversario-modal.is-hidden {
  display: none;
}

.aniversario-modal-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(154, 98, 59, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  animation: aniversarioScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.aniversario-modal-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 12px 4px;
  background: #ffffff;
}

.aniversario-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5efe9;
  color: #5c351c;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.aniversario-modal-close:hover,
.aniversario-modal-close:focus-visible {
  background: #e8d8c8;
  color: #2d1b10;
  transform: scale(1.06);
  outline: none;
}

.aniversario-modal-img-link {
  display: block;
  background: #ffffff;
}

.aniversario-modal-img {
  display: block;
  width: 100%;
  height: auto;
}

.aniversario-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6f0 100%);
}

.aniversario-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5632 0%, #5c351c 100%);
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(92, 53, 28, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.aniversario-modal-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.aniversario-modal-btn:hover,
.aniversario-modal-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(92, 53, 28, 0.38);
  filter: brightness(1.06);
  color: #ffffff !important;
  outline: none;
}

.aniversario-modal-btn:hover i {
  transform: translateX(4px);
}

@keyframes aniversarioFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes aniversarioScaleIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {
  .aniversario-modal {
    padding: 12px;
  }

  .aniversario-modal-content {
    border-radius: 16px;
  }

  .aniversario-modal-topbar {
    padding: 8px 10px 2px;
  }

  .aniversario-modal-footer {
    padding: 16px 18px 20px;
  }

  .aniversario-modal-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
