/* ============ COLLAGE INSTAGRAM ============ */
.ig { position: relative; background: #f4f1ed; padding: 70px 0 56px; overflow: hidden; isolation: isolate; }
.ig-stage { position: relative; max-width: 1500px; margin: 0 auto; height: clamp(560px, 58vw, 900px); }

.ig-item {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 1;
  opacity: 0; transform: translateY(90px) rotate(calc(var(--r) + 14deg)) scale(.78);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d);
}
.ig.in .ig-item { opacity: 1; transform: rotate(var(--r)); }
.ig-float { animation: igFloat var(--fl) ease-in-out infinite alternate; transform: translate(calc(var(--mx, 0) * var(--depth) * -14px), calc(var(--my, 0) * var(--depth) * -10px)); }
@keyframes igFloat { from { translate: 0 -5px; } to { translate: 0 6px; } }
.ig-photo {
  position: relative; aspect-ratio: 1 / var(--ar); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, color-mix(in srgb, var(--tone) 72%, #fff), var(--tone));
  box-shadow: 0 14px 30px -14px rgba(30,20,10,.45); transition: transform .6s var(--ease), box-shadow .6s;
}
.ig-photo span { font-weight: 900; font-style: italic; font-size: clamp(14px, 2vw, 26px); letter-spacing: -.05em; color: rgba(255,255,255,.3); }
.ig-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-item.is-pol .ig-float { background: #fbfaf8; padding: 7% 7% 20%; box-shadow: 0 16px 34px -16px rgba(30,20,10,.5); }
.ig-item.is-pol .ig-photo { box-shadow: none; }
.ig-item:hover { z-index: 5; }
.ig.in .ig-item:hover .ig-float { scale: 1.07; }
.ig-item .ig-float { transition: scale .6s var(--ease); }

/* Centro: marca + link */
.ig-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 6; text-align: center; display: grid; justify-items: center; gap: 18px; pointer-events: none; }
.ig-center > * { pointer-events: auto; }
.ig-logo { font-weight: 900; font-style: italic; font-size: clamp(54px, 8vw, 120px); letter-spacing: -.06em; line-height: .9; transform: skewX(-6deg); color: var(--brown, #4a2c1c);
  opacity: 0; transition: opacity 1s .5s var(--ease), transform 1.2s .5s var(--ease); translate: 0 24px; }
.ig.in .ig-logo { opacity: 1; translate: 0 0; }
.ig-follow {
  position: relative; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 2px; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease), letter-spacing .5s var(--ease);
}
.ig-follow:hover { letter-spacing: .22em; }
.ig-follow::before { content: '♛'; display: block; font-size: 11px; margin-bottom: 6px; color: var(--brown, #4a2c1c); }
.ig-icon {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -16px); z-index: 6; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brown, #4a2c1c); color: #fff; display: grid; place-items: center; transition: transform .5s var(--ease), background .3s;
}
.ig-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ig-icon:hover { transform: translate(-50%, -20px) rotate(-8deg) scale(1.1); background: #000; }

/* Sello giratorio */
.ig-badge { position: absolute; left: 2.2%; top: 49%; width: clamp(64px, 6.4vw, 96px); aspect-ratio: 1; z-index: 6; border-radius: 50%; background: var(--brown, #4a2c1c); color: #fff;
  display: grid; place-items: center; opacity: 0; scale: .4; transition: opacity .8s .9s, scale 1s .9s var(--ease); }
.ig.in .ig-badge { opacity: 1; scale: 1; }
.ig-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: igSpin 16s linear infinite; }
.ig-badge text { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; fill: #fff; text-transform: uppercase; }
.ig-badge b { font-size: 18px; font-style: italic; font-weight: 900; letter-spacing: -.05em; }
@keyframes igSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .ig { padding: 40px 0 36px; }
  .ig-stage { height: clamp(520px, 120vw, 760px); }
  .ig-item { --w: 30% !important; }
  .ig-item:nth-child(n+11) { display: none; }
  .ig-center { top: 50%; }
  .ig-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-item { opacity: 1; transform: rotate(var(--r)); transition: none; }
  .ig-float, .ig-badge svg { animation: none; }
  .ig-logo, .ig-badge { opacity: 1; translate: none; scale: 1; transition: none; }
}
