.landing-redes {
    padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 88px);
}

.landing-redes__contenedor {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 clamp(14px, 2.5vw, 24px);
}

.landing-redes__encabezado {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.landing-redes__titulo {
    margin: 0 0 10px;
    color: var(--landing-verde, #1f6f43);
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-redes__subtitulo {
    margin: 0 auto;
    max-width: 640px;
    color: var(--landing-muted, #5a7184);
    font-size: clamp(0.98rem, 2.1vw, 1.06rem);
    line-height: 1.65;
}

.landing-redes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
    align-items: stretch;
}

.landing-redes__panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(94, 184, 217, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--landing-sombra, 0 16px 40px rgba(14, 107, 143, 0.1));
    overflow: hidden;
}

.landing-redes__panel-encabezado {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(94, 184, 217, 0.16);
    background: linear-gradient(180deg, rgba(244, 251, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.landing-redes__icono {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.landing-redes__panel-titulo {
    margin: 0 0 4px;
    color: var(--landing-texto, #1a3344);
    font-size: 1.08rem;
    font-weight: 700;
}

.landing-redes__enlace-perfil {
    color: var(--landing-agua-oscura, #0e6b8f);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-redes__enlace-perfil:hover,
.landing-redes__enlace-perfil:focus-visible {
    text-decoration: underline;
}

.landing-redes__feed {
    flex: 1;
    min-height: 620px;
    background: #f7fbfd;
}

.landing-redes__feed--facebook,
.landing-redes__feed--instagram {
    position: relative;
}

.landing-redes__iframe {
    display: block;
    width: 100%;
    min-height: 620px;
    height: 620px;
    border: 0;
    background: #ffffff;
}

.landing-redes__feed--instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: auto;
    padding: 12px;
}

.landing-redes__ig-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fc 0%, #edf9f3 100%);
    box-shadow: 0 8px 18px rgba(14, 107, 143, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-redes__ig-item:hover,
.landing-redes__ig-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 107, 143, 0.14);
}

.landing-redes__ig-foto {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-redes__ig-video::before {
    content: "";
    position: absolute;
    inset: auto 10px 10px auto;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.landing-redes__feed--instagram-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    text-align: center;
}

.landing-redes__mensaje {
    margin: 0;
    max-width: 320px;
    color: var(--landing-muted, #5a7184);
    line-height: 1.6;
}

.landing-redes__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f6f43 0%, #42a25f 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(31, 111, 67, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-redes__boton:hover,
.landing-redes__boton:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 111, 67, 0.28);
    color: #ffffff;
}

@media (max-width: 960px) {
    .landing-redes__grid {
        grid-template-columns: 1fr;
    }

    .landing-redes__feed--instagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .landing-redes__feed--instagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 10px;
    }

    .landing-redes__iframe {
        min-height: 520px;
        height: 520px;
    }

    .landing-redes__feed {
        min-height: 520px;
    }
}
