/* =========================================================
   Archivo: assets/css/16-footer.css
   Proyecto: INEM Kennedy Child Theme

   Footer institucional:
   - Fondo a todo el ancho del viewport.
   - Bordes redondeados superiores.
   - Tres columnas de navegación.
   - Contacto institucional.
   - Diseño responsive.
========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.inem-footer {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: 64px 0 0;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 72% 42%,
            rgba(18, 133, 91, 0.2),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #073b5c 0%,
            #075363 50%,
            #076344 100%
        );

    border-radius: 36px 36px 0 0;
    box-shadow: 0 -12px 38px rgba(15, 23, 42, 0.08);
}

.inem-footer *,
.inem-footer *::before,
.inem-footer *::after {
    box-sizing: border-box;
}

.inem-footer a {
    color: inherit;
    text-decoration: none;
}

.inem-footer a:focus-visible {
    outline: 2px solid var(--inem-accent, #f4c430);
    outline-offset: 4px;
    border-radius: 3px;
}

/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.inem-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
        clamp(56px, 6vw, 82px)
        clamp(28px, 5vw, 72px)
        clamp(42px, 5vw, 60px);
}

/* =========================================================
   COLUMNAS DE NAVEGACIÓN
========================================================= */

.inem-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(48px, 7vw, 112px);

    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-bottom: clamp(46px, 5vw, 64px);
}

.inem-footer__column {
    min-width: 0;
}

