﻿/* =============================================
   IGFEED — Big text + scattered photos
   ============================================= */

.igfeed-wrap {
    position: relative;
    width: 100%;
    min-height: 140vh;
    /* Color is hardcoded — #E8C4F5 is a soft creamy lavender */
    background-color: var(--color-primary);
    background-color: var(--color-ig-section, var(--color-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 120px 40px 140px;
}

/* ── Curved waves ── */
.igfeed-wave {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 90px;
    background: var(--color-bg-warm);
    z-index: 3;
    pointer-events: none;
}

.igfeed-wave--top {
    top: 0;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.igfeed-wave--bottom {
    bottom: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ── Scattered photos ── */
.igfeed-photo {
    position: absolute;
    z-index: 2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    /* Transition for hover; parallax uses JS-driven transform directly */
    transition: box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

    .igfeed-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.igfeed-photo--tl {
    top: 8%;
    left: 2%;
    width: clamp(240px, 28vw, 420px);
    aspect-ratio: 3 / 4;
    transform: rotate(-8deg);
    animation: igfeed-float-1 8s ease-in-out infinite;
}

.igfeed-photo--tr {
    top: 6%;
    right: 2%;
    width: clamp(260px, 30vw, 440px);
    aspect-ratio: 4 / 3;
    transform: rotate(6deg);
    animation: igfeed-float-2 10s ease-in-out infinite 1.5s;
}

.igfeed-photo--br {
    bottom: 8%;
    right: 3%;
    width: clamp(240px, 28vw, 400px);
    aspect-ratio: 3 / 4;
    transform: rotate(-7deg);
    animation: igfeed-float-3 7s ease-in-out infinite 0.8s;
}

/* Hover — lifts, scales, white ring */
.igfeed-photo:hover {
    transform: rotate(0deg) scale(1.06) translateY(-10px);
    z-index: 5;
    box-shadow: 0 24px 52px rgba(0,0,0,0.28), 0 0 0 4px rgba(255,255,255,0.60);
}

    .igfeed-photo:hover img {
        transform: scale(1.06);
    }

/* ── Centre content ── */
.igfeed-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.igfeed-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.70);
    margin-bottom: 20px;
}

.igfeed-title {
    font-family: var(--font-body);
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 900;
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 36px 0;
}

/* ── Instagram button ── */
.igfeed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .igfeed-btn svg {
        width: 28px;
        height: 28px;
    }

    .igfeed-btn:hover {
        transform: scale(1.12);
        box-shadow: 0 8px 28px rgba(0,0,0,0.38);
    }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .igfeed-wrap {
        padding: 100px 24px 120px;
    }

    .igfeed-wave {
        height: 60px;
    }

    .igfeed-photo--tl {
        width: clamp(130px, 24vw, 220px);
    }

    .igfeed-photo--tr {
        width: clamp(130px, 24vw, 240px);
    }

    .igfeed-photo--br {
        width: clamp(120px, 22vw, 200px);
    }

    .igfeed-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .igfeed-wrap {
        padding: 90px 20px 110px;
    }

    .igfeed-wave {
        height: 48px;
    }

    .igfeed-photo--br {
        display: none;
    }

    .igfeed-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .igfeed-photo {
        transition: none;
    }

        .igfeed-photo img {
            transition: none;
        }

    .igfeed-btn {
        transition: none;
    }
}

/* ── Floating card animations ── */
@keyframes igfeed-float-1 {
    0%, 100% {
        transform: rotate(-8deg) translate(0, 0);
    }

    33% {
        transform: rotate(-6deg) translate(8px, -18px);
    }

    66% {
        transform: rotate(-10deg) translate(-6px, -8px);
    }
}

@keyframes igfeed-float-2 {
    0%, 100% {
        transform: rotate(6deg) translate(0, 0);
    }

    40% {
        transform: rotate(8deg) translate(-10px, -22px);
    }

    70% {
        transform: rotate(4deg) translate(6px, -10px);
    }
}

@keyframes igfeed-float-3 {
    0%, 100% {
        transform: rotate(-7deg) translate(0, 0);
    }

    50% {
        transform: rotate(-5deg) translate(10px, -16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .igfeed-photo {
        animation: none !important;
    }
}

/* ── Floating shapes — copied from products-hero_shapes pattern ── */
.igfeed-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.igfeed-shape {
    position: absolute;
    opacity: 0.30;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    display: block;
    filter: brightness(0) invert(1);
}

    .igfeed-shape.is-1 {
        width: 240px;
        top: 5%;
        left: 5%;
        animation: floatBubble 8s ease-in-out infinite;
    }

    .igfeed-shape.is-2 {
        width: 180px;
        top: 10%;
        right: 8%;
        animation: floatBubble 10s ease-in-out infinite reverse;
    }

    .igfeed-shape.is-3 {
        width: 140px;
        top: 45%;
        left: 8%;
        animation: floatBubble 6s ease-in-out infinite;
    }

    .igfeed-shape.is-4 {
        width: 200px;
        top: 55%;
        right: 12%;
        animation: floatBubble 9s ease-in-out infinite reverse;
    }

    .igfeed-shape.is-5 {
        width: 160px;
        top: 30%;
        left: 42%;
        animation: floatBubbleInward 9s ease-in-out infinite;
    }

    .igfeed-shape.is-6 {
        width: 130px;
        top: 75%;
        left: 60%;
        animation: floatBubbleInward 7s ease-in-out infinite reverse;
    }

    .igfeed-shape.is-7 {
        width: 150px;
        top: 20%;
        left: 25%;
        animation: floatBubble 11s ease-in-out infinite 2s;
    }

    .igfeed-shape.is-8 {
        width: 120px;
        top: 65%;
        left: 45%;
        animation: floatBubbleInward 8s ease-in-out infinite 3.5s;
    }

    .igfeed-shape.is-9 {
        width: 135px;
        top: 40%;
        right: 28%;
        animation: floatBubble 13s ease-in-out infinite 1s reverse;
    }

    .igfeed-shape.is-10 {
        width: 110px;
        top: 82%;
        right: 18%;
        animation: floatBubbleInward 6s ease-in-out infinite 4s;
    }

/* placeholder */
width: 130px;
top: 75%;
left: 60%;
animation: floatBubbleInward 7s ease-in-out infinite reverse;
}


.igfeed-shape.is-11 {
    width: 160px;
    top: 15%;
    left: 60%;
    animation: floatBubble 9s ease-in-out infinite 1.2s;
}

.igfeed-shape.is-12 {
    width: 120px;
    top: 50%;
    right: 5%;
    animation: floatBubbleInward 11s ease-in-out infinite 2.5s;
}

.igfeed-shape.is-13 {
    width: 140px;
    top: 88%;
    left: 30%;
    animation: floatBubble 7s ease-in-out infinite 0.7s reverse;
}

.igfeed-shape.is-14 {
    width: 100px;
    top: 5%;
    left: 40%;
    animation: floatBubbleInward 12s ease-in-out infinite 3s;
}

.igfeed-shape.is-15 {
    width: 130px;
    top: 70%;
    right: 40%;
    animation: floatBubble 8s ease-in-out infinite 5s reverse;
}

/* Reuse the exact same keyframes from productos.css */
@keyframes floatBubble {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, -15px) scale(1.05);
    }
}

@keyframes floatBubbleInward {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15px, -15px) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .igfeed-shape {
        animation: none !important;
    }
}
