/* Footer institucional RNEC para Agenda.
   Todos los selectores están encapsulados para no afectar el flujo ciudadano. */

#agenda-rnec-footer {
    clear: both;
    width: 100%;
    margin: 34px 0 0;
    padding: 42px 0 0;
    overflow: hidden;
    color: #ffffff;
    background-color: #052743;
    background-image: url("im1.png");
    background-repeat: no-repeat;
    background-position: 35% 50%;
    background-size: cover;
    box-sizing: border-box;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

#agenda-rnec-footer,
#agenda-rnec-footer * {
    box-sizing: border-box;
}

#agenda-rnec-footer .agenda-rnec-footer__container {
    width: calc(100% - 48px);
    max-width: 1680px;
    margin: 0 auto;
}

#agenda-rnec-footer .agenda-rnec-footer__main {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(430px, 1.45fr) minmax(420px, 1.35fr);
    gap: clamp(36px, 4vw, 78px);
    align-items: start;
}

#agenda-rnec-footer .agenda-rnec-footer__brand {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 20px 0;
}

#agenda-rnec-footer .agenda-rnec-footer__brand a {
    display: block;
    width: 100%;
    max-width: 270px;
    text-align: center;
    text-decoration: none;
}

#agenda-rnec-footer .agenda-rnec-footer__brand img {
    display: block;
    width: 100%;
    max-width: 270px;
    height: auto;
    margin: 0 auto;
}

#agenda-rnec-footer .agenda-rnec-footer__contact h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
}

#agenda-rnec-footer .agenda-rnec-footer__contact h2:not(:first-child) {
    margin-top: 23px;
}

#agenda-rnec-footer .agenda-rnec-footer__contact p,
#agenda-rnec-footer .agenda-rnec-footer__bar p {
    margin: 0 0 9px;
    padding: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
    text-align: left;
}

#agenda-rnec-footer .agenda-rnec-footer__contact strong {
    font-weight: 800;
}

#agenda-rnec-footer .agenda-rnec-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 2px;
}

#agenda-rnec-footer .agenda-rnec-footer__links > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

#agenda-rnec-footer .agenda-rnec-footer__links a {
    display: inline-block;
    width: fit-content;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    transition: opacity .18s ease, transform .18s ease;
}

#agenda-rnec-footer .agenda-rnec-footer__links a:hover,
#agenda-rnec-footer .agenda-rnec-footer__links a:focus {
    color: #ffffff !important;
    opacity: .82;
    outline: none;
    transform: translateX(2px);
}

#agenda-rnec-footer .agenda-rnec-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 24px 0 18px;
}

#agenda-rnec-footer .agenda-rnec-footer__social-link {
    display: inline-block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 5px;
    opacity: .94;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

#agenda-rnec-footer .agenda-rnec-footer__social-link:hover,
#agenda-rnec-footer .agenda-rnec-footer__social-link:focus {
    opacity: 1;
    outline: none;
    transform: translateY(-2px) scale(1.04);
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--facebook {
    background-image: url("ico-footer-facebook.svg");
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--twitter {
    background-image: url("ico-footer-X.svg");
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--youtube {
    background-image: url("ico-footer-youtube.svg");
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--instagram {
    background-image: url("ico-footer-instagram.svg");
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--linkedin {
    background-image: url("ico-footer-linkedin.svg");
}

#agenda-rnec-footer .agenda-rnec-footer__social-link--tiktok {
    background-image: url("ico-footer-tiktok.png");
}

#agenda-rnec-footer .agenda-rnec-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 11px max(16px, calc((100vw - 1180px) / 2));
    background: #021c34;
}

#agenda-rnec-footer .agenda-rnec-footer__bar p {
    margin: 0;
    font-size: 11px;
}

#agenda-rnec-footer .agenda-rnec-footer__bar p:last-child {
    text-align: right;
}

@media (max-width: 980px) {
    #agenda-rnec-footer .agenda-rnec-footer__main {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    #agenda-rnec-footer .agenda-rnec-footer__links {
        grid-column: 1 / -1;
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    #agenda-rnec-footer {
        margin-top: 24px;
        padding-top: 30px;
    }

    #agenda-rnec-footer .agenda-rnec-footer__container {
        width: min(100% - 26px, 1180px);
    }

    #agenda-rnec-footer .agenda-rnec-footer__main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #agenda-rnec-footer .agenda-rnec-footer__brand {
        padding-top: 0;
        text-align: center;
    }

    #agenda-rnec-footer .agenda-rnec-footer__brand a,
    #agenda-rnec-footer .agenda-rnec-footer__brand img {
        max-width: 205px;
        margin: 0 auto;
    }

    #agenda-rnec-footer .agenda-rnec-footer__contact h2,
    #agenda-rnec-footer .agenda-rnec-footer__contact p {
        text-align: center;
    }

    #agenda-rnec-footer .agenda-rnec-footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    #agenda-rnec-footer .agenda-rnec-footer__links a {
        width: 100%;
        text-align: center;
    }

    #agenda-rnec-footer .agenda-rnec-footer__bar {
        flex-direction: column;
        gap: 4px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #agenda-rnec-footer .agenda-rnec-footer__bar p,
    #agenda-rnec-footer .agenda-rnec-footer__bar p:last-child {
        text-align: center;
    }
}

@media (max-width: 460px) {
    #agenda-rnec-footer .agenda-rnec-footer__links {
        grid-template-columns: 1fr;
    }

    #agenda-rnec-footer .agenda-rnec-footer__social {
        gap: 13px;
        flex-wrap: wrap;
    }
}

/* Ajuste amplio del footer para pantallas de escritorio. */
@media (min-width: 1400px) {
    #agenda-rnec-footer .agenda-rnec-footer__container {
        width: calc(100% - 64px);
    }
}

@media (max-width: 1180px) {
    #agenda-rnec-footer .agenda-rnec-footer__container {
        width: calc(100% - 36px);
    }

    #agenda-rnec-footer .agenda-rnec-footer__main {
        grid-template-columns: minmax(210px, .75fr) minmax(330px, 1.35fr) minmax(300px, 1.2fr);
        gap: 30px;
    }
}

@media (max-width: 900px) {
    #agenda-rnec-footer .agenda-rnec-footer__container {
        width: calc(100% - 28px);
    }

    #agenda-rnec-footer .agenda-rnec-footer__brand {
        padding-left: 0;
        padding-right: 0;
    }
}
