/* ==========================================================================
   Solo home (index.html): media del hero, pilares y casos (showcases + grilla).
   Se carga después de flow.css.
   ========================================================================== */

.fl-hero-media {
    justify-self: end;
    width: 100%;
    max-width: 440px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 98%);
}

.fl-hero-media iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 1536;
    border: 0;
    background: transparent;
    pointer-events: none;
}

/* ── PILARES (bloque gris oscuro) ───────────────────────────────────────── */
.fl-pillars-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.fl-pillars-head h2 {
    max-width: 14ch;
}

.fl-pillars-head img {
    flex: 0 0 auto;
    width: clamp(140px, 17vw, 240px);
    height: auto;
}

.fl-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.fl-pillar {
    padding-top: 1.6rem;
    border-top: 1px solid rgba(243, 243, 245, 0.18);
}

.fl-pillar-num {
    color: var(--fl-violet);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
}

.fl-pillar h3 {
    margin-top: 1rem;
    font-size: clamp(1.4rem, 1.9vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.fl-pillar p {
    margin-top: 0.8rem;
    color: var(--fl-dim);
    font-size: var(--text-body);
    line-height: 1.55;
}

/* ── TRABAJOS (showcases + grilla) ──────────────────────────────────────── */
.fl-work-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.fl-work-head h2 {
    max-width: 13ch;
}

.fl-work-head .fl-lede {
    max-width: 38ch;
}

.fl-shows {
    display: grid;
    gap: clamp(3.5rem, 7vw, 6rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.fl-show {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.fl-show--rev {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

.fl-show--rev .fl-show-media {
    order: 2;
}

.fl-show-media {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 7 / 5;
    border: 0;
    background: var(--fl-ink-2);
    cursor: pointer;
}

.fl-show-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--fl-ease);
}

.fl-show-media:hover img,
.fl-show-media:focus-visible img {
    transform: scale(1.04);
}

.fl-show-copy h3 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
}

.fl-show-tag {
    display: block;
    margin-top: 0.7rem;
    color: var(--fl-violet);
    font-size: 0.95rem;
    font-weight: 600;
}

.fl-show-copy p {
    max-width: 40ch;
    margin-top: 1rem;
    color: var(--fl-dim);
    font-size: var(--text-body);
    line-height: 1.55;
}

.fl-show-copy .fl-pill {
    margin-top: 1.6rem;
}

.fl-more-title {
    margin-top: clamp(4rem, 8vw, 6.5rem);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.fl-more {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.5vw, 1.25rem);
    margin-top: 1.5rem;
}

.fl-more-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: 0;
    background: var(--fl-ink-2);
    text-align: left;
    cursor: pointer;
}

.fl-more-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--fl-ease);
}

.fl-more-card:hover img,
.fl-more-card:focus-visible img {
    transform: scale(1.05);
}

.fl-more-label {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2.6rem 1.15rem 1.05rem;
    background: linear-gradient(to top, rgba(10, 8, 24, 0.92), rgba(10, 8, 24, 0));
}

.fl-more-label strong {
    color: var(--fl-paper);
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fl-more-label span {
    color: var(--fl-dim);
    font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .fl-show,
    .fl-show--rev {
        grid-template-columns: 1fr;
    }

    .fl-hero-media {
        justify-self: center;
        max-width: 340px;
    }

    .fl-pillars {
        grid-template-columns: 1fr;
    }

    .fl-show--rev .fl-show-media {
        order: 0;
    }

    .fl-more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fl-pillars-head img {
        display: none;
    }

    .fl-more {
        grid-template-columns: 1fr;
    }
}
