/* Logo Compu Express */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

/* Header: logo destaca sin competir con el menú */
body.modern-ui header .logo {
    background: none !important;
    -webkit-text-fill-color: unset !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
}

body.modern-ui header .logo-img,
body.modern-ui > header .logo-img {
    display: block;
    height: 56px !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 56px !important;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

body.modern-ui > header .logo,
body.modern-ui header .logo {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 220px;
}

body.modern-ui .auth-header {
    display: none !important;
}

body.auth-page .auth-shell__logo,
body.auth-page .auth-card__logo,
.auth-brand-logo {
    height: 32px !important;
    width: auto !important;
    max-width: 108px !important;
    max-height: 32px !important;
    object-fit: contain;
}

.logo--admin {
    gap: 10px;
}

.logo-admin-badge {
    font-family: var(--mx-display, 'Poppins', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.35);
    line-height: 1;
}

/* Footer con marca */
.site-footer-logo {
    margin-bottom: 12px;
}

.site-footer-logo .logo-img {
    height: 56px;
    opacity: 0.95;
}

@media (max-width: 640px) {
    body.modern-ui header .logo-img,
    body.modern-ui > header .logo-img {
        height: 48px !important;
        max-width: 180px !important;
        max-height: 48px !important;
    }

    body.modern-ui > header .logo,
    body.modern-ui header .logo {
        max-width: 180px;
    }
}
