/* ── UCSAR Social Feeds ────────────────────────────── */

.ucsar-sf-notice {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    margin: 1rem 0;
}

/* ── Wrapper combinado ─────────────────────────────── */
.ucsar-sf-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

/* ── Cabecera de cada bloque ───────────────────────── */
.ucsar-sf-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1rem;
}
.ucsar-sf-block-header svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.ucsar-sf-block-header a {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
    text-decoration: none;
}
.ucsar-sf-block-header a:hover { opacity: 1; }

.ucsar-sf-ig-header { color: #c13584; }
.ucsar-sf-ig-header svg { stroke: #c13584; }
.ucsar-sf-tt-header { color: #010101; }
.ucsar-sf-tt-header svg { fill: #010101; }

/* ── Grid Instagram ─────────────────────────────────── */
.ucsar-sf-instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ucsar-sf-ig-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.ucsar-sf-ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ucsar-sf-ig-item:hover img {
    transform: scale(1.06);
}

.ucsar-sf-ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(193, 53, 132, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ucsar-sf-ig-item:hover .ucsar-sf-ig-overlay { opacity: 1; }
.ucsar-sf-ig-overlay svg {
    width: 36px;
    height: 36px;
    color: #fff;
    stroke: #fff;
}

/* ── Grid TikTok ────────────────────────────────────── */
.ucsar-sf-tiktok-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.ucsar-sf-tt-item {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #010101;
}

.ucsar-sf-tt-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    opacity: 0.9;
}

.ucsar-sf-tt-item:hover img {
    transform: scale(1.06);
    opacity: 1;
}

.ucsar-sf-tt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 0.4rem;
    padding: 0.5rem;
}
.ucsar-sf-tt-item:hover .ucsar-sf-tt-overlay { opacity: 1; }
.ucsar-sf-tt-overlay svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}
.ucsar-sf-tt-overlay span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .ucsar-sf-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ucsar-sf-instagram-feed,
    .ucsar-sf-tiktok-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}
