/*
 * WUALLET — FOOTER UNIVERSAL
 *
 * Este archivo controla únicamente el Footer incluido con Wuallet.
 */

:root {
    /* Altura total del Footer por tamaño de pantalla. */
    --altura-footer-movil: 150px;
    --altura-footer-tablet: 150px;
    --altura-footer-desktop: 150px;

    /* Ancho del logo por tamaño de pantalla. */
    --ancho-logo-footer-movil: 160px;
    --ancho-logo-footer-tablet: 160px;
    --ancho-logo-footer-desktop: 160px;

    /* Valores universales del Footer. */
    --ancho-maximo-footer: 1220px;
    --fondo-footer: #ffffff;
    --color-footer: #00123f;
    --borde-footer: #d3d3d3;
    --nivel-footer: 900;
}

/* El contenido termina exactamente donde comienza el Footer. */
.wp-site-blocks > main {
    margin-block-end: 0 !important;
    margin-bottom: 0 !important;
}

/* Footer completo: sobre el contenido y debajo del Header y los modales. */
.wuallet-universal-footer {
    position: relative !important;
    z-index: var(--nivel-footer) !important;
    height: var(--altura-footer-desktop) !important;
    min-height: var(--altura-footer-desktop) !important;
    max-height: var(--altura-footer-desktop) !important;
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid var(--borde-footer);
    background-color: var(--fondo-footer) !important;
    color: var(--color-footer);
    box-sizing: border-box;
    isolation: isolate;
}

/* Todo el contenido permanece centrado dentro de la altura del Footer. */
.wuallet-footer-inner {
    display: flex;
    width: 100%;
    max-width: var(--ancho-maximo-footer);
    height: 100%;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 8px 20px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.wuallet-footer-logo-link {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.wuallet-footer-logo {
    display: block;
    width: var(--ancho-logo-footer-desktop) !important;
    height: auto !important;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: center;
}

.wuallet-footer-title,
.wuallet-footer-description,
.wuallet-footer-legal {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-footer) !important;
    line-height: 1.2;
}

.wuallet-footer-title {
    font-size: 16px;
}

.wuallet-footer-description {
    font-size: 11px;
}

.wuallet-footer-legal {
    font-size: 8px;
}

/* Tablet: 601 a 1100 px. */
@media (min-width: 601px) and (max-width: 1100px) {
    .wuallet-universal-footer {
        height: var(--altura-footer-tablet) !important;
        min-height: var(--altura-footer-tablet) !important;
        max-height: var(--altura-footer-tablet) !important;
    }

    .wuallet-footer-logo {
        width: var(--ancho-logo-footer-tablet) !important;
    }
}

/* Móvil: hasta 600 px. */
@media (max-width: 600px) {
    .wuallet-universal-footer {
        height: var(--altura-footer-movil) !important;
        min-height: var(--altura-footer-movil) !important;
        max-height: var(--altura-footer-movil) !important;
    }

    .wuallet-footer-logo {
        width: var(--ancho-logo-footer-movil) !important;
    }
}
