/* ── Portrait Tribute Cards (tp-card) ── */
.tp-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1a1a2e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.tp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

.tp-card:hover .tp-card__bg {
  transform: scale(1.05);
}

.tp-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  transition: transform 0.45s ease;
}

.tp-card__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.tp-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.0)  0%,
    rgba(0,0,0,0.08) 40%,
    rgba(0,0,0,0.68) 75%,
    rgba(0,0,0,0.88) 100%
  );
}

.tp-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 3;
}

.tp-card__name {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.tp-card__years {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.03em;
}

.tp-card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Badges */
.tp-badge {
  position: absolute;
  top: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.tp-badge--featured {
  left: 0.65rem;
  background: rgba(186,152,79,0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.tp-badge--private {
  right: 0.65rem;
  background: rgba(211,47,47,0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.tp-badge--pet {
  left: 0.65rem;
  background: rgba(99,102,241,0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Private — desaturar imagen */
.tp-card--private .tp-card__bg {
  filter: grayscale(60%);
}

/* ── Funeral home tribute carousel (Swiper) ── */
.fh-tributes-swiper {
  padding-bottom: 0.5rem;
}

.fh-tributes-swiper .swiper-slide {
  height: auto;
}

.fh-tributes-swiper .tp-card {
  width: 100%;
}

.fh-carousel-see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.fh-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
  font-size: 1rem;
  color: #333;
}

.fh-swiper-btn:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.fh-swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.fh-swiper-prev { left: -20px; }
.fh-swiper-next { right: -20px; }

.fh-see-all-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 2px dashed var(--fn-border-color, #dee2e6);
  color: var(--fn-body-secondary-color, #6c757d);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  transition: border-color 0.2s, color 0.2s;
}

.fh-see-all-btn:hover {
  border-color: #C19A4B;
  color: #C19A4B;
}
