/* Invitaciones digitales (Qué Planazo) dentro de «Invitaciones y recuerdos impresos». */
.invite-promo {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin: 0 0 22px;
  padding: 22px 28px 22px 22px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: linear-gradient(115deg, #ffffffdb 15%, #fff0e5c2 62%, #f2e8ffc9);
  box-shadow: 0 14px 40px #6349260f, inset 0 1px 2px #fff;
}
.invite-promo--bodas { background: linear-gradient(115deg, #ffffffdb 15%, #f4efe4d0 62%, #e9efe2d0); }
.invite-promo-kicker { margin: 0; color: #a04b26; font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.invite-promo h4 { margin: 8px 0 8px; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.invite-promo-copy > p:not(.invite-promo-kicker) { max-width: 470px; margin: 0 0 18px; font-size: .9375rem; line-height: 1.7; color: #536875; }
.invite-promo .button { font-size: .875rem; }

/* Celular animado */
.invite-promo-art { display: block; justify-self: center; text-decoration: none; }
.invite-phone {
  position: relative;
  display: block;
  width: 150px;
  height: 250px;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2b2f38, #14161b);
  box-shadow: 0 18px 38px #3c2a1d33, inset 0 0 0 1px #ffffff26;
  transform: rotate(-4deg);
  animation: invite-float 5s ease-in-out infinite alternate;
}
.invite-screen {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 21px;
  background: radial-gradient(circle at 30% 12%, #fff8f1, #f6e3d6 60%, #eecfbd);
}
.invite-promo--xv .invite-screen { background: radial-gradient(circle at 30% 12%, #fbf4ff, #ead7f3 60%, #d9bde8); }
.invite-promo--bodas .invite-screen { background: radial-gradient(circle at 30% 12%, #fffdf7, #f1ebdd 60%, #dfd6c2); }

.invite-envelope {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 58px;
  border-radius: 6px;
  background: linear-gradient(160deg, #e7a27d, #cf7a52);
  box-shadow: 0 6px 14px #7a3f2233;
  z-index: 2;
}
.invite-promo--xv .invite-envelope { background: linear-gradient(160deg, #b98ccb, #9567ab); }
.invite-promo--bodas .invite-envelope { background: linear-gradient(160deg, #a8a07c, #7f7a58); }
.invite-flap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 38px;
  height: 36px;
  background: #dc9069;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  z-index: 3;
  animation: invite-flap 6s ease-in-out infinite;
}
.invite-promo--xv .invite-flap { background: #a97abd; }
.invite-promo--bodas .invite-flap { background: #958e69; }
.invite-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 6px 8px;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 6px 16px #5b3a2224;
  text-align: center;
  z-index: 1;
  animation: invite-card 6s ease-in-out infinite;
}
.invite-card small { font-size: 6px; letter-spacing: .12em; text-transform: uppercase; color: #9b6a4f; line-height: 1.3; }
.invite-card strong { margin-top: 4px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; font-size: 20px; line-height: 1.05; color: #2c2a33; }
.invite-card em { margin-top: 2px; font-style: normal; font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; color: #6f6a73; }
.invite-count { display: flex; gap: 4px; margin-top: 8px; }
.invite-count b { display: grid; place-items: center; width: 22px; height: 20px; border-radius: 5px; background: #f3e9e1; font-size: 9px; font-weight: 700; color: #5b4636; }
.invite-count b:last-child { animation: invite-tick 1s steps(1) infinite; }
.invite-rsvp { margin-top: 7px; padding: 3px 8px; white-space: nowrap; line-height: 1.6; border-radius: 999px; background: #2c2a33; color: #fff; font-size: 6.5px; font-weight: 700; letter-spacing: .06em; }
.invite-promo--xv .invite-rsvp { background: #6f4386; }
.invite-promo--bodas .invite-rsvp { background: #56583f; }

.invite-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  z-index: 3;
  animation: invite-spark 6s ease-in-out infinite;
}
.invite-spark--1 { top: 24px; left: 22px; }
.invite-spark--2 { top: 48px; right: 20px; width: 7px; height: 7px; animation-delay: .4s; }
.invite-spark--3 { top: 16px; right: 44px; width: 12px; height: 12px; animation-delay: .8s; }

@keyframes invite-float { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(-2deg) translateY(-8px); } }
@keyframes invite-flap {
  0%, 12% { transform: rotateX(0deg); z-index: 3; }
  23% { z-index: 3; }
  24%, 78% { transform: rotateX(180deg); z-index: 0; }
  79% { z-index: 3; }
  90%, 100% { transform: rotateX(0deg); z-index: 3; }
}
@keyframes invite-card {
  0%, 18% { transform: translateY(40px); opacity: 0; }
  34%, 76% { transform: translateY(-50px); opacity: 1; }
  90%, 100% { transform: translateY(40px); opacity: 0; }
}
@keyframes invite-spark {
  0%, 30% { opacity: 0; transform: scale(.4) rotate(0deg); }
  42% { opacity: 1; transform: scale(1) rotate(45deg); }
  60%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); }
}
@keyframes invite-tick { 50% { color: #c0561e; } }

@media (max-width: 700px) {
  .invite-promo { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px; text-align: center; }
  .invite-promo-copy > p:not(.invite-promo-kicker) { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .invite-phone, .invite-flap, .invite-card, .invite-spark, .invite-count b:last-child { animation: none; }
  .invite-flap { transform: rotateX(180deg); }
  .invite-card { transform: translateY(-50px); opacity: 1; }
  .invite-flap { z-index: 0; }
}

/* Video promocional de Qué Planazo (Livid) */
.planazo-video { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin: 0 0 32px; padding: 34px 48px 34px 40px; border: 1px solid #fff; border-radius: 30px; background: linear-gradient(115deg, #ffffffdb 15%, #f2e8ffc9 60%, #fff0e5c2); box-shadow: 0 16px 45px #6349260d, inset 0 1px 2px #fff; }
.planazo-video h2 { margin: 15px 0 12px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.16; letter-spacing: -.04em; }
.planazo-video h2 span { color: #b4532b; }
.planazo-video-copy > p:not(.qr-promo-kicker) { max-width: 460px; margin: 0 0 20px; font-size: .94rem; line-height: 1.65; color: var(--muted); }
.planazo-video .button { min-height: 46px; font-size: .86rem; }
.planazo-video-phone { width: 230px; aspect-ratio: 9 / 16; padding: 8px; border-radius: 34px; background: linear-gradient(160deg, #2b2f38, #14161b); box-shadow: 0 18px 38px #3c2a1d33, inset 0 0 0 1px #ffffff26; transform: rotate(2deg); }
.planazo-video-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 27px; background: radial-gradient(circle at 30% 15%, #3b2f4a, #1a1622 70%); }
@media (max-width: 700px) {
  .planazo-video { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; border-radius: 24px; text-align: center; }
  .planazo-video-copy > p:not(.qr-promo-kicker) { margin-inline: auto; }
  .planazo-video .qr-promo-kicker { justify-content: center; font-size: .59rem; letter-spacing: .07em; }
  .planazo-video .button { width: 100%; justify-content: center; }
  .planazo-video-phone { justify-self: center; width: min(260px, 78vw); transform: none; }
}
