/* ====================================
   AJUSTES MÍNIMOS GLOBALES
   ==================================== */

/* Asegurar que body ocupe toda la altura */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ====================================
   HEADER / NAVBAR - Ajustes responsive
   ==================================== */

.navbar {
    height: 60px;
}

.navbar-brand {
    flex: 1;
    min-width: 0;
}

.navbar-brand p {
    margin: 0;
    line-height: 1.2;
}

.logout-button {
    white-space: nowrap;
}

/* ====================================
   FOOTER - Responsive
   ==================================== */

footer {
    font-size: 1rem;
}

footer .container {
    min-height: auto;
}

footer img {
    filter: brightness(1.1);
}

/* ====================================
   RESPONSIVE - Móviles
   ==================================== */

@media (max-width: 768px) {
    .navbar {
        height: 50px;
        padding: 5px 10px;
    }

    .navbar-brand {
        font-size: 0.85rem;
    }

    .logout-button {
        padding: 6px 12px !important;
        font-size: 0.85rem;
    }

    .logout-button span {
        display: none !important;
    }

    .logout-button i {
        margin: 0 !important;
    }

    footer {
        padding: 8px 0;
        font-size: 0.75rem;
    }

    footer .container {
        gap: 12px !important;
        padding: 0 10px;
    }

    footer img[alt="Isologo Cormons"] {
        width: 30px !important;
        height: 30px !important;
        margin-right: 5px !important;
    }

    footer img[alt="Logo WhatsApp"] {
        width: 18px !important;
        height: 18px !important;
        margin-right: 4px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.75rem;
    }

    footer {
        padding: 6px 0;
        font-size: 0.7rem;
    }

    footer .container {
        gap: 8px !important;
    }

    footer img[alt="Isologo Cormons"] {
        width: 24px !important;
        height: 24px !important;
    }

    footer img[alt="Logo WhatsApp"] {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 324px) {
    .navbar {
        height: 45px;
    }

    .navbar-brand {
        font-size: 0.65rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logout-button {
        padding: 4px 8px !important;
        font-size: 0.75rem;
        min-width: 32px;
    }

    .logout-button i {
        font-size: 0.9rem;
    }
}