/* ========= DETAILS CARD RESPONSIVE ========= */

/* para que el RSVP quede por encima del fondo verde */
.paper-stack .rsvp-card {
  z-index: 3;
}

/* contenedor general */
.paper-stack .details-card-wrapper {
  position: absolute;
  left: 10%;
  height: 54%;
  max-height: 360px;
  transform: translate(-50%, 24px) scale(0.96);
  transform-origin: center bottom;
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
  top: 75%;
  transition: opacity 0.35s ease 0.95s, transform 0.72s cubic-bezier(0.2, 0.82, 0.2, 1) 0.95s;
}

.scene.open .paper-stack .details-card-wrapper {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* fondo verde de atrás, más alto */
.paper-stack .details-card-bg {
  position: absolute;
  top: -12%;
  left: 30px;
  width: 462px;
  height: 340px;
  background: var(--card-paper-image) center / cover no-repeat;
  box-shadow: 0 14px 24px rgba(36, 35, 30, 0.08), 0 28px 42px rgba(36, 35, 30, 0.12), inset 0 0 0 1px rgba(70, 76, 63, 0.10);
  z-index: 1;
  overflow: hidden;
}

.paper-stack .details-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 26%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

/* tarjeta blanca delante */
.paper-stack .details-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: absolute;
    left: 0;
    bottom: 10%;
    width: 301px;
    min-height: 64%;
    padding: clamp(36px, 11%, 52px) 7% clamp(18px, 8%, 26px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 242, 237, 0.98) 100%);
    box-shadow: 0 12px 18px rgba(32, 27, 22, 0.08), 0 24px 36px rgba(32, 27, 22, 0.15), inset 0 0 0 1px rgba(42, 35, 30, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 2;
}

/* sombra decorativa suave */
.paper-stack .details-card::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: 34%;
  height: 34%;
  background: radial-gradient(
    ellipse at center,
    rgba(87, 105, 79, 0.18) 0%,
    rgba(87, 105, 79, 0.08) 40%,
    transparent 72%
  );
  filter: blur(8px);
  opacity: 0.55;
  transform: rotate(-28deg);
  pointer-events: none;
}

/* sello arriba */
.paper-stack .details-card__seal {
  position: absolute;
  left: 46%;
  top: 0;
  width: 30%;
  max-width: 88px;
  min-width: 58px;
  height: auto;
  transform: translate(-50%, -48%) rotate(-7deg);
  filter: drop-shadow(0 8px 10px rgba(104, 79, 39, 0.18));
  z-index: 3;
  pointer-events: none;
}

/* texto */
.paper-stack .details-card__label {
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: underline;
  color: rgba(48, 43, 39, 0.92);
  text-align: center;
}

/* tablet */
@media (max-width: 767px) {
  .paper-stack .details-card-wrapper {
    width: 80%;
    left: 50%;
  }

  .paper-stack .details-card-bg {
    width: 86%;
    height: 108%;
    top: -10%;
  }

  .paper-stack .details-card {
    width: 82%;
    max-width: 250px;
    bottom: 10%;
    padding-top: 40px;
  }

  .paper-stack .details-card__seal {
    width: 31%;
    max-width: 76px;
    min-width: 52px;
    left: 45%;
  }
}

/* móvil */
@media (max-width: 479px) {
  .paper-stack .details-card-wrapper {
    top: 90% !important;
  }

  .paper-stack .details-card-bg {
    width: 100%;
    height: 104%;
    top: -8%;
  }

  .paper-stack .details-card {
    padding: 34px 8% 18px;
  }

  .paper-stack .details-card__seal {
    width: 32%;
    max-width: 68px;
    min-width: 48px;
    transform: translate(-50%, -46%) rotate(-7deg);
  }

  .paper-stack .details-card__label {
    font-size: 1rem;
  }
}

/* desktop grande */
@media (max-width: 1200px) {
  .paper-stack .details-card-wrapper {
    max-height: 390px;
    top:80%;
  }

  .paper-stack .details-card-bg {
    height: 116%;
  }

  .paper-stack .details-card {
    max-width: 300px;
  }

  .paper-stack .details-card__seal {
    max-width: 92px;
  }
}

@media (max-width: 380px) {
  .paper-stack .details-card-wrapper {
    top: 150% !important;
  }
}