
/* Invitación digital tipo taplink / memories */
.taplink-invite {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  background: #f4efe5;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.taplink-bg-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(25, 29, 24, .72), rgba(25, 29, 24, .72)), url('/static/images/hero-1.webp') center/cover no-repeat;
  filter: grayscale(1) blur(1px);
  transform: scale(1.03);
  opacity: .52;
  z-index: -2;
}

.taplink-invite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 35%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08));
  z-index: -1;
}

.taplink-heading {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.taplink-heading h2, .taplink-heading p, .taplink-heading .eyebrow { color: #fff8ed; text-shadow: 0 8px 22px rgba(0,0,0,.35); }

.taplink-phone-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 390px));
  justify-content: center;
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
}

.taplink-phone {
  border-radius: 1.7rem;
  padding: .55rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
}

.paper-strip {
  overflow: hidden;
  min-height: 780px;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fffdf7, #f7f0e6);
  color: #304235;
  box-shadow: inset 0 0 40px rgba(82, 68, 48, .07);
}

.paper-photo {
  position: relative;
  margin: 0;
  min-height: 270px;
  overflow: hidden;
  clip-path: polygon(0 0,100% 0,100% 87%,93% 90%,84% 87%,73% 92%,61% 88%,49% 94%,37% 89%,25% 93%,12% 88%,0 92%);
}
.paper-photo img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; display: block; filter: saturate(.88) contrast(1.04); }
.hero-paper-photo figcaption { position: absolute; inset: auto 0 2rem; text-align: center; color: #fff; display: grid; gap: .25rem; text-shadow: 0 8px 25px rgba(0,0,0,.58); }
.hero-paper-photo figcaption span { text-transform: uppercase; letter-spacing: .32em; font-size: .78rem; }
.hero-paper-photo figcaption strong { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 7vw, 3rem); font-weight: 600; }
.hero-paper-photo figcaption small { letter-spacing: .32em; }

.mini-countdown, .paper-block, .timeline-card { padding: 1.35rem 1.25rem; text-align: center; }
.mini-countdown .eyebrow { color: #567058; margin-bottom: .7rem; }
.mini-countdown-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.mini-countdown-values span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: #567058; font-weight: 700; line-height: 1; }
.mini-countdown-values small { font-size: .62rem; color: #627262; text-transform: lowercase; }

.paper-block { border-top: 1px solid rgba(86,112,88,.16); }
.paper-block h3, .timeline-card .eyebrow { color: #425c48; }
.paper-block p { max-width: 290px; margin: .45rem auto .9rem; color: #526352; font-size: .92rem; line-height: 1.55; }
.paper-icon { display: block; font-size: 1.75rem; margin-bottom: .45rem; opacity: .72; }
.paper-btn { min-height: 36px; padding: .45rem 1rem; }
.bottom-paper-photo, .middle-paper-photo { min-height: 250px; clip-path: polygon(0 11%,10% 7%,20% 12%,32% 6%,45% 11%,57% 7%,68% 13%,80% 8%,91% 12%,100% 7%,100% 100%,0 100%); }

.timeline-card { text-align: left; padding-top: 1.8rem; }
.timeline-card .eyebrow { text-align: center; margin-bottom: 1rem; }
.timeline-item { position: relative; display: grid; grid-template-columns: 5rem 1fr; gap: .7rem; padding: .75rem 0 .75rem 1rem; border-left: 1px dashed rgba(66,92,72,.45); }
.timeline-item::before { content: '♥'; position: absolute; left: -.44rem; top: .9rem; color: #425c48; font-size: .75rem; background: #fffdf7; }
.timeline-item strong { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; color: #425c48; }
.timeline-item span { color: #526352; font-size: .86rem; }

@media (max-width: 760px) {
  .taplink-invite { margin-left: -0.6rem; margin-right: -0.6rem; border-radius: 1.1rem; padding: 1rem .8rem 1.4rem; }
  .taplink-phone-row { grid-template-columns: 1fr; max-width: 390px; margin: 0 auto; }
  .taplink-phone-program { margin-top: .4rem; }
  .paper-strip { min-height: auto; }
}
