/* ===============================================
   Banner de feeds de Instagram (mosaicos oscuros)
   =============================================== */

.ig-banner {
    position: relative;
    padding: 70px 0 80px;
    background:
        radial-gradient(ellipse 700px 360px at 12% -15%, rgba(221, 42, 123, 0.16), transparent 60%),
        radial-gradient(ellipse 700px 360px at 90% 115%, rgba(129, 52, 175, 0.20), transparent 60%),
        radial-gradient(ellipse 500px 300px at 70% -20%, rgba(245, 133, 41, 0.10), transparent 60%),
        linear-gradient(180deg, #14161B 0%, #1A1D25 100%);
    overflow: hidden;
}

/* --- Encabezado compacto y centrado --- */
.ig-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.ig-eyebrow {
    display: inline-block;
    font-family: var(--font-secondary, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E3A6C6;
    background: rgba(221, 42, 123, 0.12);
    border: 1px solid rgba(221, 42, 123, 0.30);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ig-title {
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
}

.ig-subtitle {
    font-family: var(--font-secondary, 'Inter', sans-serif);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0 0 26px;
}

/* --- Botón "Seguir" con el degradado de Instagram --- */
.ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    color: #FFFFFF;
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(221, 42, 123, 0.35);
    transition: transform var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.ig-follow-btn:hover,
.ig-follow-btn:focus {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(221, 42, 123, 0.5);
}

.ig-follow-btn i {
    font-size: 1.2rem;
}

/* --- Marquee (dirección contraria al de Facebook) --- */
.ig-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ig-track {
    display: flex;
    width: max-content;
    animation: ig-scroll var(--ig-scroll-duration, 200s) linear infinite reverse;
    will-change: transform;
}

.ig-marquee:hover .ig-track {
    animation-play-state: paused;
}

@keyframes ig-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ig-track {
        animation: none;
    }

    .ig-marquee {
        overflow-x: auto;
    }
}

.ig-group {
    display: flex;
    gap: 18px;
    padding-right: 18px;
}

/* --- Mosaicos cuadrados de pura imagen --- */
.ig-tile {
    position: relative;
    display: block;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #23262F;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.ig-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.ig-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-tile:hover img {
    transform: scale(1.06);
}

/* Insignia de video/reel */
.ig-tile-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Overlay con caption al pasar el mouse */
.ig-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(180deg, transparent 35%, rgba(12, 12, 16, 0.88) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast, 0.2s ease);
}

.ig-tile:hover .ig-tile-overlay {
    opacity: 1;
}

.ig-tile-overlay i {
    color: #FFFFFF;
    font-size: 1.2rem;
}

.ig-tile-overlay p {
    font-family: var(--font-secondary, 'Inter', sans-serif);
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ig-banner {
        padding: 56px 0 64px;
    }

    .ig-title {
        font-size: 2rem;
    }

    .ig-header {
        margin-bottom: 32px;
    }

    .ig-tile {
        width: 190px;
        height: 190px;
    }
}