.inem-footer__heading {
    margin: 0 0 24px;

    color: #ffffff;
    font-size: clamp(1.35rem, 1.6vw, 1.65rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-align: center;
}

.inem-footer__heading::after {
    content: "";
    display: block;

    width: 44px;
    height: 2px;
    margin: 14px auto 0;

    border-radius: 999px;
    background: var(--inem-accent, #f4c430);
}

/* =========================================================
   MENÚS DEL FOOTER
========================================================= */

.inem-footer__menu {
    display: grid;
    justify-items: center;
    gap: 13px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.inem-footer__menu li {
    width: 100%;
    margin: 0;

    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.96rem, 1vw, 1.04rem);
    font-weight: 400;
    line-height: 1.5;
}

.inem-footer__menu a {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.inem-footer__menu a::before {
    content: "›";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    border: 1.5px solid var(--inem-accent, #f4c430);
    border-radius: 50%;

    color: var(--inem-accent, #f4c430);
    background: transparent;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.inem-footer__menu a:hover,
.inem-footer__menu a:focus-visible {
    color: var(--inem-accent, #f4c430);
    text-decoration: none;
    transform: translateX(4px);
}

.inem-footer__menu a:hover::before,
.inem-footer__menu a:focus-visible::before {
    color: #075363;
    background: var(--inem-accent, #f4c430);
    transform: scale(1.08);
}

/* =========================================================
   DIVISOR
========================================================= */

.inem-footer__divider {
    width: 100%;
    max-width: 1260px;
    height: 1px;
    margin: 0 auto 38px;

    background: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   INFORMACIÓN DE CONTACTO
========================================================= */

.inem-footer__contact {
    display: grid;
    grid-template-columns: 1.25fr 1.15fr 1.35fr 1fr;
    align-items: stretch;

    width: 100%;
    max-width: 1260px;
    margin-inline: auto;
}

.inem-footer__contact-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 15px;

    min-width: 0;
    padding: 0 clamp(18px, 2vw, 30px);

    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.inem-footer__contact-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.inem-footer__contact-item:last-child {
    padding-right: 0;
}

/* =========================================================
   ICONOS DE CONTACTO
========================================================= */

.inem-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.inem-footer__contact-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

/* =========================================================
   TEXTO DE CONTACTO
========================================================= */

.inem-footer__contact-content {
    display: grid;
    gap: 4px;

    min-width: 0;
}

.inem-footer__contact-content strong {
    display: block;

    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.inem-footer__contact-content span,
.inem-footer__contact-content a {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.88rem, 0.9vw, 0.96rem);
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.inem-footer__contact-content a {
    transition: color 180ms ease;
}

.inem-footer__contact-content a:hover,
.inem-footer__contact-content a:focus-visible {
    color: var(--inem-accent, #f4c430);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================================
   BARRA INFERIOR
========================================================= */

.inem-footer__bottom {
    width: 100%;
    background: rgba(2, 29, 48, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inem-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    width: 100%;
    max-width: none;
    min-height: 76px;
    margin: 0;
    padding: 20px clamp(28px, 5vw, 72px);

    text-align: center;
}

.inem-footer__bottom p {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.82rem, 0.88vw, 0.92rem);
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

/* =========================================================
   REDES SOCIALES
========================================================= */

.inem-footer__social {
    display: flex;
    justify-content: center;
}

.inem-footer__social-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.inem-footer__social-menu li {
    margin: 0;
}

.inem-footer__social-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;

    color: #ffffff;
    background: transparent;

    font-size: 0;
    text-decoration: none;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.inem-footer__social-menu a:hover,
.inem-footer__social-menu a:focus-visible {
    color: #073b5c;
    background: #ffffff;
    border-color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.inem-footer__social-menu a::before {
    font-family: dashicons;
    font-size: 21px;
    line-height: 1;
}

.inem-footer__social-menu a[href*="facebook"]::before {
    content: "\f304";
}

.inem-footer__social-menu a[href*="instagram"]::before {
    content: "\f12d";
}

.inem-footer__social-menu a[href*="youtube"]::before {
    content: "\f19b";
}

.inem-footer__social-menu a[href^="mailto:"]::before {
    content: "\f465";
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {
    .inem-footer__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 0;
    }

    .inem-footer__contact-item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 900px) {
    .inem-footer {
        left: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-top: 48px;
        transform: translateX(-50%);

        border-radius: 26px 26px 0 0;
    }

    .inem-footer__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 44px 24px 36px;
    }

    .inem-footer__columns {
        grid-template-columns: 1fr;
        gap: 38px;

        width: 100%;
        max-width: none;
        margin: 0;
        padding-bottom: 42px;
    }

    .inem-footer__column {
        width: 100%;
    }

    .inem-footer__heading {
        margin-bottom: 20px;
        font-size: 1.35rem;
        text-align: left;
    }

    .inem-footer__heading::after {
        margin: 14px 0 0;
    }

    .inem-footer__menu {
        justify-items: start;
        gap: 13px;
        width: 100%;
    }

    .inem-footer__menu li {
        width: 100%;
    }

    .inem-footer__menu a {
        width: fit-content;
        max-width: 100%;
    }

    .inem-footer__divider {
        width: 100%;
        max-width: none;
        margin-bottom: 34px;
    }

    .inem-footer__contact {
        grid-template-columns: 1fr;
        gap: 24px;

        width: 100%;
        max-width: none;
    }

    .inem-footer__contact-item,
    .inem-footer__contact-item:nth-child(3) {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;

        width: 100%;
        padding: 0;

        border-left: 0;
    }

    .inem-footer__contact-icon {
        width: 46px;
        height: 46px;
    }

    .inem-footer__contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .inem-footer__bottom {
        width: 100%;
    }

    .inem-footer__bottom-inner {
        width: 100%;
        max-width: none;
        min-height: auto;
        margin: 0;
        padding: 22px 24px;
        gap: 14px;
    }

    .inem-footer__bottom p {
        width: 100%;
        max-width: none;
    }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {
    .inem-footer {
        border-radius: 22px 22px 0 0;
    }

    .inem-footer__inner {
        padding: 40px 20px 32px;
    }

    .inem-footer__columns {
        gap: 34px;
        padding-bottom: 36px;
    }

    .inem-footer__heading {
        font-size: 1.25rem;
    }

    .inem-footer__menu {
        gap: 12px;
    }

    .inem-footer__menu li {
        font-size: 0.95rem;
    }

    .inem-footer__menu a::before {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
        font-size: 14px;
    }

    .inem-footer__contact-content span,
    .inem-footer__contact-content a {
        font-size: 0.88rem;
    }

    .inem-footer__bottom-inner {
        padding-inline: 20px;
    }
}