﻿/*.footer-version-text {
    position: absolute;
    right: 12px;
    bottom: 4px;
    font-size: 11px;
    color: #fff;
    opacity: .9;
    pointer-events: none;
}
*/


/* Base: página a 100% de alto y espacio para el footer */
html, body {
    height: 100%;
    margin: 0;
}

    body > form,
    #page-wrapper,
    #main-content {
        min-height: 100%;
        position: relative;
        padding-bottom: 120px; /* = altura footer (desktop) */
        box-sizing: border-box;
    }

/* Footer */
.pgs-footer {
    background: #626366;
    color: #fff;
    text-align: center;
    border-top: 3px solid #8dc53e;
    height: 120px; /* desktop */
    padding: 1rem;
    margin-top: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
}

/* Badge versión */
.footer-version-text {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 11px;
    color: #fff;
    opacity: .9;
    white-space: nowrap;
    pointer-events: none;
}

/* Imágenes dentro del footer responsive */
.pgs-footer img {
    max-width: 100%;
    height: auto;
}

/* ========== Breakpoints responsivos ========== */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    .pgs-footer {
        height: 100px;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 100px;
    }
}

/* Móviles (≤ 768px) */
@media (max-width: 768px) {
    .pgs-footer {
        height: 84px;
        padding: 0.75rem;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 84px;
    }

    .footer-version-text {
        font-size: 10px;
        right: 10px;
        bottom: 6px;
    }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
    .pgs-footer {
        height: 72px;
        padding: 0.5rem;
    }

    body > form, #page-wrapper, #main-content {
        padding-bottom: 72px;
    }

    .footer-version-text {
        font-size: 9px;
        right: 8px;
        bottom: 5px;
    }
}
