/* «Nuestra historia» (gama Animaciones): collage de polaroids clavadas con
   chinchetas sobre el propio papel de la invitación, junto a notas con cinta.
   Sin animación de lanzamiento: las fotos están siempre puestas. */

@font-face {
  font-family: 'Tablon Script';
  src: url('greatvibes-regular.woff2') format('woff2');
  font-display: swap;
}

.tb-tablon {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}
.tb-corcho {
  position: relative;
  padding: 0 4px 24px;
}

/* ── recuerdos: columna ordenada en móvil ─────────────────────────────────── */
.tb-recuerdo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 104px;
}
.tb-recuerdo:first-of-type {
  margin-top: 64px;
}

.tb-foto {
  --sombra: drop-shadow(0 1px 1.2px rgba(50, 30, 15, 0.34)) drop-shadow(0 10px 11px rgba(50, 30, 15, 0.3));
  position: relative;
  z-index: 2;
  width: min(250px, 74%);
  margin: 0;
  transform-origin: 50% 8px;
  transform: rotate(var(--r));
  filter: var(--sombra);
}
/* marco de la polaroid */
.tb-cara {
  position: relative;
  padding: 11px 11px 46px;
  background: #fffdf9;
}
/* las fotos se ven a color desde el principio (sin el revelado de película instantánea, a petición de Diego) */
.tb-foto-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* tono de película instantánea sin revelar */
  background: linear-gradient(160deg, #e6e8e2, #d9dfdd 60%, #e2e1d6);
}
.tb-foto-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb-foto-pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-family: 'Tablon Script', 'Great Vibes', cursive;
  font-size: 30px;
  line-height: 1.2;
  color: #5c4942;
}

/* chincheta redonda, como la de la primera versión */
.tb-chincheta {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -4px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: #b3747f;
  border: 1px solid #8a4e5a;
  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.7), 1px 3px 5px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.tb-chincheta::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
@media (min-width: 768px) {
  .tb-chincheta {
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }
  .tb-chincheta::after {
    top: 4px;
    left: 4px;
  }
}

.tb-nota {
  position: relative;
  z-index: 1;
  width: min(330px, 90%);
  margin-top: 22px;
  padding: 26px 22px 20px;
  text-align: center;
  background: #fffaf2 linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 233, 218, 0.5));
  transform: rotate(var(--rn));
  box-shadow: 0 1px 2px rgba(50, 30, 15, 0.2), 0 10px 18px -10px rgba(50, 30, 15, 0.4);
}
/* cinta washi rubor */
.tb-nota::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 86px;
  height: 22px;
  margin-left: -43px;
  background: repeating-linear-gradient(90deg, rgba(232, 196, 196, 0.82) 0 6px, rgba(240, 210, 208, 0.82) 6px 12px);
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(60, 30, 20, 0.12);
}
.tb-fecha {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #b3747f;
}
.tb-titulo {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #5c4942;
}
.tb-sub {
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b3747f;
}
.tb-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  font-style: italic;
  color: rgba(92, 73, 66, 0.86);
}
/* ── collage clavado en escritorio ────────────────────────────────────────── */
@media (min-width: 1024px) {
  .tb-corcho {
    padding: 0 40px 40px;
  }
  /* las fotos zigzaguean junto al eje central y las notas se abren hacia fuera */
  .tb-recuerdo {
    --dx: -78px;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    width: 616px;
    margin-top: -18px;
    margin-left: calc(50% - 308px + var(--dx));
  }
  .tb-recuerdo:first-of-type {
    margin-top: 0;
  }
  .tb-recuerdo--izq {
    --dx: 78px;
  }
  .tb-recuerdo--izq {
    flex-direction: row;
    justify-content: flex-start;
  }
  .tb-foto {
    flex: none;
    width: 290px;
    margin-top: 76px;
  }
  .tb-nota {
    flex: none;
    width: 340px;
    margin-top: 150px;
    margin-right: -14px;
  }
  .tb-recuerdo--izq .tb-nota {
    margin-right: 0;
    margin-left: -14px;
  }
}
