/**
 * C+ — Footer
 */

.footer {
    position: relative;
    width: 100%;
    font-family: 'Archivo', sans-serif;
    background-color: #EEF2FF;
}

/* Imagen de fondo — define la altura del footer */
.footer__bg {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.footer__bg img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: clamp(-2.75rem, -4.5vw, -3.75rem);
}

/* Contenedor principal — superpuesto sobre la imagen */
.footer__inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 4rem);
    box-sizing: border-box;
}

/* ── Columna izquierda ── */
.footer__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    transform: translateY(-1rem);
}

.footer__logo-link {
    display: block;
    line-height: 0;
}

.footer__logo {
    width: clamp(95px, 11vw, 145px);
    height: auto;
    display: block;
}

.footer__follow {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0.35rem 0 0;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer__socials a {
    display: block;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__socials a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer__socials img {
    width: clamp(30px, 3.5vw, 42px);
    height: auto;
    display: block;
}

/* ── Columna centro: nav ── */
.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 0 0 auto;
    transform: translateX(clamp(2.5rem, 5.5vw, 6.5rem));
}

.footer__nav-link {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.footer__nav-link span {
    color: #ffffff;
    font-weight: 400;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.footer__nav-link:hover,
.footer__nav-link:focus,
.footer__nav-link:focus-visible {
    opacity: 1;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    outline: none;
}

.footer__nav-link:hover span,
.footer__nav-link:focus span,
.footer__nav-link:focus-visible span {
    color: #ffffff;
    font-weight: 700;
}

/* ── Columna derecha: contacto + legal ── */
.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.footer__contact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__contact-link {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer__contact-link:hover {
    opacity: 0.75;
}

.footer__contact-icon {
    width: clamp(16px, 1.75vw, 22px);
    height: auto;
    display: block;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.footer__legal {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.footer__legal li,
.footer__legal a {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.footer__legal a:hover,
.footer__legal a:focus,
.footer__legal a:focus-visible {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    outline: none;
}

/* ── Responsive mobile ── */
@media (max-width: 900px) {
    /* En móvil: ocultar imagen, usar fondo azul sólido */
    .footer {
        background-color: #2727E1;
    }

    .footer__bg {
        display: none;
    }

    /* El inner vuelve a flujo normal (no absolute) */
    .footer__inner {
        position: relative;
        inset: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.75rem;
        padding: 2.5rem 1.5rem 1.25rem;
    }

    .footer__left {
        transform: none;
    }

    .footer__follow {
        color: #ffffff;
    }

    .footer__logo {
        width: 88px;
    }

    .footer__right {
        align-items: center;
    }

    .footer__contact-row {
        justify-content: center;
    }

    .footer__legal {
        align-items: center;
    }

    .footer__nav {
        align-items: center;
        transform: none;
    }
}

/* ── 2000px+ ── */
@media (min-width: 2000px) {
    .footer__inner {
        max-width: 1900px;
        padding: 0 clamp(4rem, 7vw, 9rem);
        gap: 6rem;
    }

    .footer__logo {
        width: 170px;
    }

    .footer__follow {
        font-size: 1.2rem;
    }

    .footer__socials {
        gap: 0.85rem;
    }

    .footer__socials img {
        width: 54px;
    }

    .footer__nav {
        gap: 0.9rem;
    }

    .footer__nav-link {
        font-size: 1.45rem;
        gap: 0.65rem;
    }

    .footer__contact-row {
        gap: 0.65rem;
    }

    .footer__contact-link {
        font-size: 1.25rem;
    }

    .footer__contact-icon {
        width: 24px;
    }

    .footer__legal {
        margin-top: 0.75rem;
        gap: 0.2rem;
    }

    .footer__legal li,
    .footer__legal a {
        font-size: 1.15rem;
    }
}

/* ── 2560px+ ── */
@media (min-width: 2560px) {
    .footer__inner {
        max-width: 2300px;
        padding: 0 10rem;
        gap: 8rem;
    }

    .footer__logo {
        width: 200px;
    }

    .footer__follow {
        font-size: 1.35rem;
    }

    .footer__socials img {
        width: 64px;
    }

    .footer__nav-link {
        font-size: 1.65rem;
        gap: 0.75rem;
    }

    .footer__contact-link {
        font-size: 1.4rem;
    }

    .footer__contact-icon {
        width: 28px;
    }

    .footer__legal li,
    .footer__legal a {
        font-size: 1.3rem;
    }
}
