/* =========================================
   FOOTER FLOTANTE
========================================= */

.uh-footer {
    --footer-muted: #626974;
    padding:
        20px var(--header-side) var(--header-top);
    color: var(--color-text);
    background: white;
}

.uh-footer__card {
    width: 100%;
    max-width: var(--header-max-width);
    margin-right: auto;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius:
        var(--header-radius-large) var(--header-radius-small) var(--header-radius-large) var(--header-radius-small);
    background: var(--header-background);
    box-shadow: var(--header-shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* =========================================
   COLUMNAS
========================================= */

.uh-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 1.2fr);
    gap: clamp(24px, 2.5vw, 40px);
    padding: 80px 26px 32px;
}

.uh-footer__column,
.uh-footer__brand-column {
    min-width: 0;
}

/* =========================================
   LOGO Y PRESENTACIÓN
========================================= */

.uh-footer__brand {
    display: inline-block;
    width: 100%;
    max-width: 240px;
    text-decoration: none;
}

.uh-footer__brand img {
    display: block;
    width: 100%;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.uh-footer__description {
    max-width: 280px;
    margin: 20px 0 0;
    color: var(--footer-muted);
    font-size: 14.5px;
    line-height: 1.8;
}

/* =========================================
   TÍTULOS Y ENLACES
========================================= */

.uh-footer__title {
    margin: 0 0 18px;
    color: var(--color-text);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
}

.uh-footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uh-footer__links a {
    display: inline-block;
    max-width: 100%;
    color: var(--footer-muted);
    font-size: 14.5px;
    line-height: 1.7;
    text-decoration: none;
    transition: color 180ms ease;
}

.uh-footer__links a:hover {
    color: var(--color-primary-dark);
}

/* =========================================
   CONTACTO
========================================= */

.uh-footer__contact {
    margin: 0;
    font-style: normal;
}

.uh-footer__contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uh-footer__contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    color: var(--footer-muted);
    font-size: 14.5px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 180ms ease;
}

.uh-footer__contact-link i {
    flex: 0 0 18px;
    width: 18px;
    margin-top: 2px;
    color: var(--color-primary-dark);
    font-size: 16px;
    text-align: center;
}

.uh-footer__contact-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.uh-footer__contact-link--primary {
    color: var(--color-primary-dark);
    font-weight: 650;
}

.uh-footer__contact-link:hover {
    color: var(--color-primary-dark);
}

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

.uh-footer__social-title {
    margin: 24px 0 12px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 650;
}

.uh-footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.uh-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 13px 5px 13px 5px;
    color: var(--color-text);
    background: #fff;
    font-size: 16px;
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.uh-footer__social-link:hover {
    border-color: var(--color-primary);
    color: white;
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* =========================================
   FRANJA INFERIOR
========================================= */

.uh-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 26px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--color-border);
}

.uh-footer__copyright {
    margin: 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.7;
}

.uh-footer__back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 10px;
    min-height: 36px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 180ms ease;
}

.uh-footer__back-top i {
    color: var(--color-primary-dark);
    font-size: 12px;
    transition: transform 180ms ease;
}

.uh-footer__back-top:hover {
    color: var(--color-primary-dark);
}

.uh-footer__back-top:hover i {
    transform: translateY(-3px);
}

/* Foco visible */

.uh-footer a:focus-visible,
.uh-footer button:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 4px;
}

/* Fondo amplio y contenido limitado */

.uh-footer {
    --footer-content-padding: 26px;
    padding-left: 20px;
    padding-right: 20px;
}

.uh-footer__card {
    width: 100%;
    max-width: none;
}

/* Columnas centradas dentro del fondo */

.uh-footer__grid {
    width: 100%;
    max-width: var(--header-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--footer-content-padding);
    padding-left: var(--footer-content-padding);
}

/* Franja inferior alineada con las columnas */

.uh-footer__bottom {
    width: calc(100% - var(--footer-content-padding) - var(--footer-content-padding));
    max-width: calc(var(--header-max-width) - var(--footer-content-padding) - var(--footer-content-padding));
    margin-right: auto;
    margin-left: auto;
}

/* Espaciado interior en móvil */

@media (max-width: 575.98px) {
    .uh-footer {
        --footer-content-padding: 22px;
    }
}

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

@media (max-width: 1199.98px) {
    .uh-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 40px;
    }
}

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

@media (max-width: 575.98px) {
    .uh-footer {
        padding-top: 12px;
        padding-bottom: 18px;
    }

    .uh-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;

        padding: 30px 22px 26px;
    }

    .uh-footer__brand {
        max-width: 225px;
    }

    .uh-footer__brand img {
        height: 48px;
    }

    .uh-footer__description {
        max-width: none;
        margin-top: 16px;
    }

    .uh-footer__title {
        margin-bottom: 14px;
    }

    .uh-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;

        margin: 0 22px;
        padding: 18px 0 20px;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {

    .uh-footer *,
    .uh-footer *::before,
    .uh-footer *::after {
        transition: none !important;
        animation: none !important;
    }
}